yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] RobbH:
Sorry, but I have to disagree. Thanks to a suggestion by LoA forum user Isei, it's been working on my Nexus 4 (Android 4.3, rooted, otherwise stock) since August 29. I reported my success in that forum (not here) on that date.

In order to make it happen, I had to copy the contents of the small Ubuntu image to a new image, formatted as ext4 and edit the boot script, replacing the single reference to ext2 with ext4. This made it possible for Ubuntu to start up.

Once Ubuntu was running in the terminal, it was necessary to add the command "startlxde" to the file /home/ubuntu/.vnc/xstartup in the image file. This made it possible for X to serve a desktop that could be viewed by VNC, rather than an unresponsive gray screen.

But at this point, I was still unable to create a password, so I only had root access from within the startup terminal. That's when Isei came to the rescue by suggesting the addition of this line too the boot script:

$bbox mount -o bind /sys/fs/selinux $mnt/selinux

I added that line to the end of the "Mount all required partitions" section. I also added the follow line to the "unmount all user defined mounts if any" section:

$bbox umount $mnt/selinux

After that, I was able to create a password, and everything seems to work now.
[Android Q&A, Help & Troubleshooting] Vaykadji:
I was able to do all the things but I was stuck on greyscreen with cursor on VNC.

Then I noticed that the changes I did on xstartup when moving the files to an ext4 img were gone.

I did a "echo startlxde | tee /home/ubuntu/.vnc/xstartup" and now it works.
[Android Q&A, Help & Troubleshooting] RobbH:
Good! I'm glad you got it working.

Here's the reply I was working on while you were achieving success. I'll leave it here, in case it's helpful to anyone else:

Sounds like you're losing the last letter of commands you enter. I don't know why that would be. I'd try exiting from Linux, rebooting the device, then trying again. If it still happens after that, I'd try (VERY CAREFULLY) adding a bogus extra letter to each command and see what happens.

But rather than trying to add a line to the configuration file through redirection, I would install an editor. I think you were looking for Nano? Try this command (without the quotes): "apt-get install nano". You're already root in the startup terminal, so if you've got net access, that should work.

Are you using the the Small or Full image of Ubuntu 12.04? I'm using Small, and LXDE is the desktop included. The command to start it up is "startlxde". (To check, just enter the command, "which startlxde" in the terminal.) If you're using the Full version, Unity is the default desktop. I don't know the command to start it up, but maybe someone can help.

Remember, all this is just what I would try. I can't guarantee it will work for you.

Finally, I would also try setting the X screen size no larger than the resolution of your phone's screen. Once you get it working, then try something larger. My phone's resolution is 1280x768, but I'm using 1120x768, to allow room for the Android buttons.

Good luck!
[Android Q&A, Help & Troubleshooting] Vaykadji:
I edited my message, because I can now access to the GUI. I used the "tee" method instead of nano. But i'm still having issues with the terminal... Once in like 10 times, it gets my command right.

I'm using 1920x1200 because I use PA, with halo and ControlPie, so I don't need any of the android buttons nor statusbar.

I already restarted, I think I'll uninstall the terminal apk and reinstall it. If it still doesn't work, maybe it comes from PA (I hope not).

I'm using 12.04 with small image, modified like you said (except that I did a 4Gb image instead of 2)

Thanks for your quick answer though ! :) You were really helpfull for me.

NB: Flash is not available on ARM linux. Noooooooooo!
[Android Q&A, Help & Troubleshooting] xda23:
Hi! Im going to use linux 12 small image I would want to use source forge not torent right. Thanks in advance!!!
[Android Q&A, Help & Troubleshooting] xda23:
Anyone has Linux running on the T-Mobile Gs4. Thanks. :)
[Android Q&A, Help & Troubleshooting] xda23:
Hi! hey I get Linux to boot on my Gs4 but all I get is a white screen with a keyboard. what is it that I'm doing wrong could someone please help me out I would greatly appreciate it. Thanks
[Android Q&A, Help & Troubleshooting] vpwrf:
I used to have this problem but eventually solved it by doing some more searching and downloading Ubuntu 13.04 Small image. I found a guide at http://xdaforums.com/showthread.php?t=2381181

The only problem is I can't get root access in the desktop. Typing sudo in LXTerminal throws the error "sudo: PERM_ROOT: setresuid(0, -1, -1): Permission denied" and su shows error "setgid: Permission denied". Does anyone know how to solve the root problem in the desktop?
[Android Q&A, Help & Troubleshooting] xda23:
This is so cool,
[Android Q&A, Help & Troubleshooting] xjesus:
I've seen this Kali Linux working with "Linux Deploy" app on i9505

http://xdaforums.com/showthread.php?t=2400638
[Android Q&A, Help & Troubleshooting] k3v0:
I've uploaded new versions of most of the images to SourceForge: Kali, Arch, Ubuntu 13.04 & 13.10, Debian, and Fedora. The only image I haven't updated is openSUSE and I am working on it.

https://sourceforge.net/projects/linuxonandroid/files/
[Android Q&A, Help & Troubleshooting] xda23:
Hey since new updated images have been implemented will this now work on tmobile Gs4. Thanks in advance!!! ;)
[Android Q&A, Help & Troubleshooting] solevi:
Hi, I Have Samsung Galaxy S4 I9500 with Omega ROM 14.1 (4.2.2) installed. I am very interested to help this project and You can count on me for testing/debugging. Please let me know what type of information You need to add support of our devices.

By the way, I've bought the donation version of the app, but still can see "Consider buying a Donation Key" button in "Install Guides" section and have no other options in Launch section (If i understood right there should be more options to set like screen size).
[Android Q&A, Help & Troubleshooting] mustacheC:
Has anyone gotten this working on a galaxy tab 2 10.1 running

CyanogenMod-Version:

10.2

Android Version:

4.3.1

?
[Android Q&A, Help & Troubleshooting] xda23:
Has anyone got any of the versions, setups to boot up and operate on the tmobile Gs4. If you have could you please list which one you are using and which rom did you use with it. Thanks you very much...
[Android Q&A, Help & Troubleshooting] k3v0:
I don't have a S4 but there is a google+ community dedicated to just that.

http://linuxonandroid.org/help-get-linuxonandroid-working-and-stable-on-the-galaxy-s4/

On August 29th at 02:14 my Note2 became self-aware.
[Android Q&A, Help & Troubleshooting] mayank9856:
Help please

I have everything in place but just cant get it working

have tried it on two roms

currently its on sungsonic hd V-4 with dual boot kernal

tab 2 p3100

EDIT: Trying to run backtrack
[Android Q&A, Help & Troubleshooting] k3v0:
What version of android are your ROMs based? Is it 4.3? Did the md5sum checkout?

The backtrack image has been replaced with Kali Linux, so you may want to work with that.
[Android Q&A, Help & Troubleshooting] Noctophrenia:
I have to use [MENTION=269441]mako[/MENTION] instead of [MENTION=303978]localhost[/MENTION], not sure if this matters. After launch my prompt is root@mako.

I get to the handshake, it takes a couple of minutes, but then I get

"VNC connection failed!

failed to connect to mako/66.152.109.25(port 5900):connect failed:

ETIMEDOUT (Connection timed out)

...any ideas?
[Android Q&A, Help & Troubleshooting] k3v0:
Try 127.0.0.1:5900
[Android Q&A, Help & Troubleshooting] Alwe:
Isn't working on Motorola Razr I xt890

I'm running stock 4.1.2 rom rooted and unlocked with stock kernel

I think that it would be really cool to run ubuntu on this phone because it has a x86 processor

I've downloaded the large x86 file on your website and the core file through the app itself

They both give me this error:
[Android Q&A, Help & Troubleshooting] k3v0:
Image file is probably corrupt. Try the download again or you can also try running fsck on the img file.
[Android Q&A, Help & Troubleshooting] yaroni666:
LinuxonAndroid on galaxy note 3

Hi All,

I was trying to install Kali-Linux on my brand new note 3 and was not successful, the phone is rooted I have a partitioned SD card but it fails to mount.

Please help :)
[Android Q&A, Help & Troubleshooting] k3v0:
Which image? Android 4.3 requires ext4.

What error message did you get? Did the md5sum verify?

Edit: Sometimes, especially with the larger images, the unzip program fails silently and you are left with a partial img file.

The latest Kali Linux image for your device is here:

http://sourceforge.net/projects/lin...nux/kalilinux.FULL.ext4.20131031.zip/download

Keep in mind you external sdcard should be formatted as exFAT or Ext4. If formatted on the Note3 it will be exFAT.
[Android Q&A, Help & Troubleshooting] de@xda:
I had the same problem and was able to solve it...

1) "mount: mounting /storage on /data/local/mnt/external_sd failed: Invalid argument"

This is only a problem if you want access to the external SD card.

In bootscript.sh, I changed the following lines to map /storage/extSdCard:

###########################################
# Checks if you have a external sdcard #
# and mounts it if you do #
###########################################
if [ -d /sdcard/external_sd ]; then
echo "mounting /sdcard/external_sd to $mnt/external_sd..."
$bbox mount -o bind /sdcard/external_sd $mnt/external_sd
elif [ -d /Removable/MicroSD ]; then
echo "mounting /Removable/MicroSD to $mnt/external_sd..."
$bbox mount -o bind /Removable/MicroSD $mnt/external_sd
elif [ -d /storage/extSdCard ]; then
echo "mounting /storage/extSdCard to $mnt/external_sd..."
$bbox mount -o bind /storage/extSdCard $mnt/external_sd
elif [ -d /storage ]; then
# This is for the HD version of the Archos 70 internet tablet, may be the same for the SD card edition but i dont know.
echo "mounting /storage to $mnt/external_sd..."
$bbox mount -o bind /storage $mnt/external_sd
fi

2) "chroot: can't execute '/root/init.sh': Permission denied"

I was able to fix that by using busybox being installed by the separate Busybox Android app rather than that this app.

However, the bootscript.sh will preferrably look for its own version first and there doesn't seem to be an uninstall option.

So you could either amend bootscript.sh or rename its busybox so it can't find it, e.g.:

mv /data/data/com.zpwebsites.linuxonandroid/files/busybox /data/data/com.zpwebsites.linuxonandroid/files/busybox.bak

I hope that helps others (and may find it's way back to the developer)

D.
[Android Q&A, Help & Troubleshooting] santamanga:
Hi. Just an understanding problem: When I install the linux on android image, and I plug in usb devices unknown to android, specificly, an usb dvb-t stick that has linux kernel support since 2.6.26, will that work?

So what I don´t know is if the android kernel still handles everything or if a linux kernel gets loaded.

Thanks for your answer.
[Android Q&A, Help & Troubleshooting] k3v0:
The Android kernel handles everything.

Edit: The Android kernel is a fork of the Linux kernel and I seem to remember reading that it was merging back with the mainline kernel.
[Android Q&A, Help & Troubleshooting] yaroni666:
Note 3

Thank you for the response,

I downloaded the img formatted the sd card but get the below error

u0_a234@hltevzw:/ $

u0_a234@hltevzw:/ $ cd /sdcard/kali

u0_a234@hltevzw:/sdcard/kali $ su

sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/kali/kali.img

sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/kali/kali.img

root@hltevzw:/storage/emulated/legacy/kali # sh /data/data/c.zpwebsites.linu xonandroid/files/bootscript.sh /sdcard/kali/kali.img

Checking loop device... MISSING

Creating loop device... OK

mount: mounting /storage on /data/local/mnt/external_sd failed: Invalid argument

No user defined mount points

net.ipv4.ip_forward = 1

chroot: can't execute '/root/init.sh': Permission denied

Shutting down Linux ARM

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

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

1|root@hltevzw:/storage/emulated/legacy/kali #

Please help :)
[Android Q&A, Help & Troubleshooting] k3v0:
Try replacing your bootscript.sh with this one:

https://db.tt/18GpL9kS

It remounts the img file with the exec permission.

Note: I assume you need ext4, if you need ext2 edit the image accordingly.
[Android Q&A, Help & Troubleshooting] yaroni666:
note 3

Hi How do I find the file location on the note 3
[Android Q&A, Help & Troubleshooting] k3v0:
use a file manager, such as root explorer or solid explorer, to navigate to /data/data/com.zpwebsites.linuxonandroid/files/
[Android Q&A, Help & Troubleshooting] yaroni666:
I followed your instructions but get the below

u0_a234@hltevzw:/ $

u0_a234@hltevzw:/ $ cd /storage/extSdCard

u0_a234@hltevzw:/storage/extSdCard $ su

sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /storage/extSdCard/kalilinux.FULL.ext4.v2.img

sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /storage/extSdCard/kalilinux.FULL.ext4.v2.img

root@hltevzw:/storage/extSdCard # sh /data/data/com.zpwebsitbsites.linuxonandroid/ sh /storage/extSdCard/kalilinux.FULL.ex t4.v2.img <

MD5 file found, use to check .img file? (y/n)

n

Checking loop device... FOUND

mount: mounting /storage on /data/local/mnt/external_sd failed: Invalid argument

No user defined mount points

net.ipv4.ip_forward = 1

chroot: can't execute '/root/init.sh': Permission denied

Shutting down Linux ARM

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

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

1|root@hltevzw:/storage/extSdCard #
[Android Q&A, Help & Troubleshooting] k3v0:
It didn't work. Thank you for testing.
[Android Q&A, Help & Troubleshooting] ihatelolcats:
this is such a cool project. is there any hope of a "ubuntu on android" functionality where a host computer is not required to use a gui?

edit: after installing it i answered my own question. thanks
[Android Q&A, Help & Troubleshooting] k3v0:
I managed to get Bodhi Linux and Enlightenment working. You can download it here:

http://sourceforge.net/projects/linu...d/files/Bodhi/

The VNC password is bodhilinux and superuser password bodhi.

Bodhi Linux dropped armhf support due to lack of interest, so this image won't receive regular updates. Unlike the x86 and amd64 release that follow the Ubuntu LTS releases, the armhf release is based on Debian Stable.

This image is an alpha release and as such expect lots of bugs.

If you want to use Enlightenment I recommend Arch Linux as an alternative. To install E17 in Arch:

pacman -Sy enlightenment17
[Android Q&A, Help & Troubleshooting] piotrarchinov:
bootscript and loop device issues

Hi,

First of all, I'm sorry to come like a totally noob with an issue which seems been posted and answered several times. It's just that I don't get the answers...

So I have a galaxy note 10.1 n8010 I have rooted. android version is 4.1.2 and kernel is 3.0.31-805288

I'm trying to install ubuntu 13.10 (large) with complete linux installer. I have checked the image and it tells it's ok.

this is what I have in the terminal when I click on start linux

u0_a147@android:/ $

u0_a147@android:/ $ cd /sdcard/ubuntu

u0_a147@android:/scard/ubuntu $ su

root@android:/storage/sdcard0/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /scard/ubuntu/ubuntu-13.10.Large.ext4.img

/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[38]: dirname: not found

Checking loop device... MISSING

Creating loop device... OK

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

Error: Unable to mount the loop device!

I have check the issue about ext2, 3, 4 and it's ok they're all supported

I have check the ram when starting the app, it's ok too (less than a third is in use)

I have tried to check with ES explorer if bootscript is here. but (and it's were I start to don't understand), there is a data folder at the root of my device but it's empty... (even when I look for hidden files). I saw post where people say we can try to edit bootscript, but I have 3 folders missing before I could find him. I though I was looking in the wrong place so I launched a research on all the device for bootscript.sh but nothing was found.

I also tried to see if kernel is supported so I did:

1|root@android:/strorage/sdcard0/ubuntu # cd

root@android:/ # cp /proc/config.gz/sdcard/kernel_config.gz

sh: cp: not found

I have tried with other images, the problem stay the same.

I'm not very confortable with android yet, only have my tablet since a week and the first thing I tried (after having it rooted) was that and I'm stuck with it since then.

one last request, if you ask me to edit something, please don't froget to tell me how and if you like more terminal result could you please tell me how copy them (I have re-type those of this post...).

many thanks in advance for the help

greetings

johnny
[Android Q&A, Help & Troubleshooting] k3v0:
The bootscript.sh you are using mounts the image as ext2. You can either download an ext2 image, change the mount type in your existing script from ext2 to ext4, or download the bootscript.sh here:

http://sourceforge.net/projects/linuxonandroid/files/ArchLinux/
[Android Q&A, Help & Troubleshooting] piotrarchinov:
Thanks k3v0,

I'll try it latter (I'm at work actually). just a question about bootscript. where do I put it after downloading? there is no "/data/com.zpwebsites.linuxonandroid/files/" folders in my "/data" folder

greetings

johnny
[Android Q&A, Help & Troubleshooting] k3v0:
It is there. Make sure you are using a root explorer from system root and not the sdcard. Alternatively, you could download any ext2 image without changing the bootscript.sh. Note: except Arch Linux
[Android Q&A, Help & Troubleshooting] piotrarchinov:
Thanks. I had to have root option activated for the file manager app.

it seems to work, but I have others problem now (VNC says I can't connect).

I'll take a bit time to see if I can figure it out by my-self, if not I'll come back tomorrow with a post ;)

greetings

johnny
[Android Q&A, Help & Troubleshooting] piotrarchinov:
Stupid I am. the password in VNC was ubuntu...

I have a notification:

"Semantic data Storage

Nepomuk Semantic deskotp needs the Vituoso RDF server to store its data. Installing the Virtuoso Soprano plugin is mandatory for using nepomuk".

will search for this plugin and install it, it shouldn't be so a big deal.

Well, thanks a lot for your help it was very useful.

greetings

johnny
[Android Q&A, Help & Troubleshooting] k3v0:
I disable that plugin in settings > startup along with most others
[Android Q&A, Help & Troubleshooting] piotrarchinov:
Thanks. I have already done it once I understood I don't really need it.

I'm quite surpised, I though I was installing ubuntu with unity desktop and it's KDE and I though the large version will look more or less like the desktop version, but there isn't a software center or an update center, etc (the console on a tablet isn't very confortable). anyway nothing that can't be changed and it seems to work well by the way.

it's really quite a nice app!

greetings

johnny
[Android Q&A, Help & Troubleshooting] k3v0:
apt-get install --no-install-recommends software-center

Canonical dropped support of Unity2D and regular Unity requires hardware acceleration.
[Android Q&A, Help & Troubleshooting] piotrarchinov:
wouha, guy, if once I come to ohio I own you a couple of drinks!
[Android Q&A, Help & Troubleshooting] neo5468:
I did everything step by step as it says in your google play app, but I always get error in emulator:

mount: mounting /dev/block/loop255 on /data/local/mnt failed: No such device

Error: Unable to mount the loop device!

I tried to unrar this ubuntu 13.10 file ( I downloaded it from SourceForge ) with different programs but it always gives me this error. I am using nexus 7 2013 stock 4.4 with stock kernel and supersu root.
[Android Q&A, Help & Troubleshooting] k3v0:
Try entering

su
setenforce 0

in android terminal before launching Ubuntu. Do you get the same error?

Update: busybox that is used with the complete linux installer may not be executable. Navigate to using a root explorer /data/data/com.zpwebsites.linuxonandroid/files/ and make busybox executable (should be somewhere in properties for that file)
[Android Q&A, Help & Troubleshooting] neo5468:
This is what I get from terminal when I press "Start Linux" inside "Complite Linux Installer":

www shrani. si/f/22/eF/5AY3Ehg/1. jpg

And this is the folder to which you say I should navigate. When I hold on "busybox" I can see that all 3 boxes under "Izvrši" are checked. "Izvrši" means execute in english:

www shrani. si/f/1E/IQ/2d5ZnAyi/2. jpg
[Android Q&A, Help & Troubleshooting] k3v0:
The busybox file is 700 you need it set to 755. Set the execute and read flags for group and others.
[Android Q&A, Help & Troubleshooting] neo5468:
How do I set busybox to 755? If I open it there are just some strange letters (and a lot of them). And by "Set the execute and read flags for group and others" you mean I should check the other 2 empty boxes so that everything is checked ?

What does the first picture mean, when it says that bootscript.sh dirname is not found, and md5 also not found but I have both files (img and md5) in that folder?

The image route is this: /sdcard/Ubuntu/ubuntu-13.10.LARGE.ext2.img

edit: I do not have busybox installed, since it didnt say anything about installing it (in Complete Linux Installer manuals for ubuntu 13.10).
[Android Q&A, Help & Troubleshooting] k3v0:
You can change permissions from a root android terminal. The path to the file may vary, but in english this is how I would type the command:

su
chmod 755 /data/data/com.zpwebsites.linuxonandroid/files/busybox
[Android Q&A, Help & Troubleshooting] neo5468:
Okay we are making progress now. Terminal says that I am connected to ubuntu, and I need to use VNC to connect to GUI. I go to VNC, I have these settings:

nickname: test

password: ubuntu

address: localhost

port: 5900

color format: 24-bit color (4bpp)

force full-screen bitmap: auto

and when I press connect, I boot into ubuntu. Well sort of. I can see the mouse and I can move it arround, but the whole screen is grey, and on the top left corner, there is a message. It says: "Could not start D-Bus. Can you call qdbus?"

And I can only click "okay". After I click it, there is just a grey screen.

Pic:

www shrani.si/f/3W/hT/2qXy4dmX/screenshot2013-11-28-14-. png

In terminal, I typed 1920x1200 resolution, when it first asked me. Was that a mistake? How do I change it now, because config is automaticly loaded when I click "start Linux".

Also, when I type "exit" in terminal, after saying "Shutting down Linux ARM", it says:

- unmount: can't unmount /data/local/mnt/root/cfg: Invalid argument

- unmount: can't unmount /data/local/mnt/4external_sd: Invalid argument

- unmount: can't unmount /data/local/mnt/dev: Invalid argument

I have nexus 7 2013
[Android Q&A, Help & Troubleshooting] k3v0:
Are you using v1 or v2. V1 is linked from the app, I uploaded v2 as a fix for the dbus error in Android 4.3.

If you need v2 get it here:

http://sourceforge.net/projects/lin...Large/ubuntu-13.10.LARGE.ext4.v2.zip/download

I updated all images for Android 4.3+ get the latest here (grab the ext4 images as ext2 is for earlier versions of android):

http://sourceforge.net/projects/linuxonandroid/files/

Arch Linux E17 is my personal favorite.
[Android Q&A, Help & Troubleshooting] neo5468:
Nope. I had ext2 v1 before, but I just downloaded and tested ext4 v2 but its still the same. Grey screen with mouse in the middle and error message at the top left (like I mentioned and screenshoted in the previouse post).
[Android Q&A, Help & Troubleshooting] k3v0:
All images except Arch Linux may need to run with selinux in permissive mode. Dbus errors are usually indicative of needing to switch to permissive mode. Before launching Ubuntu in Android Terminal

su
setenforce 0

Then launch Ubuntu