# chroot into an ubuntu directory under android on the Notion Ink Adam # adapted from script by Nexus One Hacks on # http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-android/ export ROOT=/mnt/sdcard2/ubuntu_natty export PATH=/bin:/usr/bin:/sbin:/usr/sbin:$PATH export TERM=linux mount -o bind /dev $ROOT/dev mount -t devpts devpts $ROOT/dev/pts mount -t proc proc $ROOT/proc mount -t sysfs sysfs $ROOT/sys sysctl -w net.ipv4.ip_forward=1 echo "Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4" echo "nameserver 8.8.8.8" > $ROOT/etc/resolv.conf echo "nameserver 8.8.4.4" >> $ROOT/etc/resolv.conf chroot $ROOT /bin/bash #After exit command is executed clear it all up echo " " echo "Shutting down Ubuntu" umount $ROOT/dev/pts umount $ROOT/proc umount $ROOT/sys