From: Steven McDonald Date: Sat, 26 Nov 2011 05:14:38 +0000 (+1100) Subject: moar stuff in debian on android tute X-Git-Url: http://git.steven-mcdonald.id.au/?a=commitdiff_plain;h=0938ff90a7f4d0ff72ede8d56187a0d5ec07c203;p=www.git moar stuff in debian on android tute --- diff --git a/tutorials/debian_on_samsung_galaxy.shtml b/tutorials/debian_on_samsung_galaxy.shtml index 785eea2..7fa4560 100644 --- a/tutorials/debian_on_samsung_galaxy.shtml +++ b/tutorials/debian_on_samsung_galaxy.shtml @@ -56,7 +56,9 @@ the following utilities: If you don't have these utilities available to you, you will either need to find a way of installing them, or else find alternative ways of performing some of the steps in this how-to. Doing either is outside the -scope of this how-to. +scope of this how-to, but most of these utilities are provided by +busybox on my device, so installing busybox should get +you most of the way there.
  • You have a reasonably fast and high-capacity Internet connection @@ -73,8 +75,9 @@ this method probably isn't for you.

    -If not all of these assumptions are true, please don't contact me if -something doesn't go right for you when following this how-to. +If not all of these assumptions are true, please don't contact me just to +complain if something doesn't go right for you when following this +how-to. Of course, alternative suggestions are welcome!

    Preparation

    @@ -115,7 +118,7 @@ $ mkdir /tmp/cdebootstrap && cd /tmp/cdebootstrap
    $ ar x /path/to/cdebootstrap-static_0.5.8+b1_armhf.deb data.tar.gz
    $ tar xzOf data.tar.gz ./usr/lib/cdebootstrap/cdebootstrap_0.5.8+b1_armhf.tar.gz | ssh root@$PHONE 'tar xzC /data/local/bin/' -Obviously, replace $PHONE with the hostname of your phone. +Remember to replace $PHONE with the hostname of your phone.
  • Unfortunately, the version of cdebootstrap included in the @@ -162,6 +165,7 @@ So, ssh to your phone, and run the following commands: # mke2fs -Fj /mnt/sdcard/debian.img
    # mkdir /debian
    # mount -t ext3 -o noatime,errors=remount-ro /mnt/sdcard/debian.img /debian +# for fs in /dev /proc /sys; do mount -o bind "$fs" "/debian$fs"; done

    @@ -184,8 +188,12 @@ your phone, run cdebootstrap to set up a file system tree in writing) the armhf architecture is not yet fully integrated into the official archive. If you're using armel, or if you happen to live in the future, you can use your normal Debian mirror for this. -Obviously, feel free to replace unstable with whichever suite -you want to install. +Don't forget to replace unstable with whichever +suite you want to install, +but be aware that (at the time of writing) armhf only exists in +unstable -- if you want stable or testing, and +you downloaded an armhf cdebootstrap binary, you will +need to specify the -aarmel option to cdebootstrap.

    @@ -286,6 +294,26 @@ What you choose to install beyond this depends on your wants and needs, and how you like your Debian. ;-)

    +

    Initialising the Debian system at boot time

    + +

    +I have written a couple of simple scripts to ease getting Debian up and +running. They come in pairs; one of them lives in Android and chroots to +Debian, and the other lives in Debian and gets run after the chroot. You +can find a copy of these scripts in +Gitweb, +or clone the git repository with: +

    + + +$ git clone git://git.steven-mcdonald.id.au/android-debian.git + + +

    +For usage information, please refer to the README in that git +repository. +

    +