yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] lithiasalesjs:
What is HD2 ? And do we put the two files on the Removable ( REAL SD CARD ) or the Asus Transformer ?

rm failed for -f No such file or directory

CP Can't create '/system/bin/ubuntu: Permission Denied

Type 'sh ubuntu' to boot Ubuntu
[Eee Pad Transformer Android Development] salamandar:
I suspect they are refering to the ubuntu.img available in the HD2 Ubuntu Dev forum, im downloading now to test, i'll post my results.
[Eee Pad Transformer Android Development] lithiasalesjs:
Im guessing put them on the Removable
[Eee Pad Transformer Android Development] lithiasalesjs:
# ls

install.sh ubuntu

# sh install.sh

Type 'sh ubuntu' to boot Ubuntu

# sh ubuntu

SETTING VARIABLES

MOUNTING

ioctl LOOP_SET_FD failed: Bad file number

mount: No such file or directory

mount: No such file or directory

mount: No such file or directory

SETTING UP NETWORK

net.ipv4.ip_forward = 1

ubuntu: line 22: can't create /data/local/ubuntu/etc/resolv.conf: nonexistent directory

ubuntu: line 23: can't create /data/local/ubuntu/etc/resolv.conf: nonexistent directory

ubuntu: line 24: can't create /data/local/ubuntu/etc/hosts: nonexistent directory

All credits to original creator !!!!!!!

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

#
[Eee Pad Transformer Android Development] aligatro2010:
I installed from http://androidadvocate.com/?p=339 and it works great, but running ubuntu native would be much, much better.
[Eee Pad Transformer Android Development] Jhinta:
OMG , you only have two files !!! please read OP
[Eee Pad Transformer Android Development] poltak11:
Alright, to you guys who don't understand (and I agree, the first post was a bit hard to understand), you need a few components first:

OP's uploaded zip containing 2 files (scripts that kinda do all the hard stuff for you):

- ubuntu

- install.sh

and

a root filesystem

The root filesystem is kinda like an image of Ubuntu and the kernel that had been ported to ARM by wizards, or something like that (correct me if I'm wrong please).

I'm pretty sure OP wants us to use an Ubuntu root filesystem for the HTC HD2, found here:

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

(the torrent was fairly speedy)

Anyway, I just got this working with aligatro2010's link which takes us to a guide for getting this chrooting business happening on a Nexus One. But don't panic! The guide works for our Transformer too. So yeah, follow this if you want to get it up and running this way.

But at the line that tells you to type:

vncserver -geometry 1024×800

Change the resolution to 1280x750. Thanks to aligatro2010 for correcting my resolution. :D

Anyway, I'm going to try and get this working with the HD2 root filesystem as OP said, and will report back my success in a while.

(Seriously the coolest thing I've found yet with my TF... I never thought you could do this... thanks OP!!!)
[Eee Pad Transformer Android Development] aligatro2010:
1280x750 is the resolution I use.
[Eee Pad Transformer Android Development] poltak11:
working

Alright, confirmed to have this fully working via OP's method. Details follow:

Get HD2 root filesystem:

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

Download the link (torrent is fast). Extract it and find rootfs.ext2 in the linux folder. Copy that onto your TF and place it in the /sdcard/ubuntu/ directory (it's around 3GB).

Get OP's scripts:

Download from the link in the first post. Extract the zip and move the 2 files to the /sdcard/ubuntu/ directory on your TF.

Alright, now we got what we want.

Go into terminal emulator on your TF (any should hopefully work... I used BTE Pro).

Type the following:

su

Gives you root privileges... note: I'm not sure if this is needed... not too familiar with Android.

cd /sdcard/ubuntu/
sh ubuntu

You should now be "chrooted" into the Ubuntu environment. That is, you've changed the root to the Ubuntu root filesystem (don't worry if you don't understand this). It should look a bit like this:

root@localhost:/#

Now to get up the VNC server so we can view a GUI (make sure you have internet connection at this step!!! We're just going to update package list and install a very small app):

apt-get update
apt-get install tightvncserver

Now you've got your vnc app installed in Ubuntu.

Now to set it up for use:

export USER=root
vncserver -geometry 1280x750

Yep! That's all set up... but yeah, nothing's happening just yet.

If you haven't already got a VNC client installed on your TF (note Android NOT Ubuntu), go here:

http://code.google.com/p/android-vnc-viewer/downloads/list

and get the latest one and install it on your device.

Now go into the app and put a Nickname ("ubuntu" might be wise), your Password (if you made one), leave Address empty, and make Port 5901.

If you want it to look nice, change Color Format to 24-bit color (4 bpp).

Now press connect and you should be in your chrooted fully-functional Ubuntu.

Oh yeah, if you want to automate this whole process so you don't have to do it everytime you reboot your TF or whatever, follow the instructions in OP about editing /root/.bashrc file. This file basically runs everytime the root user logs in... ie. everytime you start your chrooted Ubuntu. So it will do all this automatically, everytime you start (type sh ubuntu in terminal).

Did I miss anything else?

Please note:

Jhinta is the brains behind this (and those HD2 guys who managed to port Ubuntu to ARM). If you get this working properly give some thanks to him. He's the one who wrote the scripts to do this all for you (those 2 files in the /sdcard/ubuntu/ directory). I'm just trying to make it a bit easier to understand for "non-linux nerds" and to help walk you through this. Because, really, it's pretty damn cool :P Even if you're not familiar with Linux or Ubuntu, try it out... you might just learn something!
[Eee Pad Transformer Android Development] Jhinta:
fist thing thnx for the addon info .

but its not a port ;) ubuntu is arm ,it was nerver ported its just a arm ubuntu build and will work on any arm cpu, chroot like this is just adapt to be able to do it .

there is realy nothing special about it , but native well , uuu in time soon i think
[Eee Pad Transformer Android Development] LucJoe:
ohh! So in time we might see a nvflash version of Ubuntu that can completely replace Android? Maybe even a full package that can dual boot Ubuntu/Android natively?

Very exciting stuff, but I'm at the mercy of more intelligent devs around here. Good luck guys! :D
[Eee Pad Transformer Android Development] dude2k5:
Getting some errors

/sdcard/ubuntu # sh ubuntu

SETTING VARIABLES

MOUNTING

ioctl LOOP_SET_FD failed: Device or resource busy

mount: I/O error

mount: I/O error

mount: I/O error

SETTING UP NETWORK

net.ipv4.ip_forward = 1

ubuntu: line 22: can't create /data/local/ubuntu/etc/resolv.conf: I/O error

ubuntu: line 23: can't create /data/local/ubuntu/etc/resolv.conf: I/O error

ubuntu: line 24: can't create /data/local/ubuntu/etc/hosts: I/O error

All credits to original creator !!!!!!!

chroot: can't execute '/bin/bash': Input/output error
[Eee Pad Transformer Android Development] Jhinta:
means thats i cant mount the rootfs .

Device or resource busy -> the loop dev that we create i think it was /dev/block/loop2 is busy whit your device , you can edit the script and try any other loopX 123456 .

recommanded is to try to do the command 1 by one in adb shell or terminal
[Eee Pad Transformer Android Development] dude2k5:
I opened the script and saw:

/dev/block/mmcblk0p1

Little confused..sorry

edit: wait, this?

mount -t ext2 -o loop /sdcard/ubuntu/rootfs.ext2 /data/local/ubuntu

edit2: well I tried again. When I got to

mount -t ext2 -o loop2 /sdcard/ubuntu/rootfs.ext2 /data/local/ubuntu

It worked, or didnt give me an error, but right after

mount -t devpts devpts $mnt/dev/pts

I get a mount: I/O error
[Eee Pad Transformer Android Development] david279:
I had to change the ubuntu script because I placed the rootfs on my external sd card. So instead of using sdcard I used /Removable/MicroSD/ubuntu/.
[Eee Pad Transformer Android Development] movelbit:
I have just tested.

Worked perfect. Easy instructions. Thanks.

How can I make icons like in the preview?
[Eee Pad Transformer Android Development] david279:
How did you get the desktop to look like that? My desktop is using gnome.
[Eee Pad Transformer Android Development] movelbit:
if you would read my previous post, you would kno that my question is exactly the same as yours :)

i got the preview on a HTC HD2 forum. They have it. How can we also use that screen?
[Eee Pad Transformer Android Development] david279:
Oh.... I'm stupid. Lol.
[Eee Pad Transformer Android Development] poltak11:
Yeah, I got a standard 10.10 GNOME desktop as well as you guys. Either OP is using a different root filesystem from the HD2 forums or he installed Ubuntu netbook edition shell over the top of GNOME manually...

Either way, it looks like the exciting stuff is now here:

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

But hold onto your chrooted ubuntu's for a bit longer! It's still WIP.

And thanks for the correction, OP :) Didn't actually realise there was a native ARM port of Ubuntu... but assuming that, it should be easy enough to do this with other ARM supportive distros, right? Heh... we could be running Android and MeeGo on our TFs soon...
[Eee Pad Transformer Android Development] david279:
I like meego. :+)
[Eee Pad Transformer Android Development] Tenny:
Great work getting it working!

Another input method is really needed as not having a mouse makes it rather difficult. So I guess having a bluetooth mouse is next on my list of must haves... Anyone with the dock have it working? I am wondering if the touchpad / keyboard on it interact well with the AndroidVNC?
[Eee Pad Transformer Android Development] poltak11:
I have the dock, and it's working almost perfectly :)

The good things with the dock:

- touchpad works fine, in conjunction with touch screen

- keyboard also works fine for input straight to the VNC server (chrooted Ubuntu in this case)

The bad things with the dock (probably fixable somehow):

- everytime I press 'd', it minimises the currently selected window (within Ubuntu)... rather annoying as it's a commonly used character on most keyboards :P I think 'd' might be bound to some sort of function with the android VNC app

- you have 2 mouse cursors. The Android one and the Ubuntu one. They pretty much follow each other and are very accurate, but it's a bit annoying seeing 2 cursors :\ not that big a issue though

But yeah, other than that, the dock seems to be functioning pretty much like a standard keyboard would.

I also tried it with a Logitech USB wireless mouse and keyboard (not bluetooth) and that worked perfectly as it would with any computer :)
[Eee Pad Transformer Android Development] daniel9522:
once on ubuntu can you change back to normal honeycome
[Eee Pad Transformer Android Development] poltak11:
Yes.

While running Ubuntu, you're not actually stopping Honeycomb. As in, you're not dual-booting your tablet or anything. Ubuntu is simply running within Honeycomb, then you do a little magic spell (called VNC) on it to view and interact with Ubuntu. If you want to go back to Honeycomb as per usual, just press the home button.

chroot is simply UNIX language for "change root directory" or something like that.

ch(change)root(root)

Erm... it's kinda hard to explain but yeah, you kinda have an active Ubuntu operating system running inside Android once you "chroot" into it (via a terminal emulator app).

So yeah, basically it's not really what you would call "native" Ubuntu, which is what is being worked upon now. "Native" Ubuntu on the TF should mean that it will actually be installed onto the tablet's internal memory (just like how Android is now).

And yeah... hopefully there will be some way to dual-boot Android, and whatever other OS you put on your TF in the very near future :)

And also: while you will have pretty much a full blown Ubuntu Linux OS running on your TF, don't expect it to be as well integrated with the whole "touch interface" as Android is! (by default, anyway). Your finger acts as a mouse and where you touch is where the cursor goes to. It's rather awkward to use without a keyboard and mouse, but by no means is it unusable...

Basically what I'm saying is that it won't be as pleasurable an experience as touch optimised OS's, such as Android, iOS, or MeeGo, are... yet.
[Eee Pad Transformer Android Development] commandersafi:
If you go into the keyboard shortcuts option you can see that for some reason d is set to minimize all windows. Just edit the shortcut to some other key (or blank like i did) and that won't be a problem anymore. I also had to restart ubuntu for it to register the change.

Yes, this isn't replacing android. It's running along side and you are just using a vnc viewer to remote log in to the ubuntu desktop.
[Eee Pad Transformer Android Development] Jhinta:
to have ubuntu 2d make sure netbook-launcher-efl is installed , and add it to autolaunch
[Eee Pad Transformer Android Development] gnagnone:
if you install a web server in the chrootted ubuntu can you access it from the browser by typing an ip address?
[Eee Pad Transformer Android Development] MatthewJackal:
Can someone take a video and do a quick review ubuntu running on TF?

I will be grateful.
[Eee Pad Transformer Android Development] nttdemented:
I went in to remove the "D" shortcut from the Keyboard shortcuts but I can't reboot ubuntu. When I click the power button on the top right the menu doesn't appear and when I try using "reboot" "shutdown now" or "halt" on the command line it acknowledges the command but nothing happens.

Complete Ubuntu newb here but I'll take this oportunity to get aquainted with it.
[Eee Pad Transformer Android Development] nttdemented:
Subscribed
[Eee Pad Transformer Android Development] anthrax704:
Alright I got everything working! Except the keyboard is all wonky :-\. In ubuntu, this is what I get when I type qwertyuiop: c.gvnmlzx. The letter y doesn't seem to do anything. I've tried setting the Android keyboard to ASUS English(US) ASUS keyboard and the English US Android keyboard. I have tablet keyboard and swype installed but they're not turned on. If anyone can help I would appreciate it :D
[Eee Pad Transformer Android Development] daniel9522:
I installed from http://androidadvocate.com/?p=339 and now i cant get what Jhinta posted

i keep getting this
[Eee Pad Transformer Android Development] nttdemented:
I get that to if I exit out of the root shell back to the android shell and use sh ubuntu to come back to the ubuntu root shell.

Played around with it attached to the dock now that I finally got the 'd' shortcut to stick after rebooting the entire tablet.

Still cant get to shutdown or restart the ubuntu vm and require a cold reboot to shut down.
[Eee Pad Transformer Android Development] commandersafi:
Once again this isn't the exact file I used (used the one that first came out in the xoom forum), but in the one I had there was no way of stopping/rebooting Ubuntu alone. Running the 'ubuntu stop ' command I mentioned actually does just reboot the transformer. I guess I should have mentioned before that you need to restart the tab in any way instead of telling the command that would do it.
[Eee Pad Transformer Android Development] nicandris:
ok this is a long shot here, but while using chroot, can i mount external devices like external wifi or usb storage?
[Eee Pad Transformer Android Development] poltak11:
To the people wanting to know how to shutdown the VNC server without rebooting honeycomb, here's how I do it:

Go back into the terminal emulator (that is still chrooted into Ubuntu).

Type the following code:

vncserver -kill :1

Now, the number "1" in that line corresponds to the what the running VNC server is numbered... (I can't think of a better way to explain this) for instance, if you have 3 instances of VNC server running, they might be numbered 1, 2, 3.

So by default when you type in:

vncserver -geometry 1280x750

to actually start the VNC server, it should make this instance of VNC server number 1.

So under the condition that you are running only one VNC server out of your chrooted Ubuntu (don't really know why you'd want more than one in these circumstances...), just type in the first command I showed you up there.

And yeah, that should kill the server and it won't be running in the background anymore.

If nothing I wrote up there made any sense:

(my head's not screwed on atm)

Try the first command... if it doesn't work, substitute 2 in the place of the 1 there. If that doesn't work, you probably already shutdown your VNC server with some magic, such as shutting down the terminal emulator, so yeah, don't worry (unless, of course, you can still connect...).

Hope this helped :)
[Eee Pad Transformer Android Development] poltak11:
By default, if you plug in an external/usb peripheral it doesn't automatically mount itself within chrooted Ubuntu (but of course get's mounted in Android). This is because you're working within a virtual filesystem, that's kinda separate to the Android filesystem, or some other such nonsense.

But yeah, you could probably easily do it by adding an extra mount command to the startup ubuntu script that we've got. But this would mean you must have the device mounted under Android before starting the chroot.

If you mount it after starting the chroot, you could probably just do the same mount command in Ubuntu while it's running and it would work alright.

The mount command would like something like following:

mount [B]/android/mount/point/[/B] /mnt/

But of course, I don't know how to access the Android filesystem from within Ubuntu chroot. It's probably really simple, but I'm too much of a dumbass.

Someone correct me if I'm wrong. Just in my head, in theory it works.
[Eee Pad Transformer Android Development] nicandris:
lol i googled about "mount external usb chrootr" and it actually displayed your answer haha

i guess the proper way is to mount it in the startup script. will play a bit with that as soon as my tablet arrives. now the main question is, can i connect an external wifi antenna
[Eee Pad Transformer Android Development] daniel9522:
unable to install i keep getting this (in the picture)

i install this I installed from http://androidadvocate.com/?p=339 and it works great, but running ubuntu native would be much, much better.

need help please
[Eee Pad Transformer Android Development] david279:
I bet you have the Ubuntu folder on your external sdcard. Thats whats causing the error. You could edit the Ubuntu script to point to /Removable/MicroSD/ubuntu/ or just move the files over to the internal sdcard(/mnt/sdcard/).
[Eee Pad Transformer Android Development] daniel9522:
it is not on the external sd card
[Eee Pad Transformer Android Development] poltak11:
First off, I highly recommend you get the one from the HD2 forum (I linked it in on of my earlier posts) as it's a far more recent version of Ubuntu and comes with some nicer things (plus it's easier to get set up).

Anyway, if you want to try with this one, the problem here is that you are trying to get it working using Jhinta's scripts that aren't compatible with this. So you must use the scripts that came with the download on http://androidadvocate.com/?p=339. I think those ones are called bootubuntu and ubuntu.sh.

So yeah, get them and the root filesystem (called something.img) and put them all in the /sdcard/ubuntu/ directory. Then go to that directory, su, then type:

sh ubuntu.sh

then

bootubuntu

after this you should be in a chrooted fully working Ubuntu (although it will just be a command line, which you might not want). The details to get the gui up and running are detailed in that link you posted, along with everything I've said here (in more detail).

But yeah, play around with that and get it working if you want. But I advise you to download the version on the HD2 forums for a more up-to-date and easier to install version.

Tell me if you need anymore help :)
[Eee Pad Transformer Android Development] EpiphanyMachine:
Can anyone confirm if either firefox or chrome (chromium) work on this build?

I have the version from the xoom forum (Ubuntu 11.04) installed but firefox crashes on startup and chromium displays a blank white screen even though it connects and downloads the data. I can click on a link blindly (the whole screen is white) if I know where it is, but cannot see anything.

Thanks for the help :)
[Eee Pad Transformer Android Development] daniel9522:
the one from http://androidadvocate.com/?p=339 works perfectly fine but it seems pretty old

But I advise you to download the version on the HD2 forums for a more up-to-date and easier to install version.

but how ?

do i have to get rid of the one i installed or something

cause when ever i try the one from HD2 forum

i keep getting

chroot: cant execute '/bin/bash': no such file or directory
[Eee Pad Transformer Android Development] Jhinta:
you only need the rootfs of the hd2 and not the script that come with it, as its not build for tf101 (mount point div.) its simple, just ad the rootfs.ext2 to tf101 on /sdcard/ubuntu/rootfs.ext2 + when running th scripts mak sure your root. if you not ruuning my scripts you just need to edit the scripts so that mount points and dir. are correct. you can run them 1 by 1 to see whats failing.
[Eee Pad Transformer Android Development] daniel9522:
when running th scripts mak sure your root.

how to run your scripts
[Eee Pad Transformer Android Development] Jhinta:
Put them in the same dir as rootfs install a terminal emulator then run su and then cd /sdcard/ubuntu and then sh install.sh then sh ubuntu
[Eee Pad Transformer Android Development] daniel9522:
it says

sh: cant open install
[Eee Pad Transformer Android Development] wollyka:
For some reason i am getting "403tNull" error when downloading the scripts from the OP.. Can somebody upload it again? thanks
[Eee Pad Transformer Android Development] daniel9522:
could you make a video
[Eee Pad Transformer Android Development] poltak11:
Make sure you are typing in "sh install.sh" not just "sh install"

Either way, just typing "sh ubuntu" should work once you have cd'd to the /sdcard/ubuntu/ directory.

There really is not much need for a video. Just type in the following (exactly as it's written) in your terminal. And we are assuming that you already have the 2 script files (ubuntu & install.sh) in /sdcard/ubuntu/ along with the root filesystem (rootfs.ext2). Okay, so we got them? Let's continue:

cd /sdcard/ubuntu/
su
sh install.sh
sh ubuntu

Okay. Now you should see either an error message or a prompt that looks like this:

root@localhost:/#

This means you are successfully in a chrooted Ubuntu environment! :D If you want to get a full desktop GUI set up, please refer to my second post on the front page.

In the case that you get an error, reply with the error and I'll do my best to sort out what's going on for you. :)
[Eee Pad Transformer Android Development] daniel9522:
thanks man i got into chroot:)

but cant enter password
[Eee Pad Transformer Android Development] daniel9522:
but cant enter password

cant type anything in in better terminal pro when it says enter password
[Eee Pad Transformer Android Development] paow:
I think you can, you just wont see it.

Just enter the password you want and press enter, you wont see anything when you type, but its there.
[Eee Pad Transformer Android Development] daniel9522:
thanks

how to install google chrome

and listen to music

and watch movies