What are the easy ways to install Ubuntu remotely?

Solution 1:

This is very simple to do, I do it all the time. First you need to boot into some kind of environment.

  1. Boot the system "somehow." Here is a older document on bootp. You could also use a live CD and choose "try Ubuntu" to get a running Linux. I recomend the Alternate install cd for this.
  2. Next setup your disks with fdisk or whatever you like (again your on ssh when you do this).
  3. Get debbootstrap sudo apt-get install debootstrap && sudo apt-get install build-essential
  4. Bootstrap the box debootstrap --arch i386 percise /mnt/new_disk http://archive.ubuntu.com/ubuntu
  5. Get into the system and make it actually work chroot /mnt/new_disk /bin/bash
  6. Next make your interfaces, fstab, etc.
  7. Install a Kernel
  8. Fix sudoers
  9. Reboot and pray. (Don't forget to make the partition bootable)

With a little work you can make a script to do all this for you, and have a rapid deployment setup that is really quite handy. Here is a guide that should help get you going.