moar stuff in debian on android tute
[www.git] / tutorials / debian_on_samsung_galaxy.shtml
index 785eea21c0cb2c1163a75b040463991626c222bd..7fa4560bf63fc50f135288bbd50cc21782583075 100644 (file)
@@ -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
+<tt>busybox</tt> on my device, so installing <tt>busybox</tt> should get
+you most of the way there.
 </li>
 <li>
 You have a reasonably fast and high-capacity Internet connection
@@ -73,8 +75,9 @@ this method probably isn't for you.
 </ul>
 
 <p>
-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!
 </p>
 
 <h2>Preparation</h2>
@@ -115,7 +118,7 @@ $ mkdir /tmp/cdebootstrap && cd /tmp/cdebootstrap<br>
 $ ar x /path/to/cdebootstrap-static_0.5.8+b1_armhf.deb data.tar.gz<br>
 $ tar xzOf data.tar.gz ./usr/lib/cdebootstrap/cdebootstrap_0.5.8+b1_armhf.tar.gz | ssh root@$PHONE 'tar xzC /data/local/bin/'
 </code>
-Obviously, replace <tt>$PHONE</tt> with the hostname of your phone.
+Remember to replace <tt>$PHONE</tt> with the hostname of your phone.
 </li>
 <li>
 Unfortunately, the version of <tt>cdebootstrap</tt> included in the
@@ -162,6 +165,7 @@ So, ssh to your phone, and run the following commands:
 # mke2fs -Fj /mnt/sdcard/debian.img<br>
 # mkdir /debian<br>
 # 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
 </code>
 
 <p>
@@ -184,8 +188,12 @@ your phone, run <tt>cdebootstrap</tt> to set up a file system tree in
 writing) the <tt>armhf</tt> architecture is not yet fully integrated into
 the official archive. If you're using <tt>armel</tt>, or if you happen to
 live in the future, you can use your normal Debian mirror for this.
-Obviously, feel free to replace <tt>unstable</tt> with whichever suite
-you want to install.
+Don't forget to replace <tt>unstable</tt> with whichever
+<a href="http://www.debian.org/releases/">suite</a> you want to install,
+but be aware that (at the time of writing) <tt>armhf</tt> only exists in
+<tt>unstable</tt> -- if you want <tt>stable</tt> or <tt>testing</tt>, and
+you downloaded an <tt>armhf</tt> <tt>cdebootstrap</tt> binary, you will
+need to specify the <tt>-aarmel</tt> option to <tt>cdebootstrap</tt>.
 </p>
 
 <code>
@@ -286,6 +294,26 @@ What you choose to install beyond this depends on your wants and needs,
 and how you like your Debian. ;-)
 </p>
 
+<h2>Initialising the Debian system at boot time</h2>
+
+<p>
+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
+<a href="http://git.steven-mcdonald.id.au/?p=android-debian.git;a=tree">Gitweb</a>,
+or clone the git repository with:
+</p>
+
+<code>
+$ git clone git://git.steven-mcdonald.id.au/android-debian.git
+</code>
+
+<p>
+For usage information, please refer to the <tt>README</tt> in that git
+repository.
+</p>
+
 </div>
 
 <!--#include virtual="/footer.shtml"-->