yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] robherc:
Ok, from that, I can see that, for whatever reason, your debian system is not "seeing" your network connection at all.

It is interesting & strange that the ip forwarding to android would succeed while the interface is still "invisible" to linux, but that seems to be the problem. I know you're using a modified bootscript.sh script to get your debian image running, but can I ask which version it is that you modified? I know in versions 7.8, 7.9, and 8.0 some of the sub-mounts under /dev weren't being bound to the /dev subsystem in LoA. That would be my first "suspect" for a cause behind this error, unless, of course, you already fixed that.
[Android Q&A, Help & Troubleshooting] enedil:
[MENTION=5818021]robherc[/MENTION] I have v8 modified for Archlinux (downloaded from Sourceforge project site) but yesterday I was using latest from your site and it wasn't working. Arch Linux connects to network. And another odd thing: on that Debian, `ifconfig` does not report interface `eth0` but there is `wlan0`, `lo` and `p2p2`. On `wlan0` I have IPv4 addr. In /etc/network/interfaces there is only `source-directory /etc/network/interfaces/interfaces.d/` which is empty.

If I didn't note, my image is Debian Testing Small **ext4**.
[Android Q&A, Help & Troubleshooting] mscion:
@markgoespop

Would you try the following

open a terminal and becoming su.

cd /data/data/com.zpwebsites.linuxonandroid/files

copy your current version of bootscript.sh so that you have version without changes

vi bootscript.sh

delete the line

$bbox mount -o bind /dev $mnt/dev

also, for Note 2, if you haven't already

replace

if [ -d /sdcard/external_sd ]; then

$bbox mount -o bind /sdcard/external_sd $mnt/external_sd

with

if [ -d /storage/extSdCard ]; then

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

write and quit

then try to boot linux and exit.

see if that fixes problem.

This is what worked for me.
[Android Q&A, Help & Troubleshooting] markgoespop:
That worked for me too, thanks!

Removing that line means that Linux won't have access to any of my phone's devices right? Does this restrict the use of the Linux terminal much? Networking still seems to work, is there anything that will be broken?
[Android Q&A, Help & Troubleshooting] mscion:
I'm glad it worked! I don't know enough about the inner workings of linux on android to determine what the potential problems are. I was hoping someone knowledgeable would chime in about this. Assuming there really is a need to mount that file system, it appears to not be umounted when you exit linux on android. If you go to the end of the bootscript.sh file where the umounts take place I would think you need to add a line

$bbox umount $mnt/dev

right before the line

$bbox umount $mnt

This is only an observation about the structure of the bootscript.sh file as my knowledge of linux is limited. If you like, you can try this instead and see what happens. But as usual, I am not responsible if you brick your device!
[Android Q&A, Help & Troubleshooting] joesnose:
Hello Zac,

I have a way to get back to android. It was not my idea and I take no credit, someone called ttouch on a blog about running linux on a nook colour came up with the idea and helped me with the script.

Before passing the frame buffer to linux you run a script to look for a file in a directory, if the file is found then it removes the file kills the xserver and executes android ui processes. Then I setup a shortcut on my linux desktop that copies the file to said directory.

It works very well and I am able to swap between android and linux without reboot or the need to ssh.

Hope that helps.

Edit: also the mouse works like a touchpad using the multitouch or mtrack driver.
[Android Q&A, Help & Troubleshooting] mscion:
Coexistence of Android and Ubuntu

On a related note. There is nothing stopping one from running android apps including phone and games while using linux on android. This can be done by using

a launcher that you can, for example, swipe from the edge. Below I show a screen shot of ubuntu running libre office on my GNote 2. In the screen shot on the right

I've started the Unity launcher, which is set up to run any of my android apps by basically rollng my finger over the left edge of the screen. I can then select, for example,

android phone and when done calling I exit and I'm back at ubuntu. You can also play videos using android apps on top of Ubuntu and so forth. So android and Ubuntu can coexist nicely! Those with the multiview feature can do similar.
[Android Q&A, Help & Troubleshooting] DCurrahee:
I'm experiencing almost the same thing. Fresh install, trying to boot up backtrack and I get this:

When I try to start it again the iso is still mounted:

So I choose 'Yes' and:

I've tried manually chroot and the same thing, I'm not sure what's going on. Looks like a promising app though! I had to make 10 posts earlier to give you this feedback, hopefully you can help me out I'd sure like to try this out. Samsung Galaxy S3 SCH-I535
[Android Q&A, Help & Troubleshooting] junkiespy:
@zacthespack

I can't find "kali.sh", example:"ubuntu.sh" .

Can you Send me download link.

thx!
[Android Q&A, Help & Troubleshooting] devwithzachary:
Sometimes the IMG gets suck its not mounted but the app thinks it is. A simple reboot of the device will fix this

There is no Kali.sh

All our images now use the same boot script found on source forge or intergrated within the app
[Android Q&A, Help & Troubleshooting] Colliebudz:
|

I had this error, only one!.......I fixed it by doing the following might work for others??

ive got a gt-i9100 on 4.2.2 rom...

could'nt mount any img after battery dying whilst in Linux os...

kept telling me I/o error grrrr

had to delete the contents of LOST AND FOUND OR LOST.DIR on the /sdcard

rebooted and happy days.

cheers

col
[Android Q&A, Help & Troubleshooting] ramsuresh4:
Dear Team,

Really thank you verymuch for this wonderfull project.

After trying 3 images,(ubuntu 12 large, ubuntu 12 small, debian v4 large) I succeeded in debian Package.

Ubuntu 12 large is very slow and some times grey blank display in my mobile - Dapeng A9230+ (1 Ghz,single core, Arm v7 cpu, 5 inch display, wvga)

Ubuntu 12 small also sometimes grey blank display.

debian large is perfect for my device

But I can't update programs.

I want to ask, how to reset admin password ?

Because I try to update softwares and download new, the system asks admin password. I didn't forget password (maybe), It gives error- wrong password.

So, anybody tell, how to reset admin password ?
[Android Q&A, Help & Troubleshooting] k3v0:
2 options.

Option 1) deleted the DONOTDELETE.txt file

rm ~/DONOTDELETE.txt

Or

Option 2)reset debian user password

passwd debian
[Android Q&A, Help & Troubleshooting] ramsuresh4:
Dear friend,

Still can't succeed. I successfully changed the password through 'passwd debian' in terminal.

But , trying to download new Software, again incorrect password (administrative password) error. :confused:

So I can't download new Softwares.

It is possible to install through 'apt-get' command in terminal. But, I don't know commands to install google chrome browser and etc.

Thanks.
[Android Q&A, Help & Troubleshooting] k3v0:
You need to launch synaptic package manager from within a terminal window within your desktop by

gksudo synaptic

If you don't have synaptic installed, from the initial root terminal type

apt-get install synaptic
[Android Q&A, Help & Troubleshooting] ramsuresh4:
Sorry, not success. I think debian has problems with Root.

Please see the screenshot.
[Android Q&A, Help & Troubleshooting] k3v0:
Try sudo synaptic instead of gksudo synaptic
[Android Q&A, Help & Troubleshooting] ramsuresh4:
Still not... Please see the screenshots.

Also, I can't use SD card contents in debian. It didn't open. Is it possible in debian ?

Thanks.:)
[Android Q&A, Help & Troubleshooting] k3v0:
I'm afraid I cannot offer any other suggestions for the debian user password. Other than to try using debian as the password or possibly root.

It is the image and distro of least familiarity.

I built my own Arch Linux image.

You may be able to fix the sdcard by entering from a root terminal

chmod 755 /sdcard/
[Android Q&A, Help & Troubleshooting] :
administrative password / desktop managers

(Ubuntu 12.04 Small image)

Heh, I have the same question too about passwords. I tried to open a folder in pcmanfm as root, but it rejected "ubuntu" (administrative password). It also rejected debian, root, linux, password,admin, [nothing], and a lot of other things. What is it? :confused:

Also, how do you switch desktop environments? I'm a noob to Linux (but love it already), and the internet tells me I have to install, logout, and log in again, simple as that. I tried logout from the menu in the bottom left, I tried lxde-logout, but all I get is LXDE minus Openbox, it seems, instead of a window manager password prompt... :eek:
[Android Q&A, Help & Troubleshooting] rokkywoof:
Separate Install Guide?

So far I have only seen the Install Guide in the actual Android app, so that is not much help with it being so tiny, and having to remember what I read after I change away from it to try whatever it is I have do next (stuck at preliminary point after Playstore download/install where it tells me it cannot find Ubuntu, or Debian or Arch, or any others on the settings list). I have bounced around links on sourceforge, the developers site, and here on XDA, and am starting to go in circles as I chase links back to pages I already have seen.

A separate installation how-to doc to study for the "Big Picture", then keep open on my PC as I work through its steps on the device would be extremely useful (at least for the way I do these things - been using Linux for almost 20 years, since the floppy disk install days). Or did my circling around miss a link to the doc?

TIA

P.S. Oh - now I see that the "guide" is actually an annotated installation procedure - cool! Clarifying that distinction up front would be a huge help for folks like me trying to get into this app from ground zero so we understand up front what to expect with the installation "flow".

TIA
[Android Q&A, Help & Troubleshooting] Colliebudz:
Try from bash terminal

Usermod -u debian

Then

Passwd debian

Try doing your sudo install again

Worked for me!
[Android Q&A, Help & Troubleshooting] robherc:
That gives us something to work with. Now just to find+change the setting that's directing network traffic to eth0, and redirect to wlan0 in your image...or figure out why that wasn't already configured by (I'm guessing here) your init.sh script.

Sorry that I can't do more to help right now, but it's finals week & I'm taking 2 programming languages concurrently on a time-compressed format...so I kinda have too much on my plate with just semester project & final exams this week, not to mention family commitments :eek:.
[Android Q&A, Help & Troubleshooting] frz1:
Update: I've tried the workaround, updated boot script, installed new busy ox and but, still didn't work out too well. at one point I was able to get the grey screen and then even saw the Debian desktop loading screen but, that's about it. by the way my phone, THL T200 2gb ram and 32gb storage is android 4.2.2. I don't think I needed the workaround to begin with. I kinda gave up and went with another debian setup that work for my device.

Sent from my T200 using Forum Fiend v1.2.8.
[Android Q&A, Help & Troubleshooting] enedil:
Hi. I have separate Android app Busybox. How to link Busybox from my path to bootscript?
[Android Q&A, Help & Troubleshooting] robherc:
Rename the file: /data/data/com.zpwebsites.linuxonandroid/files/busybox to /data/data/com.zpwebsites.linuxonandroid/files/busybox.old

After that, try running LinuxOnAndroid and the bootscript.sh should automatically find the one installed by your busybox installer app (it checks for the one in the linuxonandroid/files folder first, then checks PATH locations for a busybox executable, if it can't find its own).
[Android Q&A, Help & Troubleshooting] BADA 187:
Hi,

I have a sony xperia z (c6603). I have been looking for a list of compatible devices, and havent found one.

Now my question is, is my device compatible? If yes what kernel should i use? (i am unrooted now i wil root one of these days)

Thanks in advance!
[Android Q&A, Help & Troubleshooting] enedil:
You should check if your kernel supports loop devices

[MENTION=5818021]robherc[/MENTION] I have Fedora 20. I can install new software via yum, but pinging google.com results in unknown host. What's happening?
[Android Q&A, Help & Troubleshooting] robherc:
My first guess would be that YUM may be attaching to a mirror using an IP address, rather than a "name" address for its url. Try pinging 8.8.8.8 or 8.8.4.4 if those ping successfully, then it's an error with your DNS lookups, check resolve.conf & make sure 8.8.8.8 and 8.8.4.4 are listed in there, so your Fedora image will know where to lookup domain-name/IP tables ;)
[Android Q&A, Help & Troubleshooting] wrsg:
[MENTION=5818021]robherc[/MENTION] did you manage to get that opensuse build working? I remember you mentioning it a while back. Reason I ask is because I might try and get the updated Ubuntu image depending on how it went for you. I know they're not directly related but I'm kinda wondering if any of the devs are still bothered enough to update the distro images.
[Android Q&A, Help & Troubleshooting] robherc:
Sorry, I've had several other things come up that have kept me from making any progres on the Suse image yet. To my knowledge, nobody has made any new progress in the area of building updated images, but I expect that will change here in a coupel of weeks, after Zack gets done with his wedding & has time to think about anything other than wedding plans again ;)
[Android Q&A, Help & Troubleshooting] irha:
I am trying to boot on Atrix 4G (MB86) and see the below error:

# sh -xv /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu-13.10.SMALL.ext2.img

...

+ /data/data/com.zpwebsites.linuxonandroid/files/busybox chroot /data/local/mnt /root/init.sh ubuntu-13.10.SMALL.ext2.img

Segmentation fault

...

$bbox umount $mnt/root/cfg

+ /data/data/com.zpwebsites.linuxonandroid/files/busybox umount /data/local/mnt/root/cfg

$bbox umount $mnt/sdcard

+ /data/data/com.zpwebsites.linuxonandroid/files/busybox umount /data/local/mnt/sdcard

$bbox umount $mnt/external_sd

+ /data/data/com.zpwebsites.linuxonandroid/files/busybox umount /data/local/mnt/external_sd

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

$bbox umount $mnt/dev/pts

+ /data/data/com.zpwebsites.linuxonandroid/files/busybox umount /data/local/mnt/dev/pts

$bbox umount $mnt/dev

+ /data/data/com.zpwebsites.linuxonandroid/files/busybox umount /data/local/mnt/dev

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

$bbox umount $mnt/proc

+ /data/data/com.zpwebsites.linuxonandroid/files/busybox umount /data/local/mnt/proc

$bbox umount $mnt/sys

+ /data/data/com.zpwebsites.linuxonandroid/files/busybox umount /data/local/mnt/sys

$bbox umount $mnt

+ /data/data/com.zpwebsites.linuxonandroid/files/busybox umount /data/local/mnt

$bbox losetup -d /dev/block/loop255 &> /dev/null

+ /data/data/com.zpwebsites.linuxonandroid/files/busybox losetup -d /dev/block/loop255

#​

This is using a CM7 based rom (AttachTrix1.3.1), but I also tried using a CM10 based rom (epinter's) and got a very similar error. Could someone help me troubleshoot?

Update: I tried using /system/bin/busybox and that too crashes. The version of busybox at

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

is

v1.20.0-Stericson (2012-04-22 22:31:21 CDT) multi-call binary

while at

/system/bin/busybox

is

v1.19.4-wraithdu (2012-02-16 23:47:29 CST) multi-call binary

.

Update2: Tried the below and it worked, so I guess something in the init.sh is causing the problem? Could it be that the installer downloaded a wrong ubuntu image for this architecture?

/mnt/sdcard # /data/data/com.zpwebsites.linuxonandroid/files/busybox chroot /system/ /bin/bash
bash-3.2#
bash-3.2# pwd
/
bash-3.2# exit
/mnt/sdcard #

Update3: I went through the trace a little more and found the commands that mounted the image, so did that manually and find that nothing from the image can be executed:

/data/local # /system/bin/busybox losetup /dev/block/loop255 /sdcard/ubuntu-13.10.SMALL.ext2.img
/data/local # mount -t ext2 /dev/block/loop255 /data/local/mnt
/data/local # chroot /data/local/mnt /bin/bash
Segmentation fault
/data/local # chroot /data/local/mnt /bin/ls
Segmentation fault

I guess this does mean that the image is not the right one for this phone? I did use the app to download, so not sure why it let me download the wrong one. I am now trying to download this archlinux image and will it a shot.
[Android Q&A, Help & Troubleshooting] robherc:
First off, I would recommend using only the ext4 type images. Your CM7-based ROM may not *require* an ext4 image, but the CM10 ROM will, along with any newer ROMS you would use, so it's recommendable to use the image that will be compatible with the most ROMs, in my opinion.

Second, looking at the umount errors earlier in your post, I see that you're still using the bootscript.sh version that was automatically installed by the Complete Linux Installer App (Version 7.8, 7.9, or 8.0). Unfortunately, the person who is responsible for uploading updates to Google Play has been a bit overworked with other things for a while now, and hasn't yet gotten the new, much more stable, bootscript.sh version 9.0 pushed, so you'll have to install it manually. Instructions (and a download link) for this upgrade are given in my FAQ.
[Android Q&A, Help & Troubleshooting] irha:
Thank you for the response. I downloaded the ext4 version of archlinux and the new bootscript.sh that is available from the FAQ page that you pointed to. After a reboot of phone, I tried to boot the image and got this error:

/mnt/sdcard / # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/archlinux-CORE.ext4.img
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!

It seems to have failed sooner than before, since earlier it was able to mount the image and I was able to navigate.

Update: When I switch to CM10, I was able to boot the arch image fine, so I guess there is something wrong with the CM7 kernel? Though it worked with CM10, I would rather use CM7, since CM10 has issues on this device (sudden reboots). Any inputs to get it working with CM7 would be appreciated.
[Android Q&A, Help & Troubleshooting] robherc:
That sounds like CM7 isn't liking my use of the autofs mount option.

In order to fix that, try changing line #137, replacing "auto" with "ext4." (final result: $bbox mount -t ext4 /dev/block/loop255 $mnt)

That way, your mount binary should accept the "ext4" type argument (sometimes "auto" is problematic for partitions on many devices, as well), and should accept any ext4-type images (this change will, however, make the bootscript entirely incompatible with ext2-type images, of course).
[Android Q&A, Help & Troubleshooting] irha:
I have actually tried that as I was trying to repeat the steps from the script manually, but it didn't work. On the other hand, I might be mistaken to think that NottachTrix rom is CM7 based, since it is also a blur rom. I will look for another rom after confirming that it is really CM7 based and give it a shot.
[Android Q&A, Help & Troubleshooting] irha:
Here is an update... I installed MROM (CM7) and I was able to get Arch working, but most binaries in Ubuntu 13.04 were segfaulting (which was NOT the case with CM10). Some like `bash` were working fine, so I could move around and try to execute programs, but it was unusable (even `ls` would segfault) and I couldn't start Xvnc. Even with Arch, though I could get VNC to work, the interface is unusable. E.g., simple mouse moves are being treated as mouse drags, so I can open the window manager menu, but when I move the mouse to select an item, the menu also moves with it so I can never get into a submenu (both local and remote cursors move). Arrow keys, work like they are "Mouse Keys" moving the menu around, and I can see the remote mouse cursor also move.

I will try a couple of other CM7 builds and if that doesn't work out, I will search for possibly another stable CM10. The epinter rom that I have is very unstable and so unusable. Even when the the screen automatically switches off, it results in a crash and reboot (when in the Lapdock).
[Android Q&A, Help & Troubleshooting] dsvilko:
A list of supported devices

Hi!

I have been a happy linuxonandroid user on my tiny Xperia Ray for a year now. It's great!

Now I am planning on buying both a new tablet and some time later a new phone. The list of working devices on the linuxonandroid.org has been broken for a few months(!) and I really miss it. What's up with that? Is there a list anywhere?

Do Samsung tab 3 stock kernels have the loop device support? Can you recommend some other (8") tablet in the same price range that is well supported. I would really like to root with towelroot, without a need to flash a different kernel and risk the warranty.

Thanks!
[Android Q&A, Help & Troubleshooting] enedil:
There isn't any list because almost every device works out of the box.
[Android Q&A, Help & Troubleshooting] Galaxy droid fan 7:
Okay so I've downloaded ubuntu 13. 10 large file for complete Linux installer from SourceForge my issue is whenever I install program I lose the applications in my applications list please help!
[Android Q&A, Help & Troubleshooting] robherc:
Unfortunately, that appears to be an unstable KDE problem. My best suggestion there is to use the SMALL image (LSDE desktop) instead, and avoid buggy KDE...for whatever reason, KDE seems to be responsible for more glitchy behaviour on linux devices than any 10 other mainstream parts.
[Android Q&A, Help & Troubleshooting] irha:
I saw almost the same behavior yesterday, I will also give the SMALL image a shot.
[Android Q&A, Help & Troubleshooting] irha:
I got the SMALL image working well. Now trying to figure out how to get WebTop to display at native resolution and use full screen estate in AtrICS rom.
[Android Q&A, Help & Troubleshooting] Galaxy droid fan 7:
Does anyone know if the large archilinux file works without glitches I can't get the ubuntu small files to work right ( play the runscape PPA and install Flash Player as well as download bluetooth driver to detect my jam party speakers) I was hoping since it seems like the Arch Linux large file is set up like the large ubuntu file that it would work again does anyone know if it has any glitches?
[Android Q&A, Help & Troubleshooting] robherc:
I'm not sure about runscape PPA, but I don't think there is a Flash Player available for ARM linux...and I'm not entirely sure that there is one for any android version either.

As for the bluetooth speakers, if they work in android, they should work in linux. The drivers are used by the kernel, and your kernel is "borrowed" from android by linuxonandroid, so all drivers are pretty much entirely dependent on your android kernel.
[Android Q&A, Help & Troubleshooting] Mister_Magister:
Hi. I am on my nexus 7 ii with stock 4.4.4 rom. When i try to run Ubuntu 13.10 core i get this error: u:r:init_shell:s0 is not authorized to change the password of ubuntu so i can't change password and get root. Please help me :(

And http://linuxonandroid.org/?page_id=16 this page have error.
[Android Q&A, Help & Troubleshooting] Servine:
I've download and installed Ubuntu 13.10 on my Nexus 5. It installed and runs perfectly but there's one problem, it's not Ubuntu.... It's another distro (I think it is KDE or something). Also, small and large image appears to be different Linux distros too. Maybe the link in sourceforge is wrong?