Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,714 Members 44,896 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] Ubuntu on Nexus S (natively)

Tip us?
(Last edited by stroughtonsmith; 10th January 2011 at 07:29 PM.)
stroughtonsmith's Avatar
Member - OP
Thanks Meter 219
Posts: 49
Join Date: Dec 2010
Location: Dublin

Angry [DEV] Ubuntu on Nexus S (natively)

Ok, so following on from the MeeGo thread, I have Ubuntu booting on the Nexus S using the same method and same kernel.

The Ubuntu image used is the HD2 Ubuntu image (v 0.3), loaded from a file on the internal memory (again, no flashing required - you can thank me later).

The touchscreen isn't yet working, but that's my kernel at fault. Will fix that with the MeeGo stuff.

If you want to try this yourself, first grab yourself a copy of Ubuntu for HD2, and take just the rootfs.ext2 file and drag it to your Nexus S (put it in a folder called 'ubuntu' - lowercase is important!).

Then use fastboot to boot the following image (or flash it to recovery partition if you're daring and know how dangerous that can be):

You will need to do one minor edit once the device is booted; you will see the screen output is very weird; ADB push the following file to /etc/X11/xorg.conf, and then reboot Ubuntu:

If you're in any way interested, please click the thanks button! Otherwise, enjoy!
Attached Thumbnails
Click image for larger version

Name:	DSC00581.jpg
Views:	11137
Size:	89.0 KB
ID:	485836  
The Following 43 Users Say Thank You to stroughtonsmith For This Useful Post: [ Click to Expand ]
AllGamer's Avatar
Retired Forum Moderator
Thanks Meter 1,578
Posts: 11,521
Join Date: May 2008
Location: buried under loads of work IRL


the next thing we'll need after getting the touch screen working
is to have a calling app daemon, and make sure internet works on both 3G and WiFi

Donation is appreciated but not required, a cup of Coffee would suffice

Samsung i9000m: on CM10
Samsung Nexus S: on JB 4.2.2
Samsung Galaxy S II SGH-T989: on CM10
Samsung Galaxy NOTE SGH-i717r: on CM10
Samsung Galaxy NOTE 3 SM-N900W8: stock 4.3
rikipy's Avatar
Thanks Meter 3
Posts: 65
Join Date: Jan 2011
Location: Luque, Paraguay
nice, look same at Ubuntu Netbook Edition
Senior Member
Thanks Meter 41
Posts: 121
Join Date: Jun 2010
What about Galaxy S?
stroughtonsmith's Avatar
Member - OP
Thanks Meter 219
Posts: 49
Join Date: Dec 2010
Location: Dublin

Originally Posted by Njcki View Post
What about Galaxy S?
In theory the same stuff should work; I don't have a Galaxy S to test on or I'd try it. I don't know anything about the Galaxy S' bootloader, or how much the kernel would differ (I'm guessing not at all, since this is a stock Samsung kernel from the Android kernel source)
MrNameless's Avatar
Senior Member
Thanks Meter 41
Posts: 414
Join Date: Jan 2010
Location: Italy
I did an article on my site

Maybe some italian devs, will help you
Follow Me on Twitter

If you like my hard work and the time it takes me, please consider buying me a coffee!

AndroidITA .com
<--- My site About Android

Ex Maintainer of GingerS ROM for Nexus S
Senior Member
Thanks Meter 7
Posts: 179
Join Date: Jan 2010
Location: Bromsgrove, UK
Thanks for this, gonna have a play now

Why is it dangerous to flash the boot image to recovery? Isn't fastboot lower level than recovery, or have I got that wrong?
Senior Member
Thanks Meter 25
Posts: 263
Join Date: Mar 2009
nice, thanks. trying this as soon as my wife gets off my phone.
Thanks Meter 0
Posts: 92
Join Date: Oct 2009
Oh my god.. You are awesome good sir. Will give it a run when touch is up and running!
Main Phone:Nexus S
Rom: Still Awaiting your arrival
Theme: I'd Kill for one
Kernel: Stock
RinTinTigger's Avatar
Senior Member
Thanks Meter 24
Posts: 610
Join Date: Nov 2009
I'd love it to be run from Android....i dont want it natively, just to test it...booting for example from an android app

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes