conf files to add IP
addresses and a hostname or change the basic system startup script.
# passwd
# useradd chris -m -G users,wheel,audio -s /bin/bash
398
Choosing and Installing a Linux Distribution Part III
# 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).
Pages:
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802