• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[DEV] Boot Ubuntu on your HTC Desire HD - WIP

Search This thread

Walker Street

Senior Member
Nov 23, 2007
Here's where to find Maverick

...........It's good old Ubuntu 9.10 Karmic Koala. ............ Where's the rar file for Maverick 10.10.

I got Maverick working by following these instructions (for the Nexus One). There's no need to modify these instructions for our machine :)

The download (torrent and mirror) for the Ubuntu Image is
  • Like
Reactions: rag3loop and Dousan


Feb 10, 2011
Hey guys,

I've got ubuntu running flawlessly in terminal but have noticed something kooky in gnome. Regardless of permissions (ls -l or through the gui) every directory/file is read only.
Popping open a terminal IN gnome, however, lets me do whatever I should be able to.
Any ideas?

Another question: How was the initial img created? Something like rootstock? I'd be very interested in having a go myself.


Edit: Just thought of something worth noting, files can be downloaded and saved in arbitrary locations via firefox in gnome. Really curious as to why creating folders/documents isn't possible.
Last edited:


Senior Member
Jan 6, 2011
Dude think u should calm the **** down it was a simple question I downloaded roms that didn't take as long as this and my connection are **** hot no need on been an a hole bout it is there

Sent from my Desire HD using XDA Premium App


Inactive Recognized Developer
Sep 29, 2009
awesome, keep spamming the thread. flaming helps a lot as well. oh, and where i come from questions are usually marked with a question marke ("?") at the end, maybe try that next time.

please continue to let us know how fast your downloads are and how firm your morning dump was, cos we all are really really interested in the boring details of your life.


Senior Member
Jul 20, 2008
Wouldn't you be able to get a script in there for all the commands to load the gui.
it can't be that hard to just let them run automatically.

EDIT: Of course, before getting to the UI part i still had to get passed the sh ubuntu.sh command.. getting a error:
sh: Can't open ubuntu.sh
Suggestions ?
Last edited:


Senior Member
Nov 7, 2010
I've got an Inspire 4G (same as Desire HD basically) running the latest MIUI (2.3 GB) rom w/ Cattleprod's Kernel (modded CM7 Kernel). I can run the script successfully and everything but when trying to run "bootubuntu" I get all these errors about directories not found. I do not get any errors about loop devices however. I've looked in /dev/block/ for the available loop folders and I have a range from loop1 - loop7, so I modified my bootubuntu file for "loop8" and it still did not work, in fact I received a totally different error - something in regards to a statement expecting "then".

I'm at a loss as to why this isn't working for me. This supposedly works for CM7 so I figured having a kernel based on CM7 would work as well. Any help is much appreciated guys.



Senior Member
Nov 7, 2010
This is what I get:

# su
# cd /sdcard/ubuntu
cd /sdcard/ubuntu
# sh ubuntu.sh
sh ubuntu.sh
Type 'bootubuntu' to boot Ubuntu
# bootubuntu
in /proc/mountsd /dev/block/mmcblk0p25/system
: not found
losetup: not found
: not found
mount: not found
mount: not found
mount: not found
mount: not found
: not found
sysctl: not found
: directory nonexistentte /data/local/ubuntu
: directory nonexistentte /data/local/ubuntu
: directory nonexistentte /data/local/ubuntu
Brought to you by NexusOneHacks.net and the open source community!
Modified for the Desire HD By LeeDrOiD :D
: not found
chroot: not found
: not found
umount: not found
umount: not found
umount: not found
umount: not found
losetup: not found

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    Ububtu for you HTC Desire HD

    In June 2010, XDA zedomax got Ubuntu 9.04 running on Nexus One, tutorial is available at this thread:

    [email protected] then continued studying the tutorial and worked out a way to make Ubuntu 9.04 running better, smoother and cause less errors, here's hes post:

    Recently HTC_Linux team has released version 0.3 of their Ubuntu image, compare to the original guide provided by zedomax, the v0.3 release is based on the latest Ubuntu 10.10 and is a WIP, V0.4 is currently undergiong testing.

    What benefits will you get from running Ubuntu 10.10 on your DHD (at least):
    1. Fully functional Linux terminal, with all standard Linux command line utilities
    2. Fully functional desktop browser Firefox 3.6.13
    3. Ability to compile and run native Linux applications
    4. Bunch of graphical Internet and utility applications as shown in the screenshots

    As promised, here is a little guide to get Ubuntu Desktop running on you DHD, The image used is a WIP and has been built for use with the HTC HD2. the scripts, from the above threads modified by my self to work with the DHD

    Thanks to the great XDA-developers community.
    Thanks to Zedomax for providing the original tutorial of running Ubuntu on Nexus One.
    Thanks to HTC_Linux team for creating the optimised Ubuntu 10.10 image file.

    Basic requirements

    • A Rooted HTC Desire HD (Ace)
    • A MicroSD with minimum 3GB free space
    • A Custom kernel wit LoopBack support (I have attatched mine :) )
    • The Below Ubuntu.rar which contains ubuntu.img & the required scripts (modified by my self)
    • An android terminal emulator -from the market
    • Android VNC - from the market
    • If you're using Froyo App2SD, move all your applications which are on SD card back to Internal Storage and ensure FroYo A2SD install location is set to internal(1) by typing #"pm setInstallLocation 1" into your android terminal. If you fail to do so, you won't be able to enter Ubuntu.

    How to

    1. Extract the Ubuntu.rar that you have just downloaded to an "ubuntu" folder on the root of your SD card.
    2. Open your Android Terminal Emulator
    3. Type “cd sdcard/ubuntu” (enter)
    4. Type su to go to superuser mode
    3. Type “sh ubuntu.sh
    4. If you see “Type 'bootubuntu' to boot Ubuntu”, then you're almost there!
    5. Type “bootubuntu” (enter)
    6. You should now see “"[email protected]:/#"” Congratulations! Now you're running Ubuntu 10.10

    Whenever you want to enter Ubuntu again, simply cd to the ubuntu directory and type “bootubuntu” (enter) in your Android Terminal.

    To properly exit Ubuntu, you must type exit from the Ubuntu terminal.

    If your Android terminal application gets killed by Android system (i.e. you lost Ubuntu terminal), you need to go back to Android terminal, type “exit” (enter), that will properly unmount Ubuntu.

    Very often you can get “loop device busy” error when exiting from Ubuntu, in that case, type “exit” (enter) multiple times (it's harmless to run the“exit” script multiple times, don't worry). If still you get “loop device busy”error, don't worry, just ignore it.

    Loading the GUI :D (Gnome desktop)
    1. Install “android-vnc-viewer” from Market (free)
    2. Enter Ubuntu terminal
    3. Make sure that you have network connection (Wi-fi recommended)
    4. type “apt-get update” (enter), and wait till it finishes
    5. type “apt-get install tightvncserver” (enter) and answer “y” to the question
    6. After you have installed tightvncserver, type “cd /bin” (enter)
    7. Type the following commands (all are case-sensitive!):
    “cat > x” (enter)
    “rm -r -f /tmp” (enter)
    “mkdir /tmp” (enter)
    “chmod 777 /tmp” (enter)
    “export USER=root” (enter)
    “export XKL_XMODMAP_DISABLE=1” (enter)
    “vncserver -geometry 1024x800” (enter)
    (At this point you will need to configure "vol-" as Ctrl in Android terminal emulator preferences)
    (Now hold volume down and press D on your keypad)
    “chmod 777 x” (enter)
    8. The above procedure makes a script named “x”, whenever you want to start GUI, you need to type “x” (enter).
    Notice that the first time (only the first time) you run “x” script you'll be prompt to enter a password for VNC connection, then you'll be asked whether to create a “view-only” password, since it is not necessary, answer “n” to the question.
    9. Start “android-vnc-viewer”, create a new connection with the following settings:
    Nickname: (anything you like to identify the connection)
    Password: the VNC connection password that you created when ran the “x”script
    Address: localhost
    Port: 5901
    Color format: 24-bit color (4 bpp)
    Click “Connect” button, and in about a minute, you'll see your Ubuntu 10.10 desktop!
    10. We still need to create one final script called “s”, now go back to your Ubuntu terminal and type:
    “cd /bin” (enter)
    “cat > s” (enter)
    “export USER=root” (enter)
    “vncserver -kill :1” (enter)
    “vncserver -kill :2” (enter)
    “sudo reboot” (enter)
    “sudo halt” (enter)
    (press and hold Vol- & click “D” on keyboard)
    “chmod 777 s” (enter)
    11. If you have GUI running, you * MUST * type “s” (enter) to stop VNC server before you exit from Ubuntu terminal!
    In case that your Android kills your Android Terminal application and you still have VNC server running, do the following steps:
    a. Start Android Terminal
    b. type “bootubuntu” (enter) to bring back Ubuntu terminal
    c. type “s” (enter) to stop VNC server
    d. type “exit” (enter) to exit from Ubuntu terminal

    Fail to do so you will have problem with VNC connection next time you use it.
    What's not currently working in Ubuntu:
    1. Sound
    2. Some applications may not run (I guess, due to Android memory management mechanism)

    A little trick to access SD card from your Ubuntu:
    1. Install “SwiFTP” from Market (freeware)
    2. Set up FTP server using SwiFTP
    3. In Ubuntu, “Places → Connect to Server” then:
    Service type: FTP (with login)
    Server: localhost
    Port: (port number specified in SwiFTP, default is 2121)
    Folder: /
    User Name: (user name specified in SwiFTP)
    Then press “Connect” and enter your password specified in SwiFTP. Now feel free to access your phone's file system!

    This is a rough guide for the time being, I will hopefully continue work on this in the future (time permitting of course)

    ENJOY!! :D
    So much hard
    No easy way?

    Sent from my HTC Desire HD using Tapatalk 2
    What's it?
    Please say more about it.

    Sent from my HTC Desire HD using Tapatalk 2
    Il be playing with the honeycomb Rom next :D

    Sent from my LeeDrOiD loaded HTC Desire HD
    You have apps installed to the fat 32 partition as per FroYo A2SD.

    Go to settings - applications - manage applications - select the sd tab, and move them to internal ;)

    Sent from my LeeDrOiD loaded HTC Desire HD