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 defaults,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 nodev,nosuid,noexec 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
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:
# nano -w /etc/conf.d/hostname(Set the HOSTNAME variable to your hostname) HOSTNAME="tux"
Second we set the domainname:
# nano -w /etc/conf.d/domainname(Set the DNSDOMAIN variable to your domain name) DNSDOMAIN="homenetwork"
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:
# nano -w /etc/conf.d/domainname(Set the NISDOMAIN variable to your NIS domain name) NISDOMAIN="my-nisdomain"
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
DHCP is used by default and does not require any further configuration.
If you need to configure your network connection either because you need
specific DHCP options or because you do not use DHCP at all, open
# nano -w /etc/conf.d/net
You will see the following file:
# This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /etc/conf.d/net.example and save your configuration # in /etc/conf.d/net (this file :]!).
To enter your own IP address, netmask and gateway, you need
to set both
config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" ) routes_eth0=( "default gw 192.168.0.1" )
To use DHCP and add specific DHCP options, define
config_eth0=( "dhcp" ) dhcp_eth0="nodns nontp nonis"
Please read
If you have several network interfaces repeat the above steps for
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
(This defines the current system) 127.0.0.1 tux.homenetwork tux localhost(Define extra systems on your network, they need to have a static IP to be defined this way.) 192.168.0.5 jenny.homenetwork jenny 192.168.0.6 benny.homenetwork benny
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
When you're finished configuring
As you can see, this file is well commented to help you set up the necessary configuration variables. You can configure your system to use unicode and define your default editor and your display manager (like gdm or kdm).
Gentoo uses
# nano -w /etc/conf.d/keymaps
Take special care with the
When you're finished configuring
Gentoo uses
# nano -w /etc/conf.d/clock
If your hardware clock is not using UTC, you need to add
When you're finished configuring
If you are not installing Gentoo on IBM PPC64 hardware, continue with
If you are running Gentoo on IBM PPC64 hardware and using a virtual console
you must uncomment the appropriate line in
hvc0:12345:respawn:/sbin/agetty -L 9600 hvc0 hvsi:12345:respawn:/sbin/agetty -L 19200 hvsi0
You should also take this time to verify that the appropriate console is
listed in
You may now continue with