Assicurarsi che la data sia settata correttamente utilizzando
(controllare l'orologio) livecd gentoo # date Tue Jan 17 12:59:00 UTC 2012(Impostare data e ora correnti, se necessario) livecd ~ # date 011713592012(Il formato è MMGGhhmmAAAA) Tue Jan 17 13:59:00 UTC 2012
Ora scaricare un pacchetto di stage da uno dei
livecd ~ # cd /mnt/gentoo livecd gentoo # links http://www.gentoo.org/main/en/mirrors.xml(Scegliere un mirror, spostarsi nella directory releases/x86/current-stage3/, evidenziare lo stage3 voluto, probabilmente lo stage3 per i686, e premere D per scaricarlo) (Oppure scaricarlo con wget senza scegliere il mirror più vicino) livecd ~ # cd /mnt/gentoo livecd gentoo # wget ftp://distfiles.gentoo.org/pub/gentoo/releases/x86/current-stage3/stage3-i686-*.tar.bz2
Spostarsi su
livecd gentoo # time tar xjpf stage3* real 1m14.157s user 1m2.920s sys 0m7.530s
Installare l'ultimo snapshot del Portage. Procedere come per l'archivio stage3:
scegliere un mirror vicino dalla
livecd gentoo # cd /mnt/gentoo/usr livecd usr # links http://www.gentoo.org/main/en/mirrors.xml(Scegliere un mirror, spostarsi nella directory snapshots/, evidenziare portage-latest.tar.bz2 e premere D per scaricarlo) (Oppure scaricarlo con wget senza scegliere un mirror vicino) livecd gentoo # cd /mnt/gentoo/usr livecd usr # wget http://distfiles.gentoo.org/snapshots/portage-latest.tar.bz2
livecd usr # time tar xjf portage* real 0m40.523s user 0m28.280s sys 0m8.240s
Montare i filesystem
livecd usr # cd / livecd / # mount -t proc proc /mnt/gentoo/proc livecd / # mount --rbind /dev /mnt/gentoo/dev livecd / # cp -L /etc/resolv.conf /mnt/gentoo/etc/ livecd / # chroot /mnt/gentoo /bin/bash livecd / # env-update && source /etc/profile >>> Regenerating /etc/ld.so.cache...
Impostare il fuso orario corretto su uno di quelli elencati in
livecd / # ls /usr/share/zoneinfo(Si usa Roma come esempio) livecd / # cp /usr/share/zoneinfo/Europe/Rome /etc/localtime livecd / # echo "Europe/Rome" > /etc/timezone livecd / # date Tue Jan 17 14:39:59 CET 2012
Impostare il nome della postazione (host) in
livecd / # cd /etc livecd etc # echo "127.0.0.1 miamacchina.da.me miamacchina localhost"> hosts livecd etc # sed -i -e 's/hostname.*/hostname="miamacchina"/' conf.d/hostname(Usare il nome dell'host scelto e controllare) livecd etc # hostname miamacchina livecd etc # hostname -f miamacchina.da.me