Hello All. And welcome to the First Release of ANDBUNTU in its most alpha stage: Version 0.0.1
Sorry I'm late guys. Had to reboot to install updates. but here you go.
Must give some credit obviously, so therefore, most of this first release was from XDA.
Let me say this: This, as of right now is not a final thing, nor, as with any other alpha/beta, there can be and probably will be buggy. I will help with what I can when I can, but IRC is a good place to start.
This is only the Terminal Version. No script yet. Couldn't figure it out. To use it you simply will be using android's terminal emulator. I have only tested this on Velocity 1.0. So without further a do. Here it is... THE FIRST ALPHA RELEASE OF ANDBUNTU Ver. 0.0.1
To start, I recommend oc'ing at atleast 728 MHZ, as it will help. As well... This is written to make a 2 gig image, at which point it is big enough to install a GUI via apt-get. However, I will notate where you can change the size to your liking. It can go as small as 300 megs, but thats pushing it.
Now fire up a terminal and run:
sudo su
[enter your password]
apt-get update
apt-get upgrade
While we are in the apt-get mood, go ahead and grab debootstrap with the command
apt-get install debootstrap
Now we need to decide where we want to work. For me, I like the Desktop folder. So set where you want it to be with:
cd /home/austin/Desktop
(CHANGE THIS TO WHERE YOU WANT)
Now in terminal again, we want to make the image that we will install to, so run:
dd if=/dev/zero of=debian.img seek=2147483648 bs=1 count=1
NOTE: the number after seek is where the img size is. This is to be given in bytes. This uses 2 gigs in this example. (So its 'seek=your size in bytes')
This command makes the image ext2 as android does not like ext4:
mke2fs -F debian.img
Next, we need to make a folder to build our image in. So type:
mkdir debian
Now we will mount the img into the folder:
mount -o loop debian.img debian
Now we will build our actual system... to do so, go ahead and run:
debootstrap --verbose --arch armel --foreign lenny debian Index of /debian
The debootstrap command is doing the hard work for us. It installs in two steps. This is the first Step. It can take some time, so just let it go.
Now we need to unmount the img to be able to move it... for that, run:
umount debian
Now go to your folder that you decided to work in and copy it to the root of your sdcard. You may need to do this through terminal. Although, I did not.
Now plug your phone into the computer and fire up an adb shell.
adb shell
Then:
export kit=/system/sd
export mnt=/data/local/mnt
busybox mkdir -p $mnt
export PATH=/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
alias _=busybox
_ mknod /dev/loop0 b 7 0
_ mount -o loop,noatime $kit/debian.img $mnt
_ chroot $mnt /debootstrap/debootstrap --second-stage
echo 'deb Index of /debian lenny main' >$mnt/etc/apt/sources.list
echo 'nameserver 4.2.2.2' >$mnt/etc/resolv.conf
At this point. Terminal is ready to go, we just need to help it access debian. For that...:
_ mknod /dev/loop0 b 7 0
This creates a loop back device so that it will run as though its installed....
Now, if all is well, we can mount it.
_ mount -o loop,noatime $kit/debian.img $mnt
Congrats... You've booted into debian. However, Remember when I said it works in two steps... We only did one.
OH NO... we gotta fix that...
Still in the adb shell, run:
_ chroot $mnt /debootstrap/debootstrap --second-stage
To be able to use apt-get, add the sources to it:
echo 'deb Index of /debian lenny main' >$mnt/etc/apt/sources.list
Then, for DNS to work properly:
echo 'nameserver 4.2.2.2' >$mnt/etc/resolv.conf
CONGRATULATIONS!!!! You've installed a real version of debian to an image and are running it on android.
But how do I boot it when I want to use it?
Copy and past the following into a black text file, and save it as "ab.sh" without quotes and save it to the directory you were working in.
#!/bin/bash
_ chroot $mnt /bin/bash
mount -t devpts devpts /dev/pts
mount -t proc proc /proc
mount -t sysfs sysfs /sys
rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab
Now... back out of asb and run:
adb reboot
Then, when its back up:
adb push /home/austin/Desktop/ab.sh /mnt/sdcard
Now into another shell...:
adb shell
and make the script executable:
chmod +x /mnt/sdcard/ab.sh
then run it using ab.sh.
THIS BOOTS DEBIAN...
Ahw nuts... Im a little late. Sorry guys. Hope yall enjoy it. Gonna work on it some more now. Please. If you have questions, ask or email me or pm me or something. I want to help.
Thanks
Austin Conn
atc3030
Sorry I'm late guys. Had to reboot to install updates. but here you go.
Must give some credit obviously, so therefore, most of this first release was from XDA.
Let me say this: This, as of right now is not a final thing, nor, as with any other alpha/beta, there can be and probably will be buggy. I will help with what I can when I can, but IRC is a good place to start.
This is only the Terminal Version. No script yet. Couldn't figure it out. To use it you simply will be using android's terminal emulator. I have only tested this on Velocity 1.0. So without further a do. Here it is... THE FIRST ALPHA RELEASE OF ANDBUNTU Ver. 0.0.1
To start, I recommend oc'ing at atleast 728 MHZ, as it will help. As well... This is written to make a 2 gig image, at which point it is big enough to install a GUI via apt-get. However, I will notate where you can change the size to your liking. It can go as small as 300 megs, but thats pushing it.
Now fire up a terminal and run:
sudo su
[enter your password]
apt-get update
apt-get upgrade
While we are in the apt-get mood, go ahead and grab debootstrap with the command
apt-get install debootstrap
Now we need to decide where we want to work. For me, I like the Desktop folder. So set where you want it to be with:
cd /home/austin/Desktop
(CHANGE THIS TO WHERE YOU WANT)
Now in terminal again, we want to make the image that we will install to, so run:
dd if=/dev/zero of=debian.img seek=2147483648 bs=1 count=1
NOTE: the number after seek is where the img size is. This is to be given in bytes. This uses 2 gigs in this example. (So its 'seek=your size in bytes')
This command makes the image ext2 as android does not like ext4:
mke2fs -F debian.img
Next, we need to make a folder to build our image in. So type:
mkdir debian
Now we will mount the img into the folder:
mount -o loop debian.img debian
Now we will build our actual system... to do so, go ahead and run:
debootstrap --verbose --arch armel --foreign lenny debian Index of /debian
The debootstrap command is doing the hard work for us. It installs in two steps. This is the first Step. It can take some time, so just let it go.
Now we need to unmount the img to be able to move it... for that, run:
umount debian
Now go to your folder that you decided to work in and copy it to the root of your sdcard. You may need to do this through terminal. Although, I did not.
Now plug your phone into the computer and fire up an adb shell.
adb shell
Then:
export kit=/system/sd
export mnt=/data/local/mnt
busybox mkdir -p $mnt
export PATH=/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
alias _=busybox
_ mknod /dev/loop0 b 7 0
_ mount -o loop,noatime $kit/debian.img $mnt
_ chroot $mnt /debootstrap/debootstrap --second-stage
echo 'deb Index of /debian lenny main' >$mnt/etc/apt/sources.list
echo 'nameserver 4.2.2.2' >$mnt/etc/resolv.conf
At this point. Terminal is ready to go, we just need to help it access debian. For that...:
_ mknod /dev/loop0 b 7 0
This creates a loop back device so that it will run as though its installed....
Now, if all is well, we can mount it.
_ mount -o loop,noatime $kit/debian.img $mnt
Congrats... You've booted into debian. However, Remember when I said it works in two steps... We only did one.
OH NO... we gotta fix that...
Still in the adb shell, run:
_ chroot $mnt /debootstrap/debootstrap --second-stage
To be able to use apt-get, add the sources to it:
echo 'deb Index of /debian lenny main' >$mnt/etc/apt/sources.list
Then, for DNS to work properly:
echo 'nameserver 4.2.2.2' >$mnt/etc/resolv.conf
CONGRATULATIONS!!!! You've installed a real version of debian to an image and are running it on android.
But how do I boot it when I want to use it?
Copy and past the following into a black text file, and save it as "ab.sh" without quotes and save it to the directory you were working in.
#!/bin/bash
_ chroot $mnt /bin/bash
mount -t devpts devpts /dev/pts
mount -t proc proc /proc
mount -t sysfs sysfs /sys
rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab
Now... back out of asb and run:
adb reboot
Then, when its back up:
adb push /home/austin/Desktop/ab.sh /mnt/sdcard
Now into another shell...:
adb shell
and make the script executable:
chmod +x /mnt/sdcard/ab.sh
then run it using ab.sh.
THIS BOOTS DEBIAN...
Ahw nuts... Im a little late. Sorry guys. Hope yall enjoy it. Gonna work on it some more now. Please. If you have questions, ask or email me or pm me or something. I want to help.
Thanks
Austin Conn
atc3030
