yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] poltak11:
Have you ever used Ubuntu (or any other Linux distro) before? If not, this question really goes outside the scope of this thread, but to start you off, you can either do it via GUI or CLI (command line interface).

You'll probably want to start via GUI, so click on the Applications menu in the top left hand corner and find Ubuntu Software Centre. Basically it's similar to the Android Market. Search through for software you want and press the install button.

Most software on Linux is free (as in no cost), but you will find the occasional game or so that you need to pay for (similar to Android I suppose). And you'll find Chrome under the name Chromium in the Software Centre. It's basically the open-source browser which Google Chrome is based upon (and from an end-user view, it works pretty much identically).

Anyway, please note that things won't be perfect as this is an ARM port of Ubuntu (compared to the standard Intel/x86 version) which is not as stable, so don't expect everything to work... if you really want to try out Ubuntu or Linux, it's a much better experience on an actual desktop/laptop :P

If you need any other Ubuntu related help, type it in Google and there is seriously a huge online community, and a ton of answers already on the net for newbies. We can't really answer these questions here, sorry. But good luck :)
[Eee Pad Transformer Android Development] ivan.volosyuk:
What about on screen keyboard in x11 in vnc? Does it exist? Is it handled via android interfaces or using Ubuntu package?
[Eee Pad Transformer Android Development] poltak11:
# apt-get update && apt-get install gok

That will do it, I'm pretty sure. Then Gnome Onscreen Keyboard (GOK) will be in one of the menus. It's nowhere near as nice as the Android keyboards though.

Depending on what VNC app you are using, you can also send input straight to the VNC server (chrooted Ubuntu in this case) via typing using the Android Keyboard, but that usually takes a bit of menu navigation to do.
[Eee Pad Transformer Android Development] CelticWebSolutions:
Can somebody tell me how you stop a running ubuntu please?

exit doesn't seem to cut it and ubuntu stop gives me a permission denied.

Anyone know how to stop it all?
[Eee Pad Transformer Android Development] Tenny:
http://xdaforums.com/showpost.php?p=15249783&postcount=47

You can also control+c if you have a keyboard (perhaps a soft keyboard like hackers keyboard could do it too).

Has anyone figured out how to remap D to D?
[Eee Pad Transformer Android Development] anthrax704:
Still can't get my keyboard to work properly :( Guess no one knows why this is happening? Reading everyone else's posts seems it's working fine for them :(
[Eee Pad Transformer Android Development] kamil205:
Working great.

Although I have some problems, I don't know if you had the same:

- It is possible to double click with the keyboard? This my depende from the vnc application, but there is anyone making us able to do it.

- I'm Portuguese, soo I need to use accents, like "há" or "são", but using keyboard to input, nothing appear when putting them (I have the portuguese keyboard layout working great in any other app.)

- Some applications do not open, like system monitor.

- What can I do after using the ubuntu. How can I turn it off so it don't waste resources.

- If I reboot, vncserver start a new instance, having to change the port to 5902, and there for. I can kill the instances, but how can avoid this, since it happens after I reboot the tablet, and i'm unable to start the vnc session.

Thanks
[Eee Pad Transformer Android Development] gnagnone:
Hello,

I got this working perfectly, thank you very much Jhinta.

I would like to use it just from my terminal, I need it to program in ruby on rails using vim... now my keyboard is totally messed up. How can I map correctly the keys?

Thank you

Gnagnone
[Eee Pad Transformer Android Development] gnagnone:
I don't know if this thread had been abandoned, but I am really interested in running linux with chroot (even more than running it natively), I tried a simple "apt-get upgrade" and I get stuck at "libappindicator0.1-cil trying to install 3 assemblies into mono"

no way to pass this step... (I left it running for some hours...) ubuntu is pretty useless that way because I can't even install vim.... any suggestion? It would be ok for me even to totally uninstall mono or even gnome... anyway I just need ubuntu to use it from my terminal...

Thank you

Gnagno
[Eee Pad Transformer Android Development] sponge_worthy:
This is great! Thanks for the detailed How To. Great for noobs like me. I have one question (well 2). Do I need to enter this stuff everytime I want to start it outside of the download of the vnc server? You mention about the OP about editing /root/.bashrc file to automate the process? So after initial installation, what are the steps to get it running again? Thanks again!
[Eee Pad Transformer Android Development] Jhinta:
Thats because of the chroot . to fix it run it in a desktop chroot .
[Eee Pad Transformer Android Development] Jhinta:
bashrc is for auto setup vnc and path's when chroot starts does notting more.

and auto starting chroot from android is posible , but i dont know how nor will i look into this .
[Eee Pad Transformer Android Development] Jhinta:
chroot is limited to the android max mem of 32 thats why things somtimes do not open .

normaley chroot worklike mount cpu dev and so on on a dir and then chroot.

to unmount it you go backward unmount so one, dev, cpu , tthat is when it works !! it doesnt for me me

if you look ad this

mount -t ext2 -o loop /sdcard/ubuntu/rootfs.ext2 /data/local/ubuntu ## mount a ext2 loop file from dir to dir
mount -t devpts devpts $mnt/dev/pts ### mount android devpts in root (mnt/dev/pts)
mount -t proc proc $mnt/proc ## same as above
mount -t sysfs sysfs $mnt/sys ### same as above

to umount you have to umount the other why

umount /sysfs

umount /proc

umount /dev/pts

umount /data/local/ubuntu

And that is if it work !! but know you know a basic how it sould work.

just try some code ans see what it does for unmounting

if you get it umounted the port sould also be oke .
[Eee Pad Transformer Android Development] Jhinta:
So guys this i CHROOT !!!

meaning there is noting els to be done on kernel space !!

ALL errors you getting are user space !!!!

MEANING if you know how ubuntu works you can easly fix them.

I have just gave you all the opportunity do do this.

And for chroot there is nothing left to do !!!!!

its chroot !!!!

Also you can see all other chroot guid and see what the did as they are all the same !!!!!!
[Eee Pad Transformer Android Development] DavidFong:
Ouch! A maximum of 32 megabytes for CHROOT seems to be fairly limiting, particularly when what seems to be relatively simple applications like "System Monitor" do not work, let alone the application managers and synaptic! Is there any way around this?

By default, my 0.3 HD2 ext2 image had a non-Unicode locale.

This can be easily seen by entering the command 'locale' in a shell.

So it doesn't handle Chinese scripts either.

Perhaps a command like 'export LC_CTYPE=en_GB.UTF-8' could help!

David
[Eee Pad Transformer Android Development] jmbneaf:
two really basic questions

Got this working on my Eee Pad and love it.

I have two really basic questions (after reading the whole thread)...

1.) how can I increase the rootfs.ext storage size? I have a large MicroSD card that works well & I need the space as I want to try some development things that need much more space.

2.) once up and running, how do you cleanly shutdown Ubuntu? (or can you? only way I've been able to do so is shutting the tablet down and re-starting...

- sounds dumb, but sending CTRL-ALT-DEL keys via VNC doesn't work

- shutdown is grayed out

- from Ubuntu terminal, typing shutdown -r now doesn't work

- from the terminal prompt, shutdown -r now doesn't work either

OP great work! poltak11 thank you for the help!
[Eee Pad Transformer Android Development] DavidFong:
I did this myself, but my memory is a little hazy!

You need the tool resize2fs, and I think e2fsck.

Unfortunately, resize2fs is not available on the Transformer.

So I copied the ext2 file to a Linux computer. On my openSuSE system, resize2fs can only be used by the root user. (Using Ubuntu, you could use 'sudo resize2fs ....')

After resizing the ext2 file with resize2fs, I think it would be prudent to use e2fsck to make sure your newly enlarged ext2 file is still ext2 compliant. However, this might not be a necessary step. resize2fs is supposed to be able to resize partitions which are currently in use!!!!

After resizing the ext2 file, copy it back to the Transformer and use it instead.

Of course, one advantage of resizing the ext2 file on your desktop/laptop computer is that you might have a large hard-drive on your desktop/laptop, and so can keep a copy of your ext2 file before being resized, just in case things go wrong....!

David.
[Eee Pad Transformer Android Development] ViViDboarder:
Anyone know of progress on the xserver port to Android?

Androix-xserver (I think this is the latest link https://github.com/tmzt/androix-xserver/tree/androix-0.8)

It would be SICK to have XServer running as an app that we can switch between. It'd offer MUCH better performance without the overhead of VNC and allow direct input to the window system. I started researching it actually when I found out someone already has this done for WebOS. So Android is a bit behind.
[Eee Pad Transformer Android Development] ppirate:
this fork seems much further along:

https://github.com/webbbn/androix-xserver

good and interesting find btw

edit:

you need this branch: https://github.com/webbbn/androix-xserver/tree/androix-merge_upstream_010611
[Eee Pad Transformer Android Development] DavidFong:
I am looking forward to an xserver running in chroot ubuntu too! Keep us posted!

It turns out that the problems I mentioned in post number 82 (not being able to start programs like synaptic and gnome system monitor) was probably due to broken packages in Ubuntu maverick for ARM (1010). The problem is solveable by updating the entire system to Ubuntu natty (1104), but the process is not for the faint-hearted.

first, I needed to expand the size of my Ubuntu virtual disk image (see posts 83 and 84).This is because upgrading the enitre system downloads hundreds of packages. Also, I was already storing a gigabyte or so of documents in my ubuntu disk image, so your requirements may vary.

Then I changed the package sources from maverick to natty. this is done by editing /etc/apt/sources.list, by changing all occurrences of 'maverick' to 'natty'. Then I used commands lie 'apt-get refresh' and 'apt-get upgrade'. Thre is probably more than one way to do this, see ubuntu documentation on the web.

The upgrading process stopped seeral times, and I needed to restar the upgrade. This may have been because so many packages were being downloaded, that the network connection was being lost. Also, many packages could not be downloaded or upgraded, or needed to be removed. Making the correct choices might require some Linux experience.

My most immediate problem aft the upgrade is that startinv the vnc-server did not start any window manager! Look at /root/.vnc/xstartup, this is my version, which starts openbox...

#!/bin/sh

xrdb $HOME/.Xresources

xsetroot -solid grey

gnome-settings-daemon &	# use gnome settings, incl qt apps

x-terminal-emulator -geometry 80x19+10+5 -ls -title "$VNCDESKTOP Desktop" &

x-window-manager &

(x-window-manager starts openbox). It is possible to access the gnome menus from within openbox, i think i needed to 'apt-get install menu' and then 'update-menus'. Openbox has its own menu file in /root/.config/openbox/debian-menu.xml or /var/lib/openbox/debian-menu.xml

Some packages are borken. For example, i cannot install gnucash (or rather, its dependencies)

Also, I cannot enable subhinting for QT applications. GTK applications use nice sub-hinted fonts. (this is enabled in gnome-appearance-properties, under the fonts sub-panel)

Using the qtconfig program, I changed the appearance to GTK+, which makes the QT application use the GTK widgets, but unfortunately the fonts are still not hinted!

Good luck!
[Eee Pad Transformer Android Development] DavidFong:
Using the same process, I was able to update from natty (2011-04) to oneiric ocelot (2011-10).

1. Edit /etc/apt/sources.list and replace every occurrence of natty with oneiric

2. apt-get refresh

3. apt-get update (this only updated a few packages)

4. apt-get dist-upgrade (this downloaded about a gigabyte+ of packages, and upgraded them)

Various errors occurred during the upgrade.

1. I needed to 'dpkg -r libnm-glib2' and 'apt-get install libnm-glib-vpn1'

2. 'apt-get autoremove' removes some unneeded packages

but most seriously there is specific problem associated with chroot environments.

with an error something like

"start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused"

The answer can be found in http://mrzard.posterous.com/failed-to-connect-to-socket-comubuntuupstart

1. dpkg-divert --local --rename --add /sbin/initctl

2. ln -s /bin/true /sbin/initctl

I needed to link my /root/.config/openbox/debian-menu.xml to the one in /var/lib/openbox

1. ln -s /var/lib/openbox/debian-menu.xml /root/.config/openbox/debian-menu.xml

As far as I know, Ubuntu oneiric (1110) officially supports some ARM platforms, so it should be better with ARM computers in general. gnucash works! (unlike my experience with natty 1104)

Good luck!

(Yes, I completely backed-up my natty chroot environment before doing the upgrade)
[Eee Pad Transformer Android Development] livinsacrfice:
Thanks for this. Using B80 TF101 and finally got to try ubuntu.

A couple of issues. The sound is not recognized. Is this fixable. Also, several of the programs do not appear to launch. It shows starting app in the taskbar, but it never comes up. Firefox, terminal, shotwell, etc work, but i haven't gotten software sources or word processor to load.
[Eee Pad Transformer Android Development] hackint0sh:
Hello,

is this going to work with a Transformer TF101 G rooted ??

Because don't want to have problems with my system but would love to use Ubuntu on this!
[Eee Pad Transformer Android Development] Jhinta:
as longs as the kernel has loop device suport .

and it whont brick you system .

chroot works for any arm system its its based on cpu type not system as android is most likly arm it will work.
[Eee Pad Transformer Android Development] hackint0sh:
Interesting.

Until this moment I used stock Kernel.

Which one would you choose with loop support, logically TF101G ready ?

:D

Sorry for my bad English, I'm German
[Eee Pad Transformer Android Development] jrohwer:
Works great for me with stock kernel and stock rom (rooted with razorclaw). The stock kernel definitely has loop device support. (TF101G with B90 serial, 8.6.6.19 firmware).
[Eee Pad Transformer Android Development] hackint0sh:
Yes it has. Tried it, too.

But it is really really slow, isn't it ?? Or did I do anything wrong ?

(I used a tutorial from the "app" "Ubuntu installer for android" and there you get a finished image, which you extract to the root of an sd card. It also includes the lite window manager but it is as slow as windows 7 on a windows 2000 based computer :D
[Eee Pad Transformer Android Development] gls9:
Is it possible to run this all from the external microsd card (or USB stick with dock) ?

So also no changes to /system or other internal locations.

If yes, what do I have to do to make this happen ?
[Eee Pad Transformer Android Development] hackint0sh:
Hello,

if you do it like me the performance really goes bad.

You can write in console then "/External/SD/Ubuntu" and then it loads your Ubuntu from there if you packed your Ubuntu image onto the SD.
[Eee Pad Transformer Android Development] livinsacrfice:
I tried upgrading to natty (following information from davidfongs's posts on previous page). I did not get any errors the second time (after doing symlink for upstart workaround). However, I cannot get firefox or chromium to work. Firefox crashes right away. Chromium will retrieve content from website but displays blank page.

Any ideas?
[Eee Pad Transformer Android Development] phoenixv5:
Sorry about asking something totally different, but is there some way to get USB devices to work?

The main reason I tried this is to connect to the internet using my USB modem and wvdial. I installed wvdial, only to notice that /dev/ doesn't contain most of the commonly used stuff like sda hda and the one I'm looking for, ttyUSB0.

Any work around for this? Any other ext2 file systems that I can use (one that is fully compatible with eeepads usb ports and all).

BTW I don't think I can use the 3G enabler because I got a B80!
[Eee Pad Transformer Android Development] icce007:
There is an easier method available via Market called Ubuntu Installer

https://market.android.com/details?id=com.zpwebsites.ubuntuinstall

Just follow the instruction and you will have Ubuntu running inside android with no problem. Confirmed working with our pad.

attached revised script to work with our pad for mounting external sd correctly.
[Eee Pad Transformer Android Development] shaola:
EDITED: sorry, mistaken thread
[Eee Pad Transformer Android Development] ltlollo:
try

#modprobe usbserial && modprobe usb-uhci

then lsusb, you will see

Bus 00N Device 00N: ID aaaa:bbbb vendor_name

then

#modprobe usbserial vendor=0xaaaa product=0xbbbb

if you don't see any /dev/ttyUSBX you may need to grub the sources from git and include CONFIG_USB_SERIAL_XXXXXX (where XXXXX is the vendor) as a module.

Actually, i don't know if b80 can boot from a different kernel, but the problem is there, not in the rootfs (IMO)
[Eee Pad Transformer Android Development] DavidFong:
Sadly, I found the same problem (I am using oneiric ocelot, and I upgraded firefox to version 10).

Firefox complains about not being able to access GLX.

Chromium won't run as root.

i must admit, i had no intention of running a web-browser inside of the ubuntu environment. It could be useful for some purposes, I guess. Especially if I could feed the USB through with the post just above (#101). Perhaps Ubuntu on ARM could handle USB encryption keys, such as the Medicare Australia key. That key can be used to login to some Australian government websites, when using Firefox's security settings. However, proprietary software, compiled for x86 Linux but not for ARM, is also required and it is likely that ARM versions of the security packages are not well maintained. I have used SSH on chroot Ubuntu/Android, however.
[Eee Pad Transformer Android Development] hoshi411:
Why do we have to go through VNC? Why can't we just use x.org? Are there no geforce drivers for the transformer? are there no generic drivers? Is there really no way to use x.org? VNC is so slow and for devices without sbk we can not use nvflash to get linux booting with a rom....

running xorg directly would take care of all that. We wouldn't even need to reboot and when we were done we could start the android apk session running again....

This is the ultimate solution. How come we are still using vnc servers or nvflashing when we have chroot O_o
[Optimus One, P500, V General] evripidis:
Hello to all!

Because I want to test about a problem I have with my P500 I want to get rid off my custom recovery (thunderg). How can I do this without flash stock ROM with the processing of KDZ updater?

Thank you in advance!
[Optimus One, P500, V General] Bytecode:
Flash the stock recovery by clicking my "recoveries" ling in my sig ;)
[Optimus One, P500, V General] evripidis:
Thanks my friend...

By flashing original recovery, in other words I delete current.

(LG does not have recovery,that's why I am comfused :) )
[Optimus One, P500, V General] mprou:
technically it has but it's actually just a factory reset when you press the 3 combo button nothing more
[Optimus One, P500, V General] evripidis:
Nice... ;)

From here http://xdaforums.com/showthread.php?t=1065197 I just flash this "Original_Recovery_ThunderG.zip" ?

Because I think that is a bit dangerous, If I want to get again a custom recovery (for example Clockwordmod) I will follow simply the installation instructions?
[Optimus One, P500, V General] mprou:
yeah since you wont have a recovery menu to flash anything then you'll have to do it the traditional way via terminal/adb or you can install rom manager and install it throught there
[Optimus One, P500, V General] evripidis:
That's OK ... ;)

Thank you my friend for all your advices! ;)
[Optimus One, P500, V General] Bytecode:
You're always welcome :);)
[Streak 5 Q&A, Help & Troubleshooting] kelvinbrotherston:
hi

I ahve downloaded a pkg from dell and want to load the phone back but i am just getting errors

it says it cant mount the SDCard:Update.pkg

any ideas ??
[Streak 5 Q&A, Help & Troubleshooting] metal1f3:
This is the wrong section bro. Are you using the stock recovery?
[Streak 5 Q&A, Help & Troubleshooting] marvin02:
If you are trying to install from recovery rename the package to update.pkg. This will wipe all your apps and settings.

You must use stock recovery to install a .pkg file.

You may need to flash the proper recovery first.

See: Radimus’s Universal Guide to Flashing a ROM

Note: if you downloaded direct from Dell tapping on the download complete notice in the notification should start the update process.This will update without wiping your apsp and settings.
[Streak 5 Q&A, Help & Troubleshooting] kelvinbrotherston:
followed that guide and when it should be installing from SD i get the following

E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)

(no such file or directory)

E:Can't mount SDCARD:update.pkg

E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)

(no such file or directory)

E:Can't mount SDCARD:update.zip
[Streak 5 Q&A, Help & Troubleshooting] kelvinbrotherston:
sorted now, that guide sorted it, but had to change SD Card it was not working in the streak but was ok in the PC.......

anyways... I have never been so happy to see the O2 screen in my life
[Streak 5 Q&A, Help & Troubleshooting] krazman325:
I had same problem with SD today. Windows PC doesn't format card correctly for phone. Remove the external SD card you are currently using. REPLACE WITH CARD THAT WONT WORK. Reboot phone until it will reboot completely. Go to SETTINGS==>SD CARD & PHONE STORAGE==>UNMOUNT SD CARD==>FORMAT SD CARD. Card will now work in Streak.

MAKE CERTAIN YOU DON'T FORMAT THE CARD THAT IS WORKING!!!!!
[Streak 5 Q&A, Help & Troubleshooting] guesirwowghr:
I've had this same problem, I can't flash anything. I've tried to flash 1.9.1, because I only have 1.9, and I get the same error. I -have- tried changing the name. Doesn't work. Can anyone give me a complete step by step to fix this?
[Streak 5 Q&A, Help & Troubleshooting] ssoorruu:
i got it solved

so... this is how it's happened to me.

when i reboot the streak after i fastboot flashed the streak with streakmod recovery, the recovery will be back to stock recovery. so... i have to delete install-recovery.sh from /system/etc to prevent the streak reinstalling the stock recovery, before it succeed to boot android OS.

so i flashed to streakmod recovery and reboot it to go into recovery mode and plan to choose "update from sdcard".

and when i tried to choose the update.zip from sdcard, there's error message:

"can't mount /sdcard"

so, i think that maybe because my sdcard was plugged into PC and got 'half-mounted', so recovery can't mount it.

so i powered it off, eject and re-insert the external sdcard again, powered it on and go into recovery mode, choose the superuser.zip to root my streak... AND... TADAAAA.... i'm all rooted :)
[HTC EVO 3D] rockky:
And you couldn't put it in the device NAMED on behalf of its CAMERA?

****.http://www.betanews.com/article/HTC-puts-an-end-to-crappy-Android-cameras-with-the-TMobile-myTouch-4G-Slide/1309275865
[HTC EVO 3D] ktrotter11:
This may be why we didn't get the sensations camera software, there is hope in the air

Bussin Caps from my 3D shooter