yashsingh1/xdaforums huggingface dataset:
[Android Software Development] kryptonite:
I Have Full Ubuntu Running on my android Phone , and would like to use a camera application in Ubuntu .

Is there any available app that i can download and use with the Android Camera ?

Is the Android Camera also detected as /dev/video0 like a webcam in Linux ?

Also are there other apps that will allow me to test or use the sensors like gyroscope , accelerometer etc on Linux ? trying to almost not use Android on my phone
[Android Software Development] ITesAndroid:
3rd day of using Ubuntu, everything works fine) The internet seems to be a bit too slow though, is there any way I can test the network speed?

Oh and btw is it possible that in the future there will be a way to enable sound in ubuntu on android? On one of the russian forums I've read that linux-on-android user turned on the music player, and than he suddenly got an incoming call and along with the voice he was able to hear the music from linux! Haven't checked this by myself, but if it's true, the question is how to direct the sound to the loudspeaker...

UPD:

I've updated the Firefox and some ubufox files, and now Firefox constantly crashes on startup saying "GLXtest process failed (exited with status 1): GLX extension missing" :(
[Android Software Development] lukelee83:
Hi,

I finally got it working, but when I type in exit in the terminal emulator, this is what happens:

killing xtightvnc process ID 563

/root/init.sh: line 115: /etc/init.d/ssh: no such file or directory

Error: Unable to chroot into linux

I can't fire up the ubuntu again by typing sh ubuntu.sh unless I reboot the phone after this. It just says "device or resource busy". I don't think ubuntu is being shut down properly. What did I do wrong here?

Thanks in advance.
[Android Software Development] JohnDN90:
I'm experiencing the same situation right now. I'm using an Acer Iconia A500 with TegraOwners ICS ROM V169 (Android 4.0.4) and 3.1.10-digetx-thor-4.5 kernel, which is installed automatically with the ICS V169 rom. Any input on a solution to this would be appreciated. On a side note, does anyone have a recommended resolution for Ubuntu on the A500? I've tried 1280x800 but its just slightly too large.
[Android Software Development] bryandrummer:
I have an a500. I run the lightspeed rom. I set my resolution to 1280x750 and its pretty close to perfect to view the whole image. Hope that helps
[Android Software Development] mscion:
@zacthespack Hi. I'm having fun with the LXDE small version of 12.04. Because I have added a bunch of math software and libreoffice I'm probably maxing out the available space in image. Is it possible to make a bigger image using LXDE for 12.04. Maybe 1 GB larger. I like 12.04 because the software is much more up to date. Perhaps another option I can try would be to make a symbolic link to somewhere outside the image on external_sd. Havn't quite figured out best way to do that yet.
[Android Software Development] tiborr:
Can u help me please.

I have a samsung galaxy s3; rooted & SU.

I have busybox installed.

Now when i use the terminal i get this text:

" app_203@android:/ $ export PATH=/data/local/bin:$PATH

app_203@android:/ $ su

app_203@android:/ # cd /sdcard/ubuntu

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

Checking loop device... MISSING

Creating loop device... ubuntu.sh[117]: /data/data/com.zpwebsites.ubuntuinstall/files/busybox: cannot execute - Permission denied

FAILED

Error: Unable to create loop device!

1|app_203@android:/sdcard/ubuntu # "

I tried multiple scripts..

What im i doing wrong?
[Android Software Development] mrWax:
linux math

would be great having math-oriented (latex, lyx, some mathematica equivallent ...) linux on android anyway. could you make some public version?
[Android Software Development] tiborr:
Anyone?
[Android Software Development] batoo:
you kernel probably doesn't have support for loop device...

Flash different kernel, or build module for loop device support.

Or another ROM.
[Android Software Development] devwithzachary:
Hello all i am back! Once im home this evening i will go through and answer all the support tickets etc. Gald to see that devlopment hasnt stopped while i was away. Looking forward to pushing the new update.
[Android Software Development] SgtWhack:
I had that problem, realized only thing I had changed was USB debugging i tried turning that back on and then the Loop device appeared and Ubuntu fired up...hope that helps you - no idea why it would make a difference, but it does tell you in the Installer App if you use that...sigh...I never noticed until now...

I am running CM9 Eyballer nightlies on HP Touchpad.
[Android Software Development] SgtWhack:
Anyone else struggling with getting permissions fixed for direct access to SD Card (HP Touchpad in my case)?

I've been through the various threads on here and tried setting up a new group, assigning permissions correctly then adding in the default user account, but no luck (this was on ubuntu version.)

Anyway in the end I just decided to use Airdroid to send the files from one OS to the other - not as simple, but it is better than emailing / ftping files around as it stays local and supports drag and drop of files from one OS to the other :)

Loving the work - just need to get Seamonkey or Kompozer running now and it'll be a holiday emergency work GODSEND...

Thanks for all your work - GO TEAM Linux on Android ;)

++++ Update - tried Ubuntu 10 and no issues with SD Card access at all there
[Android Software Development] DarkhShadow:
Welcome home :)

Sent from my ice cream powered Nexus S
[Android Software Development] mscion:
Having a math oriented version is a cool idea. But what I would suggest is that, unless there is a big sacrifice in performance, that the image be made larger so that one could just download any of the desired software from the repositories and customize your "linux box" as you like. For example, some of my favorites add up pretty fast and can't all be stored on the LXDE version of 12.04.

Some of the big ones are

Latex (texlive-latex-base and texlive publishers) 228 MB

Libreoffice 300 MB

Wxmaxima 160 MB

Matplot and related programs 450MB

Cadabra 511 MB

Cadabra is very big and is more oriented for field theory calculations and may not be of interest to all. Other math programs I like include qalculate, galculator, and gfortran. Once you have installed synaptic program manager it is very easy to download and install any of this great software.

Anyways, it adds up fast so having an LXDE (12.04) image that's about 3.5GB would be helpful.
[Android Software Development] devwithzachary:
Well you can expand the image using the guide in the knowledge base here https://linuxonandroid.uservoice.com/knowledgebase/articles/74683-how-to-i-give-linux-more-space-

or you could take the large image and remove unity and install lxde.

The thing is I can't maintain a huge amount of images so the three images is really the most I can do
[Android Software Development] mscion:
Great! I didn't realize I could expand the image you provide myself. I will give it a try and let you know how it works out as others might be interested.
[Android Software Development] devwithzachary:
Sure, people are always welcome to post download links for 'customised' images for different uses
[Android Software Development] ArmorD:
This is something revolutionary... Maybe some day we can run tablet/phone optimized Ubuntus. Just freeking awesome! Downloading the light Ubuntu now, pretty fast download(torrent)

Darn... Didn't work... It said there is no Terminal Emu running....

(/home/.xubuntu no such file)
[Android Software Development] mscion:
Hi. I was able to make a 4GB image and the image seems to work as I can start up the application from the icon. From the terminal I successfully processed a latex file. The problem I'm having is that I cannot access it using vnc so that I can take advantage of the LXDE.

If I try to use vnc (I tried Jump) I get the statement

Connection refused. Make sure desktop is enabled on the computer and the computer's firewall is configured to allow incoming remote desktop connections.

When I initially start up ubuntu I did notice the following error.

vncserver: Wrong type or access mode of /home/ubuntu/.vnc

Any insights on what to try?

Thanks
[Android Software Development] zamaditix:
This process worked wonderfully on a tf300 using the ubuntu 12.04 image. It would be wonderful if armhf builds were provided though to squeeze out more from the many devices now shipping with hard float support.

chroot noob question: There is a Tegra 3 Ubuntu armhf driver package made available by Nvidia, would it be usuable in such an environment?

Thanks for the hard work!
[Android Software Development] dverrette:
Can get Backtrack to work on SGS2

Hello All,

I have a SGS2 running Strongsteve's Odexed Blue ROM(EL29) and I have successfully installed Ubuntu 10.04 which is working fine but I tried Backtrack 5 from the links in the OP and get this message in Emulator Terminal:

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

$ su

# cd sdcard/VM/Backtrack

# sh backtrack.sh

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

Loop device exists

losetup: /dev/block/loop255: No such file or directory

mount: Invalid argument

net.ipv4.ip_forward = 1

backtrack.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

backtrack.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

backtrack.sh: cannot create /data/local/mnt/etc/hosts: directory nonexistent

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

eth0: ip 192.168.1.15 mask 255.255.255.0 flags [up broadcast running multicast]

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

Shutting down BackTrack ARM

failed.

losetup: /dev/loop7: No such file or directory

#

Anyone have any suggestions what I'm doing wrong? I had some of the same issues with Ubuntu at first but I tried a different script and that solve that problem but I can't find different scripts for Backtrack. I'm at a loss.
[Android Software Development] sickysticky:
K I've got 12.04 running on my GT-P3113 all works good...

I've also taken the library to download smail, and apktool.

Framework installs, it even decompiles properly

The problem I have is at build time errors are thrown for no aapt, well after searching I found one, but for debian.....

Is there any way around this, without installing ubuntu on a pc

p-3113 puff, puff, puff, just send'n smoke signal's
[Android Software Development] mscion:
Found a solution:

It seems that the problem occurs when copying the image file. For some reason the ownership of certain files are changed to root (including the .vnc directory). To convert image to 4GB I need to copy ubuntu.img from my micro sd card to my computer (running mint linux) desktop, then cp into the mounted ubuntunew (see https://linuxonandroid.uservoice.com/knowledgebase/articles/74683-how-to-i-give-linux-more-space-and ) and finally copy new image file back to the micro sd card. So at every point that the image was copied I included the -p option that preserves ownership. I'm not sure if I have to do that at every step but it seems to do the job. So now I can fill my ubuntu image with all sorts of goodies!
[Android Software Development] tiborr:
Thanks, nahhh it didnt work.

Just getting the errors 96, 116 or 89.

"Unable to create boot device."

Anyone else?
[Android Software Development] ruben_b:
Runing fine on my GNex.

Thanks!!!

Edit:

After playing a bit with Ubuntu and the free version, I bought the paid version. I then tried to launch using the paid version.

But now I only get this and can't connect the VNC server:
[Android Software Development] smallba:
Backtrack 5 is running smooth on my Evo LTE
[Android Software Development] dverrette:
Did you use the links in the OP?

Sent from Galaxy S II using Premium XDA
[Android Software Development] drive2droad:
Can you guys add support for Elementary OS Luna ? it seems to be a much polished port of ubuntu optimized for touch & beauty !!
[Android Software Development] smallba:
I had bought it from the market after testing the free app and used it on my OG EVO, so i figured i would try it on my new eVO 4g LTE. V5 in the OP is the sane as the free app i believe
[Android Software Development] tuxling:
This is because you try starting Ubuntu with the script from the free app.

The script expect to find busybox where the free app installed it, but if you uninstalled the free app busybox was uninstalled too, so the script can't find it.

(The busybox the app installed, we don't touch other busybox versions you may have installed)

This is fixed in the upcoming update, but until then you can either download the script through the paid app, or you can get the latest version here:

http://xdaforums.com/attachment.php?attachmentid=1094885&d=1338383106
[Android Software Development] ionbasa:
http://thomaspolasek.blogspot.ca/2012/04/arch-linux-lxde-w-xorg-mouse-keyboard_16.html

can we do something similar, but getting the touchscreen to work. all of this without VNC?
[Android Software Development] smallba:
Took some time to download and extract but i finally got Ubuntu 12(Full) up and running on my internal SD where it handles quite well. Tried the external first but the read/write was to slow to handle the image.
[Android Software Development] Hunterdiver:
Ubuntu12 seems to run OK on my HP touchpad under CM9
[Android Software Development] tiborr:
I tried installing ubuntu 12 full on my samsung galaxy s3 (rooted) with this app and did every step, but did not work. It seemed that the kernel did not support loop. Then i tried servel different kernels but still same error no loop. Then member68 said that he had ubuntu working on his samsung galaxy s3, rooted, omega 3.0

So i installed the latest rom omega 4.0 and still no loop with orginal script but with latest script i got this :

"ubuntu.sh[23]: cut: not found Error: This script requires root! Type: su 1|app_127@android:/sdcard/ubuntu # su app_127@android:/mnt/sdcard/ubuntu # sh ubuntu.sh ubuntu.sh[23]: cut: not found Error: This script requires root! Type: su 1|app_127@android:/mnt/sdcard/ubuntu #"

I am really getting agritated.... What the hell am i doing wrong? Only thing i can think of is that member68 got it working with omega 3 because maybe omega 3 has a kernel with loop and omega 4 does not, anyone?

Really appreciate all help!

Edit:

I edited the script and deleted the root part of the script.

Now i get this:

app_127@android:/ $ export PATH=/data/local/bin:$PATH

app_127@android:/ $ su

app_127@android:/ # cd /sdcard/ubuntu

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

ubuntu.sh[25]: dirname: not found

Checking loop device... MISSING

Creating loop device... ubuntu.sh[110]: /data/data/com.zpwebsites.ubuntuinstall/files/busybox: cannot execute - Permission denied

FAILED

Error: Unable to create loop device!

1|app_127@android:/sdcard/ubuntu #
[Android Software Development] barryflanagan:
You need to install busybox by the look of it. Search market.
[Android Software Development] RomWiz:
Does this work on LG Optimus black?

Skickat från min GT-I9300 via tapatalk 2
[Android Software Development] tiborr:
Already have busybox but i will try other one..

Edit:

Aftet installing busybox again.

I now get the following:

app_127@android:/ $ export PATH=/data/local/bin:$PATH

app_127@android:/ $ su

app_127@android:/ # cd /sdcard/ubuntu

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

Validating image checksum... ubuntu.sh[98]: /data/data/com.zpwebsites.ubuntuinstall/files/busybox: cannot execute - Permission denied

FAILED!

Error: Checksum failed! The image is corrupted!

1|app_127@android:/sdcard/ubuntu #
[Android Software Development] barryflanagan:
Actually it looks like the Linux on Android app is pushing it's own busybox these days and it is maybe a bit broken. How many busybox binaries is enough on a phone? My answer would be one :)
[Android Software Development] tiborr:
So now what? ;p
[Android Software Development] barryflanagan:
I haven't seen the recent ubuntu.sh scripts, but I would see if you can change references to /some/weird/location/busybox (sorry, don't know the full path they are using) to just busybox so the script uses your other busybox install
[Android Software Development] mattalla:
I am using the small ubuntu version(400 mb), but I can't get firefox to work at all, because it keeps crashing. And chrome works, but the screen is blank. All I can see is the tabs and address bar, but I can't see the website itself. Does anybody know how to fix that? Thanks.
[Android Software Development] bryandrummer:
From what I understand Firefox and chrome don't work and its a known issue. I use midori browser. You can install it through the terminal and its advertised as a very lightweight browser which is good from my experience. Speed is my #1factor with my image. Although not a advanced Linux user so I'm open minded if someone knows of a faster browser
[Android Software Development] mscion:
Hi. I am using an LXDE version of Ubuntu 12.04 and both Firefox and Chrome browsers seem to work fine except for the known issue concerning lack of sound when using VNC. Unfortunately, I was not able to run them simultaneously as it froze my Note and I had to reboot!

EDIT: Mistake here. I tested chromium not Chrome
[Android Software Development] RoboWarriorSr:
HTC inspire 4G/Android Revolution 7.0.4 (It's the one with Sense 3.5)/LordClocken Kernel

It worked at first then I rebooted my phone and launched Ubuntu and this pooped up on terminal. This is ubuntu 12 downloaded from links in the app.
[Android Software Development] bryandrummer:
I'm jealous. I would love to have chrome working for chrome sync. I'm running the 12.04 small image and I have yet to get chrome working in any image. Did you do anything special or did it work for you on your first boot?
[Android Software Development] sickysticky:
Ubutnu boots and runs, laggy if i might add. On the p-3113,

But i have to askm if there are any special scripts or jar's for this,

Say maby, aapt, or jarsigner.......

Just a little side project of mine:beer:

p-3113 puff, puff, puff, just send'n smoke signal's
[Android Software Development] mscion:
Hmmm... Besides increasing the image size to 4GB I did nothing special. I'm currently using the Galaxy Note which probably has a little better performance than A500 but not that far apart. I also have ICS and keeping my fingers crossed I avoid the brick bug. All the ubuntu stuff is loaded on the external sd card. I've currently downloaded about 1.5GB of math software. But thats about it. The only thing I can think of trying, and this is because I've encountered this with a few applications, is to try starting it from a terminal using sudo. I've found that some applications unexpectedly require root. For example, I had to start xterm using sudo! I don't understand why this is the case and will have to change permissions later. Anyways, if that doesn't work you might get an error message that is helpful. Good luck!

EDIT: While the above is true any may be of use to someone it has nothing to do with the problem!
[Android Software Development] debernardis:
No problem in running Firefox here too (small image, 12.04, with lxde, on Galaxy note). I might try chrome now to see if it runs.
[Android Software Development] Q9Nap:
chrome won't work on arm processors; chromium will but is very unstable in my experience.
[Android Software Development] debernardis:
You're right. It was Chromium, indeed. Seems to work but is slower than Firefox.
[Android Software Development] mscion:
AHH! I must apologize for my noobiness. I didn't make the distinction between chromium and chrome. What I tested was chromium. Sorry about that!
[Android Software Development] Q9Nap:
one thing that has been bothering me is the direct input breaking, having to use the vnc 'send text' box. found a way to fix it; enter the following line in the Android terminal:

code:

sudo mount -o remount,gid=5,mode=620 /dev/pts

you can automate the process by putting it in a shell script:

#!/bin/bash
#vnc terminal keyboard fix

su -c "mount -o remount,gid=5,mode=620 /dev/pts"

then rename it something simple like "k" (for keyboard), place in /bin and chmod 755. Then you can easily run it from the android terminal whenever it breaks just by pressing "k" then enter.

I've tried putting the command in init.sh, ~/.bashrc and /etc/rc.local and it doesn't work. If anyone has a cleaner solution, I'd like to know!

hope this helps.
[Android Software Development] mscion:
Hi, I'm not sure if this is what you are referring to but if you are using android VNC and you want to avoid the send text box just press on the screen for a few seconds. You should see something that looks like two magnifying glasses (for zooming in and zooming out) and a grid between the two magnifying glasses . If you press on that grid for a second you should get a keyboard on the screen to enter text in the application you are using in ubuntu.
[Android Software Development] bryandrummer:
"jump" is also a great vnc client. it has a spell check option that combines the send text and direct input of the vnc client that is in the suggested app. it is full of other features that are really nice. only issue i had is the "mouse" can act kinda screwy depending on your kernel. (happens on various devices but it is always kernel related according to their forums) if it senses that you are using a physical mouse rather than the touch screen then it makes the mouse in the app dissapear so it functions more like a real computer (which is an awesome feature by the way) and the bug is that it thinks that touches are from a mouse instead of finger. just figured i would throw that out there since i didnt know i could use a different app until i read earlier on here that people were doing it.

The spell check feature lets the keyboard uses its built in auto correction, its even compatible with swype. figured i would make that more clear
[Android Software Development] mscion:
I'd like to add that I also currently prefer "jump" because it does a better job than android vnc of recognizing esc and ctrl characters on the keyboard (using hackers keyboard app) which comes in handy when editing and so forth.
[Android Software Development] FMAranda:
Hi!

I got Ubuntu up and running on my Galaxy Tab 7.0 Plus with Android 3.2 and the stock kernel, but, when I try to shutdown the system with the exit command it fails.

What's causing this?

Ignore those kill commands, that XScreenSaver wasn't recognizing my password, lol.
[Android Software Development] Q9Nap:
thanks for pointing this out, but this is broken also. The on screen keyboard comes up but doesn't accept input until I enter the code specified above.

just tried jump and I like it, thanks! but again, direct input is broken until I enter the above code. like the larger mouse but kinda annoying how the screen pans, i like how android vnc locks the screen.

I'm running a droid 3 with physical keyboard and 12. 04 core image resized to 4gb with xfce4 desktop . my issue may be specific to this phone and /or image.
[Android Software Development] FMAranda:
Update, I still have the problem and now this. When this happens I have to reboot the tablet to run Ubuntu.
[Android Software Development] Lloir:
Im looking forward to running Ubuntu on my HTC ONE V when i get it tomorrow, be a step up from running debian on the X8 lol!