yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] basily:
I'm trying to run the Ubuntu

When I VNC in, I just see a grey screen with a small window saying:

"Could not start D-Bus. Can you call qdbus?"

The only option is "Okay", which doesn't help, leaving me with a blank screen and nothing that I can do.

I read about someone with a similar problem figuring out that their screen resolution was causing the problem, but I can't see how to change it. There's no config file anywhere... and when I try to SSH in from my laptop, I'm asked for a password, and it's apparently not "ubuntu"...

Any help?

Also, I haven't found any "extra features" available after purchasing the Complete Linux Installer Key - where are they?
[Android Q&A, Help & Troubleshooting] davidheis:
The config file is either in the same folder that your linux image is in (ubuntu.img.config) or inside /root/cfg/ inside the image. If you cannot find it inside your image folder, boot your linux and navigate to /data/local/mnt/root/cfg using a root explorer. You'll find a file called linux.config. Open it up and replace the screen res value with your desired one, and then reboot your linux.

Don't make the resolution too high. I use a max of 1366x768 just like my PC monitor.
[Android Q&A, Help & Troubleshooting] Johndoe666777:
I had the same dbus error on my nexus 5. Found a solution online and you need to install SELinux mode change in the play store. Then set it to permissive mode within that app. The next time you boot into Linux it should work.

It fixed it for me!

Credit goes to http://opensourcegangster.com/blog/2014/1/12/run-ubuntu-1310-on-android
[Android Q&A, Help & Troubleshooting] joesnose:
I am stuck here .....

Nexus 7, anyone know what I am doing wrong?
[Android Q&A, Help & Troubleshooting] userdelroot:
Are you getting any errors?

Maybe I missed what errors you were getting sorry if I did.

Also from what I read you are not able to chroot into the linux image correct?
[Android Q&A, Help & Troubleshooting] :
i have tried many times to use complete linux installer app to use ubuntu on my samsung tab 2(p3100), but never succeeded. can anybody help me out. i am currently using mokee os 4.4.2

i have:

1- installed complete linux installer

2- have the terminal app

3- have the vnc viewer

4- ubuntu-13.10.SMALL.ext4.v1.zip downloaded from :

sourceforge.net/projects/linuxonandroid/files/Ubuntu/13.10/Small/

somebody please guide me with steps to boot Ubuntu.
[Android Q&A, Help & Troubleshooting] pavan061994:
Problems on my Note 2

Hey,

I already ran LOA on my Galaxy Grand and Other devices but on my current Note 2 Device running DN3 V3.2 ROM its not running.. have a look at following :

http://xdaforums.com/atta...1&d=1391106646
[Android Q&A, Help & Troubleshooting] tawtao:
As root, ping permission denied, but apt-get work!.

Hi

So far, the ATE is the easiest to use. Unfortunately, I still have couple issues.

I install ATE on asus prime (T201F) with custom ROM - Hairybean 2.31 -- it's android 4.2.1

I choose debian-8.CORE (test) image. I follow the instruction, no problem.

The issues I have is

(1) When I try to start sshd, it reports this error:

eth0: error fetching interface information: Device not found

(2) Command df show this error:

df: cannot read table of mounted file systems: No such file or directory

(3) Command ping 127.0.0.1 report

socket: Permission denied

However, I can ssh, and apt-get update the system, as root.

(1) ssh 192.168.1.10

(2) apt-get update

both works

But I can use ssh as a regular user, it's report permission denied.

I also try ubuntu-13.10, have the same problem.

Any help appreciated ...

Thanks,

Tom
[Android Q&A, Help & Troubleshooting] daevy:
Sorry for the dumb question, but i'm new to this. Is it possible to get a working connection on linux to android? When i go to network settings it says that a plugin is missing.
[Android Q&A, Help & Troubleshooting] pavan061994:
Solution on Chroot and mount

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

I got the solution on this problems: D

Just add this lines of code in bootscript.sh :

if [ -d /storage/extSdCard ]; then

$bbox mount -o bind /storage/extSdCard $mnt/external_sd

fi

in the section of code:

###########################################

# Checks if you have a external sdcard #

# and mounts it if you do #

###########################################

Now rename busybox to busybox.bak

such as:

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

Now everything will run fine :D

Have fun :v:laugh:

---------- Post added at 12:32 AM ---------- Previous post was at 12:30 AM ----------

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

I got the solution on this problems: D

Just add this lines of code in bootscript.sh :

if [ -d /storage/extSdCard ]; then

$bbox mount -o bind /storage/extSdCard $mnt/external_sd

fi

in the section of code:

###########################################

# Checks if you have a external sdcard #

# and mounts it if you do #

###########################################

Now rename busybox to busybox.bak

such as:

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

Now everything will run fine

Have fun :D
[Android Q&A, Help & Troubleshooting] enedil:
Hi!

How to establish Internet connection on Debian installed via Complete Linux installer?

With regards,

enedil
[Android Q&A, Help & Troubleshooting] maduuto:
Hello. First starting works fine, but at second start i got the message:

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

Error: Unable to mount the loop device!

Why? Reboot doesnt fix the error!

Could you help me, please?

I have the motorola Xoom Wifi with Omnirom Android 4.4.2 Kernel ElemtalX2.0+

Image: Ubuntu 13.10

Kind Regards
[Android Q&A, Help & Troubleshooting] maduuto:
Ok now I got it. Next error: Ubuntu the graphic is very bad. The KDE menü is black and i cant choose any menu item because its buggy. Why?
[Android Q&A, Help & Troubleshooting] davem74:
Acer Iconia A1-810 : with debian.small.img : grey screen on VNC

Hi all.

I've recently acquired the above device.

I rooted the using the toolkit here http://xdaforums.com/showthread.php?t=2240029.

I am most impressed, all has worked extremely well.

I used the linux-on-android package to get the terminal server and androidVNC.

I downloaded the debian.small.img and proceeded to run the install procedure.

It took a couple of false starts on my part but now everything starts up, I still haven't saved my settings for the instant, due to some problems

However I have the following problem

If I start the vnc server when i'm prompted I get the issue that I can't VNC into the device, I get the

trying to connect screen

and it doesn't roll over to connecting.

I found a possible solution was to not start the VNC server, then run the following

vncserver -geometry 800x480 :0

I am then able to vnc to the running image. however I get a simple grey screen, and nothing else. I've tried a second VNC player (realVNC) which can't even connect ?

I've looked at the log file and these are the output details. (how do I get the file out of the img ?? - ie connect to the main sdcard on my tablet so I can post the actual file contents)

xrdb : no such file or directory

xrdb: can't open file /root/.Xresources (this file does not exist)

Then a bunch of x-window-manager warning...

the display does not support the XRender extension

the display does not support the XRandr extension

the display does not support the XComposite extension

the display does not support the XDamage extension

the display does not support the XFixes extension

Compositing manager disabled

I don't know if the problem is related, but when I try to run apt-getI get errors

apt-get install [any package] it immediately gets stuck on trying to get the cache, or if it gets past that on determining the dependencies.

apt-get update runs fine

apt-get upgrade gets stuck at determining the dependencies (50%)

Trying to run aptitude gets the same problem with the cache

When I try to exit the running system it doesn't correctly halt, the loop device remains connected. I have to physically turn the tablet off / on to be able to restart debian.

any ideas as to what else I can try ??

I really wanted a pure debian system on my tablet (or is that a bit silly :silly:)

I'm going to give Ubuntu a quick try....

update

Ubuntu works just fine, but for the moment I haven't figured out the onscreen keyboard for entry!

Only downside for the moment with ubuntu is the graphics look like something from the 1980's ! am I missing something. I've serached for graphics problems with google, but don't get anything helpful as a result. Is there any way to improve the graphics ~ with the native android they are fine.

Ok I'm stupid... I hadn't selected 24bit color in the vnc settings!
[Android Q&A, Help & Troubleshooting] DorkyDev:
Are we able to bring in and load our own iso of a distro?

http://xdaforums.com/showthread.php?t=2621055
[Android Q&A, Help & Troubleshooting] Nupol:
Ive tried various distros Form the APP and only the 13.04 one works. But i wanted to usw the 12.04 because of the nice desktop look. Arch Linux Debian and 13.10 dont work. I geht a grey screen with the mouspoint as a X and searched on the web about this Problem. They all say that you habe to change the xstartup file and i tried various options with the posted code and nothing works. Does someone has a simple Instruktion so that i can get rid of that. I really want the ubuntu 12.04 distro on my phone.

i9300 / Cyanogenmod 10.2 stable / boeffla 2.1
[Android Q&A, Help & Troubleshooting] shekhar.0810:
bash: Permission Denied

Getting the error bash:Permission denied

To every she'll script, even after changing mode am not able to execute even the basic script.

Same is case with the compile c program. Tried su ./filename.sh

But still no permission Pls suggest
[Android Q&A, Help & Troubleshooting] rivera151:
Hello. I'm enjoying this project so much. I actually like it better that using native Linux on my tf700, which just isn't ready for daily usage. This one's pretty close.

I have searched this thread and the Dev thread, but I have not really found a way to change the dpi settings. Thus, all my text is tiny. Is there a way of doing this?

Also, how can I change the default VNC server that is started at "Linux boot"?

EDIT: I'm using Ubuntu 13.10 Small
[Android Q&A, Help & Troubleshooting] XperiaPlayLinux:
Has anyone tried this method to getting sound to work with Ubuntu? http://xdaforums.com/showthread.php?t=2420586 oddly it seems this very useful post has gone unnoticed!. I can't get it to work though, but if anyone does then feel free to write a detailed guide of what distro you used and how as i would really like to have some sound even if it's not perfect.
[Android Q&A, Help & Troubleshooting] george691:
almost all imgs worked for me as a command line on my rooted nexus 7 (2013) stock kernel, but only ubuntu small img got vnc to work with, all other imgs gave me a grey screen when i connect with vnc viewer.

i tried a dozen of vnc viewers but the problem is the same.

forgive me i am a newbie here, any help would be appreciated.

great work and amazing project.

thanks
[Android Q&A, Help & Troubleshooting] anthraxx90:
Hi, i've followed all steps but when i launch from app, this is the result:

u0_a62@hammerhead:/ $

u0_a62@hammerhead:/ $ cd /sdcard/ubuntu

u0_a62@hammerhead:/sdcard/ubuntu $ su

root@hammerhead:/ #

and nothing happened, how can i solve this problem? there is something like a manual script to boot ubuntu? Thanks in advice
[Android Q&A, Help & Troubleshooting] rivera151:
Are you trying to use KDE? I know I tried doing VNC to a KDE desktop once and kept getting the same error (gray thatched screen with an x pointer). The problem went away when I started using x11vnc as my VNC server, instead of the default ubuntu VNC server. So try that!
[Android Q&A, Help & Troubleshooting] shekhar.0810:
Problem with x11vnc

How have you used that server I can't start it.. It's getting stuck with the Xauthority thing unable to find the MIT MAGIC KEY and when checked X*log in./var it shows /dev/fb0 not found.. Pls help
[Android Q&A, Help & Troubleshooting] xfim:
Hi, I downloaded Ubuntu 12.04 with Unity but the GUI rendering is bad (lxde works fine, 13.10 KDE is also corrupt)

Does anyone know how to fix the rendering? My gpu is SGX544.

Thanks

Sent from my GSmart Sierra S1 MT6589T
[Android Q&A, Help & Troubleshooting] beatpro:
Dear All,

Sorry if I ask very beginner question. Byt since I'm very interested with this forum and tweaking I want to ask several questions.

1. Can I install Kali Linux on My Lenovo A516? Now running Allegro ROM v.02

2. Which Kali image I shall download? There is two image for ARM. ARMHF and ARMEL.

3. Did the installation step same as BackTrack 5 arm installation which is available on web.

Thanks for the answer, all of you...

Novice beginer :)
[Android Q&A, Help & Troubleshooting] DoggieChick:
VNC connection failed!

Hi!

I'm getting this error when trying to launch the large ubuntu 12:

VNC connection failed!

failed to connect to localhost/::1(port 5900):

connect failed: ECONNREFUSED (Connection refused)

I'm running Cyanogenmod 11 M4 on Nexus 7 (2013).

The terminal reads as follows:

u0_a53@deb:/ $

u0_a53@deb:/ $ cd /sdcard/ubuntu

u0_a53@deb: /sdcard/ubuntu $ su

root@deb:/ #

Note, I don't get "localhost" anywhere. I have entered vnc details as prescribed (address: localhost, port: 5900, password: ubuntu).

Also, I notice that the downloaded zip file is only 1gb (and not the 1.3gb described) and the extracted ubuntu.img is only 3gb (not the described 3.5gb). ubuntu.img.md5 is 45B.

Cheers!
[Android Q&A, Help & Troubleshooting] droidshadow:
Try running a separate vnc session

tightvncserver -geometry 800400 -depth 24

Then in android vnc everything is the same just it should be on port 5901 instead of 5900

If that doesn't work try using Ubuntu 13.10 it is quite stable.

Also from your terminal output when you run the launch button from the complete linux installer app it should put you as root you shouldn't have to do su which is weird...

I think you need to think about your setup...

-droidshadow
[Android Q&A, Help & Troubleshooting] DoggieChick:
Thanks for your reply.

I'm not sure what you mean - install tightvncserver and launch it? Simultaneously to android vnc or instead of android vnc? I tried entering at the android terminal "sudo apt-get install tightvncserver" (and without "sudo") but get "sudo: not found" and "apt-get: not found". I tried looking for tightvncserver online but without luck - note: I have no access to google play/market.

I didn't do "su" - that's what displays when I launch from the complete Linux installer app.

I'm running multirom - could that be an issue?

Download and tried to run ubuntu 13.10 - same problem (no localhost displaying in terminal).

Cheers
[Android Q&A, Help & Troubleshooting] droidshadow:
Wow! Thank you so much for the support and all of your assistance. I want you to know that it is greatly appreciated!

When I get home I will try this all out and let you know how it worked out.

Thanks again

-droidshadow
[Android Q&A, Help & Troubleshooting] DoggieChick:
Thanks for your response. I get "Unable to open /data[..etc]. No such file or directory"

---------- Post added at 03:36 AM ---------- Previous post was at 03:29 AM ----------

I notice that the directory "storage" is missing from my terminal readout. If I look for the image using ghost commander it shows that it's in "/storage/sdcard0/ubuntu"
[Android Q&A, Help & Troubleshooting] robherc:
That makes me HIGHLY suspicious that you're not correctly rooted on your device. Try the following commands in a new terminal window:

su
cd /data/data
ls | grep -F linuxonandroid

if you don't get the response:

com.zpwebsites.linuxonandroid

then your terminal app doesn't have full root priviliges. You'll, unfortunately, have to get that repaired before LinuxOnAndroid can fully function on your device.

If, however, that DOES work for you, then try uninstalling and reinstalling linuxonandroid from google play & we'll continue troubleshooting from there.
[Android Q&A, Help & Troubleshooting] DoggieChick:
Running your command I get "unknown id: cd" (but I did not type in the vertical line in your commands between "ls" and "grep").

Note however, I have rooted the device and if I enter "su" at the command prompt the "$" changes to "#" - does that indicate it has root privilages?
[Android Q&A, Help & Troubleshooting] robherc:
The changed symbol *generally* indicates that you're rooted right. With my command, the pipeline "|" symbol is imperative for proper function, it tells ls to send its output through grep so, rather than showing you a (very long) list of everything in your /data/data/ directory, grep just prints the line(s) containing "linuxonandroid."

That command is especially useful for cding into directories with long names. For example:

cd /data/data
cd `ls | grep linuxonandroid`/files

Will move you into the /data/data directory, then find the com.zpwebsites.linuxonandroid directory and go into the /files directory for you, and you don't have to be sure to spell the full com.zpwebsites.linuxonandroid right (however, if you had another directory containing the exact phrase "linuxonandroid" in your /data/data directory, this would probably throw an error).

Anywise, if you can type ls from inside your /data/data directory and see a listing, then your rooting is not the problem, so then it's time to try deleting and reinstalling the linuxonandroid app.
[Android Q&A, Help & Troubleshooting] DoggieChick:
Sorry for stuffing you around - I couldn't find the pipeline symbol! Lol. Anyway, good news, I found it, and got "com.zpwebsites.linuxonandroid" to display.

Bad news - I uninstalled/reinstalled (without reboot) linuxonandroid - but still no luck (same original error). However, I downloaded the installer from here (several times just to make sure it wasn't corrupted), and not google play (as I do not have access [cyanogenmod - no gapps]): http://sourceforge.net/projects/linuxonandroid/files/App/.

Could that be the problem?
[Android Q&A, Help & Troubleshooting] robherc:
If you can get a copy of "hacker's keyboard" onto your device, it's indispensible for coding and using the terminal...gives you access to a virtual full 5-row standard keyboard in landscape mode :)

Hmm, try downloading the updated bootscript.sh file I posted earlier, then copy it to /data/data/com.zpwebsites.linuxonandroid/files

after that, try the following in terminal emulator:

su
cd /data/data/com.zpwebsites.linuxonandroid/files
chmod 755 bootscript.sh
exit
exit

Then try "booting" your image from the LinuxOnAndroid app again & see what happens.
[Android Q&A, Help & Troubleshooting] robherc:
Any updates on how this did, or did not work for you, droidshadow?
[Android Q&A, Help & Troubleshooting] droidshadow:
Hey sorry I haven't got back to you. School has been keeping me very busy.

I will try ot out tonight for sure and let you know how it works.

-droidshadow
[Android Q&A, Help & Troubleshooting] DoggieChick:
I downloaded the updated bootscript.sh file as instructed however, I do not seem to have a file location "/data/data/com.zpwebsites.linuxonandroid/files". My location appears to be named "/data/data/com.zpwebsites.linuxonandroid.opensource/files". Therefore, I went to that file location using the terminal and entered the commands, "chmod 755 bootscript.sh exit exit", which did not give any error so I presume were successful.

However, afterwards, when attempting to launch from the LinuxOnAndroid app, the original error occurs. Should I try changing the name of the folder where the bootscript.sh file is located (removing ".opensource")?

Not sure if relevant, but I'm running android version 4.4.2 (bootscript.sh file states its V8 - for Android pre 4.3)
[Android Q&A, Help & Troubleshooting] robherc:
That seems strange to me, as I have not seen the app install like that on any other devices. It does give me some suspicion that there may be an error in the app that could be causing the bootscript.sh to not be run correctly from the app, on your device.

I know that there was an error with the original bootscript.sh file, before I modified it, that did not allow it to correctly mount ext4 images, which are required by most 4.3.x and 4.4.x devices. As of this moment, however, I am not aware of any other problems being caused with my current version of that script on android 4.4.x systems.

Now, as android 4.4.x goes, I just spent a good deal of time in irc chat helping someone who was running KitKat on a Google Nexus 7 and was having the same error (i.e. the terminal was displaying the # prompt, then refusing to run the script and boot linux.

The first thing we had to fix with his device was to install an app from Google Play to allow him to "toggle SELinux" into "permissive" mode before attempting to run scripts in terminal as root user.

Next, we found the exact path to his .img file (which was /storage/usbstorage/ubuntu/ubuntu-13.10.LARGE.ext4.img -- depending on your device, yours will likely be in /sdcard or /storage/sdcard1, or something like that...it's the same path you had to enter into the LinuxOnAndroid program to configure your image).

Then we were able to succesfully "boot" his linux image using the following commands (modify by adding ".opensource" to yours as needed, and change the image path to where your image file is located):

su
cd /data/data/com.zpwebsites.linuxonandroid/files
./bootscript.sh /storage/usbstorage/ubuntu/ubuntu-13.10.LARGE.ext4.img

Those commands were able to succesfully bring his ubuntu linux operational on that android 4.4.x device, so they hopefully will work on yours as well. Unfortunately, until we find the root cause of the glitch that seems to be causing the bootscript.sh file to NOT be automatically run on KitKat-based devices, starting your linux image will require using the above commands each time.
[Android Q&A, Help & Troubleshooting] White.2026:
I'm having the same problem: nothing after su a few lines in. I chmodded the bootscript.sh file and launched again, but the same thing happened. Thanks in advance for any help!

I'm on an S4 with CM11
[Android Q&A, Help & Troubleshooting] wrsg:
I am running both the non-beta and the beta/alpha release and I am getting this error (on both versions, but on the alpha it's a little different where it says 'create test loop device')

Creating loop device... mknod: /dev/block/loop255: Operation not permitted
FAILED
Error: Unable to create loop device!
[Android Q&A, Help & Troubleshooting] mrhnet:
Hi! Awesome project. Working well in xperia SP. :good:

I wanted to increase the size of img file and found the solution in your FAQ (method 1). But, searching further.. I found the following method much easier (no need copying between images or mounting).

dd if=/dev/zero bs=1M count=1024 >> ubuntu.img
e2fsck -f ubuntu.img
resize2fs ubuntu.img

this will increase the size by 1024 (1GB).

(sorry if this is a repost).

Keep up the good works! :)

Edit: Had to modify bootscript.sh as below for external SD (sdcard1) to get mounted in xperia sp.

if [ -d /storage/[B]sdcard1[/B] ]; then
$bbox mount -o bind /storage/[B]sdcard1[/B] $mnt/external_sd
fi