This handbook has been replaced by a newer version and is not maintained anymore.
[ << ]
[ < ]
[ Home ]
[ > ]
[ >> ]
11. Finalizing your Gentoo Installation
11.a. User Administration
Adding a User for Daily Use
Working as root on a Unix/Linux system is dangerous and should be avoided
as much as possible. Therefore it is strongly recommended to add a user
for day-to-day use.
The groups the user is member of define what activities the user can perform.
The following table lists a number of important groups you might wish to use:
||be able to access the audio devices
||be able to directly access optical devices
||be able to directly access floppy devices
||be able to play games
||be able to use emerge --pretend as a normal user
||be able to access USB devices
Be able to mount and use pluggable devices such as cameras and USB sticks
be able to access video capturing hardware and doing hardware
||be able to use su
For instance, to create a user called john who is member of the
wheel, users and audio groups, log in as root first
(only root can create users) and run useradd:
Code Listing 1.1: Adding a user for day-to-day use
# useradd -m -G users,wheel,audio -s /bin/bash john
# passwd john
If a user ever needs to perform some task as root, they can use su -
to temporarily receive root privileges. Another way is to use the sudo
package which is, if correctly configured, very secure.
11.b. Optional: Install GRP Packages
This part is for GRP users only. Other users should skip this part and continue
with Where to go from here?.
Now that your system is booted, log on as the user you created (for instance,
john) and use su - to gain root privileges:
Code Listing 2.1: Gaining root privileges
$ su -
Now we need to change the Portage configuration to look for the prebuilt
binaries from the second CD (Gentoo Packages CD). First mount this CD:
Code Listing 2.2: Mount the Packages CD
# mount /mnt/cdrom
Now configure Portage to use /mnt/cdrom for its prebuilt packages:
Code Listing 2.3: Configuring Portage to use /mnt/cdrom
# ls /mnt/cdrom
# export PKGDIR="/mnt/cdrom/packages"
# export PKGDIR="/mnt/cdrom"
Now install the packages you want. The Packages CD contains several prebuilt
binaries, for instance KDE and GNOME.
Code Listing 2.4: Installing GNOME
# emerge --usepkg gnome
To find out what prebuilt packages are available, do a quick listing of all
the files in /mnt/cdrom/All. For instance, to find out if KDE is
Code Listing 2.5: Finding out if KDE is installable
# ls /mnt/cdrom/All/kde*
Be sure to install the binaries now. When you do an emerge --sync to
update Portage (as you will learn later), the prebuilt binaries might not match
against the ebuilds in your updated Portage. You can try to circumvent this by
using emerge --usepkgonly instead of emerge --usepkg.
Congratulations, your system is now fully equipped! Continue with Where to go from here? to learn more about
[ << ]
[ < ]
[ Home ]
[ > ]
[ >> ]
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-2.5 license. The Gentoo Name and Logo Usage Guidelines apply.