Setting a root Password
Before you forget, set the root password by typing:
Adding a User for Daily Use
Working as root on a Unix/Linux system is dangerous and should be avoided
as much as possible. Therefor it is strongly recommended to add a user
for day-to-day use.
For instance, to create a user called john who is member of the
wheel group (be able to change to root using su), users
group (default for all users) and audio group (be able to use audio
# useradd john -m -G users,wheel,audio -s /bin/bash
# passwd john
Password: (Enter the password for john)
Re-enter password: (Re-enter the password to verify)
If this user ever needs to perform some task as root, he can use su - to
temporarily receive root privileges. Another way is to use the sudo
package which is, if correctly configured, very secure.
Reboot and Enjoy
Congratulations! Your Gentoo system is now ready. Run etc-update to
update the configuration files (if needed), exit the chrooted environment and
unmount all mounted partitions. Then type in that one magical command you have
been waiting for: reboot.
# cd /
# umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
Of course, don't forget to remove the bootable CD, otherwise the CD will be
booted again instead of your new Gentoo system.
OldWorld PPC users will boot in MacOS since their bootloader
isn't installed yet. Those users should read Optional: Configuring BootX. GRP users can
continue with Optional: Install Extra
Packages, all the rest can finish up with Where to go from here?.
Optional: Configuring BootX
This subsection is only for PPC-users who want to use BootX as
bootloader. All other readers should skip this subsection.
Now your machine is booted in MacOS, open the BootX control panel.
Select Options, and uncheck Used specified RAM disk. When you
return to the BootX main screen, you will now find an option to specify your
machine's root disk and partition. Fill these in with the appropriate
BootX can be configured to start Linux upon boot. If you do this, you will
first see your machine boot into MacOS then, during startup, BootX will
load and start Linux. See the BootX home page for more
If you are a GRP users you can continue with Optional: Install Extra Packages, otherwise go to
Where to go from here?.
Optional: Install Extra 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:
$ su -
Password: (Enter your root password)
Now we need to copy over the prebuild binaries from the second CD (CD-2) if you
have it. First mount this CD:
(Put CD-2 in the CD tray)
# mount /mnt/cdrom
Now copy over all prebuild binaries from the CD to
/usr/portage/packages. Make sure you use the same copy-command!
# cp -a /mnt/cdrom/packages/* /usr/portage/packages/
Now install the packages you want. CD-2 contains several prebuild binaries, for
# emerge --usepkg 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 equiped! Continue with Where to go from here? to learn more about