[HOWTO] Ubuntu on Thunderbolt (Complete Guide) [6/21/11 1:15AM EST]

Joined
Mar 5, 2010
Messages
51
Reaction score
0
[HOWTO] Ubuntu on Android (Complete Guide) [7/5/11 2:00AM EST]

Installing Ubuntu onto Thunderbolt/Droid/Droid2/Etc:

Create a folder on the sdcard named ubuntu located at /sdcard/ext2ubuntu

Required files for Ubuntu install:
Ubuntu.sh http://db.tt/1l5BYHj

Custom Packages for AutoConfig:
Coming soon

You will also want to download either an ubuntu image or archive. The major difference is that the image must be the same size as your ubuntu installation, so they are larger downloads, or need to be resized before you use them.

Ubuntu Prebuilt tar and img downloads:
(img: Extract only ubuntu.img rename to ubuntu2.img and place in /sdcard/ext2ubuntu)
(tar: Rename to something easy to enter in terminal and place in /sdcard/ext2ubuntu)

10.04: http://android-cruft.googlecode.com/files/lucid-on-android-0.1.tar
(This image DOES need to be resized, see next post)

10.10 img: http://www.megaupload.com/?d=56AT71WD
(This image file does NOT need to be resized)

11.04 tar: http://db.tt/lRK3nFJ

Backtrack img: http://bit.ly/kJweA9
Borrowed from http://forum.xda-developers.com/showthread.php?t=1146255
(This image file does NOT need to be resized)

How to build your own Ubuntu Image:
http://androlinux.com/android-ubuntu-development/how-to-build-chroot-arm-ubuntu-images-for-android/

Notice:
The ubuntu mount folder is symlinked to /system/sd-ext allowing access to it there also.

First off you should have a running ubuntu install on your computer or at least a live cd running to create the ext2 partition.
Use gparted to add a 4gb (or whatever size you want) ext2 partition to your sdcard. I did this while the phone was mounted in disk drive mode, so you dont need to take the card out.

Ubuntu: Get gparted in synaptics or in terminal enter:
Code:
sudo apt-get install gparted
Widows: *Paragon Partition Manager*
If you do not need to partition, skip this step.

Use adb to run /sdcard/ext2ubuntu/ubuntu.sh
Code:
adb shell
su
sh /sdcard/ext2ubuntu/ubuntu.sh

Or from terminal (only supported on some ROMs)
Code:
su
bash /sdcard/ext2ubuntu/ubuntu.sh

All required scripts will download and install themselves automatically. Currently only ubuntu.sh, busybox, and the chosen ubuntu image need to be placed in /sdcard/ext2ubuntu for proper install. Scripts include an autoupdate feature that will also keep them current.

Update vs Restore scripts: Update will base what scripts are put in system on the ones currently there, while restore determines what scripts are currently available on the sdcard.

You can now open terminal and type "bootubuntu" to test install

A new Sdcard Direct option was added allowing user to replace the installed scripts with a unified "ubuntu" command that runs the scripts directly from the sdcard. This option was offered due to the frequency of updates to allow the user to simply replace the files in /sdcard/ext2ubuntu with newer versions that would run without any further steps.

If you get a localhost prompt, you are in but still need a couple things to move past command line.
Here is where we part from borrowed and modified instructions that recommend lxde and ice and all the dinky handheld ubuntu shells, and move to the Thunderbolt method.

For automatic installation of ubuntu applications, you will want to enter these commands next:

Code:
su
backubuntu
4
Choose your options

To view your ubuntu desktop, you will want a vnc viewer for android. I use real vnc, but android-vnc-viewer is free and has all the same features (i just liked the layout of realvnc)

The address for ubuntu is 127.0.0.1
The port is 5901
The password is the tightvncserver one you set.

i recommend making a folder named android in "your mounted ubuntu folder"/home/ for your personal files since /root is your local folder, but causes permission issues.

From your new ubuntu you can use synaptics and download eclipse there, but it can also be downloaded from the localhost prompt using "apt-get install eclipse" I also recommend downloading the android-sdk. To run the sdk from the localhost prompt, simply cd to the android-sdk directory and issue the command:

Code:
tools/android update sdk -u -s
and if you want to specify the downloads performed add
Code:
-t [specific items to download]
If you need help with any commands you can add
Code:
-h
to your existing command

The htc kitchen can be downloaded from ubuntu using the same instructions found: http://forum.xda-developers.com/showthread.php?t=633246

After it is installed, you have the option to launch this kitchen either from inside your ubuntu install, or from the localhost prompt, which avoids having to run vnc to use it.

A compiler toolchain is available http://www.codesourcery.com/sgpp/lite/arm by choosing download the latest release. I use gnu/linux even though it seems to be eabi included in the android source, but I have never used it to be sure. I have been told this one is a lot easier to use anyway.

I recommend backing up the ext2 once everything is done. This can be done by (entering "exit" at the localhost prompt and then) entering "backubuntu" in terminal.

backubuntu can also update newly downloaded scripts without having to use root explorer or worry about permissions. Just put any new versions in your sdcard/ubuntu folder and select the update option.

This replaces the ubuntu2.img with your backup so you dont have to "apt-get" everything over again. This will also save your tightvnc password so make sure you remember it.

Sent from my ADR6400L using Tapatalk
 
Last edited:
OP
T
Joined
Mar 5, 2010
Messages
51
Reaction score
0
Refreshed the links and added backtrack to the available images.
Fixed some issues with the auto download of 11.04 and general loop method issues.

Sent from my ADR6400L using Tapatalk
 

stonehenge1861

New Member
Joined
Feb 9, 2011
Messages
1
Reaction score
0
So I'm trying to figure this out. when I run ubunt.sh I go through all to options, everything seems fine, then I get to the end it says type bootubuntu to start Ubuntu console
When I do it just says, "bootubuntu: not found"

I am root so I'm not sure what's goin on.

any help would be much appreciated!

Edit: i also noticed that i get a server returned error :HTTP/1.1 404 Not Found
 
Last edited:
OP
T
Joined
Mar 5, 2010
Messages
51
Reaction score
0
So I'm trying to figure this out. when I run ubunt.sh I go through all to options, everything seems fine, then I get to the end it says type bootubuntu to start Ubuntu console
When I do it just says, "bootubuntu: not found"

I am root so I'm not sure what's goin on.

any help would be much appreciated!

Edit: i also noticed that i get a server returned error :HTTP/1.1 404 Not Found

Try downloading the files again and running it. I just refreshed all the links and the files are all new.

Sent from my ADR6400L using Tapatalk
 
OP
T
Joined
Mar 5, 2010
Messages
51
Reaction score
0
Updated EVERYTHING. If you have a current install, I recommend using the bash ubuntu.sh method and choosing scripts only to prevent autoupdate from not properly adding the files to system (one of the things that was fixed in this version)
Fixed scripts not properly moving to system
Fixed a typo in the download for the ubuntu image
Made ubuntu.sh more user friendly and allowed for image files to be named something other than ubuntu2.img (it will rename it if needed to perform operations later)
Bootubuntu fixed for better cooperation with Droid 2
Backubuntu no longer tried to mount and unmount everything carelessly
Rewrote the entire configure option to stop making multiple instances of vnc, swap, etc
Added a kill function to the configure so that when you exit ubuntu, tightvnc will shutdown properly
Added better configuration of autoupdate, backubuntu, bootubuntu, and loopubuntu
If you have test mode enabled in Nameless/ScriptFusion, it will also apply here.

Think that covers it.
 

joelstitch

New Member
Joined
Jan 28, 2012
Messages
2
Reaction score
0
Im trying to install Ubuntu on my Thunderbolt but am having issues. I formated the drive and copied the ubuntu files to both partitions cause Im not sure which one Im supposed to copy the files to. Whenever I try to use Android VNC Viewer I get this error:

Code:
VNC Connection failed!
/127.0.0.1:5901 - Connection refused
 
Last edited:

hdhntr29

New Member
Joined
Jul 20, 2012
Messages
1
Reaction score
0
For anyone looking for a kernel that supports loop devices! download and flash MIUI Vicious-ICS-5.0 ( also known as vicious 5.0 galnet in rom manager) works perfectly.

Also download this free app from the app market that will walk you through every step of download install and boot!

Complete Linux installer
https://play.google.com/store/apps/...ndroid&feature=nav_result#?t=W251bGwsMSwyLDNd

saves time and the hassle of running all the commands in the terminal!
 
Top