Installation Howto

Creating and formatting partitions

** WARNING WILL ROBINSON **
This will destroy all data on the drive and/or partitions you select!

fdisk /dev/[device]

Create at least two partitions:

  1. linux - at least 1GB (2GB recommended)
  2. linux swap - RAM * 2, but not greater than 2GB

Once done, save (w) the partition changes and exit.

Format the swap partition with mkswap /dev/[swap_partition]

Format the root partition with mkfs -t ext3 /dev/[root_partition]

Mount the new partition and install packages

mount /dev/[root_partition] /mnt

prime-install /mnt

Mount kernel filesystems and chroot into new system

mount --bind /dev /mnt/dev

mount -t proc none /mnt/proc

chroot /mnt /bin/bash --login

Install GrUB

grub-mkdevicemap

grub-install --grub-setup=/boot/grub/grub.cfg /dev/[device]

grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map /dev/[device]

Kernel Configuration

cat /boot/2.6.25.4/grub >> /boot/grub/grub.cfg

Edit /boot/grub/grub.cfg to match your configuration.

Edit /etc/fstab

Add your root and swap partitions to /etc/fstab:

/dev/[root_partition] / ext3 defaults 1 1

/dev/[swap_partition] swap swap defaults 0 0

Finish cleanly and reboot

exit

umount /mnt/{proc,dev} /mnt

shutdown -rn now

If you want to compile your own kernel, you can find the default kernel's configuration at /boot/2.6.25.4/config.

Networking

Add your network configuration to /etc/init.d/network. For example:

hostname myprimebox

domainname local.lan

ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up

route add default gw 192.168.1.1 eth0

Set your nameservers in /etc/resolv.conf. For example:

nameserver 192.168.1.1