Under Linux, all partitions used by the system must be listed in
The default
# nano -w /etc/fstab
Let us take a look at how we write down the options for the
In our default x86 partitioning example
/dev/hda1 /boot ext2 defaults 1 2
Some users don't want their
Now, to improve performance, most users would want to add the
/dev/hda1 /boot ext2 defaults,noatime 1 2
If we continue with this, we would end up with the following three lines (for
/dev/hda1 /boot ext2 defaults,noatime 1 2 /dev/hda2 none swap sw 0 0 /dev/hda3 / ext3 noatime 0 1
To finish up, you should add a rule for
/dev/hda1 /boot ext2 noauto,noatime 1 2 /dev/hda2 none swap sw 0 0 /dev/hda3 / ext3 noatime 0 1 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
Now use the above example to create your
none /proc/openprom openpromfs defaults 0 0
If you need
none /proc/bus/usb usbfs defaults 0 0
Double-check your
One of the choices the user has to make is name his/her PC. This seems to be
quite easy, but
We use these values in the next examples. First we set the hostname:
# echo tux > /etc/hostname
Second we set the domainname:
# echo homenetwork > /etc/dnsdomainname
If you have a NIS domain (if you don't know what that is, then you don't have one), you need to define that one too:
# echo nis.homenetwork > /etc/nisdomainname
Now add the
# rc-update add domainname default
Before you get that "Hey, we've had that already"-feeling, you should remember that the networking you set up in the beginning of the gentoo installation was just for the installation. Right now you are going to configure networking for your Gentoo system permanently.
All networking information is gathered in
First open
# nano -w /etc/conf.d/net
The first variable you'll find is
iface_eth0="<your ip address> broadcast <your broadcast address> netmask <your netmask>"
If you use DHCP (automatic IP retrieval), you should just set
So let us give three examples; the first one uses DHCP, the second one a static IP (192.168.0.2) with netmask 255.255.255.0, broadcast 192.168.0.255 and gateway 192.168.0.1 while the third one just activates the interface for rp-pppoe usage:
(For DHCP) iface_eth0="dhcp"# Some network admins require that you use the # hostname and domainname provided by the DHCP server. # In that case, add the following to let dhcpcd use them. # That will override your own hostname and domainname definitions. dhcpcd_eth0="-HD"# If you intend on using NTP to keep your machine clock synchronized, use # the -N option to prevent dhcpcd from overwriting your /etc/ntp.conf file dhcpcd_eth0="-N"(For static IP) iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" gateway="eth0/192.168.0.1"(For rp-pppoe) iface_eth0="up"
If you have several network interfaces, create extra
Now save the configuration and exit to continue.
To have your network interfaces activated at boot, you need to add them to the default runlevel. If you have PCMCIA interfaces you should skip this action as the PCMCIA interfaces are started by the PCMCIA init script.
# rc-update add net.eth0 default
If you have several network interfaces, you need to create the appropriate
# cd /etc/init.d # ln -s net.eth0 net.eth1 # rc-update add net.eth1 default
You now need to inform Linux about your network. This is defined in
# nano -w /etc/hosts
127.0.0.1 localhost 192.168.0.5 jenny.homenetwork jenny 192.168.0.6 benny.homenetwork benny 192.168.0.7 tux.homenetwork tux
If your system is the only system (or the nameservers handle all name
resolution) a single line is sufficient. For instance, if you want to call your
system
127.0.0.1 tux.homenetwork tux localhost
Save and exit the editor to continue.
If you don't have PCMCIA, you can now continue with
PCMCIA-users should first install the
# USE="-X" emerge pcmcia-cs
When
# rc-update add pcmcia default
First we set the root password by typing:
# passwd
If you want root to be able to log on through the serial console, add
# echo "tts/0" >> /etc/securetty
Gentoo uses
# nano -w /etc/rc.conf
As you can see, this file is well commented to help you set up the necessary
configuration variables. Take special care with the
PPC uses x86 keymaps on most systems. Users who want to be able to use
ADB keymaps on boot have to enable ADB keycode sendings in their kernel and have
to set a mac/ppc keymap in
When you're finished configuring