yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] cube48:
As I wrote before, I'm able to start the image (script v1). But it looks like the image and its files/folder structure is read-only. Any app that needs to write something to image file structure is complaining about it. Any advice how to make it writable? Or do I need to switch to Ubuntu root user once I'm in? Thanks in advance!
[Android Apps and Games] cwhitney24:
Currently using a modded cm7 rom and the lordmod kernel. Will try more kernels.

I got your 10 char right here
[Android Apps and Games] devwithzachary:
odd, as you log in as root user in ubuntu so nothing should be read only, I will have a look into it
[Android Apps and Games] devwithzachary:
and ok thanks so bug not fixed :P back to the drawing board xD thanks guys
[Android Apps and Games] dincdoes.me:
Has this been tested on Acer a500

Rom thunderflex android 3.2.1 ICS mod (Civaitos Rom dev)

kernel is thors kernel the rest 3.9r2

If not I'd like to try it out
[Android Apps and Games] devwithzachary:
well this is the official release stuff so hopefully I will stick close to that https://wiki.ubuntu.com/PrecisePangolin/ReleaseSchedule
[Android Apps and Games] contactwajeeh:
It is running fine on HTC Vivid. I was able to vnc via localhost on phone as well as via wifi from my desktop. Tested with the stripped down version. I am using Holiraider 1.75 rom ATM. If that makes any difference...
[Android Apps and Games] devwithzachary:
Glad to hear it!

Some more great news the project is to be featured on Source forge home page!

Thats right thanks to the large volume of file downloads and interest in the project on the source forge page from Monday for one week my project will be on the home page!

Needless to say I am working to get the source forge in better shape as its highly likely a lot more people will be viewing it over the week.

I have already sorted out folders for the source code of my boot scripts and a folder where I will place all future versions of the free app encase you are unable to download from the market!

I would love it if a few more people would recommend the project before Monday and if a few people could write some reviews that would be great!

Once again I must thank you all for building the project to what it is!

https://sourceforge.net/p/linuxonandroid/wiki/Home/
[Android Apps and Games] tallnerd1985:
For all you wanting native X11 rendering, checkout androix.org because they almost have a finished build of X11 port for android. So far, clashthebunny's fork of the project is almost complete so maybe someone can try compiling it to see if works. If so, no more VNC!!!!!!!!
[Android Apps and Games] fizban9:
I switched to the 12.04 image and I now have a working terminal in the gui. Huzzah!

Now I'm trying to compile a program but the configure script gives me the following (after I installed gcc to get past that problem):

I dont consider myself a linux n00b or anything, but I can't figure out what to do with this. I've been googling and i think it's because of the ARM processor but I can't say for sure.

The other possibility I researched was that it has to do with how the filesystem is mounted. The user option can cause the same effect as the noexec option...I think...

Any suggestions?
[Android Apps and Games] DarkhShadow:
Ok so i did "sh ubuntu.sh" and i got "sh: cant open ubuntu.sh", whats that mean?
[Android Apps and Games] fonseca898:
Anyone looking for easier navigation in the VNC session should try Wyse Pocletcloud. They have a great virtual mouse (pic below with buttons expanded), and some other nice features, chief among them the ease at which you can drag the desktop offscreen.

No issues running 12.04 on my Epic Touch. I'm looking forward to the final release next month.
[Android Apps and Games] devwithzachary:
Thank you I will look into this!

It could be yes, that or certain C packages are not installed?
[Android Apps and Games] DarkhShadow:
Ok so it was having a paddy

But it turns out i dont have "cut" or "[" so I cant use anyway, cant install newer busybox(1.11 was included in a rom from feb? Wtf) because of cramfs /system, still gonna put back on my nexus and use vnc from here :(
[Android Apps and Games] shaneernst:
Just input the correct name of the file

DarkhShadow, it is looking for the script you placed in the ubuntu folder you made on your sd card. I had to change mine too. What ever the name of the .sh file you downloaded is what you need to change it too. For example, here is what I did. After it said "sh: cant open ubuntu.sh," I typed the following and hit enter.

sh ubuntuv6.sh

That should do it for you. :)
[Android Apps and Games] DarkhShadow:
No I was typing it right, was fine after a reboot but its irrelevant as I don't have the right commands in busybox :(

Sent from my ice cream powered Nexus S
[Android Apps and Games] SimonHtcDesire:
I have another relating question, since I found several tutorials how to create Ubuntu images, but they all include the kernel package in the seed parameter, like "linux-image-omap".

Since I am a newbie I dont really know if this is a kernel or not, could you help me out.

I want to lean more about this thats why I am asking.

Thanks
[Android Apps and Games] devwithzachary:
Yes this is the kernel package, in my experience it is required to get the images to boot, i am not 100% sure why but that is the case
[Android Apps and Games] LillieBennett:
LG Spectrum woes

The good news is that Ubuntu starts up and I can androidVNC to it and it displays the gnome desktop, way cool!

Where the boot up script displays the message that Ubuntu is configured with SSH and VNC... and performs the ifconfig eth0 (lines 61&62) the response on the terminal is eth0: No such device. Likewise foxpro reports no server and I am unable to VNC from the PC desktp.

I wonder if the adb forward tcp:5900 tcp:5900 can be placed in the boot script, just before the chroot? It seems I am not allowed to EasyTether with the ADB server running.

When I exit from the terminal for shutdown I get the message Shutting down Ubuntu ARM and then "failed." on the next line.
[Android Apps and Games] devwithzachary:
Some people seem to be having the problem that the internet isnt being set up, and im not quite sure why it is as I can't get the problem to happen on my devices, I am playing around with a few ideas and will post something if I get any results from my beta testers.

the failed thing is not to much to worry about, just Ubuntu still exiting very ungracefully
[Android Apps and Games] DarkhShadow:
Zack can you tell me whats wrong?

Sorry for bad quality
[Android Apps and Games] s14evil:
having trouble with the download ....its saying that file Was corrupted....
[Android Apps and Games] devwithzachary:
What device is this on? and what boot script, it looks a little different to errors in the past, did you have it working on this device before?

What keeps saying the file is corrupt? and are you trying to download from sourceforge or my server
[Android Apps and Games] DarkhShadow:
Its a Arnova 9 G2, using v6 script, never worked before.

/system partition is cramfs so could that be causing the issues?

Sent from my ice cream powered Nexus S
[Android Apps and Games] devwithzachary:
Yes sadly I think that is the problem, unless someone has had it working on a carmfs partition?
[Android Apps and Games] DarkhShadow:
Aww :(

I have a rom with a ext3 /system but still unsure if I wanna risk it :/

Sent from my ice cream powered Nexus S
[Android Apps and Games] devwithzachary:
ext3 'should' work (don't see why not anyway)
[Android Apps and Games] amitabhr:
For those of you having problems with 'cut' , just comment out the line using 'cut' in ubuntu.sh or ubuntuv6.sh (its the 3rd or 4th line). It is checking for root so if you have already done 'su' then it doesn't make any difference. For some reason the command 'cut' is not present in some tablets on ICS.

(if you open any file explorer and browse to ubuntu.sh then you can edit it with a gui text editor like sm edit or fx edit etc usually preinstalled in ICS. To comment a line means putting a # in the begining of that line so that it is not executed)

For those of you having other mount etc problems, I have found that manually creating the loop device and loop mounting the ubuntu.img and THEN running ubuntu.sh fixes the problem.

You can just copy the 2 lines in ubuntu.sh (or ubuntuv6.sh) where loop device is being created and then ubuntu.img being loop mounted. Just run these two lines first (one by one) and then run ubuntu.sh

Will paste a modified ubuntu.sh here which runs ok on my tablet (ployer momo9 with ICS) sometime later for Zac to have a look at it.
[Android Apps and Games] pederb:
Hello,

I'm using Atrix CM9 [ADT's SelfKANGish builds] v.8

I can't get VNC to connect? The message I'm getting is "Failed to connect to /127.0.01 port 5900 connect failed: ECONNREFUSED (Connection refused)

Please advice

Cheers
[Android Apps and Games] s14evil:
Ok I got it up running on my dell streak 7 ... It's stock 3.2 ROM.. same here... Linux noob... Not sure what to do next
[Android Apps and Games] cordell12:
Up and running on my Galaxy Nexus, not sure what I will do with it though. Awesome none the less!

Thanks :)
[Android Apps and Games] LillieBennett:
Stock 2.3.5 LG Spectrum:

I wonder if those with the "eth0: No such device." error are also those with stock roms; is anyone getting this error with a 3rd party ROM?

I suspect my inability to VNC from PC desktop is related.

I'll be trying the Ubuntu 12 image next.
[Android Apps and Games] dswaggz:
Hey I can't get this to run I have the files installed on my external sd my phone is a Samsung Exhibit II running Xquizit v3.7

xquizit to u hataz
[Android Apps and Games] LillieBennett:
LG Spectrum woes

new errors when booting version 12:

$ export PATH=/data/local/bin:$PATH

$ su

# cd sdcard/ubuntu

# sh ubuntu.sh

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

net.ipv4.ip_forward = 1

Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:

eth0: No such device

Now enter the screen size you want in pixels (e.g. 800x480), followed by [ENTER]:

1280x720

Save this as default? (y/n)

y

New 'X' desktop is localhost:0

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/localhost:0.log

/root/init.sh: line 44: /etc/init.d/ssh: No such file or directory

If you see the message 'New 'X' Desktop is localhost:0' then you are ready to VNC into your ubuntu OS..

If VNC'ing from a different machine on the same network as the android device use the 1st address below:

inet addr:127.0.0.1 Mask:255.0.0.0

inet addr:10.176.104.111 Mask:255.0.0.0

If using androidVNC, change the 'Color Format' setting to 24-bit colour, and once you've VNC'd in, change the 'input mode' to touchpad (in settings)

To shut down the VNC server and exit the ubuntu environment, just enter 'exit' at this terminal - and WAIT for all shutdown routines to finish!

root@localhost:/# exit

exit

Killing Xtightvnc process ID 27367

/root/init.sh: line 76: /etc/init.d/ssh: No such file or directory

Shutting down Ubuntu ARM

umount: can't umount /data/local/mnt/proc: Device or resource busy

umount: can't umount /data/local/mnt/external_sd: Invalid argument

# umount: can't umount /data/local/mnt: Device or resource busy

losetup: /dev/block/loop255: Device or resource busy

***************************

I'm going away for awhile to let things catch up, Thanks all
[Android Apps and Games] devwithzachary:
what seems to be the problem? everything seems to boot ok, the exit bugs are already known but shouldnt cause any problems

What is the terminal output when you run the boot script?
[Android Apps and Games] pederb:
How do I change resolution afterwards in Gnome?
[Android Apps and Games] devwithzachary:
you can't once inside gnome, you have to start a new vnc session with the screen size you want
[Android Apps and Games] pederb:
What is the best rez for a LapDock? I tried 1280x720 and that does not look good
[Android Apps and Games] s14evil:
Try putting the size of your screen for your phone.. it should auto adjust when you hook it to your docking station
[Android Apps and Games] ndd53:
using ubuntu with droid4 and lapdock

I can't get the lapdock 500 mouse to work in the ubuntu window; the only way I'm able to move the ubuntu cursor is with the arrow keys. is there a trick I'm missing? any way to force the focus into the ubuntu window?
[Android Apps and Games] DarkhShadow:
Try a different vnc viewer

Sent from my ice cream powered Nexus S
[Android Apps and Games] ChipZ16:
Got it working now bit the vnc-viewer crashes alot, is there any better för free around?
[Android Apps and Games] devwithzachary:
New ways to buy my apps?

Well Google have still yet to pay for last months sales, and quite frankly I need this money and so I am thinking about looking at other ways I could sell and distribute my apps, I am looking for a system that would allow users to buy the app via a webpage using paypal, then would then get a generated serial code to activate the app.

I have found one system that would do this for me found here http://www.androidlicenser.com/ but the question is do you think you would use this? or perhaps you know a better system?.

It comes down to the fact I really want the money to come straight into my account and not float about in Google accounts never really sure if it will make it into my bank account.
[Android Apps and Games] DarkhShadow:
Go with that method, I really dislike how Google don't deposit the funds straight away

Sent from my ice cream powered Nexus S
[Android Apps and Games] kakihara:
I got a little problem with the terminal when using the ubuntu from this thread.

im running a desire hd overclocked to about 1,7 ghz with icecoldsandwich rom (android 4.0).

everytime i try to enter the "d" key e.g. in cd command the terminal program shuts it self down. i never used linux before that and im trying to install jdownloader. any help with that to get it done the easiest way would be highly appreciated.

because having jdownloader on my phone would be awesome.
[Android Apps and Games] devwithzachary:
This is a problem with gnome, the keyboard short cut to minimize a window defaults to d if you do not have the windows key on your keyboard (as its normally windows key + d) if you open the keyboard shoot cuts in the settings menu you can set it to something you will not use and d will work once more
[Android Apps and Games] kakihara:
Noticed that now too, because it worked with lxde.

i got a .sh file for the jdownloader. can you (or anyone else) provide me with the steps to get that running?

im not sure if its compatible with arm cpus but i think its using java so it should work (i hope :x)

i really never used linux bevor so its quite hard to figur such things out using a phone.
[Android Apps and Games] Xentar712:
What happened to GNOME?

I've booted it up a few times and it usually asks me if I want to start GNOME or LXDE. I usually pick GNOME and it boots fine. For some reason, it now asked me for a default resolution and no longer gives me the choice to boot into GNOME. It just automatically goes into LXDE. I'm wondering if it has something to do with booting from the paid app? I've been looking through the init.sh and can't find any reference on where the options are. Any idea what happened?

btw, this works great on my HP touchpad

EDIT: I just read in a previous post that GNOME doesn't currently work for this ROM. Is that true? If so, how was I able to access it before but not now?
[Android Apps and Games] longthanh:
it works great, no fc, great job!
[Android Apps and Games] amitabhr:
Zac, I have got your large ubuntu image working perfectly and even let me compile libnfc etc after a few apt-gets for some dependencies.

Must say that you have done some great work.

Now, my problem is that i can't see any devices if I attach them to the USB port. ( i need to get scl3211 nfc reader to work)

Is there any way to let the device nodes appear in ubuntu ?

Are you able to see a USB pen drive (usb hard disk) in ubuntu ?

what about other devices like a usb 3G or EVDO modem ?

Mail me if you can make it work.
[Android Apps and Games] ToddeSwe:
Can i? Please? :)

Hi!

Noticed the video today that XDA posted regarding this and i have tried everything that i with my knowledge but nvc is timing out. I have added the rule in my firewall, what more can i do?

And the most important question, does it work on my Sensation stock ICS latest see sig?

This is what i can see when starting in terminal:

Can't find file /root/.vnc/localhost:0.pid

You'll have to kill the Xtightvnc process manually

* Stopping OpenBSD Secure Shell server sshd [ OK ]

Shutting down Ubuntu ARM

failed: Invalid argument

losetup: /dev/block/loop255: No such device or address

1|app_184@android:/mnt/sdcard/ubuntu # sh ubuntu.sh

Loop device exists

net.ipv4.ip_forward = 1

Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:

eth0: No such device

With my knowledge i can see that something is wrong at the eth0: and that must be why i can't connect.... right?! :)
[Android Apps and Games] s14evil:
Have you fallowed the steps... Extract it and make a folder call ubuntu... Put the script and the image in this file after its been extracted ... Go to terminal and type

su

cd /sdcard/ubuntu

sh ubuntu.sh

Then it will ask you what screen is, and pick witch one you want...

The manualy open up the vnc...
[Android Apps and Games] ToddeSwe:
Yes i have and i even bought the app just now that should make life easier but now i'm getting a bit closer, vnc is kinda working...

I had the vnc server working after a bit of work around since i got the message about it did not had the requered protection or something... but i found an article about it and changed to what they suggested, then it worked but now i can't connect again. :)

This is what i get now:

ata/local/bin:$PATH <

app_184@android:/ $ su

app_184@android:/ # cd sdcard/ubuntu

app_184@android:/sdcard/ubuntu # sh ubuntu.sh

Loop device exists

mount: mounting /dev/block/loop255 on /data/local/mnt failed: Invalid argument

mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or directory

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

mount: mounting /sdcard on /data/local/mnt/sdcard failed: No such file or directory

net.ipv4.ip_forward = 1

ubuntu.sh[58]: cannot create /data/local/mnt/etc/resolv.conf: No such file or directory

ubuntu.sh[59]: cannot create /data/local/mnt/etc/resolv.conf: No such file or directory

ubuntu.sh[60]: cannot create /data/local/mnt/etc/hosts: No such file or directory

Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:

eth0: No such device

chroot: can't execute '/root/init.sh': No such file or directory

Shutting down Ubuntu ARM

failed: No such file or directory

failed: No such file or directory

failed: No such file or directory

failed: No such file or directory

failed: No such file or directory

failed: Invalid argument

app_184@android:/sdcard/ubuntu #
[Android Apps and Games] s14evil:
It might be that you don't have a custom kernel ....
[Android Apps and Games] ToddeSwe:
Aha! Why must i have a custom kernal? What's in it that makes this work?

It seem like when i have issued the auto script once after a restart of the phone it can't issues any commands... wonder why...

When this mode in terminal appears i just have CAPital letters on keyboard and i can't even make it exit because it can't find any commands.
[Android Apps and Games] s14evil:
Did you ever install bisybox...and the custom kernel is needed because it alouds loop devises
[Android Apps and Games] ToddeSwe:
Yes its installed. And when issuing the commands manually it reports that my device is a working loop device. The problem I'm having now is that I can't submit any commands. Even the server is open and working. I'm confused, it worked to submit commands but then I had not managed to get the server accepting connections now when that's working I can't make the commands in terminal working. :)

ata/local/bin:$PATH <

app_184@android:/ $ su

app_184@android:/ # cd sdcard/ubuntu

app_184@android:/sdcard/ubuntu # ls

ubuntu.img

ubuntu.sh

ubuntu_01.sh

ubuntu_02.sh

ubuntu_03.sh

ubuntu_04.sh

Loop device exists

mount: mounting /dev/block/loop255 on /data/local/mnt failed: Invalid argument

mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or directory

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

mount: mounting /sdcard on /data/local/mnt/sdcard failed: No such file or directory

net.ipv4.ip_forward = 1

ubuntu.sh[58]: cannot create /data/local/mnt/etc/resolv.conf: No such file or directory

ubuntu.sh[59]: cannot create /data/local/mnt/etc/resolv.conf: No such file or directory

ubuntu.sh[60]: cannot create /data/local/mnt/etc/hosts: No such file or directory

Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:

eth0: No such device

chroot: can't execute '/root/init.sh': No such file or directory

Shutting down Ubuntu ARM

failed: No such file or directory

failed: No such file or directory

failed: No such file or directory

failed: No such file or directory

failed: No such file or directory

failed: Invalid argument

app_184@android:/sdcard/ubuntu # su

app_184@android:/mnt/sdcard/ubuntu #

What is wrong here?

I must confess that i have mixed up this with this: http://www.ubuntu.com/devices/android :)

Sowwy!

Was SO excited when i saw the video XDA have shared on this that i thought this was it! :)

Found this:

http://xdaforums.com/showpost.php?p=17585587&postcount=46

Am i on to something here? :)
[Android Apps and Games] Diomorgan:
Hey Mr. can you publish the script for Momo9 on ICS, I'm trying but the script cannot create the files...
[Android Apps and Games] ToddeSwe:
Is this why I can't make it work?
[Android Apps and Games] joe.stone:
It is working on this machine :

Thanks !

p.s.: Busybox was updated for successful installation.
[Android Apps and Games] cefege:
Does aircrack work on samsung galaxy nexus? It's the only reason I would need linux on android.
[Android Apps and Games] devwithzachary:
Sorry no as the android wifi drivers do not support monitor mode

To get USB drive working you will need to add its mount point to the mounts in the boot script.

Well at the end of the day when ubuntu themselves have shown is basically what this would be if I had a team of experts helping me :P, and yes you may need to tyr a different boot script and edit it to work if there are problems with your device and people have got it booting
[Android Apps and Games] ToddeSwe:
Hmm... Pitty that I can't do this myself. :) Have someone reported that it works on my device/rom?
[Android Apps and Games] shivansps:
I need to try again in my Aurora, last time i tryied i could not make it boot, in fact only with old Ubuntu boots, with any other scritps i just get a "cut nor found, must run as root" and its already root, or could not create folder or something always fails.

BTW, can extra wifi drivers be added? i have a nice RTL8187 usb that should work fine for aircrack.
[Android Apps and Games] ndd53:
You might have already checked, but does /data/local/mnt exist? I had some confusion with the internal sdcard versus the external sdcard on the droid 4 and had to make the mount point manually.
[Android Apps and Games] ToddeSwe:
Yes i've checked the SD card and no they are not there, can i just make them and hope for the best? But then there are path's on the device i can't "make"?!

I did make them just now, but still it says it can't create them... is my sd card write protected in some way :)

EDITED:

I checked my device now and all the path's are there as well... why can't the scripts manage to mount them? Is it JUST the loop device that is required from the kernal or is it more to it?
[Android Apps and Games] DarkhShadow:
Zack got a different error now
[Android Apps and Games] ToddeSwe:
Thanks! :) Was feeling a bit alone with my problem... now we are two with the same problem.

Wonder why it can't mount?