Installing PLD Linux based on Rescue CD

1. TOC

2. Requirements

Download RescueCD from : http://rescuecd.pld-linux.org/ You need at least a i486 machine with 40MB RAM to run PLD RescueCD.

3. Partition disk

Use for example cfdisk to partition your destination disk. Usually root partition (/) and swap is enough.
<!> Write something more here <!>

4. Filesystem

Initiate swap space

# mkswap /dev/sda1

Make filesystem (ex. ext3)

# mkfs.ext3 /dev/sda2

We need to create mountpoint, and mounnt partition into it.

# mkdir /pld
# mount /dev/hda2 /pld

If We want to use more partitions (ex. /boot), We need to mount it too.

5. 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

6. Poldek's configuration

In file /etc/poldek/repos.d/pld.conf We need to set _arch = to chosen architecture ex.

_arch   = x86_64

7. Packages installation

# rpm --root /pld --initdb
# poldek --root /pld

poldek> install setup FHS udev pwdutils chkconfig dhcpcd poldek vim geninitrd \
module-init-tools cpio lilo mount login mingetty


<!> Write something more here <!>

8. Kernel installation

8.1. Prepare to install kernel

# mount /proc /pldroot/proc -o bind

Configure /etc/fstab ex.:

/dev/sda1 swap swap defaults 0 0
/dev/sda2 /    ext3 defaults 0 0


<!> Write something more here <!>

8.2. Kernel installation

# poldek --root /pld -i kernel

9. Bootloader

9.1. lilo

Edit /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

9.2. grub

Edit /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

9.3. Advanced configuration

Advanced lilo and grub configuration is described here: ../Bootloader

10. udev


<!> Write something more here <!>

11. User accounts


<!> Write something more here <!>

12. Finishing


<!> Write something more here <!>


TOC


CategoryUpdateNeeded

Docs/man/Installing PLD Linux based on Rescue CD (last edited 2009-02-21 22:13:37 by pawelz)