FORUMS

[Guide] Ubuntu Lucid 10.04 Defy CHROOT port

1,131 posts
Thanks Meter: 292
 
By mihovil13, Senior Member on 21st July 2012, 10:27 PM
Post Reply Email Thread
Ubuntu Lucid 10.04 android-vnc Defy port

THIS DOESNT MODIFY, REPLACE OR CHANGE YOUR CURRENT ROM OR ANDROID OS. IT RUNS IN CHROOT USING VNC, LIKE A VIRTUAL MACHINE! SO IT CANNOT BRICK OR HARM YOUR DEVICE!

Quote:

Requirements :

Quote:

Installation guide
1. Download Ubuntu image from Downloads section
2. Extract Ubuntu 7-zip file contents to /sdcard/ubuntu
3. Download ubuntu.sh from attachments to /sdcard/ubuntu and replace the existing one
4. Start Terminal Emulator
5. Type in the following lines, each line is followed by enter (return) key, you'll need to run this only the first time :
su
cd /sdcard/ubuntu
sh ubuntu.sh
6. The Installation script starts and it creates necessary files and folders on internal memory, type in starttux
7. When the starttux command finishes, type in ui
8. Now you'll have to switch to android-vnc-viewer without closing Terminal Emulator (press home key to go to launcher and start vnc)
9. Setup VNC viewer :
password : 12345678
address : 127.0.0.1
port : 5901
color format : 24-bit color
10. Now press connect and Ubuntu GUI will start!
11. To exit Ubuntu GUI press menu while in vnc -> disconnect
12. Return to terminal emulator and type in killui
13. Type stoptux
14. Type exit
15. Type exit if Terminal is still opened, reboot device for proper unmount.

Video instalation guide :
http://www.youtube.com/watch?v=O9ercgiqwi0

Quote:

Screenshot gallery :






















Quote:

Notes :
  • Tested on Defy CM10 2007+ by Quarx and HTC HD2 CM9 4.0.4 HWA build
  • I recommend using touchpad as input in vnc viewer
  • 127.0.0.1 is known as localhost
  • If you have any errors post them here
  • The script can run without ubuntu.sh from downloads, but I recommend to replace it anyway
  • Credits : anantshri for image file
  • Soon I'll port Backtrack 5
  • Fell free to donate

The Following 16 Users Say Thank You to mihovil13 For This Useful Post: [ View ] Gift mihovil13 Ad-Free
21st July 2012, 10:34 PM |#2  
mihovil13's Avatar
OP Senior Member
Thanks Meter: 292
 
Donate to Me
More
F.A.Q
Q : Can this brick or harm my device?!

A : It simply can't cause it doesn't change anything inside your system!

Q : Is this a ROM or what?

A : THIS ISN'T A CUSTOM ROM! This is an image file that starts using Terminal and VNC (for gui), and it doesn't change or modify your system.
Just like a virtual machine.

Q : Can we use BT keyboard & mouse?

A : Yes.

Q : I've got problems with mouse/keyboard mapping, solution?

A : Open $HOME/.vnc/xstartup file with a text editor, and copy the text below :

Code:
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
#x-window-manager &
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
For noobs : "XKL_XMODMAP_DISABLE=1" fixes the mapping or wrong positioning the mouse.

Q : Can we use this for other devices than Defy?

A : The script supports ext4 module roms, so it should work on ICS (I've tested on Jelly Bean) and GB rooted devices.
To change the resolution (by default 850x480) type this into the terminal after starttux command :

Code:
vncserver -geometry 1280×800
1280x800 represents scren resolution, so if you use SGS3 e.g, use vncserver -geometry 1280x720

Q :Can this work on ARMv6?

A : I don't have an ARMv6 device, so I haven't tested it, I think that it may work pretty slow, but it should still work somehow.
So please, if anyone has ARMv6 based device, please test and report.
21st July 2012, 10:40 PM |#3  
espaciosalter20's Avatar
Senior Member
Flag Bogotá, Colombia, Colombia
Thanks Meter: 866
 
Donate to Me
More
why not 12.04????

Enviado desde mi MB525 usando Tapatalk 2
21st July 2012, 10:42 PM |#4  
mihovil13's Avatar
OP Senior Member
Thanks Meter: 292
 
Donate to Me
More
Both 11.04 and 12.04 aren't supported on our CPU or it would be slow (their image files are way to big for my sd card)

I've also tried this on HTC HD2 and it works.

Tommorow expect Backtrack 5.
The Following User Says Thank You to mihovil13 For This Useful Post: [ View ] Gift mihovil13 Ad-Free
21st July 2012, 10:47 PM |#5  
Hairo The Blue Mage's Avatar
Senior Member
Flag Moca
Thanks Meter: 118
 
More
Quote:
Originally Posted by mihovil13

Both 11.04 and 12.04 aren't supported on our CPU or it would be slow (their image files are way to big for my sd card)

I've also tried this on HTC HD2 and it works.

Tommorow expect Backtrack 5.

Pre-Installed 11.10 and 12.04 OMAP3/OMAP4 images...
https://wiki.ubuntu.com/ARM/OMAP
The Following User Says Thank You to Hairo The Blue Mage For This Useful Post: [ View ] Gift Hairo The Blue Mage Ad-Free
21st July 2012, 10:51 PM |#6  
mihovil13's Avatar
OP Senior Member
Thanks Meter: 292
 
Donate to Me
More
Thanks for the link, I'll try in cca 12h.
Also tommorow (in my time) I'll post a port of BT5 (I hope that this script could get it work)
21st July 2012, 11:53 PM |#7  
Senior Member
Thanks Meter: 32
 
More
Can wie use phone?

Sent from my MB526 using xda app-developers app
22nd July 2012, 12:36 AM |#8  
mihovil13's Avatar
OP Senior Member
Thanks Meter: 292
 
Donate to Me
More
What phone?

Swyped off my Defy using Jelly Bean
22nd July 2012, 12:37 AM |#9  
Senior Member
Flag Surat, Gujarat
Thanks Meter: 184
 
More
Defy development is on fire these days....gonna try this in 10 days when I go home...!!!!!

Sent from my MB526 using xda app-developers app
The Following User Says Thank You to bharaththeunique For This Useful Post: [ View ] Gift bharaththeunique Ad-Free
22nd July 2012, 10:58 AM |#10  
Member
Thanks Meter: 4
 
More
Can I install and play linux games?
Is it possible to connect Bluetooth mouse and keyword?

Sent from my MB525 using xda app-developers app
22nd July 2012, 11:22 AM |#11  
mihovil13's Avatar
OP Senior Member
Thanks Meter: 292
 
Donate to Me
More
Yes it is, I use BT mouse and keyboard, games are already installed.
I'll edit FAQ now
Post Reply Subscribe to Thread

Tags
lucid, port, terminal, ubuntu, virtual

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes