Under Linux, all partitions used by the system must be listed in
# nano -w /etc/fstab
Let us take a look at how we write down the options for the
In our default
/boot ext2 defaults 0 2
Some users don't want their
Add the rules that match your partitioning scheme and append rules for your CD-ROM drive(s), and of course, if you have other partitions or drives, for those too.
Now use the
/boot ext2 defaults,noatime 0 2 /dev/sda3 none swap sw 0 0 /dev/sda4 / ext3 noatime 0 1 /dev/cdrom /mnt/cdrom auto noauto,user 0 0
/boot ext2 defaults,noatime 0 2 /dev/sda2 none swap sw 0 0 /dev/sda3 / ext3 noatime 0 1 /dev/cdrom /mnt/cdrom auto noauto,user 0 0
/dev/sda1 / ext3 noatime 0 1 /dev/sda2 none swap sw 0 0 /dev/sda4 /usr ext3 noatime 0 2 /dev/sda5 /var ext3 noatime 0 2 /dev/sda6 /home ext3 noatime 0 2# You must add the rules for openprom openprom /proc/openprom openpromfs defaults 0 0 /dev/cdrom /mnt/cdrom auto noauto,user 0 0
/dev/sda4 / ext3 noatime 0 1 /dev/sda3 none swap sw 0 0 /dev/cdrom /mnt/cdrom auto noauto,user 0 0
To improve performance, most users would want to add the
Double-check your
One of the choices the user has to make is name his/her PC. This seems to be
quite easy, but
# nano -w /etc/conf.d/hostname(Set the hostname variable to your host name) hostname="tux"
Second,
# nano -w /etc/conf.d/net(Set the dns_domain variable to your domain name) dns_domain_lo="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/net(Set the nis_domain variable to your NIS domain name) nis_domain_lo="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. For DHCP to work, you will need to install a DHCP
client. This is described later in
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 /usr/share/doc/openrc-*/net.example.bz2 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 via 192.168.0.1"
To use DHCP, define
config_eth0="dhcp"
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.
# cd /etc/init.d # ln -s net.lo net.eth0 # rc-update add net.eth0 default
If you have several network interfaces, you need to create the appropriate
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
# emerge pcmciautils
First we set the root password by typing:
# passwd
Gentoo uses
# nano -w /etc/rc.conf
When you're finished configuring these two files, save them and exit.
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/hwclock
If your hardware clock is not using UTC, you need to add
When you're finished configuring
You will probably only use one or maybe two locales on your system. You have to
specify locales you will need in
# nano -w /etc/locale.gen
The following locales are an example to get both English (United States) and German (Germany) with the accompanying character formats (like UTF-8).
en_US ISO-8859-1 en_US.UTF-8 UTF-8 de_DE ISO-8859-1 de_DE@euro ISO-8859-15
The next step is to run
# locale-gen
Once done, you now have the possibility to set the system-wide locale settings
in the
LANG="de_DE.UTF-8" LC_COLLATE="C"
And reload your environment:
# env-update && source /etc/profile
We made a full
Please continue with
If you are 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