Jump to content

[LINUX] - HOW TO: Ubuntu on Android


Guest pat.plus

Recommended Posts

Guest pat.plus

Hello All,

I'm attempting to natively port Ubuntu and/or Debian to the Streak. With it being such a powerful device there really is no reason it SHOULDN'T be running a “desktop” operating system. However, implementing his is quite a difficult task, so if any and everyone's help would be very much appreciated.

In the mean time, this is my first guide on how to get ubuntu running piggyback on the Dell Streak. After quite a while (and numerous different trials), I have found that this is the easiest way to get Ubuntu Mobile up and running fast. All commands can be done through either ADB shell or the terminal emulator on the phone.

This was *NOT* done entirely by me, but is a culmination of the effort of lots of people in the android community. I just modified it so that it would work on the Streak.

**This Installation DOES NOT install Linux natively, and as such is should not be destructive to your Android system, however i take absolutely no responsibility for anything that happens and you do this COMPLETELY at your own risk**

Here is how to do it:

1) Root your phone. There are plenty of guides on how to do it, so find one and get root access on your phone.

**YOUR PHONE MUST BE ROOTED. THIS WILL NOT WORK WITHOUT IT.**

2) Download Ubuntu Mobile Bundle: http://uploading.com/files/bbm6b311/ubuntu.zip/

This contains an image of the filesystem as well as other necessary scripts to get it working.

2) Busybox - Install Titanium Backup from Android Market - if you press the "Problems" button it will install Busybox on your phone for you (Feel free to uninstall Titanium after this is done). This is the fastest and most pain free way to install busybox on the streak that i know of for now (the other ways of doing this ARE NOT fun...)

3) On your SD card's root directory, create a folder called ubuntu and extract all files in the ubuntu mobile bundle there.

4) Replace the bootubuntu executeable file in the ubuntu directory with mine, found here http://www.mediafire.com/?fi011w4fbmymw3y

5) Unmount phone from computer. ADB and Android Terminal will not work if the phone is mounted.

5) Download a terminal from the Android Market - I used Jack Palevich's Android Terminal Emulator (android market search: terminal) but anything similar should work the same

su

cd /sdcard/ubuntu

sh ubuntu.sh
6) Ignore any errors thrown up by ubuntu.sh. From this point, all that is needed to boot ubuntu is just to enter this:
bootubuntu
To start ubuntu from now on, this is all you need to do. You should now have ubuntu working on your laptop, and while it DOES connect to your phone's internet sources, it DOES NOT yet have a graphical interface. Here is how to add one: 1) Update the system with the following commands in ubuntu:
apt-get update

apt-get upgrade
The first one updates the package lists, the second one downloads updates to the system itself. 2) Install TightVNC in ubuntu:
apt-get install tightvncserver
3) Configure TightVNC:
export USER=root

vncserver -geometry 800x480
For security purposes, it is recommended that you assign a password to your VNC server when asked. 4) Download Android VNC Viewer from the market 5) Configure Android VNC Viewer: Change the port to 5901 and type in your password that you entered before. Other Problems There appears to be a bug with the X window server sometimes refusing to connect to VNC. DO NOT change any settings on Android VNC Viewer, instead open a terminal and run the folloring command:
rm -R /tmp/.X11-unix

What Does Not Work – Will Try To Fix

Keyboard from Android VNC Viewer

Shutdown – Does Nothing

Reboot

Log Out

Native Install

I hope you guys enjoy this, and I can't wait to get your feedback.

- Pat

post-852357-1299663756_thumb.png

post-852357-1299663765_thumb.png

post-852357-1299663775_thumb.png

post-852357-1299663784_thumb.png

post-852357-1299663797_thumb.png

post-852357-1299663819_thumb.png

Link to comment
Share on other sites

Guest fards

nice work PatPlus!

If I can grab the files I'll mirror it as the uploading link doesn't work for me..

some more info, as this is still a vnc, its not as fast as a native install yet, but does have the benefit of having all the native android functions in place.

So incoming calls work at least.

Link to comment
Share on other sites

Guest ClippinWings

I see that keyboard from VNC "does not work"

So is there no keyboard at all? or is there an alternative that does work?

I'm a big Ubuntu fan, so I might give this a go... but obviously a keyboard is pretty important.

Edited by ClippinWings
Link to comment
Share on other sites

Guest anthscorner
download finished im trying it now!

i'll keep you updated

Hi,

Do you have an account with FileFactory. I'm trying the basic download and it stated they're are too many sessions open?

Tried a few time this afternoon.

Thanks,

Anthony.

Link to comment
Share on other sites

Guest LinusR
Hi,

Do you have an account with FileFactory. I'm trying the basic download and it stated they're are too many sessions open?

Tried a few time this afternoon.

Thanks,

Anthony.

No, just worked fine for me.

Link to comment
Share on other sites

Guest gidigidi

Can we have a working mouse on this one?

Thanx a lot!

PS. I sued to have ubuntu on HTC HD2 but the extra screen real estate on the Streak should make it much much better!

PS2. Thank you Pat!

Link to comment
Share on other sites

Guest anthscorner

Hi,

Not having much joy, as far as I can tell none of the ubuntu.sh worked;

error on modprobe

error on all em

Error on modified

Error on chmod

I am running perfmod on 1.8.1, not sure if perfmod is the issue?

Cheers,

Anthony.

Link to comment
Share on other sites

Guest fards
Hi,

Not having much joy, as far as I can tell none of the ubuntu.sh worked;

error on modprobe

error on all em

Error on modified

Error on chmod

I am running perfmod on 1.8.1, not sure if perfmod is the issue?

Cheers,

Anthony.

install busybox..

the errors are because steve links those files to toolbox

installing busybox will overwrite the symlinks

Link to comment
Share on other sites

Guest gingernator

It's great but the keyboard input maps to incorrect keys in ubuntu, even if you send text via the androidvncviewer menu option...any ideas?

Link to comment
Share on other sites

Guest XsCode

After a little research, we are going to have problems getting Ubuntu native due to the lack of bootloaders

Grub - Needs some sort of firmware which isn't available on ARM

Lilo - x86 only

Redboot - Hardware not supported

There are some other bootloaders, but I've not had time to look at them yet.

Link to comment
Share on other sites

Guest anthscorner
install busybox..

the errors are because steve links those files to toolbox

installing busybox will overwrite the symlinks

Thanks but I've tried that, both through tb and direct from the market.

Busybox definately has superuser rights, just checked.

ta, Anthony.

Edited by anthscorner
Link to comment
Share on other sites

Guest pat.plus
After a little research, we are going to have problems getting Ubuntu native due to the lack of bootloaders

Grub - Needs some sort of firmware which isn't available on ARM

Lilo - x86 only

Redboot - Hardware not supported

There are some other bootloaders, but I've not had time to look at them yet.

I've been talking with some of the debian arm people to try and find out how to get something working. Manual support would have to be added to the kernel for most of the chips in the streak though.

Thanks for trying this everyone. If anyone can get a keyboard working please share how you did it, and in the mean time I am going to try and work on bring other linux distros on to the streak :(

- pat

Link to comment
Share on other sites

Guest gingernator

Just an update on how I'm getting on with this...I found a thread on xda for the Desire HD that describes getting 10.10 working on android which works really well on the Streak. The keyboard issue has gone and it's very useable...check it out.

http://forum.xda-developers.com/showthread.php?t=963385

P.S. The resolution I use is 800x600 because there is no horizontal scrolling needed and it's better supported throughout the OS (dialog boxes etc)

Edited by gingernator
Link to comment
Share on other sites

Guest Djp42
Just an update on how I'm getting on with this...I found a thread on xda for the Desire HD that describes getting 10.10 working on android which works really well on the Streak. The keyboard issue has gone and it's very useable...check it out.

http://forum.xda-developers.com/showthread.php?t=963385

P.S. The resolution I use is 800x600 because there is no horizontal scrolling needed and it's better supported throughout the OS (dialog boxes etc)

@Pat.plus---Would your modified bootubuntu executeable file work with the 10,10 Ubuntu torrent on this XDA thread?

Edited by Djp42
Link to comment
Share on other sites

Guest TimoBeil

Hi,

same here, but I'm wondering why the xda-thread was more than 2 weeks old (20th Feb.) with no reply/response/feedback

edit: I've tried it; it works very fine!

Edited by TimoBeil
Link to comment
Share on other sites

Guest Hothan Dao
Just an update on how I'm getting on with this...I found a thread on xda for the Desire HD that describes getting 10.10 working on android which works really well on the Streak. The keyboard issue has gone and it's very useable...check it out.

http://forum.xda-developers.com/showthread.php?t=963385

P.S. The resolution I use is 800x600 because there is no horizontal scrolling needed and it's better supported throughout the OS (dialog boxes etc)

I have followed both two methods, pat's one and your one, but the keyboard problem still persists. Have any solution?

Link to comment
Share on other sites

Guest drelle

This is awesome... though I can't make it work on my Streak.

Are you all on DJ Steves newest rom? I have a rooted 2.2 on official firmware (version 318).

I have read somewhere from my searching through google that this may due to the missing loop possibilities. Anyway, just wanted to hear from you that have a working Ubuntu which rom you are having?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.