Also check CrunchBang on Dell Latitude X1, distro I am using today!
My steps, following Gentoo Handbook with changes for my LX1:
Divide the disk into two roughly equal parts (I may be using Windows for some specific tasks such as gaming ;) So leaving it a fair amount of space)
I own a copy of
EASEUS Partition Master 6.1.1 Professional Edition. I think it's one of the best tools available to disk manipulations.
The other (non-windows) partition for the time being is just created as a primary partition without any system on it.
Download and burn the latest gentoo installation iso (/gentoo/releases/x86/current-iso/ install-x86-minimal-********.iso from
Gentoo Mirrors)
Boot the machine from the CD. In case your laptop wasn't starting from External CD, hit F12 at boot and change the Boot Sequence.
First set-up your network connection. If you're using your wifi and it is WEP protected you should be fine.
just run:
# net-setup eth1
Fill in all the data and voila, you should have connection with your network.
Similarly for cable connection:
# net-setup eth0
I run wifi, only WPA protected, which is a problem cause it needs wpa-supplicant, and that's not a part of my installation disk.
I skip to disk management for the time being.
It's a very small disk and even though I'd like to divide it as my other boxes in separate partitions for opt or usr, due to the space loss I don't do it. I'm just creating the standard layout:
boot partition
swap partition
root partition
I'm not backing up anything as this is an almost clean windows install I'm risking, so not much.
In case you're changing system that's been used for a while it's strongly advised you DO backup your files.
Let's see what I have right now:
# fdisk /dev/hda
The number of cylinders for this disk is set to 7852. There is
nothing wrong with that, but this is larger than 1024, and could in
certain setups cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
This is fine. I'm going to divide it anyway.
Now press p to display partitions.
Command (m for help): p
Disk /dev/hda: 64.6 GB, 64592281600 bytes
255 heads, 63 sectors/track, 7852 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9a52c54a
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3849 30917061 7 HPFS/NTFS
/dev/hda2 3850 7852 32154097+ 1 FAT12
Correct. Well... hda2 isn't really FAT12. But it doesn't matter.
To be 100% sure everything is fine I'm removing it. And check if it's gone.
Command (m for help): d
Partition number (1-4): 2
Command (m for help): p
Disk /dev/hda: 64.6 GB, 64592281600 bytes
255 heads, 63 sectors/track, 7852 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9a52c54a
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3849 30917061 7 HPFS/NTFS
It is.
First create boot partition. It can be really small. I'm using default value for start. No need to complicate things here and making this partition 32MB in size.
Then a to make it bootable.
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (3850-7852, default 3850): [Accept default with Enter]
Using default value 3850
Last cylinder, +cylinders or +size{K,M,G} (3850-7852, default 7852): +32M
Command (m for help): a
Partition number (1-4): 2
Another check:
Command (m for help): p
Disk /dev/hda: 64.6 GB, 64592281600 bytes
255 heads, 63 sectors/track, 7852 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9a52c54a
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3849 30917061 7 HPFS/NTFS
/dev/hda2 * 3850 3854 40162+ 83 Linux
That's more like it :)
Now swap. Following good recipe for a stable system with little RAM:
[(2 x RAM) + 1 MB] = Swap File Size
I set it to 4gig.
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (3855-7852, default 3855): [Accept default with Enter]
Using default value 3855
Last cylinder, +cylinders or +size{K,M,G} (3855-7852, default 7852): +4G
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 3 to 82 (Linux swap / Solaris)
Now my partition table looks like this:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3849 30917061 7 HPFS/NTFS
/dev/hda2 * 3850 3854 40162+ 83 Linux
/dev/hda3 3855 4377 4200997+ 82 Linux swap / Solaris
As last I allocate the rest of space for the root partition:
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Selected partition 4
First cylinder (4378-7852, default 4378): [Accept default with Enter]
Using default value 4378
Last cylinder, +cylinders or +size{K,M,G} (4378-7852, default 7852): [Accept default with Enter]
Final layout of my disk will look like this:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3849 30917061 7 HPFS/NTFS
/dev/hda2 * 3850 3854 40162+ 83 Linux
/dev/hda3 3855 4377 4200997+ 82 Linux swap / Solaris
/dev/hda4 4378 7852 27912937+ 83 Linux
I like it, and I save it with w:
Command (m for help): w
Next step: Filesystems.
Activate swap:
# mkswap /dev/hda3
# swapon /dev/hda3
My boot is pretty small, so I don't want to waste space for journal here. It's not going to get used that often anyway. I'm activating ext2 on it.
# mke2fs /dev/hda2
I was a huge fan of ReiserFS, but lately it seems to be a bit abandoned, hence my choice of the "good old" ext3 for root partition.
# mke2fs -j /dev/hda4
This takes a bit of time, but once it's finished it's time to start creating system layout. In other words mounting partitions:
# mount /dev/hda4 /mnt/gentoo
# mkdir /mnt/gentoo/boot
# mount /dev/hda2 /mnt/gentoo/boot
Ha! I've no internet connection and minimal installation CD doesn't contain stage3 tarball to install the system. I have another computer at hand so I'm just downloading:
/releases/x86/autobuilds/stage3-i686-
.tar.bz2
/releases/snapshots/current/portage-latest.tar.bz2
to a USB stick, from Gentoo mirrors and copy to my Laptop, to /mnt/gentoo
# mkdir /mnt/gentoo/usb
# mount /dev/sda1 /mnt/gentoo/usb
# cp /mnt/gentoo/usb/stage3....tar.bz2 /mnt/gentoo/
# cp /mnt/gentoo/usb/portage-latest.tar.bz2 /mnt/gentoo/
# umount /mnt/gentoo/usb
# cd /mnt/gentoo
# tar xvjpf stage3....tar.bz2
# tar xvjf portage-latest.tar.bz2 -C /mnt/gentoo/usr
Now I have both system layout and portage in place, time to configure portage.
Automatically created make.conf is in place.
# nano -w /mnt/gentoo/etc/make.conf
Right. I've not that much memory and very quick disk. So I'l removing -pipe from CFLAGS. The rest is fine, just adding this line:
MAKEOPTS="-j2"
That's a compiler option for LX1 processor.
Gentoo intallation help suggest mirrorselect at this point.
Ok, time for internet.
edit: /etc/conf.d/net
modules=( “wpa_supplicant” )
wpa_supplicant_eth1=”-Dwext”
and then /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid=”name of my ssid”
psk=”network key”
priority=5
}
Save both files and run:
wpa_supplicant -iweth1 -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf &
ping gentoo.org showed me some nice stats and there my internet connection is ready.
mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf
That gave me a nice list of mirrors. I've chosen any available in UK as this is where I'm based. And "any available" ensures that when the best server is down I'm still able to update my system. That choice gets saved in make.conf.
Before chrooting into the new environment last touches, and here we go.
# cp -L /etc/resolv.conf /mnt/gentoo/etc/
# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev
# chroot /mnt/gentoo /bin/bash
# env-update
>> Regenerating /etc/ld.so.cache...
# source /etc/profile
# export PS1="(chroot) $PS1"
Next I update Portage. And choose profile.
# emerge --sync
# eselect profile list
Just making sure that the default is chosen.
[1] default/linux/x86/10.0 *
Now really tough choice. KDE or Gnome? Really don't want other ones as they simply are not useful enough for me. I prefer KDE and have been using it for ages, however list version was killing this little box. Would it run better now? There's a couple of tools in it that I really like. Lets give it a try. I can always rebuild later.
Why am I thinking about it now? Cause it's time to build USE list for compiler. What lands in /etc/make.conf:
USE="alsa apache2 bluetooth cdr curl dri dvd fbcon ftp gtk iconv ieee1394 imagemagick ipod jpeg kde mp3 mpeg mysqli opengl php png qt4 samba scanner truetype wifi"
If anything will be needed later this can always get amended. For now that's all I can remember.
Make sure I have UTF8 in my locales... Well I don't so I edit /etc/locale.gen
en_GB ISO-8859-1
en_GB.UTF-8 UTF-8
and then run:
# locale-gen
That's it for today :)