yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] Grimms:
??

Hi there! nice work on this one :)I have a little problem as many others, whats wrong? i Have the updated "bootubuntu" file and busybox v.1.16.1, Stock FRF91 with root privileges. So why isn't this working for me? :/

Here is the cmd line:

C:\android\tools>adb shell
# su
su
# cd /sdcard/ubuntu
cd /sdcard/ubuntu
# sh ./ubuntu.sh
sh ./ubuntu.sh
modprobe: module 'ext2' not found
←[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
mknod: /dev/loop1: File exists
losetup: /dev/block/loop1
mount: 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/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
failed.
failed.
failed.
failed.
losetup: /dev/loop1: Device or resource busy
#
[Nexus One Android Development] electricdemon:
Woohoo, the new script works!!!. THANKYOU!!!! :D
[Nexus One Android Development] demonzrulaz:
I really want to get this working but sadly it doesn't work. I'm having problems with the first script!!! not bootubuntu but ubuntu.sh! lol. I ran through the script file and the problem is the second command: modprobe ext2

I get this error:

modprobe: chdir(2.6.34-925mV-BFS-OC-Monks-070110): No such file or directory

Also, as I run through the file individually, I see that chmod also doesn't work. I'm getting this:

# chmod 4777 *

chmod 4777 *

chmod: bootubuntu: Operation not permitted

chmod: fsrw: Operation not permitted

chmod: mountonly: Operation not permitted

chmod: ubuntu.img: Operation not permitted

chmod: ubuntu.sh: Operation not permitted

chmod: unionfs: Operation not permitted

Any help is appreciated :)

EDIT:

I think that my rom specifically uses ext3

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

I'm guessing that thats the reason why modprobe isn't working

but why isn't chmod working?
[Nexus One Android Development] RedShanks:
same problem to me...
[Nexus One Android Development] Rafase282:
I would recomend to use this http://xdaforums.com/showthread.php?t=631389 or the g1 guide to archive this.
[Nexus One Android Development] r8zer:
# su
su
# cd /sdcard/ubuntu
cd /sdcard/ubuntu
# sh ./ubuntu.sh
sh ./ubuntu.sh
modprobe: module 'ext2' not found
←[H←[Jmkdir failed for /data/local/mnt, File exists
←[H←[Jrm: can't remove '/system/bin/fsrw': No such file or directory
rm: can't remove '/system/bin/bootubuntu': No such file or directory
rm: can't remove '/system/bin/unionfs': No such file or directory
unknown option -- /BusyBox v1.16.2androidfull (2010-03-28 22:34:45 EDT) multi-ca
ll binary.

Usage: rm [OPTIONS] FILE...

Remove (unlink) FILEs

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

chmod: bootubuntu: Operation not permitted
chmod: fsrw: Operation not permitted
chmod: mountonly: Operation not permitted
chmod: ubuntu.img: Operation not permitted
chmod: ubuntu.sh: Operation not permitted
chmod: unionfs: Operation not permitted
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
mount: can't setup loop device: No such file or directory
mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or direct
ory
mount: mounting proc on /data/local/mnt/proc failed: No such file or directory
mount: mounting sysfs on /data/local/mnt/sys failed: 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
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
#

hi, i get this, i have tried many times, is it because im running and Ext 4 partition, i have also tried your script and could not get it to work.

EDIT : got it now to root@localhost, just saw the updated script, im on CM 5.0.8 rom, and all working great, thankyou OP
[Nexus One Android Development] isolated_epidemic:
Does this require that you have a second partition to your sd card?
[Nexus One Android Development] Rafase282:
Can you post the deboostrap command to downlaod ubuntu? i need the mirror site to do it myself. Im trying ti it manually
[Nexus One Android Development] zedomax:
no problem

You did "su" before running it?

Try the second script, you can probably ignore the errors!
[Nexus One Android Development] zedomax:
no 2nd partition needed

This just runs off your sdcard so it doesn't need to be partitioned, basically the image file get mounted on as "ext2" on the Android.

Btw, I found out more information, it seems like you need to use a ROM that can mount loop devices. But I believe most Nexus One ROMs should be able to as default, just not working on my Evo 4G right now. I am using Froyo btw. FR8 somethi'...
[Nexus One Android Development] demonzrulaz:
Yes I did run "su" before, I made sure of that. This is exactly what I typed:

http://yfrog.com/f/1fn1ubuntuproblemp/

Hmm by the second script, do u mean the file "bootubuntu"? do I still have to run the ubuntu.sh file?

EDIT:

Yep I tried running "bootubuntu" and I am currently installing lxde right now! Thanks :)

I hope nothing goes wrong since I didn't run "ubuntu.sh"...

Still kinda curious as to why chown wouldn't work....oh well at least this works
[Nexus One Android Development] overground:
Worked perfectly after using the second script. Great instructions. Thank you for this!

EDIT: You may want to link or mention the second script higher up on the page, because it's pretty far down in the footnotes.
[Nexus One Android Development] evilkorn:
Yep, works after updated script.

Thanks for the work!
[Nexus One Android Development] nicandris:
works flawlessly after updated script.

@op please update first post
[Nexus One Android Development] evilkorn:
Only problem I found was the keyboard wan't getting the correct letters, used remote VNC pro.
[Nexus One Android Development] mspseudo:
Hey Guys,

I tried this now for about 3 hours and always get stuck at step 14.

ubuntu is running, there was no problem, but im not able to connect to it via vnc client at all

my vnc client doesnt try to connect (seems so)

after i click on the connect button i promt (within a half second) get the error : VNC connection failed.

Anyone got an idea how to solve this ??

till this step everything looks to work correctly.
[Nexus One Android Development] tontonHD:
Works like a charm!
[Nexus One Android Development] tontonHD:
You should launch the tightVNC in order to connect to ubuntu.
[Nexus One Android Development] mspseudo:
hi again, sorry for the (maybe) stupid question

but what exactly do u mean ?

i run the vncserver on ubuntu (on my nexus one) an then i tried to connect to it with androidvnc and remote vnc (on my nexus)

i made the same setup as in step 13 of the guide.

export USER=root

vncserver - geometry 1024x800

- i set a password

i created the file /root/.vnc/xstartup with the vi command couse im running ubuntu on my pc not windows - could this be the problem ?

in the guide it says hit CTRL+D twice.

if i hit CTRL+D ill get this:

root@localhost:/# exit

Shutting down Ubuntu

failed.

losetup: /dev/loop1: Device or resource busy​

(sorry, im a newbie in linux :-) )
[Nexus One Android Development] adam2010:
still doesn't work for me :(

I have Rodrigue Froyo91 Rom and i tried the second script but says cant find bin.. and device is busy..:confused:

Edit: i installed CM 5.0.8 and it it worked, dont know why not on Rodrigue's Rom???!!!
[Nexus One Android Development] houzuoguo:
Very cool :D

After using new busybox and new bootubuntu script, everything works well.

worked on CM 5.0.8.

Thanks a lot for your work!
[Nexus One Android Development] houzuoguo:
Sorry this is a n00b question..

Well, why your ubuntu almost doesn't spend time to boot? I have opensuse and ubuntu and they all take at least 20seconds to boot into run level 2...

Thanks :D
[Nexus One Android Development] trizyman:
No app are opening.

Ive booted into ubuntu under pauls frf72 for the nexus but i Cant open any ubuntu apps, I can click on an icon and on the bottom task bar it says starting then it dissappears. I seen someone else asked but no one has answered can someone please help. Thx
[Nexus One Android Development] kingskidd268:
This room will let you put ubuntu on you nexus http://xdaforums.com/showthread.php?t=705528
[Nexus One Android Development] Imperial.mack:
has anyone gotten aircrack-ng working?
[Nexus One Android Development] Bxrxyxaxn:
Thanx alot man, was confused bout the whole vnc till i saw your video that explained everything...Props!
[Nexus One Android Development] MSigler:
I got it running, but then rebooted to make sure everything works and it won't boot anymore.

I deleted the ubuntu folder from my card, in an attempt to start over, and even using the new bootubuntu script, it won't let me do anything.

Very odd, since I had it up and running once. Now I get the same "cannot mount" error as everyone else.
[Nexus One Android Development] houzuoguo:
It works very smooth !! Great work!!

Sorry I still get a question..

How to quit the ubuntu properly, i mean, completely shut it down?

I'm not sure if it's necessery...

I use "Better Terminal Emulator" and I do "sh bootubuntu"

Later I typed "exit" and I quited from ubuntu terminal, but Android-vnc-viewer can still connect to the ubuntu.

Any help would be appreciated :)

Many thanks
[Nexus One Android Development] wornbat:
Cant download that rom from Google Docs :(
[Nexus One Android Development] RedShanks:
is there any solution @ step 9?

error says device busy...

Here is what i get:

To enter the Debian Linux console just type 'bootubuntu'
# bootubuntu
losetup: /dev/block/loop1
mount: 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/ubuntu/etc/resolv.conf: directory nonexistent
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
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
failed.
failed.
failed.
failed.
losetup: /dev/loop1: Device or resource busy
#
[Nexus One Android Development] MSigler:
I get the same, and it's not a rom issue, I had it up and running once. I rebooted and it wouldn't open. Even started over and deleted everything, rebooted, put it back on the card, now I get that error.
[Nexus One Android Development] xMemphisx:
Found out what was causing errors in the version i was running. I opened the ubuntu.sh script and ran the commands inside of it individually to see what was going on, and when i try and modprobe ext2 it says the module isn't found (which I'm assuming is probably the issue some others are having as well). I am not sure what kernel versions ship with ext2 support already included. But if anyone knows of one please let me know! Thanks :)
[Nexus One Android Development] MSigler:
You might be onto something, give me a few minutes and I'll check.

PS - Are you from Memphis?
[Nexus One Android Development] tontonHD:
If you are having trouble running VNC server (can't connect to ubuntu from VNC client) after a reboot just do what I did...

#su

#bootubuntu

#sh front.sh

enjoy.
[Nexus One Android Development] MSigler:
I realized that I had updated to the newest nightly, and not flashed the kernel I had been running the first time it worked, but neither restoring back nor flashing the kernel on the new build made it work.
[Nexus One Android Development] xMemphisx:
I still haven't gotten it working yet either. I'm going to try a few different kernels then i will just wipe and try a few different roms. I will let you know if I find anything out.

PS - Nope, sure not!
[Nexus One Android Development] MSigler:
The only thing I noticed is that it makes folders in the actual file system, it's not all on the SD card. I'm restoring back to before I installed it the first time to see if that helps. That might explain the "Directory exists"
[Nexus One Android Development] MSigler:
Working, that was the problem.
[Nexus One Android Development] Bxrxyxaxn:
From terminal app or in command shell?

It didn't work in terminal
[Nexus One Android Development] flak0:
bump for this. Also keyboard input is screwy. letters don't match
[Nexus One Android Development] flak0:
cannot run after reboot. i get:

losetup: /dev/loop1: Device or resource busy
[Nexus One Android Development] adam2010:
cant run ubuntu applications

can anyone run any application in ubuntu?

when i click on firefox or anything else, it seems like to start but it terminates! :confused:
[Nexus One Android Development] thecheatiscool:
Yes, for me they just take forever to open and if you try to open more than one thing it goes ridiculously slow. I guess that's what you'd expect from a desktop operating system that isn't even running natively on a phone :P. Not that I'm complaining... I'm surprised that it is even possible. Great job, zedomax!
[Nexus One Android Development] adam2010:
well no doubt he did a great job :)

since i saw the video that he could open firefox, i thought i have an issue with mine!:D
[Nexus One Android Development] nicandris:
well usually it just stays in opening app and then nothing... got openoffice to boot but just that. not terminal or anyth else.

also a question if someone knows. i run this a couple of times and got ubuntu in vnc running perfectly! after that it boots in lxde for some reason. deleted lxde but its just booting to the grey window with X as mouse. any chance to bring ubuntu back? or do i have to restore the files from the begining
[Nexus One Android Development] flak0:
Okay after like 2 hours I fixed the issue which prevented ubuntu to work after rebbot.

contrary to what the dev wrote , you must run ubuntu.sh so that it creates the correct directories, after then do bootubuntu and it will work
[Nexus One Android Development] Bxrxyxaxn:
so your sayin do this after all the steps or at the begginin after u install sh ./ubuntu.sh ?
[Nexus One Android Development] flak0:
just run ./ubuntu.sh and then bootubuntu

edit: now i cant get the ubuntu desktop. im getting the LXDE through VNC, any thoughts?
[Nexus One Android Development] MSigler:
It only boots once for me. I install it, set everything up, and it boots fine.

Once I exit, I get the message everyone was getting, even if I run the script (ubuntu.sh) first.

Doesn't matter if I do it via ADB shell or terminal emulator.
[Nexus One Android Development] RedShanks:
and where's the difference between this and what the dev wrote??
[Nexus One Android Development] flak0:
dev only said to do bootubuntu after.

try this modified bootubuntu file(unzip/push to sdcard/ubuntu). I changed the loop drivers to loop2 instead of 1.
[Nexus One Android Development] RedShanks:
nice! this works.. now im @ localhost step.. thank you :)
[Nexus One Android Development] mspseudo:
Hi again :-)

Ive solved this problem

posting the answer here couse maybe someone is stupid like me and deletes the xstartup file before editing :-)

so as i mentioned the problem was that i first deleted this file couse it took many times for me to edit it via vi editor :-) and the problem was that this lines where missing in my new created file:

xrdb $HOME/.Xresources

xsetroot -solid grey

icewm &

lxsession

so my whole file looks like this now:

#!/bin/sh

xrdb $HOME/.Xresources

xsetroot -solid grey

icewm &

lxsession

#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#x-window-manager &

/etc/X11/Xsession
[Nexus One Android Development] soloxp:
Man I love this. Just for the hell of it...I instill chrome to phone firefox extension and it works. :D
[Nexus One Android Development] RedShanks:
now i got this too... launching in the taskbar but after a while it terminates...

edit:

when i try to exit ubuntu in the console it says device or resource busy...

root@localhost:/# exit
exit

Shutting down Ubuntu
failed.
losetup: /dev/loop2: Device or resource busy

edit 2:

after rebooting the phone i cant connect via vnc... started terminal and typed "su" and "bootubuntu", got the localhost and tried to connect with vnc.. connection failed
[Nexus One Android Development] mspseudo:
Does anyone have a keyboard problem? ?

If i type for example the word "hello" in firefox il get the word "kg``z" instead.

Is there a way to fix this?
[Nexus One Android Development] Bxrxyxaxn:
Thanx now I can reboot with no problems
[Nexus One Android Development] JKshowman:
on step 13 when you enter the command

vncserver -geometry 1024×800

my computer just beeps and says that its invalid.....any ideas?
[Nexus One Android Development] houzuoguo:
Should be using letter 'x' instead of *

good luck :)
[Nexus One Android Development] JKshowman:
N/a

n/a

n/a

n/a

n/a
[Nexus One Android Development] JKshowman:
ok, now that i have it running, i have graphical issues......like a pink mozilla fire fox...........ideas?
[Nexus One Android Development] prscott1:
I can run the firefox just fine - but I didn't install the lxde - sticking with gnome and opening in 256 colors only.

Another thing that may help some is that using better terminal to manually start the vncserver interprets the "x" as a multiplication symbol - better to use plain terminal app.
[Nexus One Android Development] RedShanks:
when i try to exit ubuntu via console it says:

Shutting down Ubuntu
failed.
losetup: /dev/loop2: Device or resource busy

why...?
[Nexus One Android Development] Rafase282:
i have this error too. so now everytime i boot ubuntu i get a new x, so far at number 13. cant figure out how to make it go to 1 again.
[Nexus One Android Development] xsilvercivicx:
nothing boots

hey guys i got this working just fine on my phone by following directions... but once i load ubuntu i can't open anything.. when i try to open firefox it saying opening and nothing happens... same to almost everything else i try... anyone else getting this??

it seems like some are able to open apps and some arn't?
[Nexus One Android Development] prophetjinn:
Reboot you N1 I had the same problem.
[Nexus One Android Development] Bxrxyxaxn:
i longpressed the app with the trackball, then put on your desktop thats what helped me boot every app on the oS

Edit:has anyone been able to update thru Update Manager?

dont have enough space thoooo
[Nexus One Android Development] prophetjinn:
has anyone been able to convert back to the regular gnome environment? I don't really like ldxe very much, i realize it's smaller and easier to run but i'd seen it running in gnome before i rebooted but that's when i ran into the opening program problem.

i rebooted the phone and the problem went away, but it's not the regular gnome ubuntu shell, it's the lxde.

Also anyone having issues with opening software center? (I realize i can just use synaptics just another pref :P)

Great work with this man! And thank you so much for sharing your work!
[Nexus One Android Development] Lou2serious:
Is anyone using a swap partition???
[Nexus One Android Development] Austin021296:
Do you have to be paired with a pc to get this to run or can you be in a walmart parking lot with just your phone and boot it up directly off the phone?
[Nexus One Android Development] zedomax:
Remove lxde

remove lines:

icewm &
lxsession

from file /root/.vnc/xstartup

and that should give you the regular Gnome.
[Nexus One Android Development] zedomax:
You can be at Walmart Parking Lot!

You can be at Walmart Parking Lot, just launch your Ubuntu off the Terminal Emulator app (which u can get for free on Android Market) then type:

su
bootubuntu

that's it.

Even better, bring a bluetooth keyboard so you can start typing away at the terminal.
[Nexus One Android Development] flak0:
hey ZEDO awesome work man. I would love to collabo with you to get the losetup error fixed. I think we have to actually shutdown Ubuntu for it to work. I have tried

to no avail. Im also wondering if we shutdown the VNC server will it make a difference. Do you know how to shut it down via the command line?
[Nexus One Android Development] flak0:
I just tried this and now I have a grey backround with an X as the pointer, any ideas?
[Nexus One Android Development] flak0:
some commands to use via command line:

Stop the VNC Server:

Shutdown Ubuntu before typing exit

Reboot!
[Nexus One Android Development] Lou2serious:
Which version of ubuntu is this?? Karmic or lucid??
[Nexus One Android Development] zehcwb:
Error solved using formatted sdcard

Was getting exactly the same error on my 16gb sdcard. Then tried with my old (and formatted) 4gb sdcard and worked flawlessly.

Anyone guess why I'm getting this error message with my 16gb card?
[Nexus One Android Development] flak0:
EDIT: Add this to /.vnc/xstartup to get GNOME back