yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] SpineKracker:
Like I said, it didn't work. When running the first command - sh ./ubuntu.sh, it seemed to work, but it went so fast that I couldn't see if there were any error messages. But it said the bootloader was installed successfully.

I then rebooted the phone, and ran the other command as su. - sh ./bootubuntu, and here it fails, listing up missing files/directories under mount, and that /dev/loop1 : Device or resource busy..

Any idea how to un-busy it ? =D
[Desire Android Development] mercianary:
Try this method.
[Desire Android Development] SpineKracker:
Tried that one earlier, ends up with loop device busy or not available/missing.

Maybe LeeDroid has no support for loop devices in the kernel?
[Desire Android Development] abc27:
Nearly every ROM supposedly has loopback device support. It just that most of them don't actually function.
[Desire Android Development] GaelForce:
Get the same with OD 3.05 :confused:
[Desire Android Development] mercianary:
Whenever I have problems with loop devices I type the 2 command in by hand (losetup and mount), after I get it to work once I have no propblems afterwards. If you still have trouble try another loop device (I use 3 or 5)
[Desire Android Development] NeuroMonk:
Works fine for me

I just wanted to give a brief feedback:

The instructions on in post #120 work perfect for me. I am using the newest version of LeeDroid and androidVNC.

Use "vncserver -geometry 800x480" (use port 5902 then..) to get the resolution to fit the screen and use Input Method "Tochscreen" in VNC and it runs really good.

I use it for example for downloading torrents as all torrent clients for Android, which I have tried, do not work very well. Best thing is that the download continous in the background.

The only big issue is that you can't stop it. "shutdown -h 0" doesn't work....

And beside that I couldn't find the right file the set the screen resolution at startup. Perhaps someone has an idea here?

BUT in summary this is totally awesome ;)
[Desire Android Development] GaelForce:
Can anyone help with this? I'm running OpenDesire 3.10

Thanks in advance

GF
[Desire Android Development] dan56965:
Ditto on the above, with opendesire. Have tried both the front page, and post #94's method.

Any suggestions?
[Desire Android Development] patachon33:
I had the same problem. i didn't manage to solve it using my last rom (eclair 2.1 with root) so i decided to try with defrost rom and with the chubuntu, it worked great!

I believe that when u have this problem, it means that your rom can't do it!
[Desire Android Development] patachon33:
I don't know if opendesire 3.1 can run ubuntu but as i saw on what you wrote, it seems that you put the chubuntu file in a directory ubuntu on sdcard.

Well in this file, i think there is relative paths. You should put it on /sdcard instead. But it may change nothing i think.
[Desire Android Development] GaelForce:
Thanks for replying, I tried it on the sd root also with the same problem. Really want to get this working but like OD too much to change... decisions decisions decisions
[Desire Android Development] GaelForce:
Gutted, just switched to DeFrost and still no joy. Although the output looks different this time.

Anyone got any ideas?

Thanks
[Desire Android Development] elvis56:
similar error here on leedroid 1.8, device or resource busy. Tried loop3 and loop5
[Desire Android Development] elvis56:
Ok i think i solved it. I tried several loop numbers(1-8) and all gave me the device busy error. I looked up some linux documentation and found out all the devices were in fact busy. I guess the more application you have installed the bigger the chance all devices are busy.

Check the device usage by typing

mount

in your favorite terminal emulator. This will list all mounted devices. Apparently it is better/more complete to use this command

more /proc/mounts

however just the mount command should give you the info needed. Anyway i picked a device that was in use by an application i don't really use(in my case 6), uninstalled the application and then changed loop3 to loop6 in the chubuntu(make sure to change it in both lines).

This probably also explains why it is working for mercianary when he tested several roms as he most likely installed on virgin roms.

Small update: the port number to use with the chubuntu method is the default 5900, not 5901

Small update nr 2: for some reason i can connect to the ubuntu desktop from my laptop but not from my phone
[Desire Android Development] dan56965:
Hey, thanks for the tip. Unfortunately it's not working for me - mount fails with a "No such device" error. Weirdly, 'losetup' seems to work fine, and the mount points are there:

# losetup /dev/block/loop6 /sdcard/disk.img
losetup /dev/block/loop6 /sdcard/disk.img

# mount -t ext2 /dev/block/loop6 /data/local/chubuntu
mount: mounting /dev/block/loop6 on /data/local/chubuntu failed: No such device

# cd /dev/block/
cd /dev/block/
# ls
ls
dm-0 loop1 loop4 loop7 mtdblock0 mtdblock3 vold
dm-1 loop2 loop5 mmcblk0 mtdblock1 mtdblock4
loop0 loop3 loop6 mmcblk0p1 mtdblock2 mtdblock5

I don't see any loop adapters on the mount list, so is it safe to say loopback is just broken in this rom?

# mount
mount
rootfs on / type rootfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mtdblock3 on /system type yaffs2 (ro,relatime)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev,relatime)
/sys/kernel/debug on /sys/kernel/debug type debugfs (rw,relatime)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)/dev/block/vold/179:1 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
/dev/block/dm-0 on /mnt/asec/com.google.android.stardroid-1 type vfat (ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/dm-1 on /mnt/asec/android.androidVNC-1 type vfat (ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
[Desire Android Development] 玩耍天使:
i think it's not nessary install ubuntu on my desire
[Desire Android Development] elvis56:
Someone with more linux knowledge should have a look at this, on my desire the devices show as /dev/block/dm-0, dm-1 etc(note there are 8 but numbering starts at 0).

My best guess is it fails on your device because the device in fact does not exist. From your list i'd say 0 or 1 would work if you remove the application that is currently using the device(stardroid or androidvnc). Then again i am not exactly a linux expert.
[Desire Android Development] abc27:
*clap clap*
[Desire Android Development] Beaverman20:
Working fine on neophyte's Sense Rom
[Desire Android Development] Pyrojester:
Of course it isn't - the pleasure is in doing it and having a play, not having a reason to.
[Desire Android Development] fmachine:
Really Yes.
[Desire Android Development] balthor80:
hi !

Everything is OK for me, but when I'm login to VNC, I get a green screen and a cursor, but nothing else...

and other issue :

after bootubuntu... on android terminal emulator, it's impossible to mount the sdcard on my computer..
[Desire Android Development] mercianary:
The green screen is the vnc app not having enough memory available or something. Lower the resolution or use lower bit colour to fix this.

You can't use the sdcard on a PC because the ubuntu image is currently mounted. Reboot phone to unmount it.
[Desire Android Development] balthor80:
Ok thx, it works now !

no other way to umount the ubuntu img ?
[Desire Android Development] Rosi1337:
What about ubuntu 10.04, someone ported this succesfully to desire?
[Desire Android Development] mercianary:
You could make an ext partition on your sdcard big enough to hold ubuntu and copy it over to there. This way no mounting is required. I was doing it like this for a while with debian because I was having trouble mounting. It worked great.

As for 10.4 connect to your wifi and run the update on your phone. Could take a while. But I'm pretty sure it will work.
[Desire Android Development] K900:
What about the speed?
[Desire Android Development] b6rt:
In this case the use of the distribution Ubuntu 10.04 "Netbook" may be great !
[Desire Android Development] K900:
I wonder that will work well, Maverick UNE is a resource hog
[Desire Android Development] balthor80:
I created an ext2 partition and copy the ubuntu folder on it.

But now what should I do ?

edit :

android mount the ext partition on /sd-ext

(I have edited bootubuntu and ubuntu.sh files : replace "/sdcard" by "/sd-ext")

but :

in terminal emulator :

cd /sd-ext ---> ok

sh ./ubuntu.sh ---> ok

bootubuntu --->bootubuntu not found o_O
[Desire Android Development] mercianary:
When I did it I had the contents of the image on the ext partition. I did not use the image at all. Try doing that and fiddling withe script a bit.
[Desire Android Development] balthor80:
C:\Users\Jean-Baptiste>adb shell
# su
su
# cd /sd-ext/ubuntu
cd /sd-ext/ubuntu
# sh ./ubuntu.sh
sh ./ubuntu.sh
?[H?[Jmkdir failed for /data/local/mnt, File exists
?[H?[Jrm: can't remove '/system/bin/fsrw': Directory not empty
rm: can't remove '/system/bin/bootubuntu': Directory not empty
rm: can't remove '/system/bin/unionfs': Directory not empty
unknown option -- /BusyBox v1.16.2androidfull (2010-08-01 14:57:25 EDT) multi-ca
ll binary.

Usage: rm [OPTIONS] FILE...

Remove (unlink) FILEs

Options:
-i Always prompt before removing
-f Never prompt
-R,-r Recurse

cp: can't create '/system/bin/fsrw': File exists
cp: can't create '/system/bin/bootubuntu': File exists
cp: can't create '/system/bin/unionfs': File exists
cp: can't create '/system/bin/mountonly': File exists
?[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
losetup: /dev/block/loop1
mount: mounting /dev/block/loop1 on /data/local/ubuntu failed: Device or resourc
e busy
mount: mounting devpts on /data/local/ubuntu/dev/pts failed: No such file or dir
ectory
mount: mounting proc on /data/local/ubuntu/proc failed: No such file or director
y
mount: mounting sysfs on /data/local/ubuntu/sys failed: No such file or director
y
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/ubuntu/etc/resolv.conf: directory nonexist
ent
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexist
ent
Setting localhost on /etc/hosts
bootubuntu: cannot create /data/local/ubuntu/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
umount: can't umount /data/local/ubuntu/dev/pts: No such file or directory
umount: can't umount /data/local/ubuntu/proc: No such file or directory
umount: can't umount /data/local/ubuntu/sys: No such file or directory
umount: can't umount /data/local/ubuntu: Invalid argument
losetup: /dev/loop1: Device or resource busy
#

what wrong ????
[Desire Android Development] K900:
Lots of stuff. What rom?
[Desire Android Development] mercianary:
Loads of people are having this problem. I think its the loop devices being busy. As far as I can figure out they are all unused on a fresh rom but something is using them on most peoples roms.

It works much better on a fresh rom. Or you could try changing the loop device.
[Desire Android Development] balthor80:
K, thx, i will try on a fresh install ;)
[Desire Android Development] D0GuKaN:
I will try this, but when i install ubuntu, how can i remove ubuntu?
[Desire Android Development] K900:
Just remove the files
[Desire Android Development] mercianary:
Figured out why this keeps failing for everyone. Its froyo a2sd. Move all apps back to internal storage to fix.
[Desire Android Development] GaelForce:
Yesssssssssssssssssssssssssssssss!!!!!!!!!!!!!!!!!

Thank you :D
[Desire Android Development] GreatLord:
Hi

thx for great guide

I have manger get it working on htc orginal rom

with follow step

How to install busybox on andorid

1. download the arm binary at h t t p: / / busybox . net/downloads/binaries example busybox-armv6l

2. put it on your sdcard and rename it to busybox

3. download andorid sdk and install it it

4. Install the androd usb driver

5. open a cmd promp and go to u andorid sdk tools folder

6. boot u phone inte recover mode

7. type follow in cmd

8. adb devices to list all andorid phone and emulator

9. type adb -s (for htc it is your phone serialnumber) shell mount /system

10. type adb -s (for htc it is your phone serialnumber) shell mount /sdcard

11. type adb -s (for htc it is your phone serialnumber) shell cp /sdcard/busybox /system/bin/busybox

12. type adb -s (for htc it is your phone serialnumber) shell cd /system (this is workaround on a bug in windows 7)

13. type adb -s (for htc it is your phone serialnumber) shell

14 cd system/bin

15 ./busybox --install -s .

16 exit

done and rebbot u phone

This is very imported step the /system is write protected

you can not remove or copy file to /system at all. follow

the orgnal guide until u come to

Next step is follow the instrustion in frist post

when u come to rm /system/bin/fsrw before that line

type

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3/system

now the system folder is not longer write protected

when the guide say type bootubuntu u maybe need type it twice (if it frist time u try it) next time u boot u phone. u only need type it one time.

Thanks for great guide, without this guide I should not have manger get linux on my htc desrie
[Desire Android Development] BurakVp:
problem

thank you for thread! everething works great
[Desire Android Development] harish.awe:
Everyone who are getting error message at "bootubuntu" step,

this is because ,,you need to have Kernel compiled with loop device support to install ubuntu , unfortunately our desire doesn't support loop devices so we need a custom kernel...

Eg: For EVO 4g there is a kernel fix to install ubuntu take look at this link:

http://htcevohacks.com/htc-evo-hacks/how-to-install-ubuntu-on-htc-evo-4g/

see this thread:

http://xdaforums.com/showthread.php?t=801727
[Desire Android Development] zajnemzaj:
I've just started ubuntu on my rooted desire running on the default ROM. I had checked the config file for LOOP kernel flag and it was enabled by default so no custom kernel (or ROM) was needed.

I've read somewhere that moving back all programs from SD card to phone helps to override those loop problems...give it a try.
[Desire Android Development] telphan:
Everything worked smoothly when i first booted, but the second time and so on, ubuntu won't open any applications. Anyone knows the reason?
[Desire Android Development] kiksy:
Hi,

Used the method posted in post #94 , had the Loop device error , so ran

mount

which gave me a list of devies , RemoteRDP app was using 3, uninstalled and then the install ran perfectly, using Ubuntu now on the phone! Thanks!:D

Desire - LeeDroid 2.2f
[Desire Android Development] jastonas:
How hard is it to check my loop kernel flag?
[Desire Android Development] TYSON786:
bootubuntu: not found

can sum1 halp me plz? i gat bootubuntu: not found

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>

C:\Windows\system32>cd\

C:\>cd androidsdk\tools

C:\AndroidSDK\tools>adb shell

# su

su

# cd /sdcard/ubuntu

cd /sdcard/ubuntu

# sh ./ubuntu.sh

sh ./ubuntu.sh

C:\AndroidSDK\tools>sh ./ubuntu.sh

'sh' is not recognized as an internal or external command,

operable program or batch file.

C:\AndroidSDK\tools>sh ./ubuntu.sh

'sh' is not recognized as an internal or external command,

operable program or batch file.

C:\AndroidSDK\tools>cd\

C:\>cd androidsdk\tools

C:\AndroidSDK\tools>adb shell

$ su

su

# cd /sdcard/ubuntu

cd /sdcard/ubuntu

# 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/fsrw, No such file or directory

rm failed for /system/bin/bootubuntu, No such file or directory

rm failed for /system/bin/unionfs, No such file or directory

rm failed for -/system/bin/mountonly, No such file or directory

cp: can't create '/system/bin/fsrw': Cannot allocate memory

cp: can't create '/system/bin/bootubuntu': Cannot allocate memory

cp: can't create '/system/bin/unionfs': Cannot allocate memory

cp: can't create '/system/bin/mountonly': Cannot allocate memory

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

bootubuntu: not found

#
[Desire Android Development] lby0327:
Thanks. Hopefully, someday we can run aircrack on ubuntu.
[Desire Android Development] DNK13:
i have putted linux on my HTC desire and installed aircrack-ng but sadly wlan dont support monitor mode :(
[Desire Android Development] Spolak:
thx to post no.94 i finally installed ubuntu on my Modaco ROM, not sure which one, work very nice , i want to test WEP key cracking, i saw somewhere that i need to made some patches to my wireless card if i were on notebook, but iam not sure what i need to do while on android, any idea? thx, wanna try it not for stealing data, just want to know how it work.. :)
[Desire Android Development] dekkyy:
Thx to post no.94. Works on eMIUI 1.1.7. The only problem is that i have only 100Mb free space in ubuntu. How to increase space??
[Desire Android Development] ohdediku:
hello.....

i am failed to try you tutorial, install ubuntu on desire....

step by step i'v done... i have some error on connect vnc ==> login succesfuly but in the desktop appear noise....

any idea?

please look my pic:

_____h t t p:/ / plixi.com/p/69326255
[Desire Android Development] simnik123:
# bootubuntu to chroot

bootubuntu to chroot

mknod: /dev/loop1: File exists

losetup: /dev/block/loop1: No such file or directory

mount: mounting /dev/block/loop1 on /data/local/ubuntu failed: Device or resou

e busy

mount: mounting devpts on /data/local/ubuntu/dev/pts failed: No such file or d

ectory

mount: mounting proc on /data/local/ubuntu/proc failed: No such file or direct

y

mount: mounting sysfs on /data/local/ubuntu/sys failed: No such file or direct

y

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/ubuntu/etc/resolv.conf: directory nonexi

ent

bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexi

ent

Setting localhost on /etc/hosts

bootubuntu: cannot create /data/local/ubuntu/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

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

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

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

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

losetup: /dev/loop1: Device or resource busy

#
[Desire Android Development] pat2:
doesnt work with desire z :(

I tried the nexus one tutorial and this one but neither worked. hopefully someone will post a guide at some point because im sure im not the only one wanting this. If anyone knows how, just tell me somehow plz and thanks for the guide anyway:D
[Desire Android Development] jastonas:
Are there any certain steps to reproduce the desired effect?

Let's say...

1) Full wipe rom

2) Install *This* rom

3) Do not insert gmail account or download anything from market

4) Place these files in sd

5) Run these commands

6) Voila!
[Desire Android Development] ImbaWind:
thanks！　it works!!:eek:
[Desire Android Development] angusc:
Ubuntu.img link above is removed anyone can repast or re upload the file?
[Desire Android Development] elvis56:
The megaupload link still has the file.
[Desire Android Development] angusc:
Couldn't find that link tho i did try to find it.....

Sent with Desire.
[Desire Android Development] yochitaro:
I can't use apt-get function. what wrong?
[Desire Android Development] yochitaro:
it's work for me.

thank a lot.
[EVO 4G Themes and Apps] waterfoul:
I decided to take the standard htc interface and throw a Super Mario Bros theme onto it. Please give feedback and suggestions. I haven't done any of the really hard stuff yet. Also I can't post links yet so I had to add spaces and couldn't post the pics correctly

Currently I have found:

A sweet wallpaper: http://xdaforums.com/showthread.php?t=710647

A taskbar and rosie I like: http://xdaforums.com/showthread.php?t=707047

and I have created

a boot animation (attached)

a lock screen, put the folder in the attached zip in .lockbot and use lockbot pro (I think)

Icons for the camera, maps, Internet, people, voice, and (g)mail (all attached, some are straight from SMB)

Instructions to change icons:

QR Code for lockbot pro

And here are some screenshots:

Changelog:

July 12: Initial Version
[EVO 4G Themes and Apps] M@XLOL:
fixed
[EVO 4G Themes and Apps] waterfoul:
Thanks! As soon as I get permission to post the images myself I would appreciate it if you would remove yours though so I can change them later
[EVO 4G Themes and Apps] M@XLOL:
I'll remove them as soon as I see it in the op :D
[Android Software Development] thelamacmdr:
I recently found out (thanks to Cyanogen's Twitter) about Google's Android App Inventor and wanted to see what everyone thought about it? I think it's great in that more apps would theoretically be released, though of questionable quality. But also I'm wondering about the value of development using code, would this become more valuable as a result of laziness on the part of some developers? Or would its value decrease since it's easier to make an application now? I haven't actually used the program yet since I want to gain a firm grasp on actual coding but these questions were in the back of my mind since the invention of things other WYSIWYG eg Web Development.
[Android Software Development] Morghus:
I'm thinking this is a good thing, you can make apps on the go, for practically anything. It will continually get better, unless it crashes and burns because it floods the market and similar with ultra-****ty programs.

Later on Google will probably release some sort of testing program to run it through the hoops to see if it's good enough, or something like that.

Remember, it's still in beta ;)
[Android Software Development] jimlad:
great great great, it means idiots like me will be able to solve some of our own niche needs*, that have as yet not be done.

*a special farty sound. ;):rolleyes: