Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Guide] How to Install Ubuntu On Galaxy Nexus

OP fire & ice

25th June 2012, 03:10 AM   |  #1  
fire & ice's Avatar
OP Junior Member
Flag Los Angeles
Thanks Meter: 39
 
20 posts
Join Date:Joined: May 2012
More
First before I start. I just wanted to say that this is not my work. This is simply a guide
to assist other galaxy nexus users who would like to run ubuntu but don't have an understanding
on what they should be doing precisely. The original thread called "linux on android" will be
posted at the bottom of the thread for those wanting to thank the original author. I couldn't
find a guide specific to our device hence the creation of this one. If this has not been posted
in the correct area, moderators please feel free to move it to the correct subforum.



Here is the part where I say, I'm not responsible for anything that happens to your phone. You do
this at your own discretion. This is something to tinker with for anyone who likes to mess with
their phone and show off a little bit.
Also be sure to follow my instructions exactly how I write them to avoid any unnecessary confusion.



As a base, I am using AOKP B39 and franco kernel Nightly 192.
If you have terminal emulator or androidVNC currently installed please clear app data and uninstall.
This of course is to be extra careful.

First things first: You want to have root and a kernel installed that has loop device support.
Like I've mentioned already, I am using Franco Nightly 192 and it is working perfectly fine
therefore I see no reason why it should not work for you. Best results in my opinion will come from using my
ROM base and kernel.

Next here are links to the following files you need. These files are quite big and there are 3
different kinds. The difference between each kind is explained on the page. Remember to keep in
mind how much space you must have on your phone before downloading a file. You don't want to waste
your time downloading the full image if you don't have the space to install it.

Here is the link to the full/small/core images. Download the version of ubuntu you wish to run on
your phone and make sure it is the latest which as of today is dated June 8th 2012.

Remember that the "core" version is for experienced ubuntu users only as it has no GUI. only
command line.

http://sourceforge.net/projects/linu.../Ubuntu/12.04/


Once you have downloaded the image you wish to run. You may extract the img file from the zip file
using 7zip or winrar. Both work perfectly fine. You will notice that once you extract the file
there is a ubuntu.img and an ubuntu.img.md5
The md5 file is a checksum file, if you wish to validate the integrity of the file you just downloaded
go ahead and use a program such as cygwin to compare the md5 hashes.

Moving on, once you have extracted the ubuntu.img file. Move the file onto your galaxy nexus
internal memory to the root of your sdcard inside a folder named "ubuntu".
If you have done this correctly your directory should be as follows. /sdcard/ubuntu

Next you want to download the bootscript which I will attach at the bottom of this thread. Extract the ubuntu.sh file from the zip i posted below.
Once you have downloaded the ubuntu.sh file I have attached. You need to place that file in
the same /sdcard/ubuntu directory where your unbuntu.img file is located.


To confirm you are on the right track you need to install terminal emulator from the
google play store as well as install androidVNC. Once you have both apps freshly
installed you can go ahead and open up terminal emulator, grant it superuser permission
and then type the following:

su

(followed by the enter key) you should see the $ turn into a # symbol.

Next you type:

cd /sdcard/ubuntu

(again followed by the enter key) now your directory should be changed to the /sdcard/ubuntu folder

Next command:

ls

(once more followed by the enter key) This should list all files currently in the folder if you
see ubuntu.img as well as ubuntu.sh listed then you are right where you need to be.

Once you have confirmed that both files are listed we can go ahead and start the process of starting
up ubuntu. In terminal emulator type the following:

sh ubuntu.sh (all commands are followed by enter key by the way)

Terminal emulator should start the launch sequence then ask you if you want to start VNC server.

Type "y" then hit enter. Type "y" without quotations of course.
Next it will ask you if you want to start the ssh server. Again type "y".



Next it will ask you for the screen size you wish to use. You can choose whatever resolution you
wish to use. I like to use the nexus native resolution which is 1280x720.
Therefore I type "1280x720" and press enter.




Next it will ask you if you would like to save your settings type "y".


Finally your terminal should say "root@localhost:/#"



Now you are ready to start up androidvnc. Press the home button and DO NOT EXIT terminal emulator.

Once you open up android VNC enter the following information:

nickname: ubuntu
password: ubuntu
address: localhost
port: 5900


Check off the keep password option then scroll down to the botton of that page where it says
Color Format and change it to 24-bit color (4bpp)


Then press connect and voila whatever ubuntu version you downloaded should start up. The mouse should basically be used as if the screen was a track pad.


Exiting ubuntu is also easy. Just hit the settings button and a prompt should pop up with an option that says disconnect. Simpy disconnect then switch over to terminal emulator which should still be running and type:

exit

Wait around 30 seconds and it should say It shut off correctly. Type exit once more and It will close the directory you were in. One more exit and terminal emulator will close itself.

The next time you want to load up ubuntu just open up terminal emulator follow the first 2 steps and once you load up ubuntu.sh your config file should be loaded and you will be able to skip all the tedious settings. Then go over to androidVNC and your settings should also be saved. All you do is hit connect and you should be good to go.

Good luck and hope you all enjoy it. I'll post pictures of the steps that I think will be helpful. Also if this helped you out. Hit the thanks button please.

Also don't forget to checkout the original thread for further information and details.

http://forum.xda-developers.com/show....php?t=1585009
Attached Files
File Type: rar ubuntu.rar - [Click for QR Code] (1.8 KB, 1279 views)
The Following 31 Users Say Thank You to fire & ice For This Useful Post: [ View ]
25th June 2012, 01:14 PM   |  #2  
Afwasmassi's Avatar
Senior Member
Flag Amsterdam
Thanks Meter: 47
 
240 posts
Join Date:Joined: Dec 2011
More
This looks awesome, downloading atm and will test on Rascream/Trinity

Edit: Seems that trinity kernel doesnt support loop so it wont work.
Last edited by Afwasmassi; 25th June 2012 at 01:45 PM.
25th June 2012, 07:23 PM   |  #3  
sert00's Avatar
Senior Member
Flag cesena,IT
Thanks Meter: 505
 
1,082 posts
Join Date:Joined: May 2011
More
in april i buyed the paid version of this app (ubuntu,because months ago backtrack and debian wasn't released i think)but never ever tried due to many probems\errors on vnc.thank you very much for this guide,now i'm downloading the 12.04 full and retry with yours tutorial.appreciated man!
25th June 2012, 09:23 PM   |  #4  
fire & ice's Avatar
OP Junior Member
Flag Los Angeles
Thanks Meter: 39
 
20 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by Afwasmassi

This looks awesome, downloading atm and will test on Rascream/Trinity

Edit: Seems that trinity kernel doesnt support loop so it wont work.

Try flashing a different kernel such as Franco's kernel to make sure it is indeed the kernel and not the rom.

Sent from my Galaxy Nexus using xda premium
26th June 2012, 08:07 AM   |  #5  
rjmohit's Avatar
Senior Member
Thanks Meter: 50
 
253 posts
Join Date:Joined: Sep 2010
Donate to Me
Find much more here: androlinux.com
The Following User Says Thank You to rjmohit For This Useful Post: [ View ]
26th June 2012, 08:38 AM   |  #6  
fire & ice's Avatar
OP Junior Member
Flag Los Angeles
Thanks Meter: 39
 
20 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by rjmohit

Find much more here: androlinux.com

That is a universal guide. I made this thread specifically for the galaxy nexus. Please do not post links as that can confuse other users on what they should be doing. Thank you.

Sent from my Galaxy Nexus using xda premium
The Following 4 Users Say Thank You to fire & ice For This Useful Post: [ View ]
13th July 2012, 10:18 PM   |  #7  
Theshawty's Avatar
Senior Member
Thanks Meter: 4,697
 
1010
16,020 posts
Join Date:Joined: Feb 2011
More
*le bump-a to the top-a*
15th July 2012, 04:15 AM   |  #8  
fire & ice's Avatar
OP Junior Member
Flag Los Angeles
Thanks Meter: 39
 
20 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by Theshawty

*le bump-a to the top-a*

Lol you didn't have to bump it. Just for people who are searching for a guide.

Sent from my Galaxy Nexus using xda premium
15th July 2012, 08:29 PM   |  #9  
Theshawty's Avatar
Senior Member
Thanks Meter: 4,697
 
1010
16,020 posts
Join Date:Joined: Feb 2011
More
Quote:
Originally Posted by fire & ice

Lol you didn't have to bump it. Just for people who are searching for a guide.

Sent from my Galaxy Nexus using xda premium

Considering how people don't use the search button here, I thought I had to bump it

Sent from my Galaxy Nexus using Tapatalk 2
13th August 2012, 08:56 PM   |  #10  
Member
Thanks Meter: 0
 
60 posts
Join Date:Joined: Mar 2011
Thanks for the guide. I did exactly what you said, but I got this error:

http://dl.xda-developers.com/attachd...3-20-51-35.jpg

That's probably connected to the kernel's loop device. I tried first with the one included in the rom (liquid beta1 JB), then I flashed the last release of Franco (r241) but got the same error. Am I missing something?
Thanks for your help
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2012-08-13-20-51-35.jpg
Views:	2544
Size:	25.0 KB
ID:	1259113  

Post Reply Subscribe to Thread

Tags
galaxy nexus ubuntu
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes