This is an old revision of the document!
Table of Contents
Installing PLD Linux based on Rescue CD
TOC
Requirements
Download RescueCD from : Rescue CD. PLD rescue new is preferred.
Partition disk
Use for example cfdisk
to partition your destination disk. Usually root partition (/) and swap is enough.
Write something more here
Filesystem
Initiate swap space:
# mkswap /dev/sda1
Make filesystem (ex. ext4):
# mkfs.ext4 /dev/sda2
We need to create mountpoint and mount partition into it:
# mkdir /pld # mount /dev/sda2 /pld
If more partitions are going to be used (like you want to have separate /boot or /home) then these need to be mounted now, too.
Network configuration
RescueCd
should configure (using DHCP) our network automatically during a boot process. If DHCP is not present, We need to do it manually. Let's assume We want to set IP to 192.168.0.2. /etc/sysconfig/interfaces/ifcfg-eth0 should looks like:
DEVICE=eth0 IPADDR=192.168.0.2 ONBOOT=yes BOOTPROTO=none
In file /etc/sysconfig/static-routes We added route to gateway (ex.: 10.0.0.254):
eth0 default via 10.0.0.254
In file /etc/resolv.conf we add at least one adress of DNS server:
nameserver 193.192.160.243
In the end We need to reload network configuration:
# service network restart
Poldek's configuration
In file /etc/poldek/repos.d/pld.conf We need to set _arch = to chosen architecture ex.
_arch = x86_64
Packages installation
# rpm --root /pld --initdb # poldek --root /pld poldek> install setup FHS udev pwdutils chkconfig dhcpcd poldek vim geninitrd \ kmod cpio lilo
Write something more here
Kernel installation
Prepare to install kernel
# mount -o bind /proc /pld/proc # mount -o bind /sys /pld/sys # mount -o bind /dev /pld/dev
Configure /pld/etc/fstab ex.:
/dev/sda1 swap swap defaults 0 0 /dev/sda2 / ext3 defaults 0 0
Write something more here
Kernel installation
# poldek --root /pld -i kernel
Bootloader
lilo
Edit /pld/etc/lilo.conf
boot=/dev/sda read-only lba32 prompt timeout=100 image=/boot/vmlinuz label=pld root=/dev/sda2 initrd=/boot/initrd
And execute:
# chroot /pld /sbin/lilo
grub
Edit /pld/boot/grub/menu.lst
timeout 10 title pld root (hd0,1) kernel /boot/vmlinuz boot=/dev/hda initrd /boot/initrd
And execute
# chroot /pld /sbin/grub
A Grub's shell will started. Let's make some changes:
grub> root (hd0,1) grub> setup (hd0) grub> quit
Advanced configuration
Advanced lilo and grub configuration is described here: ../Bootloader
udev
Write something more here
User accounts
Write something more here