Post Reply

Nandroid and Ubuntu 10.10 working off SD

OP imperiallight

7th April 2011, 03:11 AM   |  #1  
OP Senior Member
Thanks Meter: 29
 
262 posts
Join Date:Joined: Aug 2008
Donate to Me
Original thread (Thanks Martin Rhodes):
http://forum.xda-developers.com/showthread.php?t=962023 (Join up original file parts with 7zip)

Instructions

Here are direct links to complete .img file and .sh file to be placed into ubuntu folder on root of SD card (Thanks Infinimint)

http://infinimod.com/projects/fire31...oid/ubuntu.img
http://infinimod.com/projects/fire31...roid/ubuntu.sh

Ingredients
ubuntu.img + ubuntu.sh (to be placed in a new folder named ubuntu on the root of your SD card)
Better Terminal Emulator (or other terminal emulator) + AndroidVNC (or other VNC client) from the market

To automate one click startup process via Better Terminal Emulator:
Preferences>Initial command:

Code:
export PATH=/data/local/bin:$PATH:.
su
cd sdcard/ubuntu
sh ubuntu.sh
Or type this for each new session in any terminal emulator:

Code:
su
cd sdcard/ubuntu
sh ubuntu.sh
It says .img loading for a bit. Seems like its not doing anything...it wont confirm when its loaded (about a minute in reality)...

Then I left Terminal running in background while it said it was still loading the img (but don't let it close via task killer or otherwise), held down the hardware menu or home button to switch programs for a bit and connected in via VNC (AndroidVNC)...
address: localhost, port: 5900, and password: ubuntu ... then hit connect (login details will be saved for next time)...
its working fine software keyboard etc and at good speed. In menu options select 24bit colour, local mouse, 1:1 scaling and Touchpad only to make navigating menus much easier.

Normal phone and Android functions should be fine.

Included applications include Firefox, Thunderbird, Openoffice.org suite, GIMP Image Editor, Emacs Text Editor (geared towards programming), C and C++ build-essential, Java JDK, Python, TeXlive and TeXmaker LaTeX editor, Transmission BitTorrent Client, eVince PDF Viewer, File Manager, Terminal, Image Viewer, Leafpad Text Editor, Synaptic Package Manager and Ubuntu Software Center with all repositories enabled, SSH server, Gnash (GNU flash player for Firefox) among others.

Short press hardware menu key to get mouse options etc and longpress to bring up software keyboard (using Android VNC).

Type exit in android terminal emulator to shut down the ubuntu image.

I am using the Hyperdroid Rom off NAND, overclocked at 1.2ghz and a 16GB class 6 microsd (although it should be independent to all this... worth mentioning)


GIMP



Here is Open Office 3.2 on the HD2 using Smart Keyboard Pro from the market.

Edit 1. I Can use my bluetooth keyboard using this nandroid rom to edit open office etc

Edit 2. I can make full screen editing on my PC monitor/TV through connecting it via USB.


HD2 USB connected to a r3610 hanging behind a 42" HDTV connected through HDMI. Using my desktop keyboard and mouse. The Mouse scroll button and right click work just as they would on desktop!

Connect via usb to PC and enable usb debugging on your phone, needs android sdk installed on PC, then you run from pc command line

Code:
adb forward tcp:5900 tcp:5900
and you should be able to create a vnc conection from your pc (recommend TightVNC) to:

Code:
127.0.0.1:5900   or type   localhost:5900
and use password ubuntu displayed on your monitor or TV. Wireless solution.

In fact, you can use the same method to mirror the Android system using 'Droid VNC' server from the market.

Edit 3. Can also just connect straight to the device via VNC over WIFI but its slightly slower.
Type ifconfig into lxde terminal to find WIFI address, use your desktop VNC viewer (recommend TightVNC) and password ubuntu to log in.

Edit 4. Bluetooth mouse control with cursor now works as well (but its a bit jerky), works much better with 'Remote VNC Pro' from the market selecting use external mouse.

Edit 5. Can only seem to pair bluetooth mouse and keyboard input simultaneously using BlueInput.



Edit 6. To fit whole ubuntu display area onto HD2 screen (as above) or to otherwise change screen res via LXDE terminal:
Code:
export USER=root
vncserver -geometry 800x480
Restart AndroidVNC but connect to port 5901. You can automate this process by adding it to the end of the Better Terminal Emulator Initial Command script i.e
Code:
export PATH=/data/local/bin:$PATH:.
su
cd sdcard/ubuntu
sh ubuntu.sh
export USER=root
vncserver -geometry 800x480
Just remember to connect on port 5901 instead of 5900 using VNC subsequently.
Last edited by imperiallight; 11th April 2011 at 02:24 AM.
The Following 15 Users Say Thank You to imperiallight For This Useful Post: [ View ]
7th April 2011, 10:54 AM   |  #2  
Senior Member
Flag Hanoi
Thanks Meter: 26
 
291 posts
Join Date:Joined: Feb 2010
More
Sound Great!!!!!!!!!! Be partient \m/ Rock On!!!!!!
7th April 2011, 11:11 AM   |  #3  
motoi_bogdan's Avatar
Senior Member
Thanks Meter: 337
 
305 posts
Join Date:Joined: Sep 2007
Donate to Me
More
does usb host works?
7th April 2011, 11:24 AM   |  #4  
OP Senior Member
Thanks Meter: 29
 
262 posts
Join Date:Joined: Aug 2008
Donate to Me
I haven't got USB host cables etc. I am just using localhost VNC or a Java based screen mirroring app over USB.

Was alot of fun today adding effects to my photos using GIMP and creating a presentation and exporting it to PDF, all on the train! Its like a UMPC now.
Last edited by imperiallight; 9th April 2011 at 09:10 PM.
7th April 2011, 01:55 PM   |  #5  
motoi_bogdan's Avatar
Senior Member
Thanks Meter: 337
 
305 posts
Join Date:Joined: Sep 2007
Donate to Me
More
do you have sound? have you tried playing some video, or youtube? how's the performance in comparison with ubuntu v0.3 running from haret?

I made an usb hub for using since i've downloaded v0.3, will try this evening to see if it works with this build.
7th April 2011, 07:24 PM   |  #6  
OP Senior Member
Thanks Meter: 29
 
262 posts
Join Date:Joined: Aug 2008
Donate to Me
Sound is not possible in VNC chroots as of yet. The android YouTube or music player app is only a hardware click away though. Media is well served by android anyway IMO.

WIFI is shared with the android system but theres no cellular 3G connection (I wonder if a 3G unrestrictor application could work at some point though). Could use your 3G sim in a separate phone for MIFI/WIFI routering too.

Its never going to be preferable to a native port but its almost instant in responsiveness once apps have opened. It is very quick (on my device at least).
Last edited by imperiallight; 9th April 2011 at 05:41 PM.
9th April 2011, 06:09 AM   |  #7  
Member
Thanks Meter: 2
 
39 posts
Join Date:Joined: Feb 2011
how long to boot img?
i use android 2.2
cpu overclock 1.2
.....why doesn't it boot to VNC??
sry for my bad english
9th April 2011, 06:16 AM   |  #8  
Danation's Avatar
Senior Member
Thanks Meter: 172
 
165 posts
Join Date:Joined: Dec 2009
Well, I gave this a try. I guess I'm doing something wrong. It ran through all of the commands without any pause... (which seemed odd) ... and I couldn't connect through VNC. Any way to troubleshoot this?

Edit: Changed to TyphooN CyanogenMod 7 rom and it worked fine. Thanks for the link
Last edited by Danation; 9th April 2011 at 07:43 AM.
9th April 2011, 09:24 AM   |  #9  
Member
Thanks Meter: 2
 
39 posts
Join Date:Joined: Feb 2011
Quote:
Originally Posted by Danation

Well, I gave this a try. I guess I'm doing something wrong. It ran through all of the commands without any pause... (which seemed odd) ... and I couldn't connect through VNC. Any way to troubleshoot this?

Edit: Changed to TyphooN CyanogenMod 7 rom and it worked fine. Thanks for the link

i did id but when use moliza
can you use keyboard
Last edited by nomercy9691; 9th April 2011 at 09:40 AM.
9th April 2011, 01:00 PM   |  #10  
OP Senior Member
Thanks Meter: 29
 
262 posts
Join Date:Joined: Aug 2008
Donate to Me
Quote:

i did id but when use moliza
can you use keyboard

Longpress the hardware menu (windows) button to use your android software keyboard. Or use a bluetooth keyboard if your ROM supports it.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes