yashsingh1/xdaforums huggingface dataset:
[Android Software Development] snakefreak:
Had same problem on sgs2 ICS with siyah kernel.

My Modified ubuntu.sh:

##########################################
#Ubuntu boot script V6.1 for Android #
#Built by Zachary Powell (zacthespack) #
#Thanks to: #
#Johan (sciurius) #
#Marshall Levin #
#and to everyone at XDA! #
##########################################
#Check for root #
##########################################
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This script requires root! Type: su"; exit; fi
mount -o remount,rw /dev/block/mmcblk0p5 /system
##########################################
#Set up veriables #
##########################################
[COLOR="Red"]export kit=$(dirname $0)[/COLOR]
[COLOR="Lime"]export kit=/mnt/sdcard/external_sd/ubuntu[/COLOR]
export bin=/system/bin
export mnt=/data/local/mnt
export USER=root
if [[ ! -d $mnt ]]; then mkdir $mnt; fi
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
##########################################
#Set up loop device #
##########################################
if [ -b /dev/block/loop255 ]; then
echo "Loop device exists"
else
busybox mknod /dev/block/loop255 b 7 255
fi
#mount -o loop,noatime -t ext2 $kit/ubuntu.img $mnt
busybox losetup /dev/block/loop255 $kit/ubuntu.img
##########################################
#Mount all required partitions #
##########################################
busybox mount -t ext2 /dev/block/loop255 $mnt
busybox mount -t devpts devpts $mnt/dev/pts
busybox mount -t proc proc $mnt/proc
busybox mount -t sysfs sysfs $mnt/sys
busybox mount -o bind /sdcard $mnt/sdcard

##########################################
#Checks if you have a external sdcard #
#and mounts it if you do #
##########################################
if [ -d /sdcard/external_sd ]; then
busybox mount -o bind /sdcard/external_sd $mnt/external_sd
fi
if [ -d /Removable/MicroSD ]; then
busybox mount -o bind /Removable/MicroSD $mnt/external_sd
fi
##########################################
#Sets up network forwarding #
##########################################
busybox sysctl -w net.ipv4.ip_forward=1
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "127.0.0.1 localhost" > $mnt/etc/hosts
echo "Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:"
ifconfig eth0
echo " "
##########################################
#Chroot into ubuntu #
##########################################
busybox chroot $mnt /root/init.sh

##########################################
#Shut down ubuntu #
##########################################
echo "Shutting down Ubuntu ARM"
for pid in `lsof | grep $mnt | sed -e's/ / /g' | cut -d' ' -f2`; do kill -9 $pid >/dev/null 2>&1; done
sleep 5
umount $mnt/sdcard
umount $mnt/external_sd
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
losetup -d /dev/block/loop255

remove red and add green your image path should be /sdcard/external_sd/ubuntu/ubuntu.img
[Android Software Development] bryandrummer:
im having an issue with using the launch widgets of the paid versions. i think its to do with an update to the terminal emulator. i reverted to an older version with tb and got it working again. has anyone else encountered this problem?
[Android Software Development] snakefreak:
its a known issues
[Android Software Development] Gestalt73:
If you're asking what I think you're asking, it has more to do with android-vnc than with ubuntu.

If you're using touchpad mode on android-vnc, just press and hold until the keyboard icon appears between the zoom icons at the bottom of the screen. Click on the keyboard then enter in your text.

If for some reason you're referring to the ubuntu on screen keyboard, you can enable it through dash -> all applications -> accessibility. But it relies on an X11 keyboard definition to display the corrent locale, and it's not defined by default so it renders with all question marks. Maybe entering in a default xorg.conf file would help?

Alan
[Android Software Development] nscxp2005:
Ok.

Thanks Alan.

Would you be able to tell me how to get unity2D working.

Do I need to add Gnome ppa to the system?

Thank you for your time.

All the best,

NSCXP2005
[Android Software Development] devwithzachary:
It looks like all you need to do is isntall the gnome package and the unity-2d, but don't worrying I am working on new images today, the large will include unity :)
[Android Software Development] nscxp2005:
Excellent! Thank you
[Android Software Development] mscion:
How about using xvkbd or onboard virtual keyboards which, I assume, can be downloaded from repository. I've used them with Mint Linux on a tablet. Would there still be the same problem?
[Android Software Development] devwithzachary:
You know your project has got poplar when you start finding pirated versions of the paid apps floating about on the internet :P
[Android Software Development] DarkhShadow:
Pirated as in license check removed?

Sent from my ice cream powered Nexus S
[Android Software Development] devwithzachary:
Indeed, shall have to look at other ways to make sure people cant pirate it :D ;)

Never understood how people can afford to pay £400+ on a new phone but less than £5 on apps :P
[Android Software Development] DarkhShadow:
Because people are dicks xD

Sent from my ice cream powered Nexus S
[Android Software Development] devwithzachary:
A little taste of updates to come soon ;)
[Android Software Development] DarkhShadow:
Only 6 days till 12.04 LTS is meant to be stable right?

Sent from my ice cream powered Nexus S
[Android Software Development] devwithzachary:
indeed, however I no longer can find any ubuntu related bugs (just the normal stuff due to how its implemented audio etc), and as unity is finally working fine, so is firefox and all other programs so its about time I release a stable version :D
[Android Software Development] Gestalt73:
It makes a difference where you store the ubuntu.img

So, turns out some phones have both internal and external SDCard storage. For those with both, you will most likely have a better experience using the internal sdcard space.

On the Galaxy Note for example, we have about 10G of internal storage space available that mounts as /sdcard. In our case, hdparm (hdparm -t path) reports a dramatic difference in speed:

internal (25Mb/s read)

external (15Mb/s read with a class-10 card)

Installing ubuntu-desktop using an ubuntu.img on the external card took several hours.

Installing ubuntu-desktop using an ubuntu.img on internal storage looks like it's going to take about an hour.

So, for the best speed possible, it looks like using an ext2 image mounted from internal storage works best.

Alan
[Android Software Development] Dav_Edward:
Thanks for the modified script, but it still fails to boot. It gives the same error. I did make sure to move the ubuntu.img file to /sdcard/external_sd/ubuntu/

I think the issue is the kernal I have installed. I really should replace it with a better one.

Any suggestions of a good stable one for the Samsung Galaxy S II? I'm unfamilar with siyah
[Android Software Development] zaner851:
Ubuntu Unity troubles

I'm new to ubuntu and also new to installing it on a android. I was able to root the android and install the full ver of Ubuntu 12.04. however when I view the GUI I'm unable to see the left tool bar I believe it is Unitity. the tool bar is black but is funtional.
[Android Software Development] ashik992:
Ya I'm fully rooted. And I'm using a custom rom called smoothrom.

Can you please tell me which rom should I pick??

I also tried rebooting but it didn't worked...

Sorry about the screenshot It was clear on my device but after uploading it became a thumbnail...
[Android Software Development] plugsmustard:
Have you installed busybox? And Not just downloaded it from the market?
[Android Software Development] ashik992:
I've installed busy box...

---------- Post added at 10:39 AM ---------- Previous post was at 10:33 AM ----------

I've installed busy box...
[Android Software Development] ashik992:
Can you please suggest some that is supported please....
[Android Software Development] somnang1981:
samsung galaxy tab 7.7 p6800

I've just setup ubuntu 12.04 OS on my galaxy tab 7.7. It worked but all hardwares do not have drivers so it does not run smoothly. I can not hear the music, can not see movies... Can you give me a solution?
[Android Software Development] devwithzachary:
The terminall is not getting root access at least it does not look like it, can you check the terminal app has been given super user rights

Sound does not work currently due to vnc not supporting audio.

I do have a method for native audio but it only works on a couple of SoC's but I do plan to release a guide shortly on this (but it will be a developer guide as alot is down to ou getting it working on your SoC)
[Android Software Development] plugsmustard:
Cyanogen always worked for me. But im a fan of screwing with the stock which has always worked for me aswell
[Android Software Development] mambraxneol:
Thanks ;)
[Android Software Development] ericz29:
milestone a854

i hope im not repeating the same question over and over but how come you just cant take android out and just install ubuntu or backtrack nad just sue that i have 2 or 3 phones i just want one with just ubuntu on it with out android is there away to do this or is it ot hard with trying to get everything to work like keyboard touch camera wifi bluetooth gps etc. great work guys i would donate but i dont know if it will even work on my phone i have tried but no luck yet
[Android Software Development] joesnose:
Sorry to take things off topic. This would depend on the phone you are using and probably your knowledge of how to use linux etc. I know there was a project to boot linux natively on the galaxy s2, there is a thread on xda about it.

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

There is a video of it working on youtube.

http://m.youtube.com/#/watch?v=VHl8PytVt50&desktop_uri=/watch?v=VHl8PytVt50&gl=GB

it looks very functional indeed. I tried to get it up and running unfortunately without success, due to my non understanding of how it all works. Also development seems to have slowed to a halt! Shame.
[Android Software Development] bit2shift:
Boot script has bug on user mounts

Device: Transformer Prime tf201

This is in both boot scripts, the user mounts section is not working as expected, as there are NO information about how to use them.

I made a file ubuntu.img.mounts with the following contents:

/Removable/SD/

It was supposed to mount the dock SD card folder. Here is the boot script output:

u0_a91@android:/ $ export PATH=/data/local/bin:$PATH
u0_a91@android:/ $ cd /sdcard/ubuntu
u0_a91@android:/sdcard/ubuntu $ su
u0_a91@android:/storage/sdcard0/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
Checking loop device... FOUND
mount: mounting /storage on /data/local/mnt/external_sd failed: Invalid argument
Mounting user mounts
Mounting /Removable/SD to android//Removable/SD... FAIL
net.ipv4.ip_forward = 1
Using config file /root/cfg/ubuntu.img.config
Config file loaded
Found /usr/share/tightvnc-java for http connections.

New 'X' desktop is localhost:0

Starting applications specified in /home/ubuntu/.vnc/xstartup
Log file is /home/ubuntu/.vnc/localhost:0.log

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

If connection from a different machine on the same network as the android device use the address below:
eth0: error fetching interface information: Device not found

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)
* Starting OpenBSD Secure Shell server sshd [ OK ]

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

root@localhost:/#

Additionaly, I would have to manually mount both /Removable/SD and /Removable/MicroSD in a separate terminal window, which is a pain in the head
[Android Software Development] tushar9989:
Will I be able to compile and run java programs on the small version of Ubuntu?
[Android Software Development] DarkhShadow:
Yes I think you can, but only for ARM(you can't run jars not made for ARM)

Sent from my Jelly Nexus 4
[Android Software Development] devwithzachary:
Yes you can, there is the openJDK for ARM which you can use.

DarkhShadow java is not dependent on the architecture so as long as you can get the JVM installed on ARM all jar files and other java stuff will work
[Android Software Development] mscion:
Hi, I did some checks and found it is not sufficient for an app to be started from terminal to avoid being eventually killed by android OS. When in terminal emaulator, I started up polaris office using

am start -a android.intent.action.MAIN -n com.infraware.polarisoffice4/.OfficeHomeActivity

It worked fine until it was killed by OS when, after putting it in background, I tried installing a selected app. But terminal and ubuntu always survived the process!. Any other thoughts on why ubuntu does not get killed. Anyways, hope this is not too off topic. More so a curiosity. Perhaps think of it as a testimony on how robust ubuntu is in regards to that merciless android os. Great job guys!.
[Android Software Development] devwithzachary:
Ah no apps do not work like this because they will still be captured by androids mercy, however Ubuntu is not technically running as a app, android would just see it as a string of processors that have nothing to do with normal apps and thus it most likely has no idea what to do with them.

Its then likely a fail safe that means android will not try to kill what it dosnt understand
[Android Software Development] countbuggula:
I've been running this with Debian for awhile and got a bit frustrated with the performance of the VNC solution so decided to see if I could get it working instead with the Android X Server app that many of you have tried - and got stuck at the same point as the rest of you - I can send individual apps but lxde won't load. Figured I'd do a bit more digging to see where the problem was coming from, and loaded up an extra X Server window on my desktop. Instead of pointing my tablet to the local X Server, I sent it to my desktop over wifi and the entire lxde came up perfectly.

So the good news is that your linux setup is great. Unfortunately it's not possible to run a full window manager through the native X server yet.

My next step is to head over to the 20 percent site and see how I can help to get this working.
[Android Software Development] DarkhShadow:
I am mistaken then, not done a lot with java so I wasn't sure xD

Sent from my Jelly Nexus 4
[Android Software Development] devwithzachary:
quite alright, for most other languages your point is valid, however the biggest reason for javas success is its ability to run on any plaftfom that has a JVM
[Android Software Development] plugsmustard:
Just a quick question. Would it be possible to run this on a vnc program for a pc or mac?

And sorry if its dumb.
[Android Software Development] devwithzachary:
do you mean connect to the vnc connection from a pc or mac? or?
[Android Software Development] Echelonblue:
yes just run open vnc://XXX.XXX.XXX = ip adres from terminal mac or a vnc client on windows.

In my case i installed "novnc" on the ubuntu small image. a regular webbrowser that supports html5 websockify does the rest. so you don't need a vnc client on your desktop.

would love to see gtk3 broadway working on the images.
[Android Software Development] cyberorg:
openSUSE

Hi Devs

I've got a fully functional openSUSE image and scripts, was able to integrate with your fantastic app by adding few lines to bootscript.sh. The patch is attached.

Download the image from here: sourceforge.net/projects/cyberorg-home/ extract it and put the resulting 2 files in sdcard or external sdcard of the phone/tablet. Then from Complete Linux Installer app > Launch > Settings > Add the opensuse-arm-xfce.img by browsing to it's location. Once done, hit Start Linux. Gets shell access and via vnc localhost:1, password is opensuse.

It would be great if you can include this in the app, let me know if you need any more information, lurking at IRC #opensuse-arm

Keep up the good work.

-J
[Android Software Development] plugsmustard:
Thanks for the opensuse. But im getying unable to mount loop device even though its found.

Also. How do you run the patch?
[Android Software Development] wolfpack612:
the patch needs to be applied to the original bootscript.sh in data/data/com.zpwebsites.linuxonandroid/files. I attached the file, let me know if it works. I'm at work will like to try this tonight.

http://db.tt/FupMJehS
[Android Software Development] plugsmustard:
Mind telling me how, copy and paste or run it on a desktop
[Android Software Development] downhiller:
Hi, the new update will not run. If i click to start the app, screen is black and the message "Linux installer stopped" is shown.

Note 2

4.1.2 Android Revolution HD 11.2
[Android Software Development] plugsmustard:
Mind telling me how, copy and paste or run it on a desktop

edit: was at work so didnt check link till down. Thanks for the boot script.

However with that added, I am still receiving the loop device not mounted.
[Android Software Development] plugsmustard:
What the hell. Now I am getting this on my once working copy of ubuntu
[Android Software Development] k3v0:
I was wondering if you could add the option to use an alternate terminal app. AirTerm is something I would like to try out as an android terminal emulator replacement.
[Android Software Development] cyberorg:
As mentioned by wolfpack612 the patch goes to bootscript.sh, it is for devs to apply, for now you can test it as follows:

1. open terminal

2. su

3. cd /to/sdcard/where/opensuse-*.img/folder/

4. sh opensuse.sh start

5. vnc to localhost:1

Let me know if there is any error. Root and busybox install is required.

Cheers

-J
[Android Software Development] devwithzachary:
Thank you over the weekend I should get a chance to check this out.

which version? the newest is now 2.1.1.1

I would happly support other terminals however the terminal needs the ability to be launched with predefined commands, as far as I am aware the terminal we use is the only one
[Android Software Development] downhiller:
Thanks, 2.1.1.1 works pretty fine, again. The rotation bug is also in the app
[Android Software Development] rp56:
Will this be working on the sensation soon. Thanks
[Android Software Development] devwithzachary:
It already is please see http://linuxonandroid.org/working-devices/

if your having any issues however feel free to post them
[Android Software Development] Azharkanorwala:
Loving this, Hats off to all the makers,developers and zacthespack to give linux on android.

Wish this would be a zip file to flash in recovery mode , so i would prefer linux ON android:good:
[Android Software Development] k3v0:
Great update! Bugs squashed, play store donation key working flawlessly.

Contacted AirTerm dev to see if he would be interested in supporting predefined commands at launch.
[Android Software Development] devwithzachary:
Well check out site we are hoping to start a linuxonandroid ROM :)

Great if anyone else wants to contact other developers of terminals im happy to support any and all they may be interested in the source from terminal app we currently support on how it is implemented https://github.com/jackpal/Android-Terminal-Emulator/wiki
[Android Software Development] devwithzachary:
We now have a Q&A thread HERE please use this for questions about the project. This thread is for development only! Well now anyway :P as the thread has started to get very large I have decided it would be best to split it up some posts do not get lost
[Android Software Development] k3v0:
I think that this excellent project is superior to Ubuntu Touch. Ubuntu Touch is still a chroot, but without the ability to run Android apps.

Edit: Ubuntu Touch uses the android display manager and if that code can somehow be incorporated into Linux on Android that would be awesome!

Also, the more options the better. If I can dual boot I would definitely put Ubuntu Touch on my phone.
[Android Software Development] *Detection*:
Confirmed working on:

Device: TF101

ROM: Team EOS3 #81

Kernel: K.A.T Kernel #69

Build: Ubuntu 12.04 Full

Installation Bugs: Ubuntu 12.04 Full image is corrupted, checksum error

Solution: Repair achieve using tools menu in Winrar

Performance: Slow, very slow

OS Bugs: Set the sidebar to Autohide, disabled Autohide and sidebar remains hidden and will not appear

Rebooted and it reappeared, Unity sidebar icons display only in silver, no real icons even in full colour mode
[Android Software Development] DarkhShadow:
The issue with Unity icons is a known issue with tegra2/3

Sent from my Jelly Nexus 4
[Android Software Development] k3v0:
I was wondering why the chroot in Android-on-Linux seemed to run so sluggish compared to the chroot on my HP Touchpad with webOS. I figured it had to do with the stock kernel not ramping up on my GN2.Samsung doesn't allow me to mirror my android screen if I run a custom kernel.

Created a profile in setCPU to switch to the performance governor when I am using either android terminal emulator or a vnc client and problem solved.
[Android Software Development] mscion:
multitasking mania

Hi. I've been playing with xperiacles mods for the Galaxy Note N7000 which makes multiple re-sizable windows. To make it work with linux on android I had to use bvnc instead of the usual android vnc or Jump. Here are a couple of screen shots. If you look at the bottom right window of the left most image you will see ubuntu (LXDE) running. In ubuntu I'm running wxmaxima. You can rotate the 3D graph shown as well as resize it - all in that window. The second screen shot shows you can also move windows around in screen.
[Android Software Development] devwithzachary:
Hello guys.

Sorry I have not been about here much in a little while, but im back and hopefully in the next few hours the fedora beta images will be up for your next distro fix!
[Android Software Development] devwithzachary:
Fedora (17) beta images are now ready for your downloading enjoyment (well large is still uploading will be done soon!).

As with other betas, the app will be updated in the coming days for users that have a donation key to be able to download directly in the app.

However until then (And for everyone else) you can grab the beta images now from our source forge!

https://sourceforge.net/projects/linuxonandroid/files/Fedora/

Core

This is a 1GB image with around 200MB of free space and just the normal core step up (just command line). For the stable release we hope to get the size of the image down to 750MB in line with all other distros, and create more free space. However Fedora by default has alot more inluded.

Small

This is a 2GB image with around 500MB free space, with XFCE installed. Current known issues: * Not much free space

VNC must be started manualy with “./urs/bin/vncserver” (vnc default password is fedora)

root user is used when booting

Large

This is a 3.5GB image with around 1.3GB free space, it has XFCE installed with firefox, thunderbird, libreoffice, openJDK and other useful tools preinstalled. Current known issues:

VNC must be started manualy with “./urs/bin/vncserver” (vnc default password is fedora)

root user is used when booting

Gnome3 not installed or working, planned for stable release
[Android Software Development] devwithzachary:
Glad you like it :)

Yes please see: https://sourceforge.net/p/linuxonandroid/wiki/General FAQ/#how-do-i-give-linux-more-space
[Android Software Development] k3v0:
Thanks! I just downloaded the large 12.04 image. Unity is working great, but I needed a little more space. Also trying out the Arch beta image with KDE.