yashsingh1/xdaforums huggingface dataset:
[Android Software Development] alireza7991:
I 've installed ubuntu 13.10 . downloading gcc gives error 404 for most of packages needed ( except binutils and ..) !! what should I do to get GCC 4.8.x ?
[Android Software Development] k3v0:
Run

apt-get update

You are probably trying to install older versions
[Android Software Development] aleksandar5:
XRANDR is missing on screen 0.0

Hello!

I've installed Kali Linux (with GNOME).

Everything is fine, except that I can't run iceweasel.

This is the output (what I get when I type 'iceweasel' in terminal):

Xlib: extension "RANDR" missing on display ":0.0".

(iceweasel:26869): Gdk-WARNING **: shmget failed: error 38 (Function not implemented)

Segmentation fault

Actually, it displays the browser just for a moment, then exits :(

How do I solve this problem?
[Android Software Development] alireza7991:
thanks ; fixed .

Any news from native frame buffer rendering for X11 ?
[Android Software Development] Executer:
Any news if it works with the Galaxy Note 3?
[Android Software Development] k3v0:
It does, though not the kde plasma desktop. You may need to set selinux to permissive (setenforce 0).

You can try Fedora, Ubuntu small images (with LXDE), any of the Arch Linux images, and Bodhi.

http://sourceforge.net/projects/linuxonandroid/files/?source=navbar
[Android Software Development] Executer:
Thank you for your quick answer.

I dont have the Note3 yet, as i am a little bit concerned about the KNOX an warranty aspects.

And Linux-on-Android should run on my next phone.

Can the selinux be easily set to permissive ?
[Android Software Development] k3v0:
Yes. setenforce 0 from a root terminal.
[Android Software Development] edworkscomputing:
not working on note 3 exinos one with 4.3 android rooted. had error permission denied. any fix?
[Android Software Development] Hav4k:
Hi.

I have installed Kali Linux with your app, can you help with this thread?

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

Thanks.
[Android Software Development] davidheis:
Hi. I posted instructions on how to install LOA distros to second sdcard partition. http://xdaforums.com/showthread.php?p=49140048#post49140048 :thumbup:. Hope it helps other followers of this project.

From my thumbs to your eyes.
[Android Software Development] vevmesteren:
Am stuck at same error, did you ever manage to resolve this ?

---------- Post added at 03:19 AM ---------- Previous post was at 02:55 AM ----------

do I did get a little further but still a no go

Checking loop device... FOUND
losetup: /dev/block/loop255
Error: Unable to attach image to loop device! (Image = /sdcard/ubuntu/ubuntu-13.10.SMALL.ext4.img)

so still need help
[Android Software Development] adroidgalaxy:
I'm running a custom touch wiz rom S3Rx running android 4.3

LOA worked great until I upgraded. Here is the error in the terminal:

u0_a180@d2att:/ $

u0_a180@d2att:/ $ cd /sdcard/ubuntu

u0_a180@d2att:/sdcard/ubuntu $ su

sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu-13.10.SMALL.ext4.img

sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu-13.10.SMALL.ext4.img

root@d2att:/storage/emulated/legacy/ubuntu # sh /data/data/c.zpwebsites.linu xonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu-13.10.Sript.sh /sdcard/ubuntu/ubuntu-13.10.SMA LL.ext4.img <<br />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@d2att:/storage/emulated/legacy/ubuntu #

How should I fix this? It seems like there is a permissions issue with init? What should it be set to? Right now it's 777 root: root

Sent from my SAMSUNG-SGH-I747 running S3Rx 4.3!
[Android Software Development] davidheis:
Did you try the bootscript for Android 4.3?

It's on the LOA sourceforge page.

Sent from my thumbs to your eyes.
[Android Software Development] vevmesteren:
Is there a known fix (or reason) for this issue?
[Android Software Development] adroidgalaxy:
I just downloaded it and ran it with root accesses using root explorer. It looks like it's the same error...I'll upload a screen shot. Has anyone else had this issue?

It is in permissive mode as well so it's very odd

Sent from my SAMSUNG-SGH-I747 running S3Rx 4.3!
[Android Software Development] davidheis:
Please see my reply in the Q&A thread. That might help.

Sent from my thumbs to your eyes.

---------- Post added at 08:57 PM ---------- Previous post was at 08:52 PM ----------

You could also try manually mounting the image to test the compatibility of the image format with your device.

Sent from my thumbs to your eyes.
[Android Software Development] userdelroot:
A little fyi, if you type: busybox mount -o loop path_to_linux.img /my/mnt/point

It will mount it, and create the loop device in /dev/loop1,2 etc. depending on which is available.

I have not ran into issues doing it that way, however I have doing it by creating the loop device and using losetup.

Also when you unmount the image it will auto remove /dev/loop# for you.

I noticed people having issues with the system no cleanly unmounting after chrooting.

If you create a file /root/init.sh and inside this file you can have initial setup done if you like.

If not just add

#!/bin/bash

# initial system with whatever
# good idea is
# example

rm /var/run/dbus/pid
rm /tmp/.X.*

# now this will put you into an interactive shell

echo "to shut down chroot, just type: exit"

/bin/bash -i

# once you type exit the below portion of script will run
pkill dbus-daemon
pkill lib
pkill menu-cache
/etc/init.d/ssh stop # im using ubuntu not sure if

# now it should cleanly unmount your chroot

if the above does not cleanly unmount your chroot, you can check what is causing it to hang with: lsof | grep /mnt/linux

You should see some output, try to pkill the top most process NOT /path/to/linux.img or things get weird lol

then type : mount | grep /mnt/path

try to unmount other mount points if they are mounted before unmounting main mount point (where the linux.img is mounted).

If you do find the process causing the hangup and you can manually unmount the linux.img and other chroots mounts,

add in the init.sh script with the rest of the pkill process_causing_hang

then try to enter chroot and exit, it will unmount cleanly.

Hopefully that helps.
[Android Software Development] davidheis:
The error is probably because your device does not support the filesystem of the image. My phone does not support ext2. So I ran

su
/sbin/tune2fs -j /mnt/sdcard/ubuntu/ubuntu.img

to change the ext2 image into ext3.

Then I changed "ext2" to "ext3" in this line inside the bootscript.

$bbox mount -t ext2 /dev/block/loop255 $mnt

Then I was able to start ubuntu.

Hope that helps.
[Android Software Development] vevmesteren:
The nexus 7 2013 does not support ext4?

That is surprising, did the bootscript modification, I'll give the other correction a whirl...

I am using the ext4 image already, and the bootscript I am using already sets the ext4

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

EDIT: OK, am up and running in terminal for now. When I VNC in, no LXDE UI. I am sure something will pop up in the forums...
[Android Software Development] debernardis:
FYI this works well with the X server apk from http://sourceforge.net/projects/libsdl-android/files/apk/XServer-XSDL/

The command I use to start lxde is

root@localhost:/# su - ubuntu -c 'env DISPLAY=127.0.0.1:1 startlxde'&

Of course the :1 is there because the :0 display has been taken by vnc (I haven't bothered to modify the stock scripts).

This X server is said to support audio; maybe the 12.04 Ubuntu img I'm using lacks the proper drivers because I cannot make it work.
[Android Software Development] marcdman4000:
man, i have the N7 2013 and ive been trying this for weeks. i cant seem to quite to get this to work the way i need it to. I was able to get LXDE web top on the the small img. and it was cool but completely useless. As nothing worked. the web browser would not even open. then today i was able to VNC into the large img. however same thing. its useless. i cant get any thing to work. any suggestions as to what im doing wrong?
[Android Software Development] ONDR4SH3K:
Hi,

I can't shutdown or restart linux enviroment. If I type exit in android terminal, everything done OK, but if I launch linux again, no change effect.

I need restart because I want change language.

I use Ubuntu 10.10 with ubuntuv6.sh or newest bootscript.sh and nothing happened.

Any idea?
[Android Software Development] rob219:
you have to type exit twice for it to shut down. after that it will load again.
[Android Software Development] ONDR4SH3K:
Thanks for quick reply, but no change effect.

Ubuntu still power on. And no restart from system.
[Android Software Development] rob219:
next step would be to.kill everything and reboot. if no change you may have to do a wipe.
[Android Software Development] ONDR4SH3K:
If I reboot tablet, linux start normally with uptime 00:00:00, but language still English. I uninstall English language and I left only Czech and nothing.

EDIT: In boot.log is: "Nothing has been logged yet."
[Android Software Development] userdelroot:
I am assuming you are changing the language in Ubuntu.

in the ubuntu chroot, in a terminal or whatever you use to get a command prompt...

type the following:

"locale-gen cs_CZ cs_CZ.UTF-8"

then:

"dpkg-reconfigure tzdata"

WITHOUT QUOTES!!!

then select your language in the window that will open.

Hope that helps.
[Android Software Development] ONDR4SH3K:
Thanks for help, but any change. It's like system didn't log out or restart.
[Android Software Development] userdelroot:
If you had entered the chroot and out and it did not cleanly unmount and then you re-enter the chroot it will cause some issues.

I would reboot your device to make sure everything is cleanly unmounted.

Enter the chroot and then try those commands again.

if that does not work

http://ubuntuforums.org/archive/index.php/t-1899161.html

Try that:
[Android Software Development] ONDR4SH3K:
I'm sorry, but didn't work too. Have you any other release ubuntu to download? Not for linuxonandroid git. I try Fedora, Backtrack, Ubuntu (all versions new one) and still nothing.

Edit: I will try launch arm debian on qemu and create own img with my settings. I wil hope it work.
[Android Software Development] userdelroot:
I think I understand you right, your language is not changing to czech throughout the system?
[Android Software Development] ONDR4SH3K:
Yes, its not changing, because i need restart, shutdown or logout from linux distro, but it stucks in linux and exit command from chroot dont help.
[Android Software Development] ONDR4SH3K:
Is any chance get tutorial for emulate preinstalled distros for this project to QEMU? I tried boot ARM squezee debian from all sources what I find, but I stuck to create my own bootable img for linuxonandroid. I don't find rootfs of source what I find.

I still don't figure out, how restart distro on device.

If I emulate img distros to QEMU, I can do changes and put img with changes to device.

Thanks.
[Android Software Development] mscion:
Hi debernardis! Nice find! I tried with my lxde version. Fonts look a little different than using jump. unfortunately no sound. Also pinch and zoom did not work. I tried fedora 19 image too but I could not get X server to work at all here. Will play some more....
[Android Software Development] debernardis:
For fonts, I have had best results with 0.3x magnification. You can set it by tapping on screen immediately after the X server starts.
[Android Software Development] userdelroot:
did you restart the device itself then go back in?

Ill see what else I can find.

I have not used this setup so maybe the commands are not being done correctly.

the commands

locale cs_CZ cs_CZ.UTF-8
dpkg-reconfigure tzdata

They both have to be run as root within the chroot enviroment..

so try this

sudo locale cs_CZ cs_CZ.UTF-8

then

sudo dpkg-reconfigure tzdata
[Android Software Development] Stevethegreat:
So I gave it a try if only for its relatively novel value and I must say it works better than expected, so much so that I am thinking of using it as the "native" webtop of my phone. Of course not everything is rosy, the gui performance lacks probably due to lack of hardware acceleration and/or slow hardware, no sound too.

So any recommendations in these fronts? I.e. may I use a faster/smoother vnc viewer (*if* such a thing exists), or maybe use a lighter distro (which is the lightest BTW),would having more cores/ram benefit in theory? Again I'm talking about GUI issues, the terminal runs just fine...

Thanks for the tool...
[Android Software Development] mscion:
While I like tinkering with the X server app, I think Jump or bvnc is more user friendly. But here's a question, Is there a way to fire up an android app from within the linux on android?
[Android Software Development] userdelroot:
I do not believe so, but I have not really tried to, I guess anything is really possible, but sometimes just not feasible.

Most of the tools used to launch android apps, would not be available inside the chroot. However, if you would mount say, /system/bin, /system/xbin and have them available to the chroot, then maybe.

Again, never tried it.
[Android Software Development] alireza7991:
you should use `am` (activity manager) utility. Google for how to start an activity with it .
[Android Software Development] alireza7991:
Using last arch linux , I can not install any packages with pacman !

see attached image.

EDIT : I 've fixed the problem by using a copy of /proc/mounts to /etc/mtab instead of a symlink to it .

now I have another problem, error 404 ! see attached image;

EDIT 2 : ok, finally fixed ! I used pacman -Sy to update repository lists.

EDIT 3 : another error while installing gcc see the attached image ;

EDIT 4 : fixed using `--force` ( "pacman -S --force")
[Android Software Development] mscion:
Thanks! I give it a try, Perhaps one could ssh from linux on android distro to android phone and start an application from terminal. But that would be cheating....

EDIT: Oh I see what you are talking about. Yes, unless I missunderstood you, am is what you would do to start a process when you are using a teminal in android os, but what I'm refering to to start a job from within LOA. When I suggested using ssh from with LOA, I woul then have to use a command like

adp shell start -a "program you want to run"

to run the android program. Hope I understood you correctly.
[Android Software Development] alireza7991:
sorry for misunderstanding ; I was thinking you mean how to start an android activity from android not how to start an activity through adb using ssh.
[Android Software Development] madunix:
Hey everyone. Need some help. I'm running on beanstalk 4.4.2 with ktoonz 4.4 compatible kernel. I have a T-Mobile S3 T-999 phone. I followed all the instructions but i'm stuck here.

I click

View attachment 2533526

And then terminal emulator opens like it should

View attachment 2533527

When I go to androidVNC(I used d2tmo instead of localhost because of hat terminal emulator showed. And also, when I tried localhost, it would even give me a timeout error, it would just fail)

View attachment 2533533

I get this

Any help would be appreciated. Thank you.
[Android Software Development] userdelroot:
I don't see the dev's posting here much, as when I started making the scripts it was for linux on android.

Basically you have to download some huge image file between 1-4 gigs to get a chroot.

I have fixed this and made scripts to create the image right on the device itself and you can choose how large you want the image to be.

It only downloads the required packages, approximately 200megs.

Currently right now I only have ubuntu tested, but I am working on debian, kali also...

If anyone is interested in trying it out let me know or if one of the dev's would like to incorporate this into their app, that would be fine as well.
[Android Software Development] domini99:
im using android 4.4.2 on my galaxy s2, i cant get any image to work, when i connect to the vnc, there never is a graphical interface, just a grey screen with an X.

Is this an android version specific problem? because my jelly bean running tablet has no problems.

Sent from my sending thing..

I hate you so much im going to kill you to death!
[Android Software Development] madunix:
Ah, this thread is so dead. Ha, that rhymed
[Android Software Development] Samigg:
Amazing App, but i have some problems with Ubuntu 13.10 Large ROM. It doesn't work.

I used a Small ROM. I make a video of Installing Ubuntu 13.10 on Nexus 7 (2013). It is in Russian, but with english subs.

Here is it: https://www.youtube.com/watch?v=9RZpw7Zc8AU
[Android Software Development] devwithzachary:
As the project has grown to its current size is nearly impossible for myself and the team to keep track of the thread, so yes the thread is pretty much dead, but we hope to fix this... watch this space
[Android Software Development] userdelroot:
Here is a alpha release for the installing of a Ubuntu currently precise quantal saucy only work. Debian Kali and others will be added...

This will create a chroot image right on your device so you longer have to download a gigs of data..

It will download approximately 200megs however. That is for a base linux install with LXDE.

Download the files open up a terminal or adb shell

type

sh install-or-mount

follow the usage instructions...

Ooops forgot to mention...

This build is for kitkat 4.4.x due to having a built in busybox. I have tested this on a Nexus 7 2013.

Your results may vary depending on device.

Once the image is created you should be able to use Linux on Android app for its features.

Enjoy!!!

Comments or Questions let me know. Hopefully the dev's will incorporate this into Linux on Android...

In case the attachment does not work

http://xdaforums.com/showthread.php?t=2624954
[Android Software Development] ONDR4SH3K:
I tried with Sony Xperia P stock ROM 4.1.2. Second attachment

I tried also with Acer Iconia Tab A1-810 stock ROM 4.2.2. I must delete sanity_check function and rewrite busybox from Linuxonandroid, but I have problem with deboostrap. Any idea? First attachment

Is any chance get functionality to other devices with different Android version? Linuxonandroid project is freeze.

Thanks anyway.
[Android Software Development] ONDR4SH3K:
deleted
[Android Software Development] userdelroot:
It should work on any kitkat device. I only have a nexus 7 2013 with kitkat, so I am unable to test other devices.

Should I start a thread for this?

---------- Post added at 03:19 PM ---------- Previous post was at 03:15 PM ----------

Make sure you have installed the script to /data/local/

Included busybox will not run from /sdcard/

If you do have it installed to /data/local

Do the following from a terminal...

su

chmod 755 /data/local/install-or-mount/bin/busybox

If you get an error for chmod try

busybox chmod 755 /data/local/install-or-mount/bin/busybox

As for the second picture, I had a feeling that would happen...

I built busybox and some other required binary's using cyanogenmod for my specific device, which has specific libs.

Few things you can try.

Check if your rom or system busybox using /system/xbin/busybox

has the following available applets.

ar
awk
bzip2
cat
chmod
chroot
cp
cut
grep
gunzip
head
id
mkdir
mknod
mount
mv
printf
reset
rm
sed
sh
sha1sum
sort
sysctl
tar
tr
umount
uname
uniq
vi
wc
wget
which
zcat
mke2fs

If so you can try changing this line in the install-or-mount script

LINE: 421 export BB="$SELFPATH/bin/busybox"

To

export BB="/system/xbin/busybox"
[Android Software Development] ONDR4SH3K:
I'm already testing with CM 11 RC1 on Sony Xperia P. Feedback soon.
[Android Software Development] userdelroot:
Ok, thank you for helping, appreciate it.

I am going to add code to fix a couple of things and to do a better sanity_check
[Android Software Development] ONDR4SH3K:
If you can, we can transfer conversation to your topic. :) Because it's another project, than linuxonandroid. Do you?
[Android Software Development] userdelroot:
http://xdaforums.com/showthread.php?t=2625585
[Android Software Development] davidheis:
Anybody manage to get LAMP to run on any of the distros? I'm trying on Ubuntu 12.04. Apache and PHP are running but MYSQL is not. Getting the "...can't connect to local mysql server through /var/run/mysqld/mysqld.sock (2)" error.

Sucks
[Android Software Development] pavan061994:
About Problems On 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/attachment.php?attachmentid=2549215&stc=1&d=1391106646
[Android Software Development] userdelroot:
Yes I have

apt-get install mysq-server mysql-client apache2 php5
[Android Software Development] davidheis:
Thanks. I'll give that a try.

I have tried following a tutorial but it also included installing other things like apache2-mod-php and other things.
[Android Software Development] davidheis:
Hey there.

I tried. Same error.

Could you please tell me if you had to modify anything to get it to work?
[Android Software Development] userdelroot:
Is mysql even running?

Make sure it is or of course it wont connect. You have to run it manually so you can see if it is giving errors on start.

If you have not changed nothing then it is probably giving an error about syslog
[Android Software Development] davidheis:
"sudo service mysql status" returns nothing. I tried stop/start. Still nothing.

I modified the my.cnf to change the socket location to /tmp and now I see that the socket file is created there. It wasn't created before. Also after doing this the error changed from "Error 2002 HY000: Can't connect to local mysql server through /var/run/mysqld/mysqld.sock (2)" to "..../tmp/mysql.sock (111)". I read that (111) means connection refused. I also changed the mysql.pid file location but I don't see it created.

Which distro and which version are you running anyway?
[Android Software Development] userdelroot:
You can not use service bleh stop/start in a chroot on android as there is no upstart

Most services get started by an init.sh script somewhere usually in / or /root inside the chroot.

You have to find the command line startup eg: mysqld_safe

would work for testing.
[Android Software Development] davidheis:
I tried on Ubuntu 12.04 on two different devices and it doesn't work. It must be the image. I'll try on 13.10 later.
[Android Software Development] Vivek_Neel:
I could not download this app:(

Any mirror possible?

Tia
[Android Software Development] userdelroot:
http://xdaforums.com/showthread.php?t=2627255

---------- Post added at 05:34 AM ---------- Previous post was at 05:34 AM ----------

http://xdaforums.com/showthread.php?t=2627255
[Android Software Development] davidheis:
Cool! Does this work on ICS, and what about LAMP? I'm gonna try it.
[Android Software Development] spatchy:
help

it worked for you so it will probably work for me, where is the file with the line i need to change?
[Android Software Development] mscion:
When you boot up to the terminal change directory to

/home/ubuntu/.vnc

xstartup is there.
[Android Software Development] spatchy:
thanks, feel a bit stupid now, should have known that.
[Android Software Development] pavan061994:
Help me Pls.

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 Software Development] userdelroot:
it should yes.

LAMP also yes, use newer ubuntu saucy or use kali
[Android Software Development] rob219:
sudo apt-get me a beer
[Android Software Development] Joiner22:
Problem in install kali linux

Could anyone help me with this error, I am trying to install kali linux in motorola razr i (xt890 - android 4.1.2), using the Complete Linux Installer.
[Android Software Development] userdelroot:
lol