This procedure must be done as root I think

mkdir readonly cd readonly tar xzf ../readonly.tgz mkdir var tar xzf etc/var.tgz

edit var/local/etc/resolv.conf

tar czf etc/var.tgz var

rm -rf var rm vmlinuz

dd if=/dev/zero of=/dev/hdc count=100 cfdisk /dev/hdc

edit boot/grub/menu.lst

edit etc/init.d/mountall.sh

edit etc/fstab

edit etc/modules

edit etc/default/pcmcia

edit etc/network/interfaces

# remove ssh keys rm etc/ssh/*key*

edit etc/shadow

mkdir dev proc var ln -s /var/tmp tmp

mkfs.ext2 /dev/hdc1 if compressed

if !compressed

tar cf - * | tar -C /mnt/tmp -xf - umount /mnt/tmp/boot /mnt/tmp

if compressed

if ! compressed

#chroot . sbin/lilo -C /etc/lilo.conf.hdc run grub and enter the following commands

on first boot remountrw set password for root and ptp dpkg-reconfigure ssh

reconfigure network

remountro