Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,440 Members 49,239 Now Online
XDA Developers Android and Mobile Development Forum

[Guide] How to Install Ubuntu On Galaxy Nexus

Tip us?
 
fire & ice
Old
#1  
fire & ice's Avatar
Junior Member - OP
Thanks Meter 39
Posts: 20
Join Date: May 2012
Location: Los Angeles
Default [Guide] How to Install Ubuntu On Galaxy Nexus

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, 1254 views)
The Following 31 Users Say Thank You to fire & ice For This Useful Post: [ Click to Expand ]
 
Afwasmassi
Old
(Last edited by Afwasmassi; 25th June 2012 at 12:45 PM.)
#2  
Afwasmassi's Avatar
Senior Member
Thanks Meter 41
Posts: 235
Join Date: Dec 2011
Location: Amsterdam
This looks awesome, downloading atm and will test on Rascream/Trinity

Edit: Seems that trinity kernel doesnt support loop so it wont work.
Samsung Galaxy Nexus: GSM

ROM: CM11
Kernel: Trinity

Scrolling through XDA feelin' high?
Check out my first App, the one and only "HighMeter"! http://goo.gl/N3pwHB

Or do you want the best soundboard out there?
Check out my second App, the "Best Soundboard" http://goo.gl/T9qD3o
 
sert00
Old
#3  
sert00's Avatar
Senior Member
Thanks Meter 505
Posts: 1,082
Join Date: May 2011
Location: cesena,IT
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!
My current mobile devices:
Samsung galaxy nexus maguro version 16Gb
Asus transformer WiFi-only 16Gb
Asus nexus 7 WiFi-only 16Gb
My current system embedded boards in use:
Arduino UNO (x2)
Arduino Mega 2560 (ADK support with USBHost Shield)
My current ARM boards:
Raspberry Pi rev.B
Hardkernel odroid-U2 with Exynos4412 PRIME x2 and all optional addons
Hardkernel odroid-XU-E with Exynos5410 x1 and all optional addons
 
fire & ice
Old
#4  
fire & ice's Avatar
Junior Member - OP
Thanks Meter 39
Posts: 20
Join Date: May 2012
Location: Los Angeles
Quote:
Originally Posted by Afwasmassi View Post
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
 
rjmohit
Old
#5  
rjmohit's Avatar
Senior Member
Thanks Meter 47
Posts: 240
Join Date: Sep 2010

 
DONATE TO ME
Find much more here: androlinux.com
The Following User Says Thank You to rjmohit For This Useful Post: [ Click to Expand ]
 
fire & ice
Old
#6  
fire & ice's Avatar
Junior Member - OP
Thanks Meter 39
Posts: 20
Join Date: May 2012
Location: Los Angeles
Quote:
Originally Posted by rjmohit View Post
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: [ Click to Expand ]
 
Theshawty
Old
#7  
Theshawty's Avatar
Senior Member
Thanks Meter 4369
Posts: 15,047
Join Date: Feb 2011
*le bump-a to the top-a*
 
fire & ice
Old
#8  
fire & ice's Avatar
Junior Member - OP
Thanks Meter 39
Posts: 20
Join Date: May 2012
Location: Los Angeles
Quote:
Originally Posted by Theshawty View Post
*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
 
Theshawty
Old
#9  
Theshawty's Avatar
Senior Member
Thanks Meter 4369
Posts: 15,047
Join Date: Feb 2011
Quote:
Originally Posted by fire & ice View Post
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
 
mastergrifis
Old
#10  
Member
Thanks Meter 0
Posts: 60
Join Date: 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:	2542
Size:	25.0 KB
ID:	1259113  

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

Advanced Search
Display Modes