Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cheet sheet for network-less install.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
acidburn
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 148
Location: Albuquerque

PostPosted: Sun Apr 25, 2004 1:33 pm    Post subject: Cheet sheet for network-less install. Reply with quote

Cheet sheet for network-less install.

The handbook (found at http://www.gentoo.org/doc/en/handbook/index.xml) is an invaluable tool to install Gentoo onto your box. But in a whole it is very general, so I tailored this guide on what I did to install it to my system (Athlon-XP). You can use this as a guide but if you need a more in depth explanation refer back to the handbook.

Since I cannot get online with Gentoo I had to choose to do the network less install. The first step of any of the installs is to download the proper LiveCD for your platform. This guide is tailored for the network less install. Set up the partition you want to use for the install. I have 3 HD’s on my system. I choose to use my third HD to install Gentoo onto and set it up as:
    /dev/hdd1 ext2 +64m Boot Partition
    /dev/hdd2 (swap) +512m Swap Partition
    /dev/hdd3 ext3 Rest Root Partition

(If you don’t know how to use fdisk, refer to the handbook)

Once partitioned, we need to format the drive:
Code:
#  mke2fs /dev/hdd1
#  mke2fs –j /dev/hdd3
#  mkswap /dev/hdd2

Once /dev/hdd2 is set as swap activate it with:
Code:
#  swapon /dev/hdd2

Now that the disk is set up mount the files so we can install Gentoo. First mount the root and boot then setup the proc file and mount it.
Code:
#  mount /dev/hdd3 /mnt/gentoo
#  mkdir /mnt/gentoo/boot
#  mount /dev/hdd1 /mnt/gentoo/boot

Code:
#  mkdir /mnt/gentoo/proc
#  mount –t proc none /mnt/gentoo/proc

Switch to the Gentoo mountpoint:
Code:
#  cd /mnt/gentoo

Now install the stage and the portage off the CD. Since this was a network less install I used the stage3 tarball off the CD. The stage1 or stage2 require a connection to the Internet. And the portage on the current LiveCD is 20040223. To figure out which stage3 you need to install use the handbook (sec 5.C).
Code:
#  tar –xvjpf /mnt/cdrom/stages/stage3-athlon-xp-20040218.tar.gz
#  tar –xvjf /mnt/cdrom/snapshots/portage-20040223.tar.gz –C /mnt/gentoo/usr

Section 5.e Configuring the Compile optins shows what each line in the make.conf file is for. For my install I only added the line MAKEOPTS=”-j2”. To do this type:
Code:
#  nano –w /mnt/gentoo/etc/make.conf

Once in the editor, unless you are doing do not change any of the lines just add the makeopts line to the end and exit. To exit use ctrl+x, hit “y”, then enter.

We can now enter the Gentoo environment.
Code:
#  chroot /mnt/gentoo /bin/bash
#  env-update
#  source /etc/profile

You are now inside the Gentoo Linux environment. Now you need to configure the kernel, install the bootloader (I prefer GRUB), and reboot the system.

First we need to check the time and set the time zone.
(to see the list of timezones)
Code:
#  ls /usr/share/zoneinfo

Then enter the information:
Code:
#  ln –sf /usr/share/zoneinfo/Pacific /etc/localtime

Next the handbook goes into an explination on the kernels and how to install them. Since this is for a network less install using the LiveCD the only choice you can use is the vanilla source.
Code:
#  emerge =vanilla-sources-2.4.24

Next use the handbook to manually configure the kernel. Enter the env using:
Code:
#  cd /usr/src/linux
#  make menuconfig

Set the values that the handbook lists and any other you may need for your system (only you know whats in your box) I had to add Joliet support for my cdrom and MTRR. Every box is different so read through it carefully. The handbook only promises to install a working Gentoo to your system not one that is tailored to “yours”.

Once it is set up save and exit the make menu and install the kernel.
Code:
#  make dep && make bzImage modules modules_install

Now that the kernel is installed copy it over to the files that need it to run.
Code:
#  cp arch/i386/boot/bzImage /boot/kernel-2.4.24
#  cp System.map /boot/System.map-2.4.24
#  cp .config /boot/config-2.4.24

Now configure the file system. The only thing I had to change in here was to uncomment the floppy drive so that Gentoo could recognize it. For a complete description of fstab look in the handbook.

Next name your computer. I call mine Icehaus so I did:
Code:
#  echo Icehaus > /etc/hostname

Now that it is all set up install the bootloader. I spent a couple days figuring out GRUB so I recommend it. If you want to use LILO check out the handbook.
Code:
#  emerge –usepkg grub
#  grub

Now you are in the grub shell. Find your root partion, install grub to it the exit.
Code:
#  root (hd2,0)
#  setup (hd2,0)
#  quit

Now GRUB is installed, you need to set up the boot file. You need to know where Gentoo is installed on your system and what else you have on it to boot if you dual boot. My set up is:
    /dev/hda Windows XP Pro SP1
    /dev/hdb ASUS CDRW drive
    /dev/hdc Empty HD
    /dev/hdd Gentoo Linux 2.4.24

I had to set up my boot.conf as:
Code:
#  nano –w /boot/grub/grub.conf

    default 0
    timeout 30

    title=Windows XP Pro SP1
    map (hd1) (hd0)
    map (hd2) (hd0)
    chainloader (hd2,0)+1

    title=Gentoo Linux 2.4.24
    root (hd0,0)
    kernel /kernel-2.4.24 root=/dev/hdd3

Before you reboot add a system logger and cron daemon (explinations can be found in the handbook) Gentoo offers many but i use syslog and vixie cron.
Code:
#  emerge syslog-ng
#  rc-update add syslog-ng default
#  emerge vixie-cron
#  rc-update add vixie-cron default

Now finalize the install. Set the root password and add a user.
Code:
#  psswd
#  useradd {your handle} –m –g users,wheel,audio –s /bin/bash
#  passwd {your handle}

Now reboot and go for it.
Code:
# exit
# cd /
# umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
# reboot

Remember to set up which ever drive has the bootloader on it as the boot drive in your BIOS.

You now have gentoo installed and need to add the desktop you want to use. Refer tot he other Docs on the main site at www.getnoo.org. The hand book listed there for installing the desktop environment is good.
_________________
"In Nomeni Patri Et Fili Spiritus Sancti."


Last edited by acidburn on Mon Aug 09, 2004 2:37 am; edited 1 time in total
Back to top
View user's profile Send private message
LeTene
Guru
Guru


Joined: 02 Mar 2004
Posts: 348
Location: Ah'll glass ye!

PostPosted: Tue May 11, 2004 10:39 am    Post subject: Reply with quote

Just wanted to thank you, acidburn, for a nice concise guide - just used it on 2 old P-Pros at work (surplus, network cards removed, not allowed to network them up) and it went beautifully! Just need to get them home & set them up as distcc workhorses :P
_________________
Docs, Tips & Tricks at the Gentoo Wiki page.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum