yashsingh1/xdaforums huggingface dataset:
[Android Software Development] CVEGXXI:
Error in line 110 of init.sh

Hi!

I'm get an error when starting Debian,vnc server:

"Start VNC server? (y/n)

Y

/root/init.sh: line 110: [: ==: unary operator expected Start SSH server? (y/n)

[ ] Starting OpenBSD Secure Shell server: sshd.

If connecting from a different machine on the same network a s the android device use the address below:

ethO: error fetching interface information: Device not found"

How I can fix it?
[Android Software Development] DarkhShadow:
Zac is there a issue with downloading the full 12.04 image from your FTP? My download manager keeps saying its 1.19GB(as it did the first time but when it completed it was incomplete)

Sent from my ice cream powered Nexus S
[Android Software Development] devwithzachary:
yes I think so its possible during the upload process it was damaged, if you are having problems your best bet is to use the torrent download, the link is now on the first post :)
[Android Software Development] skyli91:
Hi! It works well on my Note with speedmod kernel:)

But I found that there is no sound working. Should it work? And can't find Appcenter. Is it unavaible for arm?
[Android Software Development] DarkhShadow:
Sound doesn't go through VNC, maybe of zac gets a native method working sound will work, but until then

Sent from my ice cream powered Nexus S
[Android Software Development] devwithzachary:
With Ubuntu 12.04 reaching stable tomorrow, I will shortly after this be releasing a new wave of Ubuntu 12.04 images (don't worry backtrack it will be your go next!), but as with the last full image has shown me uploading 1.3GB of data on a upload speed of 125kb/s can cause some problems with corruptions etc.

Also now that the free files are on source forge (for those that don't remember they used to be hosted on multiupload) the speed difference between source forge and the ftp server used in the paid apps can be very little if at all at peek times.

So my idea would be to do away with the FTP server, and simply host the files on source forge, BUT also host torrent downloads on a seedbox which I costs me as much as the FTP server, so I can do away with that and buy the new seedbox.

The question is how would you want downloads? There is a poll in the sidebar of my blog that I would like everyone to answer to help decide what type of download 'links' will be included in the apps. Please comment on this post if you have any other ideas.

http://linuxonandroid.blogspot.co.uk/

Really I do think that torrents are the way forward for this kind of media, as the files are so large downloading normally can coarse alot of problems, something torrents do away with. But you are my supporters so I want to know your views on the matter!
[Android Software Development] DarkhShadow:
Is there a torrent downloader on android? If so then that sounds good :-)
[Android Software Development] devwithzachary:
Indeed there are a few nice ones. Plus you can always use the torrent file on a computer
[Android Software Development] DarkhShadow:
Won't have a PC till end of may xD

Sent from my ice cream powered Nexus S
[Android Software Development] stealthdave:
VNC-less LXDE Desktop Loaded!

While playing around on my lunch hour, I was able to get the LXDE desktop to launch NATIVELY using the X Server app from the Google Play store instead of a VNC connection! I wasn't able to do much as none of the mouse buttons would map to anything, but it did load the basic desktop! The wallpaper was also loaded, but it was covered over by a black background (the wallpaper remains when you close the LXDE desktop). Getting LXDE (or any X11 app) to run is actually fairly simple:

Start the X Server app FIRST!!

Switch to Terminal and start your chroot environment as normal.

In the terminal, enter the following two commands:

export DISPLAY=localhost:0
startlxde

Switch back to X Server and and see your beautiful desktop!

You can run any X11 application by running it instead of startlxde in the third step. This is more proof-of-concept than anything else since you're not able to click on anything (yet), but perhaps some of the more experienced developers can move this forward in ways that I cannot. :)

- Dave
[Android Software Development] devwithzachary:
Hey thanks tried this out a while back but wouldnt load good to see it is now working.

Shall certianly look at this more this a audio really are the last things to get working for a kick ass system
[Android Software Development] RubenRybnik:
That's awesome! Last thing making this app unstoppable gonna try later tonight
[Android Software Development] themac:
Just one question,

installed ubuntu 2gb version and apt-getted libreoffice (had to do install 2 times, dunno why).

Now everything works. Asus Transformer, tf101 ics 4.0.3 stock rom, only rooted.

But, sorry being so really nooobbbbish , is there a way to pop up keyboard (e.g. in writer program) other than pushing menu -> "insert text" (that is not a convenient way to make any word processing) ?

Thanks in advance :)

TheMac
[Android Software Development] DarkhShadow:
Long press then tap the icon in between zoom icon

Sent from my ice cream powered Nexus S
[Android Software Development] smogf:
One Question.

I have just run Debian on my LG Swift GT540.

But... It's like LiveCD? Or whenI do the changes in system it save like in normal system, or with next start I will have to do the same changes again?
[Android Software Development] DarkhShadow:
Its like a LiveUSB

Sent from my ice cream powered Nexus S
[Android Software Development] smogf:
him omsickv

So it will save the changes or not? LiveCD it's not LiveUSB. I have never used LiveUSB before so I dont really now it will save the changes or not.

/Sorry for my bad english.
[Android Software Development] devwithzachary:
Yes your system changes will be saved :)
[Android Software Development] devwithzachary:
Not 100% sure, I am in the process of working on a new set up (with the help of Martin Møller) with busybox installed inside the app and a new boot script with much better error detection to cut out most of the errors.
[Android Software Development] D_one:
Quick question, I recently flashed a new rom, noattach, and installed the new ext4 filesystem. Since then, I haven't been able to access my img through vnc. Ubuntu.sh shows that im in, but vnc is just gray with the x for a mouse...

Is it because of the ext4?

How can I fix it?

Thanks in advance!
[Android Software Development] palbadi:
[YOUTUBE]-NPA1TLFhb0[/YOUTUBE]

Try my simplified script without any app.

I have done it on my Redmi Note 3, but all steps are same except the step of remounting system in terminal..
[Android Software Development] Swierk:
How to get access to SDcard??

WysÅ‚ane z mojego D6603 przy uÅ¼yciu Tapatalka
[Android Software Development] Sohaib-alm:
Can u guys tell me

How to launch the distro from the terminal emulator?
[Android Software Development] Beanzy420:
I can't see to get Kali linux to vnc
[Android Software Development] aziad1998:
I am getting this one my OnePlus 3T Stock OOS 4.1.3 and stock terminal... I gave root access to everything and still getting that error.... I cannot format the SD card cuz I don't have one!

---------- Post added at 12:16 AM ---------- Previous post was at 12:12 AM ----------

Sorry stock kernal not terminal
[Android Software Development] aziad1998:
Problem solved by giving the app permission to the terminal from device's settings, but now I got another problem, vnc is not connecting cuz of authentication error, I tried every password possible, and ports 5900 and 0 but no difference
[Android Software Development] sysctl:
Hi!

I have configured everything. When I click "start linux" button under "launch linux" view it says "no apps can perform this operation". I have not found any help for that from google. Could you give some hints please?
[Android Software Development] manjit saha:
When i click on start linux it just open terminal emulator and nothing happened.
[Android Software Development] skullboy12:
u0_a174@android:/ $

u0_a174@android:/ $ cd /storage/emulated/0/Documents

u0_a174@android:/storage/emulated/0/Documents $ su

u0_a174@android:/storage/emulated/0/Documents # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /storage/emulated/0/Documents/Kali.img

Checking loop device... MISSING

Creating loop device... OK

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

Mounting user mounts

Mounting /storage/emulated/0/Documents to android/data/local/mnt... OK

net.ipv4.ip_forward = 1

chroot: can't execute '/root/init.sh': No such file or directory

Shutting down Linux ARM

Unmounting user defined mounts

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

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

1|u0_a174@android:/storage/emulated/0/Documents #

Mounting errors, what can I do?
[Android Software Development] MrCool00236:
I bought the key via the play store but when I click "launch linux installer" in the key app, the key app crashes. "Unfortuanatly Complete Linux Donation Key has stopped working" standard error.

I'm just trying to get the extra features so that I can have linux start automatically when android boots. I don't want to have to find my phone if it crashes/reboots and open the app to start linux from the menu. The digitizer is also broken on this phone so its extra hard.

Any way about this?
[Android Software Development] Pinkmartini:
I have an issue that when i press "start linux" button, the "terminal emulator" app opens but nothing more happens and i cannot see any scripts running in it. What is the problem?
[Android Software Development] SametC:
Error in Asus ZenFone 2

My phone made the following mistake:

chroot can't execute '/root/init.sh' no such file or directory

What is the solution? My devices bootloader unlocked and rooted. My kernel ishttps://xdaforums.com/zenfone2/orig-development/custom-marshmallow-kernel-asus-zenfone-t3429115

Thank you! My English bad :)
[Android Software Development] devwithzachary:
We are back! you heard that right BACK.

I will be going over this thread shortly and cleaning it up and getting it ready for the rebirth of LinuxOnAndroid
[Android Software Development] Zai23:
Please message me when you do. Thank you
[Android Software Development] tarikkaya:
hai zacthespack Is there a way to use linuxondex images? https://webview.linuxondex.com/
[Android Software Development] Kovaelin:
I found this over in the Motorola Xoom thread. Does this still work on that?
[Android Software Development] tonioweb:
Installing puppy linux iso on android smartphone

Hi, please is possible to have a tutorial about installing puppy linux iso on android smartphone? Thank you so much, i appreciate it
[Android Software Development] pauldog:
what is pass for ubuntu large 13,4
[Android Software Development] saad maqsood:
Yes, I also prefer debian
[Android Software Development] AnonVendetta:
CLI is long since dead. None of the distros work on any of my devices. Even with all the fixes and workarounds i've tried, they just wont start. And even if you can get them to start, they're so old that updating them would take a very long time.

I recommend switching to Linux Deploy.
[Android Software Development] secretgogeta:
Can someone fix this problem? My android is jelly bean 4.2.2 on ARM (samsung galaxy tab 3 lite [SM-T110])

There is the log:

u0_a87@android:/ $

u0_a87@android:/ $ cd /storage/emulated/0/ubuntu

u0_a87@android:/storage/emulated/0/ubuntu $ su

.linuxonandroid/files/bootscript.sh /storage/emulated/0/ubuntu/ubuntu-13.04.SMALL.ext2.img <

Checking loop device... FOUND

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

Error: Unable to mount the loop device!

1|root@android:/storage/emulated/0/ubuntu #
[Android Software Development] justPorter:
the old ubuntu 10 image worked almost perfect for me, i got 404 errors when i tried to add java browser plugin and chrome, but everything worked good.

i tried version 12 and unity doesnt work on my transformer prime, installed xfce4 and i get a usable desktop, but chrome, and firefox dont work.

if someone could point me in the right direction on how to get apt-get working on version 10. I just want to get a working java plug in right now.

There are just way too many issues with version 12 on my prime, i will probably have to wait for quite a few updates before it is workable.

thanks
[Android Software Development] RubenRybnik:
Agreed ... 10.10 almost everything worked. Installed the 12 version and firefox, chrome and synaptic all don't work, neither does apt-get from the command line( some http connection error half way through ) not sure what's up with 12 but it's pretty much useless for me currently.
[Android Software Development] devwithzachary:
I would like to introduce a new team member to the project (making it no longer a one man band! :P) he has worked in the passed for me and created the new one click boot in the complete installer, however has been coming up with some really nice stuff so we have agreed that He should now be a team member!

I would like to introduce tuxling he will be working with me to increase the usability of the apps and making the whole system even easier to use!

Please welcome him and I know you will love the stuff he will be producing :D
[Android Software Development] RubenRybnik:
Welcome tuxling looking forward to future updates :) I know there has been some talk here and there about running nativley instead of in vnc, can I suggest that if you guys are able please make this a priority task, it would make for an epic addition! Also, not having to run everything as root would be great too :) Thanks again for the work here!
[Android Software Development] devwithzachary:
Yes some people are reporting problems and I will push some new images soon but I am not completely sure as all works fine for me..really wish I had unlimited funds and buy a range of devices to test on xD
[Android Software Development] DarkhShadow:
If I win the lottery I will send you a handful, lol :p

Sent from my ice cream powered Nexus S
[Android Software Development] devwithzachary:
Its certainly up there, along with ideas to make it more stable and work without problems across devices. A great idea he has come up with was to include busybox inside the app so no longer issues with the wrong version of busybox etc thus no more busybox errors :)

Sounds good to me :D I accept all lottery winning donations along with normal donations ;) :P
[Android Software Development] justPorter:
i got lucky and found that the following commands get the ubuntu software center working again on 10.

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

sudo apt-get update

now i am just trying to get chrome to render pages, but firefox works
[Android Software Development] Goindrinkn:
Atrix (olympus) works almost...

I deeply apologize if this has been answered already. (I know versions of it have been asked...) and I have searched this thread, the old thread, and the blog. But...

I too am getting the gray screen with the X when entering VNC. I have an Atrix 4G with CM7 and have used the RC2 and a few of the more recent nightlies. I am using the Ubuntu paid, and I have the market terminal (not default cm7) and have tried stock kernel, and a Faux's in a few combinations.

I was able to get a 10x working / but not the 12. I do see that there's the init.rc and an init.olympus.rc file / did I miss something and am I supposed to swap these? (it's showing the FS as RO even though I think I'm su and have not been able to remount it R/W but I may be doing something wrong.

(I was going to try to mv init.rc old_init.rc and then cp init.olympus.rc init.rc - As while I'm grasping / it seems like that may be why that is there?) Also if this has been answered, and again I apologize, can someone point me to where it is so I can see the error of my searches (sometimes it's just the wrong 20 questions) and see if there is additional info.

Have tried the deb / free and got the same result. And I', sad as I want to play with the big boys as well! (Everything else seems to work from cmd line for me on 12.4 / as opposed to a few of the posts above. I am able to apt-get etc...

thank you in advance for the hard work and everyone's contributions as a community!
[Android Software Development] smogf:
shszume which

So where exactly? Directly in system image?

One more. I have answered Yes when bootscript asked me for a resolution. I have made a mistake, but now script didn't ask me anymore. What can I do to set new resolution?
[Android Software Development] RubenRybnik:
Your system changes get 'saved' to the img file you downloaded, so if you have to back it up, just copy that img file off somewhere.

The resolution question is initiated in the /root/init.sh script, you can edit this if you have too and hard code a resolution value in there, or change it to ask you. Never had an issue with it not prompting me everytime so not sure how that happened, but you can edit it as you see fit after you start the ubuntu install, just edit it via the command prompt in terminal emulator
[Android Software Development] tuxling:
Thank you :) There's nothing i want more than get rid of vnc, so it's definitely high on the list! :)

---------- Post added 27th April 2012 at 12:05 AM ---------- Previous post was 26th April 2012 at 11:54 PM ----------

If i remember correct the resolution is saved to /root/bootdefault.txt so try starting the Linux and enter

rm /root/bootdefault.txt
exit

Now wait for the Linux to shut down and start it again and it should ask you to enter resolution this time. :)
[Android Software Development] tuxling:
New script

In the next update the script will have better error messages which hopefully make it easier to find problems in the future.

Attached is the new script for people with problems and those who just want to test it now. :)
[Android Software Development] Jakkumn:
working on getting this up and running on my g2x, using the new script, I get:

Checking loop device... FOUND
losetup: /dev/block/loop255: No such file or directory
Error: Unable to attach image to loop device!

What can I do to resolve this?
[Android Software Development] tuxling:
You have to either edit the script and set the right image file name or pass it as an argument to the script.

I forgot all about mentioning that "little" detail, sorry about that! :D

In the script find this line:

export imgfile=$(dirname $0)/ubuntu.img

And change ubuntu.img to the correct name of your image.

Or if you start the image manually you can type:

sh script.sh imagename.img

Which will start the image you enter instead of the default one set in the script.

Of course there will be no editing scripts needed once the updates are out. :)
[Android Software Development] devwithzachary:
Very nice I shall look at this this evening and certainly include these changes in my next ubuntu builds so long as no one reports any issues :). I wish my exams where no so close there is so much I want to get done on the project so many new features etc but we will get there :) got lots of goodies for all the apps infact once I have time to build them in xD
[Android Software Development] RubenRybnik:
Wow!!! What a great contribution, going to try this today, I'll post with my results later.

So has anyone found any way around the firefox, chrome and package manager crashes? This makes the 12 image pretty much unuseable. To be honest, I don't even think we need 12 do we? Not sure what it provides us over 11 or even 10 which is definitely a more battle tested distro version with updates. Thoughts?
[Android Software Development] barryflanagan:
My feeling is that it is the lack of shm (a shared memory implementation) which is causing the issues. Android does not use shm, instead having opted for a version ashmem which does not work in quite the same way as far as I understand it.

I have been trying to get shm working but no luck thus far. It appears that the kernel is compiled with shm included, but for whatever reason I can't seem to make it work.

Some people apparently are able to run Firefox on 12.04 - it would be interesting to know what versions of Android and what kernels they are using.

Overall, the errors I am seeing most consistently are regarding the shmget function not being implemented and the lack of glx

I will ask one of the kernel devs if they have any insight
[Android Software Development] devwithzachary:
Well the thing is 12.04 is the next LTS so it will have support for a long time so is a good base to build from, it also offers much better ARM support and has made the build process pretty much as easy as just downloading a file and extracting it to a image file along with my scripts and adding a few other packages.. compared to building from scratch. Its possible some of these errors are to do with running as root, I have always found this to be something that needed to be changed but never had the time.
[Android Software Development] devwithzachary:
Interesting, for more firefox and everything works fine for me so I have been un able to debug but prehaps your are right, it would be great to get a seasoned kernel dev on the team to prehaps make some 'ubuntu friendly' kernels for devices that enable a less hit and miss situation with some devices
[Android Software Development] barryflanagan:
What phone, version of Android, and kernel do you run?
[Android Software Development] tuxling:
I'm able to run Firefox on the latest 12.04 full image and Unity work fine too. (but slow)

It's on a Galaxy S2 (i9100) with Siyah kernel 2.6.13 and the rom is a stock XWLA4 (2.3.6) which i deodexed myself.
[Android Software Development] devwithzachary:
Galaxy note, 4.0.3, kernel 3.0.15-19220ZCLP5
[Android Software Development] RubenRybnik:
I'm ruuning the below setup with no Firefox, Chrome or Pacakge Manager support

Device: Transformer Prime TF201

ROM: AOKP Build 34

Kernel: Motleys 2.6.39.4+ #102 SMP PREEMPT Sat Apr 21 17:38:10 EDT 2012 armv7l GNU/Linux
[Android Software Development] barryflanagan:
Snap :)

Just downloading it on to my GNex which also runs AOKP 34 but Franco's kernel. Will see if there is any more success with that.

Later...hmmm, OK, well it works perfectly on the Galaxy Nexus running AOKP.

There must be something about the Transformer Prime causing an issue. Such a pity because this is by far the best device to run this on! I am going to have to figure out what it is.

Later still.... Oh, and I applied my run_as_ubuntu script on the clean GNex install and it went without a hitch. Also did not break Firefox which is good :)
[Android Software Development] RubenRybnik:
Wont have a chance to play around with it until later today, but do you think it's worth trying different kernels for the Prime? Or do you think it could be the device? Or maybe ROM specific? I'm open to trying a couple different configurations if you need a tester, just want to make sure I wont be wasting my time, lol.

Also what can I provide to you that you'd think would be useful? dmesg, /var/logs, command output from launching Firefox or Update Manager via command line, anything else?

Feel free to PM me if you want, I'll send you my IM info if that'll help speed things up also.
[Android Software Development] RubenRybnik:
BTW ... Is there a way to setup the apk to use a different terminal, like airterm for instance. I'm ok with having to decompile / recompile if needed just need to know changes to make. As a feature maybe you could setup a config that we could point the app too to use for the terminal( I'm REALLY hoping a dev develops a quake style terminal at some point, that type of term with this would be unstoppable :) )
[Android Software Development] devwithzachary:
As of right now no there isnt, it uses a built in function of the terminal app that allows you to start its terminal activity from another app and pass commands along with it. SO in order to use another terminal that terminal would need to have a similar function and then would need to be code in to the app i.e that terminals package name and activity to start.