Installation of Gentoo

From ImageWiki

Jump to: navigation, search

Contents

BIOS setup

Trivial stuff: Go to "Advance" tab. Under "System acoustic", set "Fan" to "300 or less".

Not so trivial stuff: Go to "Boot" and set it to boot from CD.

During Gentoo booting

Type "gentoo -nofb" before entering the actual boot sequence. To use a Danish keyboard, key in 11 at the keymap selection prompt.

Disk setup procedure (for disk server)

Refer to here for more detailed explanations.

Note: /dev/hda# is used for the disk servers, while /dev/sda# is used for the image servers.

Mounting the file systems

This is done by issuing the commands:

 mount /dev/hda3 /mnt/gentoo
 mount /dev/sda1 /mnt/gentoo/boot

Setting up the stage

Set the date and UTC time

Use the 'date' command to set the date of the machine, the parameter is formatted in MMDDhhmmYYYY. Below is an example to set the date and time of the machine to 00:16:00 21-8-2007:

 date 082100162007

Enabling network connection

 /etc/init.d/net.eth0 restart

Download stage3 archive

The 'links' command is used to browse the website to find the suitable stage3 files as shown:

 cd /mnt/gentoo
 links http://www.gentoo.org/main/en/mirrors.xml

In 'links', pick a mirror, move to the "releases/amd64/current/stages" directory, highlight the suitable stage3 archive and press D to download.

An alternative method would be to use 'wget' to download the file directly, provided that the address of the archive is known before hand.

Unpack the stage3 archive

 cd /mnt/gentoo/usr
 time tar xjpf stage3*

Note: The 'time' command is optional and is included for "fun!".

Download the latest Portage snapshot

The 'links' command is used as shown:

 cd /mnd/gentoo/usr
 links http://www.gentoo.org/main/en/mirrors.xml

In 'links', pick a mirror, move to the "snapshots/" directory, highlight "portage-latest.tar.bz2" and press D to download. Again 'wget' can also be used if the address of the snapshot is already known.

Unpack the Portage snapshot

 time tar xjf portage*

Again 'time' is optional.

Chrooting

This procedure basically mount the "/proc" file system, overwrite the "/etc/resolv.conf" file, and then chroot into our Gentoo environment.

 cd /
 mount -t proc proc /mnt/gentoo/proc
 cp -L /etc/resolv.conf /mnt/gentoo/etc/
 chroot /mnt/gentoo /bin/bash
 env-update && source /etc/profile

Setting the time zone

Issue the following command to copy the correct time zone information into "/localtime" directory:

 cp /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime

To make sure the date is correct, issue the following command:

 date

Setting up host and domain name

Set host name in "/etc/conf.d/hostname" and "/etc/hosts". The following commands are issued (imagediskserver1 is used as an example):

 cd /etc
 echo "127.0.0.1 ImageDiskServer1 imagediskserver1 localhost" > hosts
 sed -i -e 's/HOSTNAME.*/HOSTNAME="imagediskserver1 "/' conf.d/hostname
 hostname imagediskserver1 
 hostname -f

Kernel configuration

To be continued.... (NEED TO ASK JON FOR SOME DETAILS!!!)


Installing X Windows support

To be continued.... (NEED TO ASK JON FOR SOME DETAILS!!!)

Personal tools