Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Android 

How to Install Ubuntu on Android!

[Image: shzF4vc.png]

This should work on all androids, Post below your device and if worked or not :)

We will be running Ubuntu under Android OS, which just means that we will be running a virtual Ubuntu OS that runs on top of the Android OS. You will still have your normal android too.

Make sure your device IS rooted!

your Android OS must support loop devices. Most newer Android smartphones/tablets come with this support so we can mount our Ubuntu image as a loop device. If not, you will either have to build your own kenel with support for loop devices or you can try an aftermarket ROM for your phone as most aftermarket ROMs come with support for it.

How to check kernal
How do you know this? Just try installing Ubuntu and if it doesn’t boot, your Android device needs a kernel with loop device support. Otherwise you are fine to keep on going!

How to Install Ubuntu on Android! (Windows)

First, download the following Ubuntu.zip file Here, unzip and copy over the whole ubuntu directory to the SD card of your Android smartphone/tablet device:

(OH turn USB storage ON then copy over the Ubuntu folder to the root directory of your SD card.)

1) Remember!, make sure you have your Android smartphone/tablet “rooted”!

2) You must have Android SDK installed or have access to adb.exe.

3) Make sure your Android phone/tablet is in debugging mode. Go to Settings->Applications->Development and make sure USB Debugging is checked ON.
[Image: 9BcINpg.jpg]

4) Connect your device to your computer via USB cable and set the USB mode to Just Charge this is a MUST.

5) Your Android device should be recognized as “ADB Device” under Device Manager. If not, install appropriate drivers.
which are below!
For all HTC Android smartphones/tablets (such as G2 Phone, Nexus One), you can download Windows drivers here:

HTC Windows 64-bit driver download Here
32 bit here

6) Open up a command prompt by typing “cmd” under Start->Search programs and files.

7) Browse to your SDK directory where you installed the Android SDK (You would of installed it):
[Image: yI8uN0H.jpg]

Then go into platform-tools directory:
[Image: L7RBpLY.jpg]

9) Type “adb devices” to double-check your Android device is recognized.
[Image: pB7LqxL.jpg]

if you get an empty device, that means you didn’t install the drivers for your phone/tablet correctly. (Go back to #5)

10) Type “adb shell” to enter the Android shell.
[Image: jSrJsby.jpg]

Then type “su” to enter super user mode, then type “cd /sdcard” and “cd ubuntu” to enter the ubuntu directory in your SD card of your Android device.

11) Next, type “sh ubuntu.sh” to run the script which will basically get your Ubuntu image ready to run on your Android smartphone/tablet.
[Image: QEEyUMb.jpg]
You may get errors but ignore them it usually still works.

12) Type “bootubuntu” to enter Ubuntu. (Next time you enter Ubuntu, you just need to type “bootubuntu” from your /sdcard/ubuntu directory, no need to run ubuntu.sh again.
[Image: ecVzH0C.jpg]

If you got “root@localhost” at this point, congratulations! This means your Android OS comes with loop device support and Ubuntu is now running “chrooted” on top of your Android OS!!!

However, if you failed at this point, your Android OS probably doesn’t support loop devices, try installing another ROM or compiling your own kernel with loop device support.
but i can't help with that goodluck on your own

How to Install Programs on your Ubuntu!

Once you’ve got Ubuntu running on your Android device,

Type “apt-get update” to update, this is the first thing you will need to do before installing any new programs.[Image: BAXMtTf.jpg]

How to Install OpenSSH-server on your Android Ubuntu!

Type “apt-get install openssh-server” to install OpenSSH-server. What is OpenSSH-server? If you want to connect to your Android Ubuntu via an IP address you will want to do this.
[Image: GtGNVYj.jpg]

How to Install TightVNCServer on your Android Ubuntu!

If you want to access the GUI of your Android Ubuntu, you can install TightVNCServer, itll let you to access the Android Ubuntu with an Android VNC app on your Android smartphone/tablet or even access it remotely from your desktop computer.

Type “apt-get install tightvncserver” to install.
[Image: 0JsSe57.jpg]

How to Fix Language Issues


Above is after I connected to my Android Ubuntu via SSH2. Well, for some reason my default language switched to German. To fix that, just type “export LANG=en_US.UTF-8″:
Pretty easy.

How to Start TightVNCServer!

Next, let’s start the TightVNCServer and connect to it from our Android phone and my Windows 7 desktop:

Type “export USER=root” and “vncserver -geometry 1024×800″.

Here, you can change the resolution settings 1024×800 to the resolution of your liking.
[Image: 0ZfpR5r.jpg]

Now your TightVNCServer is ready to accept any incoming connections from your phone or computer. Just point to the correct IP address and use port number 5901 to connect. easy enough? right?

On your Android smartphone, just download the free app “Android-VNC-Viewer” and set the IP address to “127.0.0.1″ and port number 5901 to connect.

[Image: ap7KhBk.jpg]

And you should be able to get into your Ubuntu like this:

[Image: hKeQFsw.jpg]
You can also use desktop software like TightVNC Viewer and connect to your phone.

Do “ifconfig” to find out what your IP address is in your Android Ubuntu.

In this example, mine was connected to “192.168.1.131″.

Then connect to “192.168.1.131:5901″ on your TightVNC Viewer:

Problems?


Troubleshooting

Ubuntu not running?

Try typing “cp” under Android shell and if you get an error message, it means you need to install Busybox. Install this
nd try again.

Getting Following errors?
Err http://ports.ubuntu.com karmic/main Packages
404 Not Found
Err http://ports.ubuntu.com karmic/universe Packages
404 Not Found
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dis...ain/binary
-armel/Packages.gz 404 Not Found

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dis...niverse/bi
nary-armel/Packages.gz 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used
instead.

Try:
cat > /etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu/ karmic main universe

Then hit Ctrl+D twice and Enter.

This will update the Ubuntu sources.


I take no credit for this
I did state i take no credit for this
In fact I did not no that it is possible for me to have an installation of the Ubuntu Operating system on a android based smartphone. It has been a length post and i am so convinced that I will slowly go through it again now with the test smartphone that i own so that I can have it implemented. I am that person who keeps on trying new things out and I find it okay if i make this move. Thanks for the share buddy. It is one of the wonderful things I have come across ever since the new year began. Thanks a lot.
(Jan 10, 2016 05:32 AM)Snow32 Wrote:  You sure did after edited it
https://i.imgur.com/HA3eot4.png
https://i.imgur.com/GtwLJLe.png

I had to edit a few things


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Android] by blerthotelDec 19, 2013 05:03 PM 8 710 Dec 19, 2013 05:03 PM
Last Post: blerthotel
[Android] by The_J0k3rDec 3, 2013 03:07 PM 0 93 Dec 3, 2013 03:07 PM
Last Post: The_J0k3r
by escosk8rMar 24, 2013 10:57 AM 2 74 Mar 24, 2013 10:57 AM
Last Post: escosk8r