Here'tis prakash! Much of these i had learnt from the handbook and followed them just like that. Once you have setup your netcard, you can fireup links2 and refer to their manuals.
1.) Boot into gentoo minimal install live cd.
2.) Set the date,
date 120722352005 /*Me typing at 07th december 10'o clock (pm) 35 minutes and year 2005 */
3.) Set-up ethernet card.
net-setup eth0
From here on I simply followed the instructions from :-
Gentoo Handbook
It can be easily done by opening another shell [ctrl]+[alt]+*
and opening
links2 . I referred the guide and executed the commands back and forth.
4.) Execute fdisk to partiton hard disks.
fdisk /dev/hda /* /dev/hda is the first hard disk and /dev/hdb is second and so on.. */
5.) P for partition information and use fdisk to create and resize partitons. Tap m to see the list of commands.
I made the foll,
/dev/hda1 Ext2 Filesystem to be mounted for /boot
/dev/hda2 Swap
/dev/hda3 ReiserFs as /
6.) Now,
mke2fs /dev/hda1
mkswap /dev/hda2
mkreiserfs /dev/hda3
7.) Turning on the swap,
swapon /dev/hda2
8.) For my nvidia card:-
modprobe nvidia
9.) mounting the root partition as /mnt/gentoo
mount /dev/hda3 /mnt/gentoo
10.) mounting the boot partition as /mnt/gentoo/boot
mount /dev/hda1 /mnt/gentoo/boot
11.) Downloading the Stage 3 tarball
1.) From the net:-
cd /mnt/gentoo
links2 http://www.gentoo.org/main/en/mirrors.xml
I navigated to the architecture and pressed
D to download. And the
Q to quit links2.
tar xvjpf stage3-pentium4-* [tab]
2.) From CD(Gentoo Universal CD):-
mount /dev/cdroms/cdrom0 /mnt/cdrom
cd /mnt/gentoo
tar xvjpf /mnt/cdrom/stages/stage3-pentium4-2005.1-r1.tar.bz2
PS; Substitute pentium4 with u'r architecture.
12.) Installing Portage Snapshots:-
links2 http://gentoo.osuosl.org/snapshots/
Download the snapshot and then untar it.
tar -xvjf portage-2005*.tar.bz2 -C /mnt/gentoo/usr
13.) Mounting /proc and /devfs filesystems
mkdir /mnt/gentoo/devfs
mkdir /mnt/gentoo/proc
mount -t devfs devfs /mnt/gentoo/devfs
mount -t proc none /mnt/gentoo/proc
14.) Copy the resolv.conf so that you don't have to set-up net again
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
15.) Optimising the environment variables using /mnt/gentoo/etc/make.conf :-
nano /mnt/gentoo/etc/make.conf
Here
Donot edit CHOST Setting
Set CFLAGS to -march=i686 or -march=athlon-xp
we can use -O pipe and speed optimisation flags (0 ,1,2,3). I really dunno abt these, seem like compiling options,
example,
CFLAGS="-march=i686 -pipe -O2"
CXXFLAGS="${CFLAGS}" /*To use Same Setting as CFLAGS**/
MAKEOPTS="-j2" /* Number of parallel guidelines to occur. Value = No. Of CPU + 1 **/
Next we have to configure our portage setting. There were several options in the make.conf.example which i don't remember now. Open the File in another terminal. Select the option you wan't and [right][click] to paste in your make.conf file. Finish.
:ws for vi ,
[ctrl] + x to quit in nano.
16.) Using mirror select to select mirrors:-
mirrorselect -a -s4 -o | grep GENTOO_MIRRORS >> /mnt/gentoo/etc/make.conf
Double checkin /etc/make.conf for changes.
17.) Changing root directory to /mnt/gentoo using chroot:
chroot /mnt/gentoo /bin/bash
18.) Updating Environment Variables:-
env-update; source /etc/profile
19.) updating the portage information:-
emerge sync
emerge --metadata /* Speeds up emerges by building a portage cache**/
20.) Configuring USE Variable:-
We have to configure /etc/make.conf with the use variables.
view the
/usr/portage/profiles/use.desc file for available use flags.
USE="gtk gnome -qt -kde dvd alsa cdr"
The above line specifies to use gtk , gnome dvd alsa and cdr and not qt and kde. If you want you can put -gtk and -gnome and use qt and kde.
Add the following for kernel sources package
USE="-doc" emerge gentoo-sources
21.) BootStrap the Gentoo root partiton:-
cd /usr/protage/ ; scripts/bootstrap.sh /* Dunno why should this be done. **/
23.) Set TimeZone:-
ln -sf /usr/share/zoneinfo/
<path> /etc/localtime /** path area should be your timezone. I dunno what to put there i simply put
/IN/South Dunno if correct.
24.) modify fstab:-
vi /etc/fstab
/dev/hda1[tab]/boot[tab]ext2[tab]noauto,noatime[tab]1 2
/dev/hda2[tab]none[tab]swap[tab]sw[tab]0 0
/dev/hda3[tab]/[tab]reiserfs[tab]noatime[tab]0 1
/dev/cdroms/cdrom0[tab]/mnt/cdrom[tab]auto[tab]noauto,user[tab]0 0
/dev/cdroms/cdrw0[tab]/mnt/cdrom1[tab]auto[tab]noauto,user[tab]0 0
none[tab]/proc[tab]defaults[tab]0 0
none[tab]/dev/shm[tab]tmpfs[tab]defaults[tab]0 0
25.) Building the Kernel:-
I choose to get my kernel by using genkernel as i was a bit afraid of building it myself
emerge gentoo-sources /* D/L Gentoo Source **/
emerge genkernel /* D/L GenKernel **/
genkernel --menuconfig all
ls /boot/kernel* /boot/initramfs* /* For Kernel name and the initrd generated **/
emerge coldplug /* D/L coldplug for autodetection of hardware and other components **/
rc-update add coldplug boot /* Adding coldplug to run at boot **/
26.) Adding some Extra- Services:-
emerge syslog-ng
rc-update add syslog-ng default
emerge vixie-cron
rc-update add vixie-cron default
emerge hotplug
rc-update add hotplug default
emerge reiserfsprogs
rc-update add reiserfsprogs default
rc-update add domainname default
Runs System services such as system logger, cron daemon , hotplug , reiserfs daemon , domainname.
27.) Add Driver Support.
emerge nvidia-kernel
28.) Add users:
1. Set root password:-
passwd
2. useradd
<name> -m -G users,wheel,audio -s /bin/ash
passwd
<name>
3. Machine Name:-
echo
<name> > /etc/hostname
echo
<name.com> > /etc/dnsdomainname
29.) Configure Grub:-
emerge grub
grub or manually edit /etc/grub/menu.lst
30.) Reboot and install packages:-
emerge -k xfree(or xorg) gnome mozilla openoffice-bin
Let them D/L and you have all that you need to get your system working. Of Course we need to configure xserver. Run xorgconfig or xf86config.
Hope the above was useful. Correct any mistakes please.