Skip to content

FirstLogin_EL

cstackpole edited this page Nov 29, 2013 · 4 revisions

First login on a EL system

After logging in to the system as your administrator user there are a few tweaks that need to be done.

Sudo

We will want to give the user access to the sudoers file for any root level commands we need to run. Open a terminal Applications -> System Tools -> Terminal and get a root shell to run visudo.

$ su -
# visudo

If you are not familiar with vi, then follow the instructions exactly. If you every get into the position where things are not working as you expect, then hit the 'Escape Key' several times then type ':q!' to close the file without making any changes so that you can start over and try again.
Use the arrow keys to move the cursor to the bottom of the file. Then press the 'o' key. It will move the cursor to a new line and allow editing. Type the following line but replace USERNAMEHERE with your username.

USERNAMEHERE ALL=(ALL) ALL

Then press the "Escape Key" and type ':wq!' to save and close. Now we can use sudo as our low level account instead of having to rely on a root account. The first time you run sudo you should get a output similar to below.

# exit
$ sudo ls We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for USERNAME:
Desktop Documents Downloads Musics Pictures Public Templates Videos

EPEL

The Extra Packages project for Enterprise Linux is an incredibly useful repository to use, so install access to the repository and update the system. Don't be surprised if there are a few updates to packages like icewm.
$ sudo yum install epel-release
$ sudo yum clean all && sudo yum update

Yum

Fix the yum config files if you have a local repository. If you do not, then skip this step.
$ cd /etc/yum.repos.d/
$ sudo vi sl.repo

Now replace the baseurl with the information of your server as defined from the repository building stage. Do this for both the sl.repo, sl-other.repo, and epel.repo. Verify the repos are working. These should be the only three repos you need at this moment. $ sudo yum clean all && sudo yum update

Verify that you can install from the repos and install a few useful utilities: $ sudo yum install vim

Return to the main page.

Clone this wiki locally