Installing a Debian chroot on Android

This is an account of installing vanilla full-fat Debian squeeze in a chroot on Android.

This was tested on a Vodafone 845 ( a re-branded HuaWei u8120 / Joy / Ascend).

Then, on a workstation ( any architecture), insert the µSD card, and:

  sudo debootstrap --arch=armel --variant=minbase --foreign  squeeze  /media/PHONE\ CARD/squeeze  http://mirror.local:9999/debian

Then remove the µSD card and replace it in the phone, start SSHDroid and SSH to the phone, then:

  mount -o remount,exec,dev /mnt/sdcard/
  chroot /mnt/sdcard/squeeze/  /bin/bash
  debootstrap/debootstrap --second-stage

Then build up the Debian system as you normally would a minimal installation.

Many thanks to all the people whose hard work made it so trivial for me to install the environment I know and love on my phone.