Anyone got a gentoo cheatsheet?

Caporegime
Joined
18 Oct 2002
Posts
29,493
Location
Back in East London
EDIT:

After installing Gentoo.. I decided to make my own Cheatsheet for future use.. I did this with kernel sources 2.6.17-r8, and the Minimal Install CD, for a networked install.. will be making changes as and when I find they need making..

Code:
1.  Insert CD.
2.  Select LiveCD Kernel to boot with, and with optional args (such as nodhcp)
3.  ifconfig eth0 <ip> netmask <mask> brd <ip broadcast>
4.  route add default gw <gateway address>
5.  fdisk (setup partitions - minimum 3 needed, /boot, / and swap. Ensure types set.)
    (N.B. from here on, replace hdxx with the relevant device name.
    Note that /, /boot and swap all need their own partition/device and do not share.)
6.  mkswap /dev/hdxx && swapon
7.  mke2fs -j /dev/hdxx (for both /boot and /)
8.  mkdir /mnt/gentoo/boot
9.  mount /dev/hdxx /mnt/gentoo/boot && mount /dev/hdxx /mnt/gentoo (perform each separately)
10. cd /mnt/gentoo
11. links http://gentoo.blueyonder.co.uk/releases/x86/current/stages/stage3-i686-<version>.tar.bz2
12. tar xvjpf stage3*
13. links http://gentoo.blueyonder.co.uk/snapshots/portage-latest.tar.bz2
14. tar xvjf portage-latest.tar.bz2
15. nano -w /mnt/gentoo/etc/make.conf
16. <add CFLAGS, CXXFLAGS, MAKEOPTS and USE variables with your options>
17. date (!! important - check your system clock/date is correct !!)
18. chroot /mnt/gentoo /bin/bash
19. env-update && source /etc/profile
20. cd /usr/src/linux
21. make menuconfig
22. <select all relevant hardware options from menu and save config>
23. make && make modules_install (and wait for complilation.)
24. cp /arch/i386/boot/bzImage /boot/kernel-<version>-<name> (NOTE: remember what name you give it.)
25. emerge grub
26. nano -w /boot/grub/grub.conf
27. <add your new kernel (using the remembered name) to the list. Use the file grub.conf.example if needed.>
28. exit
29. cd /
30. umount /mnt/gentoo/boot && umount /mnt/gentoo
31. reboot (wihout CD)
32. <select your kernel, cross your fingers and prepare to cheer or cry>


/EDIT


A simple list of install steps I mean.. I don't have the paper for the online handbook :o (I don't want/need all the gubbins inbetween with examples etc.. just the list of commands.. and I'm lazy :D so I don't fancy c+p'ing everything..)

From the i686 live cd (full, not minimal)

Much obliged!

/cue replies "there isn't one"
 
Last edited:
not got that option :)

I'm also getting bored, so have the minimal CD instead..

It's only really the base/kernel install part I need the cheat sheet for really.. (and a list of commands incase I forget them like net-setup blah blah)
 
Ha! Nuked windows by mistake.. frustrating. fdisked in.. saw a nice fat partition with no labels (I delib left vacant) .. enter the shizzle for option 'n'.. windows gone .. :| OcUK looks.. funny, when using 'links' browser on livecd..
 
The handbook is on the CD (unless they changed it recently). Just use seporate consoles with ctrl-alt-fkeys and switch between it and your chrooted enviroment.
 
not got that far yet .. downloading tarball now. I'm guessing all I've done is overwrite the MBR? anyway, gonna go twidlle thumbs until this finished dl'ing.
 
Dj_Jestar said:
not got that far yet .. downloading tarball now. I'm guessing all I've done is overwrite the MBR? anyway, gonna go twidlle thumbs until this finished dl'ing.

if you've only over written MBR use your windows cd's command rescue to fixmbr
 
Dj_Jestar said:
not got that far yet .. downloading tarball now. I'm guessing all I've done is overwrite the MBR? anyway, gonna go twidlle thumbs until this finished dl'ing.

No the partitions will show up in fdisk -l whatever if they exist. If its still there once you got linux installed you can just install grub into the mbr then add windows to the list of OS choices.
 
ok, it appears they are there.. but unsure as yet.

Anyway.. I've got the tarball, but I can't untar.. no enough space. I'm in /mnt/gentoo.. where is this in terms of disk/partition and how do I relocate? (or rather, how do I find out?)
 
youll need to

fdisk /dev/XXX
mke2fs -j /dev/XXX
mount /dev/XXX /mnt/gentoo

that should be able to mount your partition

otherwise it will try to copy to the cd which quite simply wont work
 
think I've lost the whole disk tbh, it's reading as a Sun Label Disk and is now showing no partitions (bar 32mb of boot) :s

Won't let do anything with it though, not even blam the lot.
 
*sigh* now I'm getting all kinds of errors with genkernel.. I kicked it off last nigh, went to bed, and returned to pc to find it had shutdown - and reset my cmos to factory settings :s

So booted up.. mounted/chrooted back to where I was.. errors installing.

Re-compile.. spits out errors all over the place. "touch" errors etc. "dyn_unpack" errors.

For both vanilla-sources and gentoo-sources (via emerge)

Fandabbytastic...:(
 
kernel compiled, but kde failed on emerge.. so still stuck with links atm. Anyone know where to adjust the CLI/CGI resolution? Is on 640x480 atm, which is a PITA..
 
You either pass vga= option to your kernel using the bootloader, or you can add it to your /boot/grub/menu.lst for GRUB. Be warned though, you need the hex value for this.
http://www.linux.com/article.pl?sid=06/05/04/1621224 There is a list on there.

I have had very little usage of gentoo recently, but when I used it portage was always broken leading to dependancy hell :p .
 
Last edited:
I got KDE up, even though it was 'broken' I emerged X11 and opegl, all ok now.

Now just fiddling with init.d and rc-update to get it to open on boot. Gentoo is quick though :)
 
Well quick is debatable, even though you can do optimized compiling from source for everything. The time it takes to compile something like kde for 0.3 seconds increase in speed can easily be quite closely matched with a binary distro optimised for 686 (such as arch). And running KDE kinda defies this point since in my opinion its the slowest DE out there :p

Glad you got it sorted though.
 
for future reference the full live cd has a graphical installer, that although it appears to hang and do nothing, works very well if you just leave it alone.

i know it doesn't feel like really "installing" gentoo... but it damn well works!
 
The minimal CD worked well - once I realised I could use links to read the manual whilst installing I was fine :)

I did have a boo-boo though, when creating the partition for gentoo I wiped the whole 250gb disk.. losing Windows (buhu) and a load of my personal stuff.. 9gig of mp3's.. all my web-dev work (a lot was 'new' and hadn't been uploaded anywhere yet :() and a whole heap of stuff I generally found useful that i had aquired over the years. :(
 
Back
Top Bottom