Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
kxhawkins
Old
(Last edited by kxhawkins; 7th May 2012 at 04:02 AM.)
#1  
kxhawkins's Avatar
Recognized Developer - OP
Thanks Meter 218
Posts: 341
Join Date: Dec 2010
Location: Little Rock

 
DONATE TO ME
Thumbs up Ubuntu for Vivid

Saw a thread a while back asking about the super-cool Ubuntu for Android on the Vivid. Unfortunately, we'll probably never see this for the Vivid, but we do have a comparable alternative...

Using the images from the Linux on Android Project we can run a virtual instance of Ubuntu and VNC into it.

This will probably work on any ROM, so long as you're rooted with busybox.

Before we start, install android-vnc-viewer and Android Terminal Emulator. Other VNC / Terminal apps will probably work, but the following instructions will be for these apps, specifically.

Okay, now...
  1. Make an "ubuntu" directory on your SD card (internal/external, doesn't matter. You'll need at least 3 gigs of space though). For the purpose of these instructions, I'll refer to it as /sdcard/ubuntu.
  2. Grab this script and unzip it as /sdcard/ubuntu/ubuntu.sh
  3. Then download either (or both, whatever) the full-sized, Gnome-based image, or the smaller, LXDE image. Unzip as /sdcard/ubuntu/ubuntu.img
  4. Open up Terminal Emulator, type "su" and hit enter. A superuser prompt will pop up (or that SuperSU thing, whatever you use). Accept/Agree/Whatever to allow root.
  5. Now you're at a root shell. Go to your ubuntu directory by typing "cd /sdcard/ubuntu" (/sdcard/ext_sd/ubuntu for external card) and pressing enter.
  6. Type "sh ubuntu.sh" and hit enter. This will start the launch script.
  7. When it asks for a screen resolution, type "960x540" (the resolution of the Vivid).
  8. A bunch of stuff will fill the terminal. When you see "root@localhost:/#", celebrate! You have Ubuntu running!

Now, unless you want CLI only... hit your home button (leave terminal running in the background) and launch android-vnc-viewer.

Enter whatever for the nickname, and the following settings:
Password: ubuntu
Address: localhost
Port: 5900
Color Format: 24-bit color (4 bpp)
Now click "Connect" in the top-left corner. Hopefully you'll see Ubuntu! Now add a bluetooth keyboard/mouse and an MHL, and proceed to rubbing it in your Apple-fanboy-friends faces.

When you're done, head back into Android Terminal Emulator and type "exit".

NOTES:
  • I don't take credit for any of this. This is 100% Zachary Powell et al @ the Linux on Android Project.
  • I really don't see how anyone could screw a phone up with this, but standard disclaimer applies. I'm not responsible for anything, anywhere, ever.
  • This post is kind of long, but this is really super easy. Good luck!
The Following 2 Users Say Thank You to kxhawkins For This Useful Post: [ Click to Expand ]
 
zombie.raised
Old
#2  
Senior Member
Thanks Meter 24
Posts: 307
Join Date: Jan 2008
Location: Toronto
The problem is this need this loop support in the kernel and none of the kernel people in this thread responded to my request for it.

Kernel stuff was not my cup of tea so never could get this running
HTC Raider (Bell)
Right now running Stock
 
kxhawkins
Old
#3  
kxhawkins's Avatar
Recognized Developer - OP
Thanks Meter 218
Posts: 341
Join Date: Dec 2010
Location: Little Rock

 
DONATE TO ME
Works perfect on Virtuous, which uses the Faux kernel. I don't know of any kernels that DON'T support loopback, which is why I said it should work on just about any ROM. Haven't tested on any others though.
 
Aus_Azn
Old
#4  
Aus_Azn's Avatar
Senior Member
Thanks Meter 107
Posts: 896
Join Date: Aug 2010
Did this aeons ago. It works flawlessly, but the GUI is mad slow. Works fine for command-line business, though.
Goodbye XDA, you won't be missed. Never have I seen a lousier Android community unwilling to take care of its devs.

Also, give me a refund for my XDA Premium app.
 
kxhawkins
Old
#5  
kxhawkins's Avatar
Recognized Developer - OP
Thanks Meter 218
Posts: 341
Join Date: Dec 2010
Location: Little Rock

 
DONATE TO ME
Cool story. It's been out for less than six months, but I guess that could be aeons. This is for people who haven't seen it.

Also, the GUI is extremely fast. With an MHL it's totally usable as a full computer. Did you try with LXDE?
 
Aus_Azn
Old
(Last edited by Aus_Azn; 7th May 2012 at 05:15 AM.)
#6  
Aus_Azn's Avatar
Senior Member
Thanks Meter 107
Posts: 896
Join Date: Aug 2010
Quote:
Originally Posted by kxhawkins View Post
Cool story. It's been out for less than six months, but I guess that could be aeons. This is for people who haven't seen it.

Also, the GUI is extremely fast. With an MHL it's totally usable as a full computer. Did you try with LXDE?
I just realized that we are not talking about the exact same thing.

This has existed for aeons (Feb 1 2011). Same theory and application, but based on Karmic 9.10 and very slow indeed.

Hmm, might have to give this one a try.
Goodbye XDA, you won't be missed. Never have I seen a lousier Android community unwilling to take care of its devs.

Also, give me a refund for my XDA Premium app.
 
kxhawkins
Old
#7  
kxhawkins's Avatar
Recognized Developer - OP
Thanks Meter 218
Posts: 341
Join Date: Dec 2010
Location: Little Rock

 
DONATE TO ME
Yea, ran that on my old X10. Bad hardware + bad implementation. This is 10.10, and they have a working beta for 12.10.

The LOA project really got it right. Especially running LXDE. Gnome is obviously slower.

IMO it's a good replacement for the official Ubuntu project.
 
Archector
Old
#8  
Junior Member
Thanks Meter 3
Posts: 26
Join Date: Mar 2012
It would be nice to install a custom arch linux or a debian netinstall with only the necessary things to work, fluxbox, xfce, lxde or some lightwheight desktop manager and see what happens. With the micro usb 2 hdmi cable and attached to a big screen it would be a real killer.

With some time I can prepare a custom debian or arch linux image to our devices.


Sent from my HTC PH39100 using Tapatalk 2
 
kxhawkins
Old
#9  
kxhawkins's Avatar
Recognized Developer - OP
Thanks Meter 218
Posts: 341
Join Date: Dec 2010
Location: Little Rock

 
DONATE TO ME
Quote:
Originally Posted by Archector View Post
It would be nice to install a custom arch linux or a debian netinstall with only the necessary things to work, fluxbox, xfce, lxde or some lightwheight desktop manager and see what happens. With the micro usb 2 hdmi cable and attached to a big screen it would be a real killer.

With some time I can prepare a custom debian or arch linux image to our devices.
The micro usb to hdmi is an MHL adapter. And yes, it makes it awesome.

LOA has a working debian image (http://sourceforge.net/projects/linu.../Debian/Image/) and are working on Arch.

A bare bones Arch installation with LXDE would be amazing, but alas, I have no spare time for side-projects anymore =(. I'm sure I wouldn't be the only one very appreciative if you could put it together.
 
Aus_Azn
Old
#10  
Aus_Azn's Avatar
Senior Member
Thanks Meter 107
Posts: 896
Join Date: Aug 2010
I'm personally thinking about doing a portable HDD installation of a completely barebones Ubuntu from CLI, and just dropping pure XFCE on it. I think I've just found my testing platform.
Goodbye XDA, you won't be missed. Never have I seen a lousier Android community unwilling to take care of its devs.

Also, give me a refund for my XDA Premium app.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more