[G2 and Desire Z Android Development] squarememory:
Ok , I know there is thread about debian running fine on desire z but the tutorial there is highly unfriendly and there are some other stuff you need to do to your desire z. This is my first guide. The reason for posting in dev thread is because chroot and loop requires specific kernel support to power Ubuntu.

Just to explain certain terms here...

Kernel - the interface for android to access hardware. Note that andorid is stripped down version of ubuntu and it does not have loopdevice support

Loopdevice - Imagine virtual disk mount program such as Daemon tools. This requires specifically supported kernels such

Following tutorial will void your warrenty (root and s off) but you can change to warrenty friendly state of course XD Check out xda wiki for more info( study to know what you are doing there.)

There are plenty of guides to get su and busybox( allows android system to be able to utilise more advanced commands) so check out comprehensive guides for g2 and desirez in this wiki below is my version

-------------------------------------------------------------------------

If your phone is stock, do a lot of research before doing root and s off. cyanogenmod has good guide on wiki for you to s off and get permanet root. Just for you to know, s off is to disable security for us to flash new kernel with loopback support and root is well... needed for most of hacks in XDA XD

*note for noobs: this is tested with desire z but G2 should not have problems. just be careful of which device's gfree you are using to s off.

ENGINEERING HBOOT IS NOT REQUIRED FOR THIS AND IS NOT RECOMMENDED FOR YOU TO DO SO AS IT MAY BRICK YOUR PHONE YOU SHOULD NOT HAVE PROBLEMS FLASHING CUSTOM ROM/KERNEL WITHOUT IT (guides are confusing if custom roms require flashing hboot)

Preparation:

1. busybox (install titanium backup and under problems? you can install busybox in a easy way)

2. Recommended: Clockwork recovery(rom manager in market)

3.Root and S off

4.Optional : remove or move sd card installed apps to internal memory or else LOOPDEVICE may be occupied and you may not be able to mount ubuntu. Do this if you encounter error (caused by app2 sd) please note that recent builds in xda mount loop device as 255 to avoid this problem.

You might want to use adb if necessary

5. android terminal from market

6. 2gb free space in sdcard (certain builds use 4gb as storage image, which is limit for fat32 system)

---------Kernel preparation ---------------------------------

Flashing necessary kernel

1. Download suitable kernel with loop device support. I am using cyanogen -> virtuous-kernel-cyanogen kernel from ://files.virtuousrom.com/vision/kernels/

(add http infront) on Stock HTC Sense Rom

2. To flash this, from rom manager, boot into clockworkmod recovery and select zip file to flash. Nandroid backup is recommended beforehand

-------------------------------------------------------------------

Now your phone has loopback support to chroot into UBUNTU or DEBIAN

Well, this method is not native ubuntu but it works fine.

You can now follow any guide on XDA like G1,nexus 1etc on running linux in android. I recommend nexus 1 hacks .com for ubuntu setup or thread "Debian for Desire" for debian setup (note debian seems to have problem with vnc) there are a lot of newbie frendly guides to do this without partitioning your sd card.

What can you do with them? You can use full android terminal , use vim , open office, gcc or eclipse etc ... makes your HTC Vision true small computer with keyboard . Enjoy

Possible solution to errors you encounter while following chroot tutorial for other android devices:

-----------------trouble shoot--------------------------------

Errors:

/device/loop is busy etc.... chroot: cannot execute /bin/bash etc... shutting down ubnutu etc....

Solution: 1. Get loopback support by flashing above kernel i mentioned

if not 2. TYPE SU BEFORE YOU RUN BOOTSCRIPT ON ANDROID TERMINAL

or if they say the bootscript is not found then type sh ./*your boot script name*

if not 3. move sd apps to phone as i mentioned eariler

Other errors could be from not installing busybox.

Note that in some cases, busybox is included inside the custom rom so you dont need to install it.

Post names of kernels with ability to run ubuntu for others to know.I did not test all of them.

This is my first guide on xda and i hope this helped xda in constructive way...

Post script: I will try my best to maintain quality of the posts to be up to xda standard. Thank you for constructive feedbacks...