yashsingh1/xdaforums huggingface dataset:
[Nook Color Android Development] munday:
I got it going, just needed a few "busybox"-es here and there :D. It needs some work, right now to get X you have to use VNC.

It's sluggish but a bit more work might just yield something a bit more usable. I'll play more tomorrow night.

Here's my scripts:

ubuntu.sh

mount -o remount,rw /dev/block/mmcblk0p5 /system
busybox modprobe ext2

rm -f /data/local/bin/fsrw
rm -f /data/local/bin/bootubuntu
rm -f /data/local/bin/unionfs
rm -f /data/local/bin/installer.sh
rm -f /data/local/bin/mountonly

mkdir /data/local/mnt

#busybox clear
rm /system/bin/fsrw
rm /system/bin/bootubuntu
rm /system/bin/unionfs
rm -/system/bin/mountonly

busybox cp -f fsrw /system/bin
busybox cp -f bootubuntu /system/bin
busybox cp -f unionfs /system/bin
busybox cp -f mountonly /system/bin

cd /sdcard/ubuntu

busybox chmod 4777 *

cd /system/bin/

busybox chmod 4777 *

cd /

#busybox clear

echo " "
echo "Ubuntu Chroot Bootloader v0.1"
echo "Ubuntu Bootloader is now installed!"
echo "This process does NOT damage Android OS!"
echo " "
echo "Original Installer by Charan Singh"
echo "Modified for Ubuntu Chroot by Max Lee at NexusOneHacks.net"
echo " "
echo "To enter the Debian Linux console just type 'bootubuntu'"

bootubuntu

mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/sdcard/ubuntu
export bin=/system/bin
export mnt=/data/local/mnt
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
busybox mknod /dev/loop2 b 7 0
mount -o loop,noatime -t ext2 $kit/ubuntu.img $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4"
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "Setting localhost on /etc/hosts "
echo "127.0.0.1 localhost" > $mnt/etc/hosts
echo "READY TO ROCK AND ROLL BABY! "
echo "Brought to you by NexusOneHacks.net and the open source community! "
echo " "
busybox chroot $mnt /bin/bash

#After exit command is executed clear it all up
echo " "

echo "Shutting down Ubuntu"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt

Then just followed the instructions at nexusonehacks.

note: to run bootubuntu i had to use sh and the use the full path:

# sh /system/bin/bootubuntu

other note: I was using adb not a term app on the nook.

Obligatory video

I can't post links yet so check: youtube.com/watch?v=TnXfZ6aagn8 for a really boring video

EDIT: switched the names, DOH!
[Nook Color Android Development] devastatorx:
I also had to use sh and the full path also. Thanks for the update on the script...gonna try it in the morning (it's 2am here) will also see if I can help to get it running smoother. What class SD card are you using? I imagine a class 4 or higher would yeild better results as far as responsiveness goes.
[Nook Color Android Development] munday:
The sd is a class 2 that came in one of my dev phones. I'll pick up a faster one tomorrow after work and test it out.

It's just about 3am here now, we must be in the same time zone.

I'm going to bed now, but first here's a modded version of the script you had originally posted that also works now.

bootubuntu

#!/bin/sh
mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/sdcard/ubuntu
export bin=/system/bin
busybox [ ! -d /data/local/ubuntu ] && mkdir /data/local/ubuntu
export mnt=/data/local/ubuntu
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
busybox mknod /dev/loop1 b 7 0
busybox losetup /dev/block/loop1 /sdcard/ubuntu/ubuntu.img
mount -t ext2 /dev/block/loop1 /data/local/ubuntu
#mount -o loop,noatime -t ext2 $kit/ubuntu.img $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4"
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "Setting localhost on /etc/hosts "
echo "127.0.0.1 localhost" > $mnt/etc/hosts
echo "READY TO ROCK AND ROLL BABY! "
echo "Brought to you by NexusOneHacks.net and the open source community! "
echo " "
busybox chroot $mnt /bin/bash

#After exit command is executed clear it all up
echo " "

echo "Shutting down Ubuntu"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
busybox losetup -d /dev/loop1
#unregistering the loopback device just seems to die. need to fix or remove.

I'll look at the N1 formus tomorrow too and see if they have made progress in getting X to run fast or without need for VNC.
[Nook Color Android Development] wethegamerz:
Nice work, I am addicted in seeing the crazy crap people are doing everyday.
[Nook Color Android Development] devastatorx:
Couldn't sleep so I'm messing around with it now...I'm using a class 4 and have it up and running. It does seem to be a little laggy, but I don't have a class 2 to compare it to. Let me know what you find out, I'll keep playing with it also to see if I can get it to be more responsive...but we are definately on our way to having a great little linux tablet in addition to android. You should also be able to use this for other builds of linux also by just changing out the .img file to a flavor of your choosing. I'm excited :)

I have also updated the OP with the how to and credits. Really appreciate your help munday.
[Nook Color Android Development] devastatorx:
I noticed that after rebooting the nook would hang at the "Future of reading" screen....if this happens turn the device off remove the sd card the turn the nook back on. It should boot fine. After it's finished you can return the sd card and mount it. This is strange and I'm looking into it. I'm not sure if this is limited to me or if it is universal to all nooks.

Edit:

Running into some strange occurrences...it appears that when you type exit from the terminal to kill ubuntu, I believe ubuntu stays running...anyway, I'm going to bed and will work on it more tomorrow.
[Nook Color Android Development] Link3737:
Are there any increased risks with changing the version you use?
[Nook Color Android Development] devastatorx:
Well, you will want to make sure that the build supports ARM based devices.
[Nook Color Android Development] devastatorx:
I fixed this, the scripts were backwards, I have updated the OP to reflect the changes and bootubuntu now works
[Nook Color Android Development] munday:
sweet, i can't wait to get home to play more!!!
[Nook Color Android Development] Link3737:
I've tried running ubuntu.sh from the terminal emulator (With su) and from ADB, and have not had success with either.

The readout is:

': File existste '/system/bin
': File existste '/system/bin
': File existste '/system/bin
: not found
: not found
cd: can't cd to /sdcard/ubuntu
: not found
: No such file or directory
: not found
cd: can't cd to /system/bin
: not found
: No such file or directory
: not found
cd: can't cd to /
: not found
: not found

Ubuntu Chroot Bootloader v0.1
Ubuntu Bootloader is now installed!
etc., etc.

Is there a problem with how I copied the script? I assume the first part about the file existing is due to this being the third or fourth time I've tried running the script (Unsuccessfully), but I've no idea how to interpret the rest.

Thanks :)
[Nook Color Android Development] devastatorx:
I sent you a message

Try using these, just unrar and then copy them in your ubuntu folder, if it asks to overwrite just click yes...also you have autmounting of the sd card turnned off in nook color tools settings right?
[Nook Color Android Development] Link3737:
Yeah, it must have been an error on my end. Using the updated scripts you posted worked like a charm.

Thanks!
[Nook Color Android Development] devastatorx:
Good to hear!

I'm currently working on making this a port to the SD card so that with the sd card in it boots into ubuntu from power off, and with the sd card out it boots to android then you replace the sd and use it for storage like normal. It will also run a lot snappier....well that's the idea anyway.
[Nook Color Android Development] Link3737:
Booting from SD in the same fashion as Nookie Froyo? That sounds like it would give a huge performance boost over the current method, I can't wait to see what you come up with.
[Nook Color Android Development] devastatorx:
This should be acheivable using the method mentioned in this topic:

http://xdaforums.com/showthread.php?t=873243 thanks to clockworx.

Currently looking into this
[Nook Color Android Development] munday:
I was thinking the exact same thing, the nook seems to like booting from sd, so we should be able to set up the partitions like the foryo sd and edit the init.rc and env.txt to boot ubuntu instead of android. Just a theory though. It's my plan for tonight anyway.
[Nook Color Android Development] devastatorx:
I also stumbled across this: http://androix.org/ Which talks about a native android xserver which does a way with the vnc aspect altogether. I downloaded and attempted to install but I get the error "There is a problem parsing the package" and I haven't had any luck plus there isn't much documentation.

Let me know how it goes munday, I'll be working on the same thing later (have to take the fiance out for dinner)
[Nook Color Android Development] trentmaynard:
question

I was just curious, after installing ubuntu can we install flash as we would had we booted linux from netbook?
[Nook Color Android Development] beehiveblack:
Bump... I'm installing this now.

Anyone still working on this?
[Nook Color Android Development] therkr:
I'd like to know the same. Please don't stop on Ubuntu.
[Nook Color Android Development] halrulez:
Double triple and quadruple on this. I would love to see this go further. My nook has miui on it and it works great with my bt kb and mouse but i want a full fledged ubuntu 11 on it. Would make a great mobile work place besides my i7 lappy.
[Nook Color Android Development] prehistorical:
Dead Thread

This dead thread has already been superceded by a newer thread, which is now pretty much dead.

[SD][WIP][DEV]*NookBuntu Beta 0.3* 5/18

Though this thread was the one that got more press, the newer thread has something closer to "nice."
[Nook Color Android Development] stevedat:
usb keyboard cover

Sorry for digging it.

Will it be available now and work with USB keyboard?

Thanks.
[Nook Color Android Development] TechGuy123:
Anybody have a mirror for this file? Need it to repurpose an old Nook Color.
[Nook Color Android Development] devastatorx:
I haven't tried it yet but I imagine the answer would be yes seeing as how it is a full ubuntu installation.

Been busy working on the SD version...
[Nook Color Android Development] trentmaynard:
well... then, thanks for the response. thumbs up to you sir
[Nook Color Android Development] munday:
Nice find. It looks very, very interesting.

It also looks like that's built for Android 2.2 (froyo) since there's a pic of it running on a G2. I also tried the source link but it was dead. I'm going to hit up IRC to see if I can find the dev and maybe get the source to mod it for 2.1 so it can run on the nook.

EDIT:

the author is tmzt, a dev here on XDA who worked on G2 rooting. his github is

here: https://github.com/tmzt

I made a bit of a faux pas in PM-ing him on IRC instead of asking first (I'm and IRC noob) :o

He didn't respond, I'm guessing he wasn't at his comp, hopefully i didn't offend.
[Nook Color Android Development] devastatorx:
I came across him on IRC earlier but I didn't get a response from him. I too was thinking that it was because it was built for 2.2 that it may not work on the Nook. I'm going to keep plugging at an sd card install.. Let me know if you make any progress. :)
[Nook Color Android Development] flynx42:
The Nook Color runs an ARM Cortex A8, so your in the same boat as the Nokia N900 - flash v9 is available but there is no flash v10 for ARM that has been made public yet. And since everything good already went to flash 10, your outta luck.

EDIT- google "TI flash 10 ARM" and click the first link. Thats what you need ;-)
[Nook Color Android Development] devastatorx:
..bummer

EDIT- Looking into it, thanks!
[Nook Color Android Development] cevans59:
Great work guys. I imagine it would be pretty sweet to run Ubuntu Netbook Remix on the NC.
[Nook Color Android Development] starship:
Everything worked until step 14.

When I typed "bootubuntu", I got the following message:

bootubuntu

bootubuntu: not found

Please help. Thank you.
[Nook Color Android Development] devastatorx:
Download the file attached to this post: http://xdaforums.com/showpost.php?p=10328313&postcount=13

unzip it and copy the 2 scripts over to your ubuntu folder, if it asks to overwrite click yes. Hopefully that fixes your problem...I need to repack the file from the first post I think
[Nook Color Android Development] Sonicjet:
Is there any way that you can simply patch that code in and recompile so we don't have to do so many steps?

BTW, Thanks.
[Nook Color Android Development] devastatorx:
I'm working on it..

EDIT: Updated original post to streamline the process and uploaded new ubuntu.7z file with changes. Back to working on the SD version.
[Nook Color Android Development] Ophbalance:
I've got everything working except booting ubutnu from the actual Nook. When I bring up Connectbot and through in root@localhost:22 (or 23) I'm getting a connection refused. Can anyone give a more detailed approach to pulling up a terminal on the nook?
[Nook Color Android Development] devastatorx:
If you're in terminal emulator you should have access to the android terminal after running bootubuntu...giving you command line access to the ubuntu installation.

i.e. when the terminal shows

root@localhost:/#

you shouldn't have to ssh in...unless i'm missing what you are trying to do.

it's late though so i'll look again in the morning.
[Nook Color Android Development] greenmky:
Is USB host working under Ubuntu? As in, being able to plug in USB devices like a keyboard or a USB game controller?
[Nook Color Android Development] Ophbalance:
My misunderstanding was the terminal emulator required. I grabbed an SSH client, but what I really needed was "android terminal" from the market. I'm rolling now, thanks.
[Nook Color Android Development] likearaptor:
Also a note for those who just want to use ConnectBot, you just need to click on the dropdown list where it says ssh and select localhost. Then you jsut give the connection a name like localhost (but it doesn't matter) and then hit enter
[Nook Color Android Development] :
Network Issues.

So I followed the instructions to heart and everything seemed to go just perfect. The only thing is that I cant get apt-get to work once I am in cause there is no network connection.

Moreover when running sh ./ubuntu.sh this is my output.

# sh ./ubuntu.sh

modprobe: chdir(/lib/modules): 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

rm failed for -f, No such file or directory

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

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

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'

And i extracted the ubuntu.7z file on the root of my sdcard in the ubuntu folder.

So I do not know what is going on and why chmod fails on me.

Anyone facing the same issue??

Any suggestion will help.

Thank you in advance.
[Nook Color Android Development] Ophbalance:
Question. Any thoughts on using 10.10 at some point int he future to pick up the Ubuntu One interface?
[Nook Color Android Development] devastatorx:
At the moment no. In the future, likely,

Awesome, great to hear!

You have to type "su" in the terminal emulator and hit enter, then run the ubuntu.sh script. This should solve your problem.

It's could be a possibility. The idea at the moment is to get ubuntu running smoothly enough to be a daily os.
[Nook Color Android Development] arodey:
Would it be psooible to set this up on /media instead of /sdcard?

EDIT: Changed the scripts around and attempting now. FINGERS CROSSED!!!

DOUBLE EDIT: WORKED!!!
[Nook Color Android Development] devastatorx:
Let me know how it goes :)
[Nook Color Android Development] arodey:
SUCCESS!!!

Only reason I tried this was because all I had on hand was a 2GB microSD. I also wondered if performance would be better but i have no way of comparing atm.
[Nook Color Android Development] :
I can't believe how well it works. This is now what is called a true tablet pc.

Sent from my Nook Color
[Nook Color Android Development] devastatorx:
I too just tried this and can confirm that this does work. As for performance I will post shortly, currently trying to build a new image to boot from the SD card
[Nook Color Android Development] Divine_Madcat:
I get the same error, and am typing su first. When i type su, all it echos is su; is that normal?
[Nook Color Android Development] devastatorx:
Have you tried running bootubuntu after you get these errors? Some of the errors you will get because it is trying to remove something that isnt there. can you do this from adb and send me the output in a pm?
[Nook Color Android Development] Divine_Madcat:
I get the exact same error the other person posted - nothing special to PM.

# sh ./ubuntu.sh

sh ./ubuntu.sh

modprobe: chdir(/lib/modules): 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

rm failed for -f, No such file or directory

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

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

chmod: bootubuntu: Operation not permitted

chmod: fsrw: Operation not permitted

chmod: mountonly: Operation not permitted

chmod: ubuntu.img: Value too large for defined data type

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'

In the adb shell, when i tell ubuntu to exit, i get a failed message, and ubuntu also never exits....

root@localhost:/# exit

exit

exit

Shutting down Ubuntu

failed.

#

I will say that i can VNC into ubuntu, but it is very laggy... not nearly as nice as people are making it out to be on here...
[Nook Color Android Development] urbanengine1:
if you want less lag, try lowering the resolution inside ubuntu, it speeds it up alot...

also i dont know much about such things but i think a lot of the lag is due to the VNC connection, BUT mainly because the nook is running two operating systems at a time...

think about using VMware on a computer with the same specs as a nook and youll see what i mean.

Also the ubuntu shutdown fails for everyone (as far as i know) and youll have to reboot your nook to completely shut it down.
[Nook Color Android Development] Divine_Madcat:
Thanks for the reply! My appologies for not realizing some of my errors. I guess my last question - how do i go about changing the res in the OS?
[Nook Color Android Development] devastatorx:
The shutdown error doesn't seem to be an issue when using /media instead of /sdcard (can anyone confirm this for me?). Also I still haven't had a chance to really play around in it while it runs from the device memory..so I still don't have anything to report there yet as far as a performance increase. As of right now the method posted is just to hold everyone over until we can get it booting from the sdcard. Kind of a proof of concept for the moment. Hopefully we have something to show over the next few days. I know that myself and munday are putting a lot of time into this.

-devastator
[Nook Color Android Development] greenmky:
Full fledged Ubuntu with usb host...I can imagine the perfect little old console emulation device on the go here. Linux emulators are nice and stable.

No futzing around with pay apps for it on Android either.

Awesome work guys. Watching to see how things work out. I hope at some point we have a grub-style launcher for this thing to switch back and forth easily, that would be awesome ;)
[Nook Color Android Development] Divine_Madcat:
All the effort is appreciated! I would love to turn this tablet into a full linux machine.. that would be awesome. :)
[Nook Color Android Development] starship:
Working like a charm! Many thanks for your effort. Pls keep up the great job!
[Nook Color Android Development] here.david:
Does anyone have a different link other than MEGAUPLOAD , three times now it is a bad download and takes 30 - 40 mins each time...(I have 5MB DSL download speed so it is not mine DSl service)...9am (Pacific time zone) 1/7/2011...
[Nook Color Android Development] itmustbejj:
Just a thought but would running nxserver instead of vnc make the gui more responsive?
[Nook Color Android Development] WaveMaster1406:
WOW That's great!!!

can't wait :)
[Nook Color Android Development] aznblood:
Do you work/stay on an IRC channel? I am actually working on a similar OS that uses the android kernel, gnuLibc and Xorg server (with native video driver if possible). The idea is to use the nookcolor as a thinclient and get most applications run through ssh forwarding (tunneling). This idea opens up many personal computing possibilities in using the Nookcolor.
[Nook Color Android Development] devastatorx:
I'll be on and off the #nookcolor channel, nick is devastatorx
[Nook Color Android Development] Latrocinium:
This is the real ticket!

I used to work in a dev house that did this.(Not with nooks, outdated PCs) With less than 4 ppl on the server everything screamed. No need to worry about special apps, all hosted on server.

Then you have a full desktop without taxing the nook.

If you have any info on using the xorg passthrough, as opposed to vnc. Please Post!
[Nook Color Android Development] mrintegrity:
Could someone please make a torrent of the ubuntu.7z as it's going to take hours to download from megadl for me.
[Nook Color Android Development] yerand:
so how's the sd version coming along
[Nook Color Android Development] Novarider:
Is anyone working on an auto script for this? I would like to be able to run Ubuntu but I'm hesitant to install since i'm not great at CP. A dual boot would be awesome maybe like nookie froyo
[Nook Color Android Development] munday:
devastatorx and I are working on this. Still a way to go but we're making progress.

If anyone wants to help just let us know :)
[Nook Color Android Development] federaly:
Tempted

Damn I am tempted by this and I don't even own a Nook Color but I am tempted to go buy just to load uBuntu on it....:D
[Nook Color Android Development] Novarider:
When this is installed does it override the stock setup or is it installed along side the stock setup?
[Nook Color Android Development] Sonicjet:
Congrats, you just made yourself headline Engadget....
[Nook Color Android Development] munday:
It runs along side android, and you access it via vnc to localhost, that makes it slow though. The ultimate goal is to boot from SD, so when you want Ubuntu you just pop in the card and reboot, when you want android just boot normally.
[Nook Color Android Development] Novarider:
Imo the ULTIMATE goal would for it to be a flashable rom that you flash with cwm recovery. That way you could run ubuntu with the full power of the NC. Then if you get tired of it flash back to stock or a custom rom which should be out by that time