Modificare il file
livecd linux # cd /etc livecd etc # nano -w fstab /dev/sda1 /boot ext2 noauto,noatime 1 2 /dev/sda3 / ext3 noatime 0 1 /dev/sda2 none swap sw 0 0
Modificare il file
livecd linux # cd /etc livecd etc # nano -w fstab /dev/md1 /boot ext2 noauto,noatime 1 2 /dev/md3 / ext3 noatime 0 1 /dev/sda2 none swap sw,pri=1 0 0 /dev/sdb2 none swap sw,pri=1 0 0 /dev/vg/usr /usr ext3 noatime 1 2 /dev/vg/portage /usr/portage ext2 noatime 1 2 /dev/vg/distfiles /usr/portage/distfiles ext2 noatime 1 2 /dev/vg/home /home ext3 noatime 1 2 /dev/vg/opt /opt ext3 noatime 1 2 /dev/vg/tmp /tmp ext2 noatime 1 2 /dev/vg/var /var ext3 noatime 1 2 /dev/vg/vartmp /var/tmp ext2 noatime 1 2
Configurare la rete in
livecd etc # cd init.d livecd init.d # ln -s net.lo net.eth0 livecd init.d # cd ../conf.d livecd conf.d # echo 'config_eth0="192.168.1.10 netmask 255.255.255.0 brd 192.168.1.255"' >> net livecd conf.d # echo 'routes_eth0="default via 192.168.1.1"' >> net livecd conf.d # echo 'hostname="myhostname"' > hostname livecd conf.d # rc-update add net.eth0 default(Se il driver della scheda di rete è stato compilato come modulo, aggiungerlo a /etc/conf.d/modules) livecd conf.d # echo 'modules="r8169"' >> /etc/conf.d/modules(Se si vuole riconnettersi tramite ssh dopo aver riavviato il nuovo sistema) livecd conf.d # rc-update add sshd default
Impostare la password di root con
livecd conf.d # passwd New UNIX password:inserire_la_password Retype new UNIX password:re_inserire_la_password passwd: password updated successfully
Modificare il file
Europe/Rome
Controllare la configurazione del sistema in
livecd conf.d # nano -w /etc/rc.conf livecd conf.d # nano -w /etc/conf.d/keymaps
Installare le utilità per RAID e LVM2.
livecd conf.d # emerge mdadm lvm2 livecd conf.d # rc-update add mdraid boot livecd conf.d # rc-update add lvm boot
Installare un logger di sistema (programma che gestisce i messaggi di sistema,
NdT) come
livecd conf.d # time emerge syslog-ng vixie-cron real 1m52.699s user 1m1.630s sys 0m35.220s livecd conf.d # rc-update add syslog-ng default livecd conf.d # rc-update add vixie-cron default
Installare gli strumenti di sistema (
livecd conf.d # emerge xfsprogs(Se si usa il filesystem XFS) livecd conf.d # emerge jfsutils(Se si usa il filesystem JFS) livecd conf.d # emerge reiserfsprogs(Se si usa il filesystem Reiser) livecd conf.d # emerge dhcpcd(Se si ha bisogno di un client DHCP) livecd conf.d # emerge ppp(Se si usa una connessione ADSL PPPoE)
Emergere
livecd conf.d # time emerge grub real 1m8.634s user 0m39.460s sys 0m15.280s livecd conf.d # nano -w /boot/grub/grub.conf
default 0 timeout 10 title Gentoo root (hd0,0) kernel /boot/kernel root=initrd /boot/initramfs # Solo se initramfs è richiesto
livecd conf.d # grub Probing devices to guess BIOS drives. This may take a long time. grub> root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/ grub/menu.lst"... succeeded Done. grub> quit
livecd conf.d # grub Probing devices to guess BIOS drives. This may take a long time. grub> root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/ grub/menu.lst"... succeeded Done. grub> root (hd1,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd1) grub> quit