|I installed Debian over ssh from home on a computer at work alreading running mandrake. It’s actually not that difficult at all.
I followed this procedure:
1) Login using ssh (duh)
2) Create partitions and mount them under e.g. /mnt/debian
3) download base2_2.tgz. This file contains the basic file system layout that is also used when installing debian using the “convential” method.
You can download it from every debian mirror e.g.
4) cd /mnt/debian
tar xzvpf /base2_2.tgz
Don’t forget the “p” option! Otherwise the sticky bit isn’t set for /tmp which leads to frustration (trust me on this).
5) Copy /etc/resolv.conf from your working distro to /mnt/debian/etc.
6) chroot /mnt/debian /bin/bash
7) . /etc/profile
8) configure /etc/apt/sources.list and apt-get update. At this point you can even dist-upgrade to testing/unstable
9) edit /etc/hostname
10) edit /etc/network/interfaces
11) edit /etc/fstab
12) install ssh
AND VERY IMPORTANT IS:
delete /sbin/unconfigured.sh otherwise when you boot your shiny new debian system, a message is displayed about the unconfigured state of the machine (which isn’t true at all in our case). I’m not sure anymore if it is possible to login over ssh if it still exists. Delete it to be safe.
Then you should configure grub/lilo of your new Debian system or just modify the one on your “host” system.
Leave chrooted env, umount everyting, reboot.
Fingers crossed 😉
It’s a good idea to practice this procedure on a local network before you take the plunge!