Ecrire un commentaire - Voir les 2 commentaires
| Février 2012 | ||||||||||
| L | M | M | J | V | S | D | ||||
| 1 | 2 | 3 | 4 | 5 | ||||||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 | ||||
| 13 | 14 | 15 | 16 | 17 | 18 | 19 | ||||
| 20 | 21 | 22 | 23 | 24 | 25 | 26 | ||||
| 27 | 28 | 29 | ||||||||
|
||||||||||
I creat then an additional user andgo for configuring your network.
I have some issue re. framebuffer. Based on the homepage of Tim Stadelmann I set up the VESA driver and it works great.
Looking at the boot messages I still have no network and no usb. I will need to fix that up.
Let's go for GRUB which is the standard now:
emerge grub
I edit the grub.conf and activate as follows:
cp /proc/mounts /etc/mtab
grub-install --root-directory=/boot /dev/hda
And now I can reboot:
exit
cd
umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
reboot
Oops, it can boot windows but not Gentoo, apparently I messed up the call to Kernel-2.4.26-r9 on /dev/hda3.
I need to reboot on the CD and correct it.
Ok, it was just a typo on the filename. But now it boots without image I guess I should include the framebuffer module in the kernel and not just as loadable!
Anyway I will create 2 entries in grub.conf, 1 with framebuffer and 1 without so I could boot anyway and get rid of the LiveCD!!
I opt for metalog as system logger:
emerge metalog
rc-update add metalog default
After some wandering on the net I opt for dcron (see file dcron.txt for more information):
emerge dcron
rc-update add dcron default
crontab /etc/crontab
I add indexing:
emerge slocate
I add the jfs utilities:
emerge jfsutils
and a dhcp client:
emerge dhcpcd
I edit /etc/fstab (see file fstab.txt).
I set up some networking information:
echo lulap-fmartin > /etc/hostname
echo europe > /etc/dnsdomainname
rc-update add domainname default
I edit the /etc/conf.d/net with the following line:
iface_eth0="dhcp"
and add it the default runlevel:
rc-update add net.eth0 default
and edit the /etc/hosts as follows:
127.0.0.1 lulap-fmartin.europe lulap-fmartin
My computer is a laptop therefore I need PCMCIA support so I install it as instructed:
USE="-X" emerge pcmcia-cs
and add it to the default runlevel:
rc-update add pcmcia default
I change the root password with
passwd
and allow root to log on through the serial console:
echo "tts/0" >> /etc/securetty
I finish by editing the system information:
nano -w /etc/rc.conf
Here I change the following:
KEYMAP="fr_CH-latin1
SETWINDOWKEYS="yes"
CLOCK="local"
DISPLAYMANAGER="gdm"
First I set the timezone with the following command (I am in Continental Europe):
ln -sf /usr/share/zoneinfo/Europe /etc/localtime
I chose the gentoo sources for the kernel. I did not read the Gentoo Kernel Guide and will do it later on:
emerge gentoo-sources
Let's go for the manual configuration of the kernel.
I used all the default settings + the recommendations from Gentoo. I added though NTFS support read/write.
make dep && make bzImage modules modules_install
cp arch/i386/boot/bzImage /boot/Kernel-2.4.26-gentoo-r9
cp System.map /boot/System.map-2.4.26-gentoo-r9
cp .config /boot/config-2.4.26-gentoo-r9
I add the ati-drivers extra module:
emerge ati-drivers
I do not edit the autoload and run modules-update.
I initially went for the mirrorselect option but later on the bootstrap process failed so I cleaned-up the make.conf file and therefore use the standard servers.
Several standard instructions later:
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
I update the portage tree:
emerge --sync
I want to progress quickly so I do not take the time to investigate the USE variable. I'll do it later or for the next installation.
Finally it happens, the real work starts by Bootstrapping the system. I start it at 0:06 so we will see how much time this laptop requires:
cd /usr/portage
scripts/bootstrap.sh
It was finished when I woke up this morning so no exact time but less than 8 hours.
I launch now the system packages generation. We will see how long it will take:
emerge system
It ends at 12:14 so 2 hours.
With a working network and a 2Mb broadband connection I intend to use the net intensively so with the help of links2 I download the stage1 for x86, release 2004.2:
cd /mnt/gentoo
links2 http://www.gentoo.org/main/en/mirrors.xml
Obviously I check the md5 signature:
md5sum -c stage1-x86-2004.2.tar.bz2.md5
And unpack the full set:
tar -xvjpf stage1-x86-2004.2.tar.bz2
I have the network so no portage snapshot for me, I will directly configure the compile options. Here I have to admit that I surfed a bit on the net to collect the right settings for my Dell (which is equipped with a pentium 3, 751Mhz):
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fumit-frame-pointer"
CXXFLAGS="{CFLAGS}"
MAKEOPTS="-j2"
I already have 2 primary partitions created, 1 small for some unknown Dell utilities and the other one for Windows XP. After some clean-up I have been able to free up 8Go for Gentoo.
I follow the recommendations and create 3 additional partitions with fdisk as follows:
I will go for ext3 for the time being and might think about reiserFS for my next installation. So I execute the following commands:
mke2fs /dev/hda3
mke2fs -j /dev/hda6
mkswap /dev/hda5
swapon /dev/hda5
mount /dev/hda6 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda3 /mnt/gentoo/noot