yashsingh1/xdaforums huggingface dataset:
[HTC Desire S] devwithzachary:
Thank you, at least I have error messages to work from now :) it seems to be that it just isn't mounting the image right
[HTC Desire S] kylon:
I think zact enabled all messages.

In the previous script the errors was hidden

Anyway,i m thinking,maybe you need to change the path of the file on the script.maybe other phones have a different path.

Or

You are using the wrong rom
[HTC Desire S] devwithzachary:
Indeed but I don't see how the paths could be different on the same phone, unless its different between roms
[HTC Desire S] gordo79:
Errors and screen shots are while using using cm7, but was getting the same on oxygen
[HTC Desire S] kylon:
Huh,i read that he has an other phone... :o

Anyway,if he has our phone,he need the first cyanogenmod for ds,the unofficial v 1.0.2 or something like that.

If it doesn t exist,because it was deleted i ll upload it

I tried other rom but they can t boot ubuntu,i don t know why(also official cyano!!!)
[HTC Desire S] gordo79:
Running this version of cm7
[HTC Desire S] kylon:
I don t remenber the sw number,i ll check it.anyway where did you downloaded it?
[HTC Desire S] gordo79:
This thread http://xdaforums.com/showthread.php?t=1297575
[HTC Desire S] kylon:
Mmm.i downloaded it 3 months ago

This has the date in 19 oct 2011
[HTC Desire S] gordo79:
Quick question how come when trying to mount /data/local/mnt/external_sd on data/local/mnt/external_sd it says failed no such file or directory when the directory is there?
[HTC Desire S] kylon:
We have /sdcard

Other devices have external_sdcard

It s all ok
[HTC Desire S] devwithzachary:
Indeed the likes of tablets have this as the mount for the sdcard as they also have internal memory mounted where our sdcard is
[HTC Desire S] gordo79:
Been having a look with file explorer and it is not creating /dev/block/loop250 is it meant to?
[HTC Desire S] gordo79:
Got it running, had to extract the files on pc then move them to sd card and it worked
[HTC Desire S] devwithzachary:
Odd, so you just extracts the rar then moved the img file and boot script?
[HTC Desire S] gordo79:
Yep extracted the rar on the pc then copied the extracted files to the sd card, must have been something going wrong when extracting using file explorer on the sd card
[HTC Desire S] devwithzachary:
hmmm very odd, but good to know!
[HTC Desire S] devwithzachary:
Just to drag this back for a second, I would like to point out that I am looking for more testers on the Desire S with my new images and boot script see here: http://xdaforums.com/showthread.php?t=1467815
[HTC Desire S] kylon:
Interesting

Is there a speed up?

Tomorrow i ll try all this things
[HTC Desire S] devwithzachary:
A good amount has now changed yes, there is a 'light' image which makes everything alot faster in my view. Plus you can set screen size on boot, and in the large image you can switch between LXDE and Gnome
[HTC Desire S] kylon:
i installed the large image

maybe it is my sdcard,but this ubuntu is laggy(too heavy??)

can you add some tweaks,so ubuntu will use less cpu

and uninstall some apps

is this image updated?

anyway the installer script is perfect now:D

i love it
[HTC Desire S] devwithzachary:
Give the light image a try should be faster as a lot less installed
[HTC Desire S] amskhan1:
So how does this work?

is it like a dual boot of ubuntu and android? or is it once u switch your stuuck?

can you post this to my phone?

lg optimus s
[HTC Desire S] devwithzachary:
check the main forum thread for the answer!
[HTC Desire S] poppy8x:
Not run with android 2.3.5 sense 3.0 ver 0.7 new hboot :(
[HTC Desire S] kylon:
Buy. Boot manager
[HTC Desire S] poppy8x:
bought.

But nothing :(

# sh ubuntu.sh

sh ubuntu.sh

modprobe: chdir(/lib/modules): No such file or directory

←[H←[Jrm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

mkdir failed for /data/local/mnt, File exists

←[H←[Jrm failed for -/system/bin/mountonly, No such file or directory

Unable to chmod bootubuntu: Operation not permitted

←[H←[J

Ubuntu Chroot Bootloader v0.1

Ubuntu Bootloader is now installed!

This process does NOT damage Android OS!

Original Installer by Charan Singh

Modified for Ubuntu Chroot by Max Lee at NexusOneHacks.net

To enter the Debian Linux console just type 'bootubuntu'

# bootubuntu

bootubuntu

ioctl LOOP_SET_FD failed: Device or resource busy

mount: No such file or directory

mount: No such file or directory

mount: No such file or directory

net.ipv4.ip_forward = 1

Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4

bootubuntu: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

bootubuntu: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

Setting localhost on /etc/hosts

bootubuntu: cannot create /data/local/mnt/etc/hosts: directory nonexistent

READY TO ROCK AND ROLL BABY!

Brought to you by NexusOneHacks.net and the open source community!

chroot: can't execute '/bin/bash': No such file or directory

Shutting down Ubuntu

failed.

failed.

failed.

failed.​
[HTC Desire S] devwithzachary:
I Shall include screen shoots shortly in the second post!

What is the keyboard issue? and once tightvnc is set up within ubuntu you will not need to worry about it again all you have to do to connect is run the bootubuntu command and then open your vncviewer

Interesting as im using it with the CM7 kernel just not the same ROM, i guess its something to do with the ROM as well, shall look into this!

Yes this is a typical error when the rom/kernel does not support loop devices, I shall try to work on maybe a installable patch that can be added to ROMs to give them support!
[HTC Desire S] kylon:
you need to install cyanogenmod on sd

i m running ubuntu from that

is there a way to install ubuntu completely,that hasn t need of a connection?

how can i fix the keyboard problem?
[HTC Desire S] devwithzachary:
Well you can run it within a sdcard ROM yes or if cyanogenmod is you main rom like me will work to.

To fix the keyboard problem see the first post, that is if it is a mapping problem eg when you press a key the wrong key is entered in ubuntu
[HTC Desire S] kylon:
i have cyanogen on sd,my phone rom is virtuous but it is incopatible

anyway i already applied your fix but it doesn t work,if i press "K" it write "@"

please help

and i have an other problem,ubuntu software centern doesn t want to boot

i need java jdk but i can t get it from apt :(:(

i found a "trick" for ubuntu

auto-start vnc every chroot

type

cat > front

then type

export USER=root

cd /

rm -r -f tmp

mkdir tmp

cd /

vncserver -geometry 1024x800

press Ctrl + D and you will see ^D ,then press enter and type

cat front /root/.bashrc > temp

mv temp /root/.bashrc

rm -rf temp front

now type

exit

bootubuntu
[HTC Desire S] devwithzachary:
hmmm this is very odd, did you install LXDE? and follow the guide word for word? as it worked for me, check you did not make any spelling mistakes when editing the xstartup file.

Yes i have noticed this to, the problem is that this image is a ARM port of ubuntu to work with our ARM CPU, im hoping in a nerversion of the ARM ports this is working, I shall see once I have incrased the image size and go the newer ubuntu running!

And great! I Shall add this into the guide, thank you very much
[HTC Desire S] kylon:
hey i read on google that ubuntu has an option to manually map the keyboard where can i find it??

i copied and pasted your text,so no errors,then ctrl+d,two times and enter

i did this 3 times with no results

i have lxde
[HTC Desire S] devwithzachary:
hmmm very odd, i shall try to look into this.

Yes in the mean time you can map the keys this should help

http://ubuntuforums.org/showthread.php?t=188761
[HTC Desire S] kylon:
did you see this?

http://www.ubuntu.com/testing/natty/alpha3

natty ubuntu

ubuntu for ARM devices,it s in beta stage,how do you think?

it is 11.04
[HTC Desire S] devwithzachary:
there is a wiki section for ARM support https://wiki.ubuntu.com/ARM once I have made the .img file larger I shall update it to a newer version Shall see how new i can go before it gets buggy
[HTC Desire S] kylon:
desire s is an high-end devices.should not have problems :D

maybe with some tweaks it will boot perfectly

anyway i have a problem with that guide

when i use gedit to modify the keyboard file i have this error:

Gtk-WARNING:**:cannot open display :confused:

EDIT:

i saw your screen

my desktop is different from yours

i have stock ubuntu desktop,like the pc version

and why is the desktop read only???
[HTC Desire S] devwithzachary:
AH well that would mean you are likely booting into the wrong vncserver connection, if you ran the vncserver stuff more than once it will have made lots of connections. try changing the port to 5902,5903 ect and see if any end up looking like mine
[HTC Desire S] kylon:
it says that the desktop is read only

other ports doesn t work
[HTC Desire S] devwithzachary:
Ok best just wipe vncserver and start with it again, run

killall Xtightvnc

I have a feeling its to do with starting VNC when you start ubuntu, it will create a new server and not start the old one, I am now building a new ubuntu image anyway with everything included and hopefuly a new version of ubuntu so for the time being hold on for that i think is best!
[HTC Desire S] kylon:
now i have the same desktop,and it is r/w

i don t understand why before i had stock ubuntu desktop

EDIT:

keyboard is working
[HTC Desire S] devwithzachary:
great to hear!

It would be because a vncserver session was started before you made the changes to the file, hence the keyboard fix didnt work and LXDE wasnt shown
[HTC Desire S] kylon:
how can i rehabilitate stock ubuntu desktop?

thanks
[HTC Desire S] devwithzachary:
You will need to remove the last two lines from the xstartup file and then start a new vncserver
[HTC Desire S] bingobadgo:
Thanks for putting the pics up.

Just to let you know this doesnt appear to work with the latest MIUI for Desire S, unless I have fat finger disease!
[HTC Desire S] bingobadgo:
Thanks for the pics, it looks good!

Unless I have fat finger syndrome this doesnt appear to work on the latest MIUI for Desire S...
[HTC Desire S] devwithzachary:
Ok thank you, seems to only work with the cyangogen mod with there stock kernel, Next to working on a new ubuntu release this is my main job to work out why it is and try and make a patch to make more ROM's work
[HTC Desire S] kylon:
someone know how to install java 6 jre and jdk from apt??

thanks
[HTC Desire S] bingobadgo:
I think that this would do it:

sudo apt-get install sun-java6-jre

---------- Post added at 08:53 AM ---------- Previous post was at 08:51 AM ----------

I keep my fingers crossed then!

Can I help at all? I have been exclusively using various flavours of Linux for 3 years now and might be able to share the workload if you guide me a bit.
[HTC Desire S] kylon:
It doesn t work

Apt says that there are no packages with this name

I want to run dxda kitchen and the other tools
[HTC Desire S] Mental_Atom:
Developing for android from android? Must say that's an impressive idea!
[HTC Desire S] devwithzachary:
there needs to be a arm port of java for it to run on our phones, im guessing there is one but im not sure of the package name

---------- Post added at 09:27 AM ---------- Previous post was at 09:25 AM ----------

At the moment im just trying to build a new ubuntu.img, my Kubuntu install keeps freezing when building it, its a known bug so im changing back over to ubuntu as we speak then then get it built.

As far as getting it on other ROM's its a case of having busybox installed for the chroot, as well as loop devices working
[HTC Desire S] kylon:
I will search again

How can i open sd card from ubuntu?

Or how can i mount sd as a drive

I don t know well linux terminal
[HTC Desire S] devwithzachary:
This cant be done at the moment as the image is on the sd card, and so if we mount it it would cause a rip in the time space continuum. Failing that yeah you cant mount it because the ubuntu img is on it. There might be a way to partition the sdcard one area for the img the rest for sd card and maybe then mount it, but that will have to wait for now.
[HTC Desire S] bingobadgo:
Any idea if the Tiamat kernel supports loop devices?
[HTC Desire S] devwithzachary:
Im not sure, my problem is I Have good knowledge of linux, and quite good knowledge with the workings of android, But have not done much with kernels, Im teaching myself as I go but if a kernel developer would happily help me all the better!
[HTC Desire S] bingobadgo:
I dont have a clue about kernels, I am looking into how to compile one for myself but there isnt an awful amount of info out there.

---------- Post added at 11:20 AM ---------- Previous post was at 11:09 AM ----------

NOOB question alert!

In a ROM, where do you find the kernel? Is it boot.img?
[HTC Desire S] kylon:
No,you need to open boot.img

I use dxda kitchen

Then you will see a folder: BOOT EXTRACTED

There wiil be a file: Zimage

This is the kernel

But at the moment i don t have a tool to decompile it
[HTC Desire S] bingobadgo:
Dammit!

Installed Tiamat kernel only to discover that I must have deleted Ubuntu.zip when i was clearing some room on my SD last night. There is a download cap at work so I will have to wait till tonight to try again. =(
[HTC Desire S] devwithzachary:
that sucks! however by then you might be lucky and might have finished the new ubuntu.zip :D
[HTC Desire S] bingobadgo:
I will keep my fingers crossed!!
[HTC Desire S] kylon:
please,if you can

add a preinstalled version of jre and jdk thanks:(
[HTC Desire S] devwithzachary:
I cant seem to find a ARM port for java so for now this will have to wait, however as far as software goes this has to be one of the first things I try and get working.

That said once I update to a new version of ubuntu it might have been included in the port anyway, we shall have to wait and see
[HTC Desire S] bingobadgo:
Downloading ubuntu.zip for the SECOND time....

Looks like will find out later if Tiamat supports loop devices.
[HTC Desire S] fosco_:
I can only control pointer in 1:1 view, not in Fit to Screen, and 1:1 is too big even when running vncserver -geometry 800x480, is this normal?

I can't use keyboard also, nothing happens when clickin on an xterm for example
[HTC Desire S] kylon:
I had the same problem

You need to open ubuntu

Open adb shell

Type killall thightvnc and now you will see an error message.your server is killed.

With adb shell repeat all the step to configure keyboard and thight vnc

You can also use copy and past to write xstartup

So it s more simple
[HTC Desire S] bingobadgo:
Firstly my specs: Desire S S-off, MIUI 1.9.9, Tiamat 1.1.2

I have tried the steps in the first post and can run ubuntu.sh with no problems. When I run bootubuntu I get the following error:

chroot: can't execute '/bin/bash' : No such file or directory

Shutting down Ubuntu

umount: can't umount /data/local/mnt/dev/pts: No such file or directory

umount: can't umount /data/local/mnt/proc: No such file or directory

umount: can't umount /data/local/mnt/sys: No such file or directory

umount: can't umount /data/local/mnt: Invalid argument

I am not entirely sure what all this means, any ideas?
[HTC Desire S] kylon:
Mmm seems that miui doesn t have bash support,
[HTC Desire S] bingobadgo:
I found this on the Ubuntu forums:

I cant do chroot. When i run it a get this error

chroot: cannot run command `/bin/bash': No such file or directory

Please help me out

I had the same problem because the filesystem that I was working on was FAT32 instead of EXT2 or EXT3. Because of that, /bin/bash was not an executable I guess. If that is your case also, then please try again on a partition that is EXT2 or EXT3 (the Linux type of partition). Good luck, --vvim

I will reformat my sdcard to ext3 and see what happens.
[HTC Desire S] kylon:
I didn t format my sd card.it s fat32
[HTC Desire S] bingobadgo:
Found this on the forums:

http://xdaforums.com/showthread.php?t=537827

---------- Post added at 09:00 AM ---------- Previous post was at 08:27 AM ----------

Doing the above got me a bit further, but now I get this:

mknod: applet not found

mount: mounting /sdcard/ubuntu/ubuntu.img on /data/local/mnt failed: Block device required

From my knowledge of Linux the -o in the mount command should mean that a block device is not required, unless I am wrong?

---------- Post added at 09:21 AM ---------- Previous post was at 09:00 AM ----------

I copied mknod from system/xbin to system/bin which resolved the applet not found, but I am still stuck at the mount problem...

---------- Post added at 09:28 AM ---------- Previous post was at 09:21 AM ----------

Finally got it working with a modified bootubuntu from here:

h t t p : / /zedomax.com/android/bootubuntu

There are a few differences from the one in the OP, I havent debugged it yet to see exactly what the problem was for me but this one worked!!!

---------- Post added at 10:01 AM ---------- Previous post was at 09:28 AM ----------

So tantalisingly close!!!

I can get a desktop up and its all dandy, but the key mapping is way out. When I try to cat > xstartup in terminal it just hangs, I never actually get to edit the file.

I am going to have to look at another way to do it.
[HTC Desire S] kylon:
But the comand is cat > /root/.vnc/xstartup

You will not see the adb shell comand line

Then u can past all the comand and continue

That bootubuntu is for not loop kernels
[HTC Desire S] bingobadgo:
Sorry, should have said that I am doing this on the phone with terminal emulator.

I couldnt get the full cat > /root/.vnc/xstartup to work so I cd to .vnc directory and ran cat > xstartup. I just get a blank line and cannot type any text, tat is my problem.

That bootubuntu works for me, on my phone. Thats all I can tell you I am afraid.
[HTC Desire S] kylon:
Use adb
[HTC Desire S] bingobadgo:
Thankyou for the in depth reply, but I am trying to get it to work without having to use ADB, so that there is another option for people to try.
[HTC Desire S] kylon:
But u don t need adb to boot ubuntu

You need adb for the first time,to configure all
[HTC Desire S] bingobadgo:
Nope, it can all be done from Terminal Emulator.

I dont know why it wasnt working for me initially, but I just tried it again and I could type it all perfectly. On my phone you need to hold Volume down while typing D to insert ctrl+d to save and exit. Works lovely now!!

Interestingly I initially went into normal Ubuntu, after editing the file for the keyboard fix I go into LXDE.

I am really pleased with this!!!
[HTC Desire S] devwithzachary:
OK so you have got it work on another rom/kernel? could you PM me with the steps you took so I can build it into the guide.

Yes if you dont made the changes i show it will boot gnome the last two lines you type are to start LXDE instead of gnome and then line above that is the keyboard fix.
[HTC Desire S] bingobadgo:
I did indeed. Here is what I did:

MIUI 1.9.9 ROM

Tiamat Kernel

Followed these instructions to get bash: http://xdaforums.com/showthread.php?t=537827

I copied mknod from system/xbin to system/bin (may not have to this as it depends where your busybox is installed)

I then replaced the bootubuntu script in the OP download with the one from here: http://zedomax.com/android/bootubuntu

Then I couldnt type to add the keyboard remapping etc so I exited out of terminal and rebooted my phone. I then went back into ubuntu shell and I could edit xstartup, so I did and it all works lovely.

Thanks for bringing this to our attention, it will provide me with hours of fiddling and being geeky!!!
[HTC Desire S] devwithzachary:
Great im glad you got it working, now on with the new version of Ubuntu.zip, I will need your help shall send you a PM
[HTC Desire S] bingobadgo:
OK, no problem. Or email mdilnutt at gmail dot com if its easier.
[HTC Desire S] superkid:
:s because of this it cant find the packet
[HTC Desire S] Niko0olas:
i know it will sound offending but will there be a chance to run MacOSX or W7 in the near future.?
[HTC Desire S] kylon:
they need a powerful device that doesn t exist(sensation isn t enough)

and there are no driver

any update for linux?
[HTC Desire S] devwithzachary:
No sadly this will not work, this method only works for linux based OS's, you would need far to much RAM to run windows, and OSX would never have the drivers to see any of the phones hardware

Sorry guys I have been moving house, and didnt think it would take this long to get internet back :( but im back now! :D I shall start work on a new build today along with getting it working on different ROMs, in the mean time anyone with a computer running ubuntu please contact me, i need your help!
[HTC Desire S] kylon:
I have ubuntu 10.4 but i don t know how to use it very well ._.
[HTC Desire S] kylon:
i can t boot ubuntu anymore

i reflahed cyanogen and now it can t install ubuntu

it use bin instead of xbin,all files are in xbin

it says chroot not found,chmod not found,can t mount,can t unmount
[HTC Desire S] devwithzachary:
Hello all, Its been a while I have been very busy in the last sort of month hence this development had completely stopped. But fear not im back!!!

And I bring with me a new freshly cooked ubuntu image with preinstalled software, and a new guide to get things bad by working on more ROMS.

Watch this space I am just ironing out the bugs and testing a few sense ROMS and then I will post it once the new image has been uploaded to my server.

Out of interest the new image will be 4GB to allow space for new versions of ubuntu, would people also be interested in a 8GB version? or any other sizes?

As I have now got the software working to build my own arm images so I can build what ever, and include any software you like!
[HTC Desire S] kylon:
Umm a full android development kit?

Like sdk,kitchen,tools etc... =)

Can be the size 2gb or 3?
[HTC Desire S] devwithzachary:
I like you thinking but that will require a java port, something I will work on as soon as I have released this version. A little update I have got 11.10 running but a few bugs with lxde that I need to fix first.
[HTC Desire S] kylon:
Ok,thanks i ll wait
[HTC Desire S] devwithzachary:
Ok LXDE is giving me no end of problems, all the icon set fails and firefox crashes as well. However ubuntu runs perfectly still in terminal so all programs that work without a UI seem to work fine.

My plan will be to keep trying to fix it today and try other desktops, either way I will try to upload a 'new' image to give you guys something new to play with as well as update the guide (It seems most sense ROMs now do work).

Edit

It would seem Firefox is crashing due to lack of ram so we might have to stick to senseless roms to run ububtu.....but watch this space
[HTC Desire S] devwithzachary:
New update released!! see first post for new ubuntu version and new bugs
[HTC Desire S] Niko0olas:
Finally a thing that RAM is actually useful :p :p

Running Chrome might be better, i think...
[HTC Desire S] kylon:
Is ubuntu sw center working?
[HTC Desire S] devwithzachary:
Sadly no, i guess thats because of no java for arm...This is my next big project mind you, I must get Java working that would be sick!!
[HTC Desire S] antifish:
Java 4 embedded:

http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html
[HTC Desire S] kylon:
Thanks !

do you know how to install it with apt?

@zact

Have you tried gnome?

And can,a day,ubuntu run with a boot.img,like an other phone that i don t remenber?
[HTC Desire S] devwithzachary:
Thank you I shall look at this today and try and get it working!

I have not tried gnome because there is no longer official support for Gnome 2 and 3 is far to memory hungry.

Booting into ubuntu would be sweet I have been reading up on it and playing around but for now it might be a little bit beyond me getting it to work on our phone. BUT watch this space :)
[HTC Desire S] devwithzachary:
I have added to the third post info to get the java for arm installed, let the testing start!!

Also if you get any cool and useful apps install and running let me know so i can added them to a the post