This is generated as a Down and Dirty Gentoo Install Guide (aka DNDG2IG) If you are a n00bie to Gentoo and/or linux in general, PUT THIS DAMN THING DOWN AND GO FIND YOUR GURU! In other words, this is for an experienced user, ONLY!! Folks ask me why I wrote this, why not use the Gentoo Handbook, which has been very wonderfully built & maintained. It's simple, Gang. I'm a lazy old phart!! I've been doing this (computer related) stuff for over thirty years. Why type, if you don't have to?!? USAGE: 1.) On my box, I open this doc (didya ever notice how it can be 'thinned' and still be nicely formatted?) and resize it. 2.) On my box, I then open a 'term' (e.g. xterm, rxvt, konsole) and resize it to live/sit beside the D-n-D. 3.) Boot target machine to correct livecd for the processor. 4.) At console prompt on the target machine; /etc/init.d/sshd restart && passwd && screen -l (set w00t pass to something simple). 5.) On my box I then ssh to the target machine, join the screen session and start copying and pasting in lines. **fdisk the hd and create the partitions **cfdisk is a useful tool that exists on the livecd too. {my preferred tool} **swap should double the total ram (and this is in contention with the cost of RAM so low now) During this tutorial, the following will be our 'example' partition table; /dev/hda1 /boot 35 meg 35.10 /dev/hda2 swap 2g 2047.84 /dev/hda3 / 190g 19091.18 For n00bs, use ext2 for boot, ext3 for / For speed, use ext2 for boot, ReiserFS for / mkswap /dev/hda2 swapon /dev/hda2 mke2fs /dev/hda1 to create /boot mke2fs -j /dev/hda3 to create / { mkreiserfs /dev/hda3 for speed junkies } mount /dev/hda3 /mnt/gentoo mkdir /mnt/gentoo/boot mount /dev/hda1 /mnt/gentoo/boot cd /mnt/gentoo CHECK THE DATE AS NOTHING PISSES YOU OFF MORE THEN TO FIND OUT, YER TWO YEARS OFF! date verify date/time stamp if incorrect; date TIME TO SNAG THE FILES WE NEED. links2 http://gentoo.oregonstate.edu links2 http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ...or... links2 http://www.funtoo.org/linux/ navigate to the 'releases', to the proper arch for YOUR cpu, to the 'current-stage3' and download stage3 navigate to the portage tree and download latest TIME TO INSTALL THE FILES WE DOWNLOADED ABOVE. tar xvjpf stage3-*.tar.bz2 tar xvjf /mnt/gentoo/portage-.tar.bz2 -C /mnt/gentoo/usr MOUNT OUR GOODIES BEFORE WE 'CHROOT' mount -t proc none /mnt/gentoo/proc && mount -o bind /dev /mnt/gentoo/dev && mount -t sysfs none /mnt/gentoo/sys SET THE OPTIONS IN THE MAKE.CONF FOR 'OUR' MACHINE. vi /mnt/gentoo/etc/make.conf set MAKEOPTS, CFLAGS, CHOSTS, and anything else that applies to YOUR install (e.g. distcc, ccache, xorg-goodies, etc) add userlocales to your USE flags. {# xorg Goodies INPUT_DEVICES="keyboard mouse" VIDEO_CARDS="nvidia vesa fbdev"} GET THE FASTEST MIRRORS FOR 'OUR' LOCATION. mirrorselect -s3 -o >> /mnt/gentoo/etc/make.conf cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf WOOHOO! IT'S CHROOT TIME! chroot /mnt/gentoo /bin/bash env-update && source /etc/profile && export PS1="(this is the chroot!!) $PS1" UPDATE THE AVAILABLE PACKAGES. emerge --sync cp /usr/share/zoneinfo/{localtimezone} /etc/localtime DOWNLOAD AND BUILD A KERNEL. USE="-doc symlink" emerge gentoo-sources ls -l /usr/src to insure you are pointed to the correct image cd /usr/src/linux make menuconfig configure yer kernel make && make modules_install cp arch/i386/boot/bzImage /boot/vmlinuz- (arch/x86_64/boot/bzImage if building for a 64 bit system) INSTALL THE PACKAGES WE NEED FOR A USABLE MACHINE. emerge vixie-cron sysklogd dhcpcd mlocate vim lilo gentoolkit screen mirrorselect openssh GET THE RUN-TIME PROGRAMS SETUP. rc-update add vixie-cron default && rc-update add sysklogd default && rc-update add net.eth0 default && rc-update add sshd default && rc-update add gpm default {emerge reiserfsprogs if applicable} IT'S TIME TO SET THE VALUES. vi /etc/fstab vi /etc/conf.d/clock vi /etc/conf.d/keymap vi /etc/conf.d/hostname vi /etc/conf.d/net vi /etc/rc.conf vi /etc/locale.gen TIME TO 'SET' THE LOCALE. /usr/sbin/locale-gen SET YOUR w00t PASSWORD! passwd ADD YOUR DAY-2-DAY USER(S). useradd {USERNAME} -m -G wheel,users,audio passwd {USERNAME} SETUP LILO SO YOUR MACHINE WILL BOOT. cp /etc/lilo.conf.example /etc/lilo.conf vi /etc/lilo.conf /sbin/lilo WE'RE DONE. IT'S TIME TO LEAVE THE CHROOT AND BOOT OUR NEW TOY. exit cd umount /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo/boot /mnt/gentoo/sys /mnt/gentoo reboot =============================================================================== You're having problems? Forgot to turn something on in the kernel? Okay, let's RESCUE... mount /dev/XXX /mnt/gentoo mount /dev/XXX /mnt/gentoo/boot swapon /devXXX mount -t proc none /mnt/gentoo/proc && mount -o bind /dev /mnt/gentoo/dev && mount -t sysfs none /mnt/gentoo/sys cd /mnt/gentoo chroot /mnt/gentoo /bin/bash env-update && . /etc/profile && export PS1="(chroot) $PS1" *** make your changes/fixes *** exit cd umount /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo/boot /mnt/gentoo/sys /mnt/gentoo reboot *** pull the cd and cross yer fingers *** =============================================================================== grub --no-floppy grub> root (hd0,0) (Specify where your /boot partition resides) grub> setup (hd0) (Install GRUB in the MBR) grub> quit (Exit the GRUB shell) =============================================================================== Other Excellent Gentoo Source Pages: http://forums.gentoo.org/viewtopic-t-702681.html =============================================================================== This fellow below: __________________________________________________________________________________ Griz ghostguru@hotmail.com            IRC irc.freenode.net / #Gentoo-Chat GnuPG Public Key ID 1024D/184B73A0. Public Key Available From http://keyserv.nic-se.se:11371/#extract wishes you to consider this document to be under the GPL license. If you edit, tweak, change it, submit said changes to him.