[HOWTO] All-in-one solution for Ubuntu 10.10 Linux on Android

Search This thread

dodgejcr

Senior Member
Aug 17, 2010
131
149
0
Hot Springs
CRC error...

Any chance I could get some MD5 sums on the working archives?

This is working fine on my Evo Shift and here are the md5's of the archives I used. Since it is a few rather large downloads, it would be a good idea for the OP to put these in the post. We all know how sometimes downloads can be corrupted

b243ded14a3e7d96c12a752c1480e9f8 ubuntu.zip.001
e01f7934478062172a4c7a0a4a376b92 ubuntu.zip.002
76d69b740bfb2ddb9c0d26abca969b89 ubuntu.zip.003
567c842b8a9433535665353a26368338 ubuntu.zip.004

Hope this helps someone that was wondering :D
 
Last edited:

joeybarclay

Member
Apr 2, 2011
5
0
0
I got this to work but it never shows anything past "this may take some time"
I have to guess when ubuntu is up and running and I haven't been able to get it to work since. How long does it take for ubuntu to start? the first time I waited a half and hour and it worked but now I have tried doing 15 minutes but it still wont work.
 

Freija

Senior Member
Sep 7, 2010
72
7
0
Toronto
I have a similar problem. I'm running SpeedMod with the tweaks enabled, SU and BB... stuck on the "Please wait while booting ubuntu.img. This can take some time..." dialog.
How long should it take to boot?
NM. It was actually running.
 

dodgejcr

Senior Member
Aug 17, 2010
131
149
0
Hot Springs
Mine actually does that as well. Its running almost instantly after tho. I have had a problem with shutting it down tho. Cant exit or anything from the terminal thus stopping the process. Even after I disconnect from the host, I can still VNC into active session. Simple reboot stops it but I wonder if it is something with my setup
 

joeybarclay

Member
Apr 2, 2011
5
0
0
I have a similar problem. I'm running SpeedMod with the tweaks enabled, SU and BB... stuck on the "Please wait while booting ubuntu.img. This can take some time..." dialog.
How long should it take to boot?
NM. It was actually running.

How long did it take to boot? Mine seems like it takes around 30 minutes
 

joeybarclay

Member
Apr 2, 2011
5
0
0
I had to use the terminal in this app to get it working https ://market.android.com/details?id=com.webkey&feature=search_result
 
Last edited:

Infinimint

Senior Member
Oct 8, 2010
653
268
0
25
Fredericksburg, VA
twitter.com
For anyone wondering, this is crazy easy...

Preinstallation:
1) Download all the files from here: http://goo.gl/bltOF. (Please add to OP as a mirror)
2) Put them into a folder called "ubuntu".
3) Plug your phone in and mount USB.
4) Drag and drop the whole folder onto your sdcard.
5) Open the Android Market and download these apps:
Android Terminal Emulator by Jack Palevich
chart

Links: Device | Desktop

android-vnc-viewer by androidVNC team + antlersoft
chart

Links: Device | Desktop

Installation:
1) Open "Android Terminal Emulator"
2) Type in the following commands in order:
Code:
$ su
# cd /sdcard/ubuntu
# sh ubuntu.sh
3) Ignore the message and press the home button.
4) Open androidVNC and enter these settings:
Nickname:
Password: ubuntu
Address: localhost
Port: 5900
Color Format: 24-bit color (4 bpp)
5) Press "connect".
6) If it did not connect, wait 5 minutes and try again.
7) Once connected, press the MENU button.
8) Press "Input Mode" and select "Touchpad"
9) Enjoy!
10) When you want to exit entirely, open up Android Terminal Emulator (yes, there will still be text everywhere) and enter the command:
Code:
exit


Everytime after doing this the first time, Ubuntu will boot in seconds (literally, faster than I could find my androidVNC app ;P ).
 
Last edited:

bernabap

Senior Member
Jul 25, 2009
217
16
0
I get it to work on my phone but when I try to exit chroot I got an error:

"umount: can't forcibly umount /data/local/mnt/proc: Device or resource busy"

It works nicelly though! But I dont know how unmount /data/local/mnt/proc, only rebooting.

I was just wondering if anyone know what was in use causing the resource busy message or how can I determine the problem?

Thanks

I got an Desire if does it matter and took out the lines referencing the external_sd from ubuntu.sh.
 
Last edited:

Infinimint

Senior Member
Oct 8, 2010
653
268
0
25
Fredericksburg, VA
twitter.com
I get it to work on my phone but when I try to exit chroot I got an error:

"umount: can't forcibly umount /data/local/mnt/proc: Device or resource busy"

It works nicelly though! But I dont know how unmount /data/local/mnt/proc, only rebooting.

I was just wondering if anyone know what was in use causing the resource busy message or how can I determine the problem?

Thanks

I got an Desire if does it matter and took out the lines referencing the external_sd from ubuntu.sh.

Try rebooting and see if that fixes it.
 

stevie-c

Member
Apr 26, 2007
15
0
0
can someone who tried this check if the ubuntu has access to hardware devices. Does it have sound?

If it did it might be worth trying to run a full mythtv frontend on the phone :)
 

tku137

Member
Nov 22, 2009
38
3
0
I've done everything as explained. Put image and script on sdcard, tried to run it with better terminal emu and remoteVNC pro, all I got was same like

hi, i have a problem.
i use terminal emulator from the galaxy s, i do this step:- Place ubuntu.sh and ubuntu.img in the same directory in your SD storage.
- Enter a terminal and enter 'su' to become a superuser (root).
- Navigate to the directory where you placed the files (e.g. "cd /sdcard/external_sd/ubuntu").
- Execute the script by typing "sh ubuntu.sh".
when i execute the script it is:
"Exiting chroot environment and sync'ing memory to storage.."
DO NOT EXIT until finished - doing so may corrupt the ubuntu.img!"
#
so now what i have to do?
the androidvcn say me:vcn connection failed!
localhost/127.0.0.1:5900 -connection refused

So I read through this thread and came across some aspects. I Flashed speedmod K13D, enabled the noatime tweak, installed the mentioned apps Android Terminal Emulator and androidVNC, even tried to reinstall busybox, but its always the same.

Is there another thing I forgot, or am I just an unlucky guy?
 
Last edited:

aaopt

Senior Member
Feb 27, 2011
294
416
93
Pawtucket, RI
The post mentions HID keyboards. I assume that will only work if it's already working in android? Or can Ubuntu's Bluetooth stack work anyway?

Sent from my LG-P509 using XDA App
 

thedicemaster

Senior Member
May 10, 2009
1,747
852
133
if you get that "this may take some time" message it most likely means it's already running.
you don't get any specific messages saying it started, you just need to exit the terminal app through the home button and launch a vnc client.
 

caleb220

Member
Jan 6, 2011
38
0
0
For anyone wondering, this is crazy easy...

Preinstallation:
1) Download all the files from here: http://goo.gl/bltOF (Still Uploading... 81.1%...).
2) Put them into a folder called "ubuntu".
3) Plug your phone in and mount USB.
4) Drag and drop the whole folder onto your sdcard.
5) Open the Android Market and download these apps:


Installation:
1) Open "Android Terminal Emulator"
2) Type in the following commands in order:
Code:
$ su
# cd /sdcard/ubuntu
# sh ubuntu.sh
3) Ignore the message and press the home button.
4) Open androidVNC and enter these settings:

5) Press "connect".
6) If it did not connect, wait 5 minutes and try again.
7) Once connected, press the MENU button.
8) Press "Input Mode" and select "Touchpad"
9) Enjoy!
10) When you want to exit entirely, open up Android Terminal Emulator (yes, there will still be text everywhere) and enter the command:
Code:
exit


Everytime after doing this the first time, Ubuntu will boot in seconds (literally, faster than I could find my androidVNC app ;P ).

You sir, are my hero! I couldn't get those files to work for the life of me until you gave me these AMAZING links. Downloading right now, I hope to get this running today. Thank you so much. :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 36
    Links to Ubuntu 10.10 Image and Startup Script (around 1.5GB download):

    NOTE: YOU NEED SPEEDMOD KERNEL FOR THE GALAXY S FOR THIS TO BOOT

    OTHER USERS ENCOUNTERING ERRORS MAY LIKE TO TRY REMOVING "-o noatime" FROM ubuntu.sh OR RE-INSTALLING THE LATEST BUSYBOX


    http://www.megaupload.com/?d=L9S70C8V
    http://www.megaupload.com/?d=MS1KUUGW
    http://www.megaupload.com/?d=YCMNO224
    http://www.megaupload.com/?d=H6XZX9JB

    MD5 Sums (in case any of the downloads corrupt)
    b243ded14a3e7d96c12a752c1480e9f8 ubuntu.zip.001
    e01f7934478062172a4c7a0a4a376b92 ubuntu.zip.002
    76d69b740bfb2ddb9c0d26abca969b89 ubuntu.zip.003
    567c842b8a9433535665353a26368338 ubuntu.zip.004

    Open with 7Zip or similar to unzip.

    screenshot.png


    What is this?
    An ubuntu 10.10 maverick (with LXDE window manager) machine in your pocket. Perfectly usable from the phone itself using a VNC client, this allows you to install any ubuntu software onto your phone and have it with you always. Coupled with the (potential) ability for your phone to be hooked up to a television with TV Out (works with the Nokia TV Out cable available on eBay), and for (supposedly any) HID-compliant bluetooth keyboard and mouse to be linked up to the phone (requires Android 2.2), this really does become a PC in your pocket.

    Requirements:
    - android phone
    - superuser + busybox

    Included:
    - 3.5GB virtual machine image (ubuntu.img) with ubuntu and certain applications pre-installed (listed below). The image is resizable with uec-resize-image, although FAT32 (the most likely format of your SD Card) has a maximum file size of <4GB.

    - A script to boot into ubuntu from android (ubuntu.sh)

    - A script to start the VNC Server and other startup commands. This is contained within the ubuntu.img file at /root/init.sh, accessible and modifiable once ubuntu.img has successfully booted.

    How to boot:
    - Place ubuntu.sh and ubuntu.img in the same directory in your SD storage.
    - Enter a terminal and enter 'su' to become a superuser (root).
    - Navigate to the directory where you placed the files (e.g. "cd /sdcard/external_sd/ubuntu").
    - Execute the script by typing "sh ubuntu.sh".

    Tip: Some android terminal emulators (e.g. better terminal) allow you to specify an initial command that is run as soon as you launch the application. Multiple initial commands can be defined by pressing return between each command when you define it, so for example the initial command:

    su <return>
    cd /sdcard/external_sd/ubuntu <return>
    sh ubuntu.sh <return>

    will boot you into ubuntu and start the VNC server as soon as you launch the terminal application. All that remains is to VNC into it before you can start using it.

    Note: I have noticed that some android apps with process/activity management options (e.g. Spare Parts) possibly interfered with the running of Ubuntu and would kill "inactive" shell emulators (even when they were just idling) - thus killing the idling ubuntu environment. Also, I found it to be at its most stable after a fresh reboot of the phone.

    How to connect:
    Once you have booted the image (see instructions above), you simply need to fire up your VNC client of choice (androidVNC or pocketcloud VNC are good options), and simply add a new VNC server with address localhost, port 5900, and password 'ubuntu' - then hit connect.

    - androidVNC has the advantage of pinch to zoom and generally feels nicer - set colour to 24bpp when adding the connection, and Input mode to touchpad once connected (this sometimes resets and needs re-doing at the start of a session).
    - pocketcloud VNC has the advantage that no intermediate text input window is required when doing text input and may be preferred by some people.
    - It has been suggested that the Dingul hangul keyboard is good for direct access to common command line characters such as / and * etc. It is however in Korean but can be set to use a QWERTY keyboard.


    What software is pre-installed?

    Base System (with all updates as of 19/02/11:
    Ubuntu 10.10 (Maverick) Core
    LXDE (Lightweight Windows-like GUI) with tightvnc server.

    Applications (with all updates as of 19/02/11):
    Firefox, Thunderbird, openoffice.org suite, GIMP Image Editor, Emacs Text Editor (geared towards programming), C and C++ build-essential, Java JDK, Python, TeXlive and TeXmaker LaTeX editor, Transmission BitTorrent Client, eVince PDF Viewer, File Manager, Terminal, Image Viewer, Leafpad Text Editor, Synaptic Package Manager and Ubuntu Software Center with all repositories enabled (Ubuntu Software Center is pretty and well organized - but bloated and slow), SSH server, Gnash (GNU flash player/plugin for Firefox - as there is no official generla flash pluging for armel CPUs)..

    Obviously, you are free to add and remove apps as you see fit (through Synaptic or Ubuntu Software Center)..


    I hope people find this useful, and that it works without too many problems.

    Martin Rhodes ([email protected], fire314 @ XDA).

    Note: If anyone ends up creating a custom ubuntu.img using rootstock, remember to create the directory /data/local/tmp within it as this is where the linux system will be expecting to find its temporary directory if booted (chroot'd) from android - and it is not there by default.
    6
    For anyone wondering, this is crazy easy...

    Preinstallation:
    1) Download all the files from here: http://goo.gl/bltOF. (Please add to OP as a mirror)
    2) Put them into a folder called "ubuntu".
    3) Plug your phone in and mount USB.
    4) Drag and drop the whole folder onto your sdcard.
    5) Open the Android Market and download these apps:
    Android Terminal Emulator by Jack Palevich
    chart

    Links: Device | Desktop

    android-vnc-viewer by androidVNC team + antlersoft
    chart

    Links: Device | Desktop

    Installation:
    1) Open "Android Terminal Emulator"
    2) Type in the following commands in order:
    Code:
    $ su
    # cd /sdcard/ubuntu
    # sh ubuntu.sh
    3) Ignore the message and press the home button.
    4) Open androidVNC and enter these settings:
    Nickname:
    Password: ubuntu
    Address: localhost
    Port: 5900
    Color Format: 24-bit color (4 bpp)
    5) Press "connect".
    6) If it did not connect, wait 5 minutes and try again.
    7) Once connected, press the MENU button.
    8) Press "Input Mode" and select "Touchpad"
    9) Enjoy!
    10) When you want to exit entirely, open up Android Terminal Emulator (yes, there will still be text everywhere) and enter the command:
    Code:
    exit


    Everytime after doing this the first time, Ubuntu will boot in seconds (literally, faster than I could find my androidVNC app ;P ).
    2
    You sir, are my hero! I couldn't get those files to work for the life of me until you gave me these AMAZING links. Downloading right now, I hope to get this running today. Thank you so much. :)

    No problem, that's what XDA-Developers is all about.
    2
    ubuntu.sh below:

    #!/bin/sh
    ##################################################################
    # Ubuntu/LXDE bootscript for Samsung Galaxy S (and others) #
    ##################################################################
    # by Martin Rhodes (fire314)- [email protected] #
    # compiled with trial and error and help from a number of blogs. #
    # credits: coralic, David Jensen, debdroid, blog commenters, XDA #
    # Tested on Ultimate 7.0 and Darky 9.3 #
    ###########################################################################
    # to re-enable error output, remove the " > /dev/null 2>&1" from commands #
    ###########################################################################

    echo "WARNING: If you have more than 255 apps installed on the SDCard, then mounting the ubuntu.img will fail!"
    echo
    echo "Apps on the SDCard associate with an encrypted loop device, and there are only 256 available to the system."
    echo
    echo "You have to go to Settings -> Manage Applications -> On SDCard, and move some apps back to phone storage in order to free up a loop device for ubuntu. Make sure you reboot the phone after doing this, then try again."
    echo
    echo "Please wait while booting ubuntu.img.. This can take some time..."
    echo
    ###################################################################################
    # export environment variables #
    ###################################################################################
    export HOME=/root
    export USER=root
    export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:$PATH
    export TERM=vt100
    ###################################################################################


    ########################################################
    # make directories required by the chroot environment #
    ########################################################
    busybox mkdir /data/local/mnt > /dev/null 2>&1
    busybox mkdir /data/local/mnt/proc > /dev/null 2>&1
    busybox mkdir /data/local/mnt/sys > /dev/null 2>&1
    busybox mkdir /data/local/mnt/dev > /dev/null 2>&1
    busybox mkdir /data/local/mnt/dev/pts > /dev/null 2>&1
    busybox mkdir /data/local/mnt/sdcard > /dev/null 2>&1
    busybox mkdir /data/local/mnt/external_sd > /dev/null 2>&1
    ########################################################


    ###########################################################
    # create a loop far, far away and mount ubuntu.img on it #
    ###########################################################
    busybox mknod /dev/block/loop255 b 7 255 > /dev/null 2>&1
    busybox losetup /dev/block/loop255 ./ubuntu.img > /dev/null 2>&1
    busybox mount -o noatime /dev/block/loop255 /data/local/mnt > /dev/null 2>&1
    ###########################################################


    ######################################################################
    # mount the phone's sdcard storage so it's accessible from ubuntu #
    ######################################################################
    busybox mount -o bind /sdcard /data/local/mnt/sdcard > /dev/null 2>&1
    busybox mount -o bind /sdcard/external_sd /data/local/mnt/external_sd > /dev/null 2>&1
    #######################################################################


    #################################################################
    # mount linux system on our chroot environment and chroot to it #
    #################################################################
    busybox mount -t proc proc /data/local/mnt/proc > /dev/null 2>&1
    busybox mount -t devpts devpts /data/local/mnt/dev/pts > /dev/null 2>&1
    busybox mount -t sysfs sysfs /data/local/mnt/sys > /dev/null 2>&1
    busybox chroot /data/local/mnt /root/init.sh > /dev/null 2>&1
    #################################################################


    #########################################
    # chroot exited: umount everything #
    #########################################
    echo
    echo "Exiting chroot environment and sync'ing memory to storage.."
    echo "DO NOT EXIT until finished - doing so may corrupt the ubuntu.img!"
    echo
    busybox sync
    busybox umount -f /data/local/mnt/sys > /dev/null 2>&1
    busybox umount -f /data/local/mnt/dev/pts > /dev/null 2>&1
    busybox umount -f /data/local/mnt/proc > /dev/null 2>&1
    busybox umount -f /data/local/mnt/sdcard > /dev/null 2>&1
    busybox umount -f /data/local/mnt/external_sd > /dev/null 2>&1
    ##########################################
    1
    I'm very interested.

    How much space i need in the sdcard?

    And..Can you rescue the link from megaupload?

    Thank
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone