• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [release] andbuntu... Ubuntu on android

atc3030

Newbie
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
 
I do not have a beta running yet. It is taking a while to write the script. Probably from my inexperience in writing scripts so I'm probably not writing it in an efficient manner. When I release it though, if anyone is good with scripts, I would love for them to help me clean it up. Maybe make it more efficient
 
I do not have a beta running yet. It is taking a while to write the script. Probably from my inexperience in writing scripts so I'm probably not writing it in an efficient manner. When I release it though, if anyone is good with scripts, I would love for them to help me clean it up. Maybe make it more efficient

Shoot me an email
 
Will do. I installed the Beta Natty Ubuntu and now my broadcom chip is not working with it. Im tethering right now while at school. The andbuntu is on temporary hold till probably 5pm till i get this fixed. IF ANYONE KNOWS HOW TO FIX THIS... EMAIL ME ASAP PLEASE
austin.conn1@gmail.com
Thank you.
 
I think this is great. I'm excited to see it's completion. I have one question though, since it's not clearly stated in the OP...What exactly is this? What does this mean?
 
Basically its bash from ubuntu being ran inside a chroot or kinda like a sandboxed environment. allows you to run apt-get and a few other full linux commands. no gui or anything
 
My plan is to release the script once I get it to the point of atleast installing debian. which this would be the point that D2A is at. Hopefully, which i have had success with and hope to implement, is installing a gui, probably LXDE first, then GNOME or something else. but im still screwed with a 25 foot ethernet cable running across my living room to get internet. my broadcom chip still wont work.
 
So, we'd be running ububtu on the phone basically? Would we still have phone calls, mms, sms?

Nope.

And I would really rather see our devs work on something that is actually usable on a phone format, might i suggest Jolicloud instead of ubuntu? The general UI of Jolicloud would be way more touch screen friendly than ubuntu.
 
Well, the project is on hold right now till i figure out this wifi thing. if i cant fix it by the time i go to bed. ill prolly suck it up and just reinstall 10.10. but dont worry. i have the script backed up so far. and as far as keeping sms and calls and such. you would loose the functions from verizons end, but that is the reason for google voice. its open to everyone now so yeah. and i have not seen jolicloud. might have to look into it. actually, the install i have working on my ally currently is quite nice. What i like is you can pinch and zoom in and out to see what you want. i think its cool.

but like i said. im in between a rock and a hard place till i get this figured out.
 
atc3030 whats the model of your card. just saying its a broadcom chip does not help. i need the actual manufacturer name and model number. and this is the reason 11.04 is in beta. File a report? i had the same issue of 10.04 not working with my card when it was released. it worked but it never connected. 10.10 fixed it. still doesnt work in 10.04
 
I bit the bullet and just reinstalled 10.10 last night. I needed to anyway. too many bs files. so im back to working on the project. So I haven't looked at jolicloud yet and i almost have the script done to the point of an alpha release. I have it set up so that you wont lose android and you will still be able to use all of those functions. All that will be installed is a img of debian system that will run through command line. sorry to keep dragging this on guys. did not expect it last night. And sav, when I post it, could you prettify the script?
 
I do not have a beta running yet. It is taking a while to write the script. Probably from my inexperience in writing scripts so I'm probably not writing it in an efficient manner. When I release it though, if anyone is good with scripts, I would love for them to help me clean it up. Maybe make it more efficient

Do you have a non-scripted version? I'm rather handy on the CLI, and can do alpha testing.
 
RELEASE OF THE ALPHA, NON SCRIPT VERSION WILL BE @ 12:10 PM TODAY, APRIL 15th, 2010. Please. no questions until the release. It is very, I repeat, Very alpha. I am having trouble with the script so I'll post what I tried to make into a script at someone I'm sure would like to make a script. It will only be the terminal end. NO GUI.

WILL NOT HAVE ITS OWN THREAD!!!! TO KEEP THE FORUMS CLEAN, I WILL UPDATE THE ORIGINAL POST AND TITLE!!!!

Credits and such will not be provided yet as I am still compiling the list. Thank you.
 
RELEASE OF THE ALPHA, NON SCRIPT VERSION WILL BE @ 12:10 PM TODAY, APRIL 15th, 2010. Please. no questions until the release. It is very, I repeat, Very alpha. I am having trouble with the script so I'll post what I tried to make into a script at someone I'm sure would like to make a script. It will only be the terminal end. NO GUI.

WILL NOT HAVE ITS OWN THREAD!!!! TO KEEP THE FORUMS CLEAN, I WILL UPDATE THE ORIGINAL POST AND TITLE!!!!

Credits and such will not be provided yet as I am still compiling the list. Thank you.

Excellent. I'd only suggest you get a sourceforge project (Or github) set up, so people can check it out, and propose commits.

Good luck :)
 
I will. I'm at school right now and I really would like to get a github or something along those lines but can't now cause the school blocks them. Actually, I'm a little ahead of schedule so possibly, be looking for it, even as early as 11
:45. Possibly. Depends on what my teacher is doing after lunch whether its a study hall or not.

merge

Check the OP. Its been released. Behind schedule. lol. but its up. Goodluck.
 
merge. Sorry for double post.

Btw. My twitter i gave is apparently wrong. goes to show if I know it. lol
It is actually
AustinConn1
 
RELEASE OF THE ALPHA, NON SCRIPT VERSION WILL BE @ 12:10 PM TODAY, APRIL 15th, 2010. Please. no questions until the release. It is very, I repeat, Very alpha. I am having trouble with the script so I'll post what I tried to make into a script at someone I'm sure would like to make a script. It will only be the terminal end. NO GUI.

WILL NOT HAVE ITS OWN THREAD!!!! TO KEEP THE FORUMS CLEAN, I WILL UPDATE THE ORIGINAL POST AND TITLE!!!!

Credits and such will not be provided yet as I am still compiling the list. Thank you.

So.... savoxis@gmail.com

would be a good place to send your WIP.

Im kinda busy today but I could probably get you something going tonight/tomorrow
 
We'll see what i get done tonight. Just got done auditioning for field commander and I will be anxiously awaiting those results so i cant work on my phone. Plus im helping someone switch from windows to ubuntu
 
I am very very aware of the link posted. However, I did not intend to release it in this state which is almost an exact clone of that as well as countless other adds. My original intention was to build it so it would boot instead of android but I am not there yet. If nothing else, I made more people aware of it here.
 
Back
Top Bottom