[Hero CDMA Android Development] Jus10o:
YOUR PHONE WILL STILL WORK DOING THIS.. ITS ALMOST LIKE RUNNING AN APP ON YOUR PHONE

I got most of my information from this site here.. I only rewrote it and shared to get it working on our cdma hero.

http://www.androidfanatic.com/component/fireboard/?func=view&id=1615&catid=9

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://xdaforums.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.

/sdcard/debian

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

Then it should work after this. When your phone boots back up you need to install this APK here. This is what will actually run the desktop "lxde" or whatever you choose to install after this.

*****View attachment 324100*****

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

Or put it on your sdcard and install it using Astro or any other app installing app

Then run the debian you just installed by doing this

adb shell
cd /sdcard/debian
sh bootdeb

Then you need to run this script only once.

It will look like this

localhost:/#

type

cd /scripts/
sh onetime.sh

When it ask for password. Just type "android"

Open the vnc app

Fill out the information like so...

connection: just dont touch

Nickname: can leave blank

Password: android

Address: LocalHost

Port: 5901

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

Then open up your vnc app and press connect.

To use icewm.. more simple looking desktop. Runs smoother

First you need icewm while running bootdeb

localhost:/# apt-get install icewm

Then to switch between ice and ldxe do this in terminal on your phone. This is actually easy do to using the trackball

localhost:/# nano /root/.vnc/xstartup

Scroll down to lxsession and delete it.. then type xterm

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.

View attachment 324109View attachment 324110