CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

Install debian and use lxde or Icewm.. supports others

1,431 posts
Thanks Meter: 5
By Jus10o, Senior Member on 10th May 2010, 12:21 PM
Post Reply Subscribe to Thread Email Thread
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

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.

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
mkdir /data/local/mnt

Next you need to install the debian.

cd /sdcard/debian
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.


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



cd /scripts/
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.


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...
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.

Click image for larger version

Name:	snap20100510_041221.jpg
Views:	748
Size:	17.1 KB
ID:	324109Click image for larger version

Name:	snap20100510_050701.png
Views:	677
Size:	8.6 KB
ID:	324110
Last edited by Jus10o; 27th May 2010 at 01:25 PM.
10th May 2010, 03:54 PM |#2  
Thanks Meter: 2
omfg thank you so much. I'll try this as soon as I get home <33333
edit: I assume this fixes the permission errors I was getting on the thread I created about running the full de on the hero.
10th May 2010, 04:06 PM |#3  
Vrekk's Avatar
Senior Member
Flag Centennial
Thanks Meter: 24
Donate to Me
Thanks dude, thats awesome! I will have to take a look at it when I get home as well
10th May 2010, 04:24 PM |#4  
ARoiD's Avatar
Senior Member
Thanks Meter: 2
Thumbs up Linux Rules!
good one jus debian on a hero classic
Last edited by ARoiD; 10th May 2010 at 04:31 PM.
10th May 2010, 05:14 PM |#5  
snip3rm00n's Avatar
Junior Member
Flag Seattle, WA
Thanks Meter: 0
Jus FTW! Now I wonder if we can start doing the same for other linux distros.
10th May 2010, 05:16 PM |#6  
Senior Member
Thanks Meter: 1
Re: Install debian and use lxde
This is pretty geek-chic, I love it.
10th May 2010, 05:20 PM |#7  
snip3rm00n's Avatar
Junior Member
Flag Seattle, WA
Thanks Meter: 0
Actually, I do have a question about it. Anyway to boot and use Deb without VNC?
10th May 2010, 05:23 PM |#8  
mkhopper's Avatar
Senior Member
Thanks Meter: 12
It sounds like it's an ARM compiled, headless Debian install running in the background, which is why you need VNC to access it, correct?

Is it network aware? How fast is it?
10th May 2010, 05:41 PM |#9  
chalan30's Avatar
Senior Member
Thanks Meter: 216
no way...RAD!!!
10th May 2010, 06:07 PM |#10  
beerock's Avatar
Senior Member
Thanks Meter: 2
I have tried to install following instructions using terminal on he phone......seems like I get through the ok then after reboot try to run the bootdeb and it says not found.? also I get the vnc fails when trying to connect?

I am sure i am doing something wrong but not sure what.

any suggestions?

I forgot to say THANKS Jus!
Last edited by beerock; 10th May 2010 at 06:09 PM. Reason: ocd
10th May 2010, 06:12 PM |#11  
Senior Member
Flag Kansas City Mo
Thanks Meter: 264
Donate to Me
i get "bootdeb not found" when i know i copied it over.. i'm going to try again.

alright, copied the files again the same thing. i'm interested in this! it's just something else i can do my iphone friends can't lol
Last edited by thedudejdog; 10th May 2010 at 06:22 PM.

Read More
Post Reply Subscribe to Thread

cdma, debian, hero, install, vncserver
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes