yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] :
Just the browser...ChromeOS isn't possible to my knowledge?

No issues at all running 13.10 after setting to permissive to clear up the grey screen and d-bus message. Might be my kernel? No clue. I'm novice at best

Trying to use video stream extension and it won't work with chromium unfortunately
[Android Q&A, Help & Troubleshooting] robherc:
OK, in theory, since ChromeOS also runs on a linux kernel, it *should* be possible to run it this way; however, I don't know if there's an armhf port for it or not.

On the chrome browser thing, I've heard several say that there's no chrome port for armhf, but I have a problem with this: my tablet and my phone, as well as my son's tablet and my wife's phone all have armhf processors, and all run chrome under android. Therefore, if you could get the source from the .apk, it stands to reason that it will compile fine on an armhf machine, just that you might need to tweak the UI from android api to a tcl/tk or X11 api. Otherwise, I'd recommend starting fromt he x86-64 or i64 chrome browser sources & attempt to recompile it for armhf.

Obviously, whenever you're modifying source code, cross-compiling, or compiling on a different architecture than the package was intended for, there are risks involved but, if you're wanting to use chrome in linux via LOA to stream to your chromecast, those are the best recommendations I can give you at this time.
[Android Q&A, Help & Troubleshooting] joesnose:
seem to remember hexxah working on this....

http://www.engadget.com/2012/11/02/hexxeh-ports-chromium-os-to-the-nexus-7-simply-because-he-can/

don't think there was ever a public release.
[Android Q&A, Help & Troubleshooting] robherc:
So far, it seems that several users of 4.4.2KK on Samsung devices who are using either a Samsung ROM are running into the init.sh permission denied error that you are having. Also, several users of CyanogenMod11 are reporting that the CompleteLinuxInstaller app will open a terminal window, perform the su and cd /path/to/image/ command, then fail to execute the sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh command.

My working theory, at this point, is that both of these errors, though they appear while using different kernels, and different ROM builds of 4.4.2KK are LINKED because both are causing errors when either:

A--An app attempts to execute a script as root

or

B--A script attempts to execute another script as root

My guess right now is that this is a "sign of things to come" with future android releases. Now, today is my last day of finals week for this semester, so I can't do much coding today, but starting in a couple of days, I intend to start working on experimental workarounds for these errors. First, I'll attempt to compile nice & small little executables that will run the scripts for us (instead of having an apk or another script run them. Then, whether that works or not, I'll try to start working on converting the entire bootscript.sh script, then a few of the init.sh scripts, into compiled executables that (hopefully) can be run without triggering any safeguards in android 4.4.2 to stop them (as a "beneficial side-effect" this may also make it so we no longer have to put SELinux into permissive mode, as we won't need to run scripts as root anymore).

For anyone who'd like to participate in helping to engineer these workarounds, helping to test what we come up with (especially needed, since I don't have any 4.4.2 devices to test on), or who'd just like to stay up-to-date on this particular project's progress, I'll open a new irc channel: ##linuxonandroid-4.4.2workarounds

If you're interested, please join that channel, and set your irc client to log the channel whenever you're away. If there's enough interest shown there, then I might try setting up a google group, or a separate section of my website to allow us more organization.
[Android Q&A, Help & Troubleshooting] enedil:
Which server? irc.freenode ? I'm the only person in the room.
[Android Q&A, Help & Troubleshooting] djawho:
I believe to have understood where from come the problem ,some kernel don't have init'd install ,There is a program, which emulates it in the starting up ,"Universal init'd".Possible is it whether it is the problem ?
[Android Q&A, Help & Troubleshooting] kuitsu:
Look at step 2) from instructions written by de@xda found from here http://xdaforums.com/showthread.php?t=2161234&page=26.

I don't have Note 3 but this same error occured with my Galaxy Note 10.1 2012 edition (N8000) using leaked Samsung KitKat ROM and obviously other Samsung users have experienced same problem and got fixed with de@xda's instructions.

de@xda's instructions did not mention specifically what BusyBox installation he used but at least I got things working with following one https://play.google.com/store/apps/details?id=stericson.busybox
[Android Q&A, Help & Troubleshooting] djawho:
Exellant , great job ,busybox is it the problém ,thanks you kuitsu and robherc thats work .:good::laugh:

ps: robherc ,i'm for others test ,send me message where you want testor.
[Android Q&A, Help & Troubleshooting] robherc:
I'm guessing that if you don't see me in the room, that you probably created a room named #linuxonandroid-4.4.2workarounds ... as I haven't cleared this project for "official" status with zacthespack, I created a "topical" channel ##linuxonandroid-4.4.2workarounds

Sorry for the confusion, but irc.freenode has implemented new rules about channel names, and under the new rules, this one needed two hashmarks, thus the ## :eek:

---------- Post added at 11:06 PM ---------- Previous post was at 11:01 PM ----------

That could very well be worth looking into, but I don't have access to an affected device, so I can't help much with that idea.

Awesome, thanks for posting that workaround, several others have had the same problem, and now I have at least something to offer them that will work for a solution :Good:

------------EDIT------------​

FYI: I just did a quick wordcount on the commands ouput from the CLI busybox and from the VM version of busybox from the busybox.net website & found out that their version has about 133 more commands than ours.

Considering that, I think I'm going to work on getting a "full" version of busybox compiled for android on armhf & post it, along with installation instructions, in my FAQ. ... I also might go ahead with one of my projects I was toying with before getting into LinuxOnAndroid & see about extending it by adding a few commands of my own (more efficient string handling operations comes to mind). --- more to follow.

------------End Edit------------​

If you still would like to test other workarounds, feel free to join the ##linuxonandroid-4.4.2workarounds irc.freenode channel. I probably won't get much done in there today, but after a couple of days I should be able to get started on some coding ;)
[Android Q&A, Help & Troubleshooting] djawho:
hy

It's possible to have the connection wlan (for local tv ,DD...) and data 3/4g active in some time ?
[Android Q&A, Help & Troubleshooting] robherc:
Having both active at the same time is easy; by default both run on most devices whenever wifi is enabled. The problem, however, is getting your wifi into host mode if your device doesn't support that under android.

If android supports "wifi hotspot" mode, then you should have no trouble with what you're wanting to do. Otherwise, you'll have to look up your equipment & see if you can find out how others have gotten it to work in "AP host mode." If you're trying to set this up in linux, hostapd will be a very helpful package to install ;)
[Android Q&A, Help & Troubleshooting] robherc:
OK, now I have a much clearer picture of what you're wanting. You want to connect to the internet using 3G/4G, then ALSO connect to the wifi hotspot setup by the TV receiver, but only use the wifi to stream TV, while everything else goes to the 3G/4G for internet.

I am fairly certain this can be arranged using ifconfig, or something similar, but I'm not exactly sure how on our android devices, so I'll start trying to research that for you & let you know what I can find.

--------------EDIT--------------

FAQ update: Due to the number of people having problems with Samsung devices running Android 4.4.2 getting the init.sh permission denied error, I have added a section to my FAQ, outlining how to install+configure the busybox workaround for that.
[Android Q&A, Help & Troubleshooting] djawho:
Thank, it seems to me that command it netcfg .
[Android Q&A, Help & Troubleshooting] enedil:
I used Archlinux with mounting-binding /proc and I didn't encounter any errors or bugs, except of that Archlinux ARM package mirrors are extremly slow and sometimes are loosing connection. In that case, I must rerun install command.
[Android Q&A, Help & Troubleshooting] Bait-Fish:
Where can I find information on how to download programs into Fedora (19). I gather it uses Yum but that's where I hit a wall. Is there a Fedora basics site I can read up?

Also, what's the password in the Fedora terminal for su? It isn't the same as what the installer had me set initially. I tried a second time after "rm /root/DONOTDELETE.txt" but that didn't get me anywhere.

Apologies for my inexperience, but my searching didn't lead to answers.
[Android Q&A, Help & Troubleshooting] robherc:
I haven't used fedora much myself, but I'll take a few minutes to see if I can find a couple of nice informational sites for how to install apps from the command-line until you get enough installed to use a GUI-based package manager for you ;)

----------Update----------​

OK, here's a link to the Fedora official documentation for the YUM command-line installer.

Looks like section 5.5 will likely have the information you need first, to get started out. ;)

The root password isn't what you set when you set the password at the setup prompt. That was the password for your user account. To set the root password to whatever you want, type the command

passwd root

in the android Terminal Emulator instance where your debian got started from the CLI app; then just enter the new password you want at the prompts & it'll save that as the new root password in linux :)
[Android Q&A, Help & Troubleshooting] Bait-Fish:
Thank you very much! I've tried Ubuntu on an old laptop a couple times in the last decade but never stuck with it and always drifted back to XP. I like tinkering, but always ran into a wall trying to get deeper in the OS. I'm hoping for more stamina :)
[Android Q&A, Help & Troubleshooting] pkantue:
Talking to Arduino Uno micro from within Linux IDE

Hi all,

I've been chrooting into the Linux (lxde) environment for a while now from my TF101 with keyboard (running 4.0.3) for a while now.

I'm still a novice in the linux domain (so I still pretty much google everything). I'm using busybox v1.19.0.git.adrynalyne

Problem

I would like to be able to talk (upload) sketches on my Arduino Uno board from within chrooted linux environment using the Arduino IDE that I installed.

Currently, I circumvent this problem with Google Play Apps "Arduinodroid" and a Serial Monitor app. But I would really like to learn how to mount/forward usb devices to the linux environment so I can just work within the environment and not go in and out of it.

BTW: I can you use my keyboard which has two usb ports and appear on /Removable/USBdisk1(2)

I apologize if this post has been asked already. I just need someone to point in the right direction.

If you need more information, feel free to ask.

Thanks alot!
[Android Q&A, Help & Troubleshooting] enedil:
Which distro?

Also, note that external keyboard is handled by Android, not by Linux
[Android Q&A, Help & Troubleshooting] pkantue:
Hi,

I'm using "Ubuntu 12.04 LTS".
[Android Q&A, Help & Troubleshooting] robherc:
If you haven't done so yet, please download the newest bootscript.sh file & install according to the instructions in My LinuxOnAndroid FAQ. In the new bootscript.sh file, I have the /dev folder from android bound to /dev in linux, so you can find attached devices in there, pretty much the same as using linux directly on your home PC :)
[Android Q&A, Help & Troubleshooting] Bait-Fish:
I'm running Fedora 19 on a Google Nexus 10 which has no external storage. After getting the v9 bootscript.sh from robherc last night, I ended up modifying its external_sd section to point to my internal sd.

elif [ -d /storage/sdcard0 ]; then
$bbox mount -o bind /storage/sdcard0 $mnt/external_sd

It worked. I was able cp /root/init.sh /external_sd/init.sh and find it on /storage/sdcard0 in Android.

The end result I am actually trying to accomplish is to modify the right file to add "setenforce 0" to the beginning of, and "setenforce 1" the end of. Someone mentioned earlier in this thread they did that to init.rc. I assume they meant /root/init.sh. But then again, my ignorance has me half guessing it should be in the previously mentioned bootscript.sh. Guidance toward this end is greatly appreciated.
[Android Q&A, Help & Troubleshooting] robherc:
OK, I haven't read through all of the backposts to find exactly which you were referencing, but I think I can at least "light a small candle" on this one for you (I hope).

SELinux set to "enforcing" mode stops all script files from running with root permissions. This means that while setenforce is set to 1, neither bootscript.sh nor init.sh can be run. With that in mind, I think you'll have to manually do the setenforce 0 before running bootscript.sh, but you may be able to put setenforce 1 as the last line in bootscript.sh in order to re-enable enforcing mode after shutting down linux.

--------------------EDIT--------------------​

I haven't dug around much past the bootloader script & busybox in the LinuxOnAndroid folders yet, you might be able to find a file in there with configuration for what commands are executed in terminal by CLI before the line that executes sh bootscript.sh /path/to/imagefile/img ... if you can find where those commands are stored, they're passed directly as user-entered commands to Terminal Emulator, so you could probably put your setenforce 0 line in there. :)
[Android Q&A, Help & Troubleshooting] sscs:
Sounds good.
[Android Q&A, Help & Troubleshooting] Bait-Fish:
Thanks again for the guidance, robherc.

I just had a moment to sit down and read your post but haven't been able to investigate. I did find the post by [MENTION=4209063]5@Mi H@[k3R[/MENTION] in the dev thread that got me thinking about doing this, here

Edit: I don't see the point where such is issued. Maybe I could just insert the ”setenforce 0” early in the app's bootscript.sh.

Edit x2: Adding "setenforce 0” without the quotes to the very beginning of the app's bootscript.sh worked. I was not expecting it to. For others, bootscript.sh is located at /data/data/com.zpwebsites.linuxonandroid/files. I'm going to add "setenforce 1" at the end and see how it works. My next hurdle, determining whether it is actually enforcing at that point. Just typing setenforce only brings up its usage, not the current state.

Edit x3: Adding "setenforce 1" as the last line in bootscript.sh worked! One can check the SELinux status with ”getenforce". Thanks robherc for the assistance, and 5@Mi H@[k3R for posting that this is possible.
[Android Q&A, Help & Troubleshooting] mrhnet:
But, this didn't work for me (bootscript.sh is latest v9 of course). But, I'm happy if it's working for you. :)

I did like this. Made the following small script and saved it as a file (as eg: 'ubuntu').

#!/system/bin/sh
setenforce 0
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /storage/sdcard1/Ubuntu/ubuntu-13.10.SMALL.ext4.img
setenforce 1

(Have to change the img file location accordingly).

A) Then ran this script with ScriptManager app (giving root access for it). It works, and after exiting ubuntu, setenforce is back to 1.

And, with that app, can put a shortcut/widget pointing to that script on the desktop. Just clicking on it starts ubuntu!

B) If need to run in terminal emulator, first have to give "su", then run the script from where it is saved. (Eg: "sh ubuntu" or "./ubuntu"). [Adding "su" command to the top of that script file didn't work.]

To make things more easy, can copy this 'ubuntu' script to /system/bin. Change its permissions to 755 ("chmod 755 ubuntu"). And then can run this 'ubuntu' script from anywhere in a terminal, after giving "su".

**But one difference noted from 4.3 is that, root (sudo/su) access is needed while in VNC to access the mounted sdcard/external_sd. Maybe someone could explain why is that.. (I'm on SlimKAT 4.4.2; xperia SP).

[Highlight]EDIT: SELinux enforcing maybe not fully implemented in the ROM I'm using, although it's indicated as such. Otherwise, it's strange that I can run a script while "selinux enforcing" :confused:. However, Linux doesn't start through the app, unlike in 4.3; It starts through that 'ubuntu' script of course. So, might have to manually do "setenforce 0" before running it, in case selinux is correctly/fully implemented I think...??[/highlight]
[Android Q&A, Help & Troubleshooting] pkantue:
Mounting USB drives for TF101 with keyboard dock

I've modified bootscript v9 from "robherc" and added functionality specific to TF101 with Keyboard docking station. You can now mount two USB hard/flash drives in any of the USB ports and work with them within the Linux environment.

I added the modified code in the following sections:

Section: "Set up variables"

--------------------------------------

export USB1Mounted=no
export USB2Mounted=no

Section: "mounting external_sd"

----------------------------------------------

if [ -d /Removable/USBdisk1 ]; then
$bbox mkdir $mnt/USB1
$bbox mount -o bind /Removable/USBdisk1 $mnt/USB1
fi

if [ -d /Removable/USBdisk1 ]; then
$bbox mkdir $mnt/USB1
$bbox mount -o bind /Removable/USBdisk1 $mnt/USB1
fi

Section: "Shut down ubuntu"

-----------------------------------------

if [ $USB1Mounted == "yes"]; then $bbox umount $mnt/USB1; fi
if [ $USB2Mounted == "yes"]; then $bbox umount $mnt/USB2; fi

I've attached the file in this post.

Feel free to give any comments on it.

Please leave a thanks if it helped!
[Android Q&A, Help & Troubleshooting] enedil:
Just upgraded Android to CM 11 (based on KitKat) and cannot run Linux :( i have downloaded the most recent bootscript.
[Android Q&A, Help & Troubleshooting] robherc:
For some reason that's not yet fully understood (by me, at least), CM11 doesn't "like" the Complete Linux Installer App. You can still run LinuxOnAndroid, but you'll have to call bootscript.sh manually, or using a script like mrhnet described 2 posts above yours. Whatever the cause is, CM11 isn't allowing the CLI App to executed it's final

sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /path/to/imagefile.img

inside Terminal Emulator. Running this command manually, or from another script, should get LinuxOnAndroid running again on your device. :)

---------- Post added at 12:02 PM ---------- Previous post was at 11:45 AM ----------

I haven't checked your attached file yet, but I think the following modifications to the section quoted above might help your script run more "transparently" & without throwing "directory already exists" error messages (I know, it's mainly just looks at that point, but I like seeing 0 error messages):

if [ -d /Removable/USBdisk1 ]; then
if [ ! -d $mnt/USB1 ]; then # Check for directory before creating
$bbox mkdir $mnt/USB1 # to avoid "directory already exists" error
fi
$bbox mount -o bind /Removable/USBdisk1 $mnt/USB1
if [ $? == 0 ];then USB1Mounted="Yes"; fi # If mounted successfully,
fi # set variable to "Yes" so umount
# statement will run later
# else you'll get an error:
# "umount can't unmount /data/local/mnt: Device or resource busy"

if [ -d /Removable/USBdisk2 ]; then
if [ ! -d $mnt/USB2 ]; then
$bbox mkdir $mnt/USB2
fi
$bbox mount -o bind /Removable/USBdisk2 $mnt/USB2
if [ $? == 0 ];then USB2Mounted="Yes"; fi
fi

---------- Post added at 12:13 PM ---------- Previous post was at 12:02 PM ----------

In reply to your having to su within VNC to use /external_sd, please check your /root/init.sh script (from inside chroot linux) for a line containing "external-sd". Several of the (expecially ubuntu) images contain an init.sh with a typographical error in them; that line should contain "external_sd" instead, having it mis-typed causes an error when giving access permissions to your ubuntu user at first boot of your image.

Once that line is corrected, you will need to delete the /root/DONOTDELETE.txt file from within the chroot linux; then exit out of linux & start linux again.

When restarting linux, you'll see a moderately long chain of "error: cannot create [directory/user/group] _______, [directory/user/group] already exists" messages. Those are to be expected, as you just forced init.sh to re-install many of your initial setup environment actions. ... as long as those are the only error messages you see, the edit & re-run of init.sh should fix your problem with accessing /external_sd from within VNC.

...about the SElinux Enforcing thing. I'm not sure on this one, but I do know that shell scripts are opened & "read" once before being opened and "executed." It just might be that the setenforce 0 command is "seen" by SElinux on the first read, and thus allows the script to be executed based on that. I know it's a thin theory, but as of this moment, it's the only one I have.
[Android Q&A, Help & Troubleshooting] mscion:
Hi Folks.Glad to see there is still quite a bit of interest in loa. I currently use the ubuntu and fedora images on my Tmobile Galaxy Note 3 with Tweaked rom. I'm still on Jelly Bean version. Looking to upgrade to Kitkat soon. Has anyone had success with loa on GN3 with kitkat? Also, I was wondering, was sound ever implemented? Thanks!
[Android Q&A, Help & Troubleshooting] robherc:
I'm not sure about the sound, but I do know that you'll have to upgrade your busybox executable to avoid an "error: sh: init.sh permission denied" error.

Instructions for upgrading your busybox executable are available in my FAQ.
[Android Q&A, Help & Troubleshooting] mscion:
Thanks very much for your additional FAQs page. For the GN3, I always have to remember to change external card to /storage/extSdCard in the bootscript.

I also changed the widget to get rid of the words Boot Linux. That entailed decompiling the loa apk and replacing a png file. That was fun!

Also, although a bit peripheral, what launchers do folks like to use. The only reason I ask is that, if you use loa, it is likely you will go to a landscape orientation

(unless you just use terminal). For instance, sslauncher and lucid launcher allow you to set up landscape screens separately. Widgets look a much better when you do that.

Anybody have success with other launchers?
[Android Q&A, Help & Troubleshooting] robherc:
If you download the v9.0 bootscript that's referenced in the FAQ, I've already updated that script to find the default sd card locations in all Alcatel, Samsung, and Lenovo devices of which I am currently aware.

If anyone has a device which does have an sd card slot, but for which the version 9.0 bootscript referenced in my FAQ (see link above) doesn't "find" your card, PLEASE let me know so I can add support for your device.

tbh, I don't use a launcher anymore, as I've repartitioned my SD card & a thumb drive to boot LOA off of the partitions using my newest bootscript that I'm still working on. ... which isn't yet ready to be incorporated into a new version of the launcher, due to some features still being a bit "unfinished" yet.
[Android Q&A, Help & Troubleshooting] lionking8600:
View attachment 2769949 just tried to mount the image manually and this is what I keep getting, what an I doing wrong?