diff options
| -rw-r--r-- | content/gemtext/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.gmi | 180 | ||||
| -rw-r--r-- | content/gemtext/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid/Deboroid.png | bin | 0 -> 576510 bytes | |||
| -rw-r--r-- | content/gemtext/gemfeed/atom.xml | 166 | ||||
| -rw-r--r-- | content/gemtext/gemfeed/index.gmi | 1 | ||||
| -rw-r--r-- | content/gemtext/index.gmi | 1 | ||||
| -rw-r--r-- | content/html/gemfeed/atom.xml | 166 | ||||
| -rw-r--r-- | content/html/gemfeed/index.html | 1 | ||||
| -rw-r--r-- | content/html/index.html | 1 | ||||
| -rw-r--r-- | content/md/gemfeed/index.md | 1 | ||||
| -rw-r--r-- | content/md/index.md | 1 | ||||
| -rw-r--r-- | content/meta/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.meta | 5 |
11 files changed, 521 insertions, 2 deletions
diff --git a/content/gemtext/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.gmi b/content/gemtext/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.gmi new file mode 100644 index 00000000..def36400 --- /dev/null +++ b/content/gemtext/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.gmi @@ -0,0 +1,180 @@ +# Run Debian on your phone with Debroid + +``` + ____ _ _ _ +| _ \ ___| |__ _ __ ___ (_) __| | +| | | |/ _ \ '_ \| '__/ _ \| |/ _` | +| |_| | __/ |_) | | | (_) | | (_| | +|____/ \___|_.__/|_| \___/|_|\__,_| + +``` + +> Written by Paul Buetow 2015-12-05, last updated 2021-05-16 + +You can use the following tutorial to install a full-blown Debian GNU/Linux Chroot on a LG G3 D855 CyanogenMod 13 (Android 6). First of all you need to have root permissions on your phone and you also need to have the developer mode activated. The following steps have been tested on Linux (Fedora 23). + +=> ./2015-12-05-run-debian-on-your-phone-with-debroid/Deboroid.png + +## Foreword + +A couple of years have passed since I last worked on Debroid. At the moment I am using the Termux app on Android, which is less sophisticated than a fully blown Debian installation, but sufficient for my current requirements. + +## Step by step guide + +All scripts mentioned here can be found on GitHub at: + +=> https://github.com/snonux/debroid + +### First debootstrap stage + +This is to be performed on a Fedora Linux machine (could work on a Debian too, but Fedora is just what I use on my personal Laptop). The following steps prepare an initial Debian base image, which then later can be transferred to the phone. + +```code +sudo dnf install debootstrap +# 5g +dd if=/dev/zero of=jessie.img bs=$[ 1024 * 1024 ] \ + count=$[ 1024 * 5 ] + +# Show used loop devices +sudo losetup -f +# Store the next free one to $loop +loop=loopN +sudo losetup /dev/$loop jessie.img + +mkdir jessie +sudo mkfs.ext4 /dev/$loop +sudo mount /dev/$loop jessie +sudo debootstrap --foreign --variant=minbase \ + --arch armel jessie jessie/ \ + http://http.debian.net/debian +sudo umount jessie +``` + +### Copy Debian image to the phone + +Now setup the Debian image on an external SD card on the Phone via Android Debugger as follows: + +``` +adb root && adb wait-for-device && adb shell +mkdir -p /storage/sdcard1/Linux/jessie +exit + +# Sparse image problem, may be too big for copying otherwise +gzip jessie.img +# Copy over +adb push jessie.img.gz /storage/sdcard1/Linux/jessie.img.gz +adb shell +cd /storage/sdcard1/Linux +gunzip jessie.img.gz + +# Show used loop devices +losetup -f +# Store the next free one to $loop +loop=loopN + +# Use the next free one (replace the loop number) +losetup /dev/block/$loop $(pwd)/jessie.img +mount -t ext4 /dev/block/$loop $(pwd)/jessie + +# Bind-Mound proc, dev, sys` +busybox mount --bind /proc $(pwd)/jessie/proc +busybox mount --bind /dev $(pwd)/jessie/dev +busybox mount --bind /dev/pts $(pwd)/jessie/dev/pts +busybox mount --bind /sys $(pwd)/jessie/sys + +# Bind-Mound the rest of Android +mkdir -p $(pwd)/jessie/storage/sdcard{0,1} +busybox mount --bind /storage/emulated \ + $(pwd)/jessie/storage/sdcard0 +busybox mount --bind /storage/sdcard1 \ + $(pwd)/jessie/storage/sdcard1 + +# Check mounts +mount | grep jessie +``` + +### Second debootstrap stage + +This is to be performed on the Android phone itself (inside a Debian chroot): + +``` +chroot $(pwd)/jessie /bin/bash -l +export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin +/debootstrap/debootstrap --second-stage +exit # Leave chroot +exit # Leave adb shell +``` + +### Setup of various scripts + +jessie.sh deals with all the loopback mount magic and so on. It will be run later every time you start Debroid on your phone. + +``` +# Install script jessie.sh +adb push storage/sdcard1/Linux/jessie.sh /storage/sdcard/Linux/jessie.sh +adb shell +cd /storage/sdcard1/Linux +sh jessie.sh enter + +# Bashrc +cat <<END >~/.bashrc +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH +export EDITOR=vim +hostname $(cat /etc/hostname) +END + +# Fixing an error message while loading the profile +sed -i s#id#/usr/bin/id# /etc/profile + +# Setting the hostname +echo phobos > /etc/hostname +echo 127.0.0.1 phobos > /etc/hosts +hostname phobos + +# Apt-sources +cat <<END > sources.list +deb http://ftp.uk.debian.org/debian/ jessie main contrib non-free +deb-src http://ftp.uk.debian.org/debian/ jessie main contrib non-free +END +apt-get update +apt-get upgrade +apt-get dist-upgrade +exit # Exit chroot +``` + +### Entering Debroid and enable a service + +This enters Debroid on your phone and starts the example service uptimed: + +``` +sh jessie.sh enter + +# Setup example serice uptimed +apt-get install uptimed +cat <<END > /etc/rc.debroid +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH +service uptimed status &>/dev/null || service uptimed start +exit 0 +END + +chmod 0755 /etc/rc.debroid +exit # Exit chroot +exit # Exit adb shell +``` + +### Include to Android startup: + +I you want to start Debroid automatically every time when your phone starts, then do the following: + +``` +adb push data/local/userinit.sh /data/local/userinit.sh +adb shell +chmod +x /data/local/userinit.sh +exit +``` + +Reboot & test! Enjoy! + +E-Mail me your thoughts at comments@mx.buetow.org! + +=> ../ Go back to the main site diff --git a/content/gemtext/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid/Deboroid.png b/content/gemtext/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid/Deboroid.png Binary files differnew file mode 100644 index 00000000..f76cf226 --- /dev/null +++ b/content/gemtext/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid/Deboroid.png diff --git a/content/gemtext/gemfeed/atom.xml b/content/gemtext/gemfeed/atom.xml index eb80f8d5..60b1e7ce 100644 --- a/content/gemtext/gemfeed/atom.xml +++ b/content/gemtext/gemfeed/atom.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <updated>2021-05-16T15:27:41+01:00</updated> + <updated>2021-05-16T16:14:53+01:00</updated> <title>buetow.org feed</title> <subtitle>Having fun with computers!</subtitle> <link href="gemini://buetow.org/gemfeed/atom.xml" rel="self" /> @@ -984,6 +984,170 @@ apply Service "dig6" { </content> </entry> <entry> + <title>Run Debian on your phone with Debroid</title> + <link href="gemini://buetow.org/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.gmi" /> + <id>gemini://buetow.org/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.gmi</id> + <updated>2015-12-05T16:12:57+00:00</updated> + <author> + <name>Paul Buetow</name> + <email>comments@mx.buetow.org</email> + </author> + <summary>You can use the following tutorial to install a full blown Debian GNU/Linux Chroot on a LG G3 D855 CyanogenMod 13 (Android 6). First of all you need to have root permissions on your phone and you also need to have the developer mode activated. The following steps have been tested on Linux (Fedora 23). .....to read on please visit my site.</summary> + <content type="xhtml"> + <div xmlns="http://www.w3.org/1999/xhtml"> + <h1>Run Debian on your phone with Debroid</h1> +<pre> + ____ _ _ _ +| _ \ ___| |__ _ __ ___ (_) __| | +| | | |/ _ \ '_ \| '__/ _ \| |/ _` | +| |_| | __/ |_) | | | (_) | | (_| | +|____/ \___|_.__/|_| \___/|_|\__,_| + +</pre> +<p class="quote"><i>Written by Paul Buetow 2015-12-05, last updated 2021-05-16</i></p> +<p>You can use the following tutorial to install a full-blown Debian GNU/Linux Chroot on a LG G3 D855 CyanogenMod 13 (Android 6). First of all you need to have root permissions on your phone and you also need to have the developer mode activated. The following steps have been tested on Linux (Fedora 23)</p> +<a href="https://buetow.org/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid/Deboroid.png"><img src="https://buetow.org/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid/Deboroid.png" /></a><br /> +<h2>Foreword</h2> +<p>A couple of years have passed since I last worked on Debroid. At the moment I am using the Termux app on Android, which is less sophisticated than a fully blown Debian installation, but sufficient for my current requirements.</p> +<h2>Step by step guide</h2> +<p>All scripts mentioned here can be found on GitHub at:</p> +<a class="textlink" href="https://github.com/snonux/debroid">https://github.com/snonux/debroid</a><br /> +<h3>First debootstrap stage</h3> +<p>This is to be performed on a Fedora Linux machine (could work on a Debian too, but Fedora is just what I use on my personal Laptop). The following steps prepare an initial Debian base image, which then later can be transferred to the phone.</p> +<pre> +sudo dnf install debootstrap +# 5g +dd if=/dev/zero of=jessie.img bs=$[ 1024 * 1024 ] \ + count=$[ 1024 * 5 ] + +# Show used loop devices +sudo losetup -f +# Store the next free one to $loop +loop=loopN +sudo losetup /dev/$loop jessie.img + +mkdir jessie +sudo mkfs.ext4 /dev/$loop +sudo mount /dev/$loop jessie +sudo debootstrap --foreign --variant=minbase \ + --arch armel jessie jessie/ \ + http://http.debian.net/debian +sudo umount jessie +</pre> +<h3>Copy Debian image to the phone</h3> +<p>Now setup the Debian image on an external SD card on the Phone via Android Debugger as follows:</p> +<pre> +adb root && adb wait-for-device && adb shell +mkdir -p /storage/sdcard1/Linux/jessie +exit + +# Sparse image problem, may be too big for copying otherwise +gzip jessie.img +# Copy over +adb push jessie.img.gz /storage/sdcard1/Linux/jessie.img.gz +adb shell +cd /storage/sdcard1/Linux +gunzip jessie.img.gz + +# Show used loop devices +losetup -f +# Store the next free one to $loop +loop=loopN + +# Use the next free one (replace the loop number) +losetup /dev/block/$loop $(pwd)/jessie.img +mount -t ext4 /dev/block/$loop $(pwd)/jessie + +# Bind-Mound proc, dev, sys` +busybox mount --bind /proc $(pwd)/jessie/proc +busybox mount --bind /dev $(pwd)/jessie/dev +busybox mount --bind /dev/pts $(pwd)/jessie/dev/pts +busybox mount --bind /sys $(pwd)/jessie/sys + +# Bind-Mound the rest of Android +mkdir -p $(pwd)/jessie/storage/sdcard{0,1} +busybox mount --bind /storage/emulated \ + $(pwd)/jessie/storage/sdcard0 +busybox mount --bind /storage/sdcard1 \ + $(pwd)/jessie/storage/sdcard1 + +# Check mounts +mount | grep jessie +</pre> +<h3>Second debootstrap stage</h3> +<p>This is to be performed on the Android phone itself (inside a Debian chroot):</p> +<pre> +chroot $(pwd)/jessie /bin/bash -l +export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin +/debootstrap/debootstrap --second-stage +exit # Leave chroot +exit # Leave adb shell +</pre> +<h3>Setup of various scripts</h3> +<p>jessie.sh deals with all the loopback mount magic and so on. It will be run later every time you start Debroid on your phone.</p> +<pre> +# Install script jessie.sh +adb push storage/sdcard1/Linux/jessie.sh /storage/sdcard/Linux/jessie.sh +adb shell +cd /storage/sdcard1/Linux +sh jessie.sh enter + +# Bashrc +cat <<END >~/.bashrc +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH +export EDITOR=vim +hostname $(cat /etc/hostname) +END + +# Fixing an error message while loading the profile +sed -i s#id#/usr/bin/id# /etc/profile + +# Setting the hostname +echo phobos > /etc/hostname +echo 127.0.0.1 phobos > /etc/hosts +hostname phobos + +# Apt-sources +cat <<END > sources.list +deb http://ftp.uk.debian.org/debian/ jessie main contrib non-free +deb-src http://ftp.uk.debian.org/debian/ jessie main contrib non-free +END +apt-get update +apt-get upgrade +apt-get dist-upgrade +exit # Exit chroot +</pre> +<h3>Entering Debroid and enable a service</h3> +<p>This enters Debroid and starts the example service uptimed:</p> +<pre> +sh jessie.sh enter + +# Setup example serice uptimed +apt-get install uptimed +cat <<END > /etc/rc.debroid +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH +service uptimed status &>/dev/null || service uptimed start +exit 0 +END + +chmod 0755 /etc/rc.debroid +exit # Exit chroot +exit # Exit adb shell +</pre> +<h3>Include to Android startup:</h3> +<p>I you want to start Debroid automatically every time when your phone starts do the following:</p> +<pre> +adb push data/local/userinit.sh /data/local/userinit.sh +adb shell +chmod +x /data/local/userinit.sh +exit +</pre> +<p>Reboot & test! Enjoy!</p> +<p>E-Mail me your thoughts at comments@mx.buetow.org!</p> + </div> + </content> + </entry> + <entry> <title>Perl Daemon (Service Framework)</title> <link href="gemini://buetow.org/gemfeed/2011-05-07-perl-daemon-service-framework.gmi" /> <id>gemini://buetow.org/gemfeed/2011-05-07-perl-daemon-service-framework.gmi</id> diff --git a/content/gemtext/gemfeed/index.gmi b/content/gemtext/gemfeed/index.gmi index a61bfb58..95f318b0 100644 --- a/content/gemtext/gemfeed/index.gmi +++ b/content/gemtext/gemfeed/index.gmi @@ -10,6 +10,7 @@ => ./2016-05-22-spinning-up-my-own-authoritative-dns-servers.gmi 2016-05-22 - Spinning up my own authoritative DNS servers => ./2016-04-16-offsite-backup-with-zfs-part2.gmi 2016-04-16 - Offsite backup with ZFS (Part 2) => ./2016-04-03-offsite-backup-with-zfs.gmi 2016-04-03 - Offsite backup with ZFS +=> ./2015-12-05-run-debian-on-your-phone-with-debroid.gmi 2015-12-05 - Run Debian on your phone with Debroid => ./2011-05-07-perl-daemon-service-framework.gmi 2011-05-07 - Perl Daemon (Service Framework) => ./2010-05-09-the-fype-programming-language.gmi 2010-05-09 - The Fype Programming Language => ./2010-04-09-standard-ml-and-haskell.gmi 2010-04-09 - Standard ML and Haskell diff --git a/content/gemtext/index.gmi b/content/gemtext/index.gmi index 0531fa49..d43e42b9 100644 --- a/content/gemtext/index.gmi +++ b/content/gemtext/index.gmi @@ -60,6 +60,7 @@ I have switched blog software multiple times. I might be back filling some of th => ./gemfeed/2016-05-22-spinning-up-my-own-authoritative-dns-servers.gmi 2016-05-22 - Spinning up my own authoritative DNS servers => ./gemfeed/2016-04-16-offsite-backup-with-zfs-part2.gmi 2016-04-16 - Offsite backup with ZFS (Part 2) => ./gemfeed/2016-04-03-offsite-backup-with-zfs.gmi 2016-04-03 - Offsite backup with ZFS +=> ./gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.gmi 2015-12-05 - Run Debian on your phone with Debroid => ./gemfeed/2011-05-07-perl-daemon-service-framework.gmi 2011-05-07 - Perl Daemon (Service Framework) => ./gemfeed/2010-05-09-the-fype-programming-language.gmi 2010-05-09 - The Fype Programming Language => ./gemfeed/2010-04-09-standard-ml-and-haskell.gmi 2010-04-09 - Standard ML and Haskell diff --git a/content/html/gemfeed/atom.xml b/content/html/gemfeed/atom.xml index f4683a69..ee49a91c 100644 --- a/content/html/gemfeed/atom.xml +++ b/content/html/gemfeed/atom.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <updated>2021-05-16T15:27:41+01:00</updated> + <updated>2021-05-16T16:14:53+01:00</updated> <title>buetow.org feed</title> <subtitle>Having fun with computers!</subtitle> <link href="https://buetow.org/gemfeed/atom.xml" rel="self" /> @@ -984,6 +984,170 @@ apply Service "dig6" { </content> </entry> <entry> + <title>Run Debian on your phone with Debroid</title> + <link href="https://buetow.org/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.html" /> + <id>https://buetow.org/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.html</id> + <updated>2015-12-05T16:12:57+00:00</updated> + <author> + <name>Paul Buetow</name> + <email>comments@mx.buetow.org</email> + </author> + <summary>You can use the following tutorial to install a full blown Debian GNU/Linux Chroot on a LG G3 D855 CyanogenMod 13 (Android 6). First of all you need to have root permissions on your phone and you also need to have the developer mode activated. The following steps have been tested on Linux (Fedora 23). .....to read on please visit my site.</summary> + <content type="xhtml"> + <div xmlns="http://www.w3.org/1999/xhtml"> + <h1>Run Debian on your phone with Debroid</h1> +<pre> + ____ _ _ _ +| _ \ ___| |__ _ __ ___ (_) __| | +| | | |/ _ \ '_ \| '__/ _ \| |/ _` | +| |_| | __/ |_) | | | (_) | | (_| | +|____/ \___|_.__/|_| \___/|_|\__,_| + +</pre> +<p class="quote"><i>Written by Paul Buetow 2015-12-05, last updated 2021-05-16</i></p> +<p>You can use the following tutorial to install a full-blown Debian GNU/Linux Chroot on a LG G3 D855 CyanogenMod 13 (Android 6). First of all you need to have root permissions on your phone and you also need to have the developer mode activated. The following steps have been tested on Linux (Fedora 23)</p> +<a href="https://buetow.org/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid/Deboroid.png"><img src="https://buetow.org/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid/Deboroid.png" /></a><br /> +<h2>Foreword</h2> +<p>A couple of years have passed since I last worked on Debroid. At the moment I am using the Termux app on Android, which is less sophisticated than a fully blown Debian installation, but sufficient for my current requirements.</p> +<h2>Step by step guide</h2> +<p>All scripts mentioned here can be found on GitHub at:</p> +<a class="textlink" href="https://github.com/snonux/debroid">https://github.com/snonux/debroid</a><br /> +<h3>First debootstrap stage</h3> +<p>This is to be performed on a Fedora Linux machine (could work on a Debian too, but Fedora is just what I use on my personal Laptop). The following steps prepare an initial Debian base image, which then later can be transferred to the phone.</p> +<pre> +sudo dnf install debootstrap +# 5g +dd if=/dev/zero of=jessie.img bs=$[ 1024 * 1024 ] \ + count=$[ 1024 * 5 ] + +# Show used loop devices +sudo losetup -f +# Store the next free one to $loop +loop=loopN +sudo losetup /dev/$loop jessie.img + +mkdir jessie +sudo mkfs.ext4 /dev/$loop +sudo mount /dev/$loop jessie +sudo debootstrap --foreign --variant=minbase \ + --arch armel jessie jessie/ \ + http://http.debian.net/debian +sudo umount jessie +</pre> +<h3>Copy Debian image to the phone</h3> +<p>Now setup the Debian image on an external SD card on the Phone via Android Debugger as follows:</p> +<pre> +adb root && adb wait-for-device && adb shell +mkdir -p /storage/sdcard1/Linux/jessie +exit + +# Sparse image problem, may be too big for copying otherwise +gzip jessie.img +# Copy over +adb push jessie.img.gz /storage/sdcard1/Linux/jessie.img.gz +adb shell +cd /storage/sdcard1/Linux +gunzip jessie.img.gz + +# Show used loop devices +losetup -f +# Store the next free one to $loop +loop=loopN + +# Use the next free one (replace the loop number) +losetup /dev/block/$loop $(pwd)/jessie.img +mount -t ext4 /dev/block/$loop $(pwd)/jessie + +# Bind-Mound proc, dev, sys` +busybox mount --bind /proc $(pwd)/jessie/proc +busybox mount --bind /dev $(pwd)/jessie/dev +busybox mount --bind /dev/pts $(pwd)/jessie/dev/pts +busybox mount --bind /sys $(pwd)/jessie/sys + +# Bind-Mound the rest of Android +mkdir -p $(pwd)/jessie/storage/sdcard{0,1} +busybox mount --bind /storage/emulated \ + $(pwd)/jessie/storage/sdcard0 +busybox mount --bind /storage/sdcard1 \ + $(pwd)/jessie/storage/sdcard1 + +# Check mounts +mount | grep jessie +</pre> +<h3>Second debootstrap stage</h3> +<p>This is to be performed on the Android phone itself (inside a Debian chroot):</p> +<pre> +chroot $(pwd)/jessie /bin/bash -l +export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin +/debootstrap/debootstrap --second-stage +exit # Leave chroot +exit # Leave adb shell +</pre> +<h3>Setup of various scripts</h3> +<p>jessie.sh deals with all the loopback mount magic and so on. It will be run later every time you start Debroid on your phone.</p> +<pre> +# Install script jessie.sh +adb push storage/sdcard1/Linux/jessie.sh /storage/sdcard/Linux/jessie.sh +adb shell +cd /storage/sdcard1/Linux +sh jessie.sh enter + +# Bashrc +cat <<END >~/.bashrc +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH +export EDITOR=vim +hostname $(cat /etc/hostname) +END + +# Fixing an error message while loading the profile +sed -i s#id#/usr/bin/id# /etc/profile + +# Setting the hostname +echo phobos > /etc/hostname +echo 127.0.0.1 phobos > /etc/hosts +hostname phobos + +# Apt-sources +cat <<END > sources.list +deb http://ftp.uk.debian.org/debian/ jessie main contrib non-free +deb-src http://ftp.uk.debian.org/debian/ jessie main contrib non-free +END +apt-get update +apt-get upgrade +apt-get dist-upgrade +exit # Exit chroot +</pre> +<h3>Entering Debroid and enable a service</h3> +<p>This enters Debroid and starts the example service uptimed:</p> +<pre> +sh jessie.sh enter + +# Setup example serice uptimed +apt-get install uptimed +cat <<END > /etc/rc.debroid +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH +service uptimed status &>/dev/null || service uptimed start +exit 0 +END + +chmod 0755 /etc/rc.debroid +exit # Exit chroot +exit # Exit adb shell +</pre> +<h3>Include to Android startup:</h3> +<p>I you want to start Debroid automatically every time when your phone starts do the following:</p> +<pre> +adb push data/local/userinit.sh /data/local/userinit.sh +adb shell +chmod +x /data/local/userinit.sh +exit +</pre> +<p>Reboot & test! Enjoy!</p> +<p>E-Mail me your thoughts at comments@mx.buetow.org!</p> + </div> + </content> + </entry> + <entry> <title>Perl Daemon (Service Framework)</title> <link href="https://buetow.org/gemfeed/2011-05-07-perl-daemon-service-framework.html" /> <id>https://buetow.org/gemfeed/2011-05-07-perl-daemon-service-framework.html</id> diff --git a/content/html/gemfeed/index.html b/content/html/gemfeed/index.html index 31d762fa..396c0942 100644 --- a/content/html/gemfeed/index.html +++ b/content/html/gemfeed/index.html @@ -62,6 +62,7 @@ h2, h3 { <a class="textlink" href="./2016-05-22-spinning-up-my-own-authoritative-dns-servers.html">2016-05-22 - Spinning up my own authoritative DNS servers</a><br /> <a class="textlink" href="./2016-04-16-offsite-backup-with-zfs-part2.html">2016-04-16 - Offsite backup with ZFS (Part 2)</a><br /> <a class="textlink" href="./2016-04-03-offsite-backup-with-zfs.html">2016-04-03 - Offsite backup with ZFS</a><br /> +<a class="textlink" href="./2015-12-05-run-debian-on-your-phone-with-debroid.html">2015-12-05 - Run Debian on your phone with Debroid</a><br /> <a class="textlink" href="./2011-05-07-perl-daemon-service-framework.html">2011-05-07 - Perl Daemon (Service Framework)</a><br /> <a class="textlink" href="./2010-05-09-the-fype-programming-language.html">2010-05-09 - The Fype Programming Language</a><br /> <a class="textlink" href="./2010-04-09-standard-ml-and-haskell.html">2010-04-09 - Standard ML and Haskell</a><br /> diff --git a/content/html/index.html b/content/html/index.html index 838789f4..93005704 100644 --- a/content/html/index.html +++ b/content/html/index.html @@ -98,6 +98,7 @@ h2, h3 { <a class="textlink" href="./gemfeed/2016-05-22-spinning-up-my-own-authoritative-dns-servers.html">2016-05-22 - Spinning up my own authoritative DNS servers</a><br /> <a class="textlink" href="./gemfeed/2016-04-16-offsite-backup-with-zfs-part2.html">2016-04-16 - Offsite backup with ZFS (Part 2)</a><br /> <a class="textlink" href="./gemfeed/2016-04-03-offsite-backup-with-zfs.html">2016-04-03 - Offsite backup with ZFS</a><br /> +<a class="textlink" href="./gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.html">2015-12-05 - Run Debian on your phone with Debroid</a><br /> <a class="textlink" href="./gemfeed/2011-05-07-perl-daemon-service-framework.html">2011-05-07 - Perl Daemon (Service Framework)</a><br /> <a class="textlink" href="./gemfeed/2010-05-09-the-fype-programming-language.html">2010-05-09 - The Fype Programming Language</a><br /> <a class="textlink" href="./gemfeed/2010-04-09-standard-ml-and-haskell.html">2010-04-09 - Standard ML and Haskell</a><br /> diff --git a/content/md/gemfeed/index.md b/content/md/gemfeed/index.md index ebbecc74..b1f32234 100644 --- a/content/md/gemfeed/index.md +++ b/content/md/gemfeed/index.md @@ -10,6 +10,7 @@ [2016-05-22 - Spinning up my own authoritative DNS servers](./2016-05-22-spinning-up-my-own-authoritative-dns-servers.md) [2016-04-16 - Offsite backup with ZFS (Part 2)](./2016-04-16-offsite-backup-with-zfs-part2.md) [2016-04-03 - Offsite backup with ZFS](./2016-04-03-offsite-backup-with-zfs.md) +[2015-12-05 - Run Debian on your phone with Debroid](./2015-12-05-run-debian-on-your-phone-with-debroid.md) [2011-05-07 - Perl Daemon (Service Framework)](./2011-05-07-perl-daemon-service-framework.md) [2010-05-09 - The Fype Programming Language](./2010-05-09-the-fype-programming-language.md) [2010-04-09 - Standard ML and Haskell](./2010-04-09-standard-ml-and-haskell.md) diff --git a/content/md/index.md b/content/md/index.md index 3f0775aa..882137c3 100644 --- a/content/md/index.md +++ b/content/md/index.md @@ -60,6 +60,7 @@ I have switched blog software multiple times. I might be back filling some of th [2016-05-22 - Spinning up my own authoritative DNS servers](./gemfeed/2016-05-22-spinning-up-my-own-authoritative-dns-servers.md) [2016-04-16 - Offsite backup with ZFS (Part 2)](./gemfeed/2016-04-16-offsite-backup-with-zfs-part2.md) [2016-04-03 - Offsite backup with ZFS](./gemfeed/2016-04-03-offsite-backup-with-zfs.md) +[2015-12-05 - Run Debian on your phone with Debroid](./gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.md) [2011-05-07 - Perl Daemon (Service Framework)](./gemfeed/2011-05-07-perl-daemon-service-framework.md) [2010-05-09 - The Fype Programming Language](./gemfeed/2010-05-09-the-fype-programming-language.md) [2010-04-09 - Standard ML and Haskell](./gemfeed/2010-04-09-standard-ml-and-haskell.md) diff --git a/content/meta/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.meta b/content/meta/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.meta new file mode 100644 index 00000000..9265431c --- /dev/null +++ b/content/meta/gemfeed/2015-12-05-run-debian-on-your-phone-with-debroid.meta @@ -0,0 +1,5 @@ +local meta_date="2015-12-05T16:12:57+00:00" +local meta_author="Paul Buetow" +local meta_email="comments@mx.buetow.org" +local meta_title="Run Debian on your phone with Debroid" +local meta_summary="You can use the following tutorial to install a full blown Debian GNU/Linux Chroot on a LG G3 D855 CyanogenMod 13 (Android 6). First of all you need to have root permissions on your phone and you also need to have the developer mode activated. The following steps have been tested on Linux (Fedora 23). .....to read on please visit my site." |
