|
Home
Add user and machine information
When you create
After that
To build and install
|
|
28. Add user and machine information. Add a password for the root user, a regular user
account name of your choosing (chris in this example), a machine name, and a domain
name. If you like, you can also edit the /etc/hosts and /etc/rc.conf files to add IP
addresses and a hostname or change the basic system startup script.
# passwd
# passwd chris
# echo
mymachine > /etc/hostname
# echo
mydomain·com > /etc/dnsdomainname
# nano -w /etc/hosts
# nano -w /etc/rc.conf
29. Set up networking. Edit the net file, and then run rc-update to add the eth0 interface
as the default. (Uncomment the line iface eth0="dhcp" to have the network use DHCP
to start up automatically.)
# nano -w /etc/conf.d/net
# rc-update add net.eth0 default
30. Add kernel modules. Add any extra kernel modules that you need to add at boot time.
You usually need to do this only if some piece of hardware isn't detected and the module
needed to use it isn't automatically loaded. Edit either the kernel-2.4 or kernel-2.6 file,
depending on which kernel you are using.
# nano -w /etc/modules.autoload.d/kernel-'uname -r'
You can type uname -a to see what your current kernel version is.
31. Configure the boot loader. You need to install a boot loader (grub in this example) and
configure it. The example makes the following assumptions about your setup. You need
to replace any of the following information with the settings for your particular setup:
Gentoo is installed on your first IDE hard disk (/dev/hda). You have a separate /boot partition on
/dev/hda1.
Your initrd file in the /boot directory is initramfs-genkernel-x86-2.6.18- gentoo-r2.
Your kernel file in the /boot directory is kernel-genkernel-x86-2.6.18-gentoo-r2.
If any of that information is different for your setup, you need to adapt the following step
appropriately. To configure grub, install it with emerge, run the grub command, and
then create the grub.conf file as follows:
# emerge grub
# grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
|