I got most of my information from this site here.. I only rewrote it and shared to get it working on our cdma hero.
I also use files from different sources and combined them to work with our phone.
As of right now this method seems to only work with DarchDroid aosp rom. Not any htc sense roms.
Also make a ext partition and dont use apps2sd, darchdroid is set by default not to use it, only if enabled in spare parts app
If you want to try and get both debian and apps2sd to work.. Try this guide here http://forum.xda-developers.com/showthread.php?t=509943.
First download is the files you will need OTHER then the debian.img
The main files
This one will be a big download. It contains the most important part.
The debian.img from here
Once download, open it up and only take the "debian.img" out of it.
This will put a 1.4gb file on your sdcard used for running debian not including the other files it uses to install and run it (they are very small). If you have a small sdcard and want the image smaller or want to enlarge the .img for more room. Use this tutorial here.
TO CHANGE FILE SIZE OF debian.img
Im going to be using adb on the computer. Much easy then typing commands into the phone terminal.
Put the all the files into a folder on your sdcard named debian.
First downloaded files and the debian.img from the 2nd download.
Next you will need to make the directory it uses. For some reason its not creating it on the install
adb shell su mkdir /data/local/mnt
Next you need to install the debian.
cd /sdcard/debian sh installer.sh reboot
To install put it in your android-sdk/tools folder.. where ever it may be installed and type...
adb remount adb push vnc.apk /system/app
Then run the debian you just installed by doing this
adb shell cd /sdcard/debian sh bootdeb
It will look like this
cd /scripts/ sh onetime.sh
Open the vnc app
Fill out the information like so...
connection: just dont touch
Nickname: can leave blank
Color: I used 24-bit, you can pick whatever you want. Its changeable from within the running desktop
Then click on Connect at the top. And everything should work.
TO USE TOUCH SCREEN.. DO THIS
click our menu button on our phone.
then click "Scaling" and select 1.1..
Then push the trackball 1 time and touch screen mouse will work
To run without using your computer. Download a terminal from the market and type this...
su cd /sdcard/debian sh bootdeb
To use icewm.. more simple looking desktop. Runs smoother
First you need icewm while running bootdeb
localhost:/# apt-get install icewm
localhost:/# nano /root/.vnc/xstartup
Save changes by pressing track ball once and the letter o. Then press enter. Exit out by pressing the track ball once again and type the letter x.
Then connect using VNC.apk and it will load the new desktop.
Delete xterm and type lxsession to change back.