Related
Hi! I get error when I try to install ubuntu on my device and error message is "Line 44: syntax error: unexpected end of line (expecting "then")" on terminal emulator, can somebody clear me what this mean? And is cm10 must be when I am installing ubuntu (I have now 4.1.2 imperium 12.2) with extsdcard to sdcard mod. I really want to feel how ubuntu feels on my phone .
Edit:My code is cd storage/sdcard0/ubuntu
sh ubuntu.sh and then comes the error message
Q&A for [APP] Linux-on-Android project (Complete Linux Installer)
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [APP] Linux-on-Android project (Complete Linux Installer). If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
+1 Like Tweet Rate Thread Add Poll [Q] Android 4.4.2 i9506 "Complete Linux Inst
"Complate Linux Installer" program after I installed the "ubuntu image", "BusyBox", "terminal emulator" and "vnc" I've installed.
The phone has root;
But "Complate Linux Installer" from the image, in the image whenever you start with the error I'm having. If you have information or who will be able to direct; I'm waiting for help.
"Checking loop device... MISSING
Creating loop device... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[130]: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied FAİLED
Error: UNABLE TO CREATE LOOP DEVİCE!
1 [email protected]:/stoage/extSdCard/ubuntu #"
you should type 'su' on the first to get the root permission.
Sent from my A0001 using XDA Free mobile app
busyboX permission denied
Hi,
i have this problem
[email protected]:/ $
[email protected]:/ $ cd /sdcard/ubuntu
[email protected]:/sdcard/ubuntu $ su
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
[email protected]:/storage/emulated/legacy/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
MD5 file found, use to check .img file? (y/n)
y
Validating image checksum... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[81]: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied
FAILED!
Error: Checksum failed! The image is corrupted!
1|[email protected]:/storage/emulated/legacy/ubuntu #
the app have permission root. I have reinstalling busybox from launch, but not work.
i have change permission in folder data/data/com.zpwebsites.linuxonandroid/files/ in 0777, but not work.
thanks
damooo90 said:
Hi,
i have this problem
[email protected]:/ $
[email protected]:/ $ cd /sdcard/ubuntu
[email protected]:/sdcard/ubuntu $ su
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
[email protected]:/storage/emulated/legacy/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img
MD5 file found, use to check .img file? (y/n)
y
Validating image checksum... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[81]: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied
FAILED!
Error: Checksum failed! The image is corrupted!
1|[email protected]:/storage/emulated/legacy/ubuntu #
the app have permission root. I have reinstalling busybox from launch, but not work.
i have change permission in folder data/data/com.zpwebsites.linuxonandroid/files/ in 0777, but not work.
thanks
Click to expand...
Click to collapse
you don't get the permission .if you get the '$' will be turn into '#'
Sent from my A0001 using XDA Free mobile app
Linux on Android
Hi,
when I start Linux on the App "Linux on Android" i see the folling Error Message "/root/init.sh: line 133 [: ==: unary operator expected". I can't not start the VNC Connection. Whout I con Do?
Thanks for request, Stefan Harbich
I can not run..
How to run on Xiaomi Mi4, It's have internal rom don't have sd card..
makgun said:
I had tried your bootscript.sh but it doesn't work again.
Full log with terminal is
"[email protected]:/ $
[email protected]:/ $ su
/data/data/com.zpwebsites.linuxonandroid/files/busybox chroot /data/local/mnt /root/init.sh
/data/data/com.zpwebsites.linuxonandroid/files/busybox chroot /data/local/mnt /root/init.sh
ox chroot /data/local/mnt /root/init.sh <
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
Start VNC server? (y/n)
y
/root/init.sh: line 110: [: ==: unary operator expected
Start SSH server? (y/n)
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
* Starting OpenBSD Secure Shell server sshd ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
[ OK ]
If connecting from a different machine on the same network as the android device use the address below:
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
eth0: error fetching interface information: Device not foundSave settings as defaults? (y/n) (You can always change it later in the app)
y
Config saved to /root/cfg/linux.config
To shut down the Linux environment, just enter 'exit' at this terminal - and WAIT for all shutdown routines to finish!
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/vendor/lib/libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
[email protected]:/# "
Click to expand...
Click to collapse
This is happening becuase of SU, chainfire's uses it's own shell.
Clockworkmod SU, defaults back to /, so the cd made before su command cause script to fail. On newer android ChainsDD doesn't work.
App needs to be updated to do su before cd for CWM, and or run su with these options
for Chainfire's "su -p -s /system/bin/sh"
Great app guys. My only issue besides a black screen I've been battling with vnc..is when I download a distro and attempt to open to zip I get "bad file size" and a series of numbers. The only one that didn't do that to me was the small version ofdebian. It anyone has the large or small version of either ubuntu id appreciate a link. And yes I've tried redownloading multiple times.
The torrents have no seeders and the sound forge site always gives be a bad download.
Also if anyone has a good vnc alternative id love to hear about it
nowucmenowudont3 said:
Great app guys. My only issue besides a black screen I've been battling with vnc..is when I download a distro and attempt to open to zip I get "bad file size" and a series of numbers. The only one that didn't do that to me was the small version ofdebian. It anyone has the large or small version of either ubuntu id appreciate a link. And yes I've tried redownloading multiple times.
The torrents have no seeders and the sound forge site always gives be a bad download.
Also if anyone has a good vnc alternative id love to hear about it
Click to expand...
Click to collapse
The torrents seem to have no seeders, I would download from sourceforge, try the 12.04 imgs they seem to work for the bigger imgs. Can always update them to 13 or 14.
need help
i got this app /terminal / vnc/ images and im sure my kernel support loop devices but when i press 'start linux" button it just opens terminal but nothing happens and i dont have any clue what to do (i tried kali and ubuntu images)
(sorry for my bad english)
Hello world,
So I recently tried this Complete Linux Installer. I did all the steps as I should but when I click "Launch" it only opens Terminal Emulator and nothing happens.
So I decided to run the commands manually. It says:
MD5 file found, use to check .img file? (y/n)
n
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: Device or resource busy
Error: Unable to mount the loop device!
Or:
bootscript.sh /sdcard/ubuntu/ubuntu-13.10.LARGE.ext4.img <
MD5 file found, use to check .img file? (y/n)
y
Validating image checksum... md5sum: can't open 'ubuntu-13.10.LARGE.ext4.img': No such file or directory
FAILED!
Error: Checksum failed! The image is corrupted!
Does anybody know what is wrong?
Edit:
Got it working now. Big thanks to developers
Problem with launching linux.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Everything what Complete Linux Installer do,is this. And its different of that, what it should do. This result I got everytimes when I want to start linux. Know anybody what with this?
Blank screen
I've got a blank screen in the VNC Client. Everything seems to be running fine though. I tried running Debian.
@GrandMarshall I did have the same issue, but pressing enter with my tablet's keyboard seems to do the trick =)
Problem in Ubuntu Chrome and Mozilla...
It seem that i can open it with connection... but chrome didn't showing the pages even loaded. And the built-in mozilla always crashes...
How can i update , or install some apps or browser in Ubuntu 12 in ? Or How to paste some file and manually install it via Terminal Emulator?
Pls help guys.. thanks a lot in advance for those who will help me
-noob
---------- Post added at 01:11 PM ---------- Previous post was at 12:19 PM ----------
Mozilla always crashes : , help to install or paste the application file to ubuntu dorectory ...
VNC Connection Refused
I've been trying to install Kali Linux on my Samsung Galaxy S3 GT-i9300, but the VNC connection does not seem to work for me. I've tried reinstalling everything several times. I've done everything after the book.
Each time I try to connect this error comes up.
VNC connection failed!
failed to connect to localhost/127.0.0.1 (port 5900):
connect failed: ECONNREFUSED (Connection refused)
I dont have any idea what to do now.
installation of wn722n wifi adapter
Hey I'm trying to connect an external wifi adapter (tp-link wn722n). It shows in lsusb but when I run iwconfig it Returns no wireless extention. Tried to download ath9k and install but now it returns kenral-headers not installed. Now when I'm Trying to install kenral headers (apt-get install linux-headers) it returns wit various options. Which one do I choose? Am I missing something ? Please help.
Got Kali running
I got Ubuntu 13.10 small running as well as kali ext4 the extracted 4 GB in size version
ubuntu runs almost out of the box
for kali I have edited a few file. i'm just gonne post a few but if you want to know what is edited I got some time to sum it up
bootscript.sh version 7.9 added some lines and fixed personal external sdcard
/home/kalilinux/.vnc/xstartup changed desktop start command
/home/kalilinux/.config/lxpanel/LXDE/ copied content from /usr/share/lxpanel/profile/default/* or /usr/share/lxpanel/profile/two_panels/* on the picture I used two_panels profile obviously
/etc/timezone for bash time
/etc/localtime for X time
kalilinux.ext4.img on a linux desktop mounted the image and edited /root/init.sh fixed typo in first boot part. so the image on the site is by default not good I could share mine if anyone is interested
/root/init.sh fixed permissions on the external sdcard as well as added symlinks from the home directory to the manualy added mounts
fixed apt-get key problem so everything is working just have to update the apt-get key sollution to the edited image that would make it complete
lines edited in bootscript.sh and /root/init.sh depend on each other
so not too much and I prefer Kali over ubuntu
s1.postimg.org/qbd8fa84f/kalilinux.png
as seen here got 1.4Gb free space
s12.postimg.org/hzarrjq31/kalilinux1.png
sorry no working links cause I never post stuff http the above lines to see the images
---------- Post added at 03:01 PM ---------- Previous post was at 02:46 PM ----------
HDFord said:
I've been trying to install Kali Linux on my Samsung Galaxy S3 GT-i9300, but the VNC connection does not seem to work for me. I've tried reinstalling everything several times. I've done everything after the book.
Each time I try to connect this error comes up.
VNC connection failed!
failed to connect to localhost/127.0.0.1 (port 5900):
connect failed: ECONNREFUSED (Connection refused)
I dont have any idea what to do now.
Click to expand...
Click to collapse
on your device after startup and having root try :/ # getenforce
this should output "Enforcing or Permissive" you want Permissive and if you have Enforcing change it with :/ # setenforce 0
Enforcing being 1
Permissive being 0
Exit the linux enviroment and reload the image again
if you can now login with VNC on your android device localhost on port 5900
if this worked add " setenforce 0 " without quotes on the first empty line available of your bootscript.sh
and add " setenforce 1 " on the last line of the bootscript.sh
Let me know how you get on
unset LD_PRELOAD
If you get ERROR: ld.so: object 'libNimsWrap.so' from LD_PRELOAD cannot be preloaded: ignored.
add " unset LD_PRELOAD " without quotes on the first empty line of your bootscript.sh
Hi,
How may I make ubuntu play sounds through my Zenfone 6's audio system?
thanks!
Pedro
Hi,
I'm new to rom development and i tried to set up kitchen but i failed. it gives this error when i type cd ../kitchen
bash: cd: ../kitchen: No such file or directory
i tried alot but it just wont open
pls help
i attached screenshots
i tried cd /cygdrive/d/cygwin/home/kitchen
then i entered ./menu and it said
bash: ./menu: /bin/bash: bad interpreter: No such file or directory
help
Sir
I am able to install any distro with CLI successfully in my tablet (android.2.3.4) But when I issue any command (sudo apt-get update or sudo apt-get-installabiword etc.) through lx terminal or ssh terminal, the commands are not executed but returned with error 404 : file not found. Can anybody suggest solution overcome this difficulty ?
Hi, I have a Hikey 970 development board. When I tried to build system image for the device, some strange error occurred and I have no idea of what is going on. I am pretty new to AOSP and kernel, so I hope someone can help me, Thanks!
I followed procedures in Android source website to set up the environment, and after I finish downloading the AOSP source code for Hikey 970, i used
(1) source ./build/envsetup.sh
(2) lunch hikey970-userdebug
(3) make systemimage -j32
to build system image. However, error occurred as follow:
[ 60% 34434/56804] //frameworks/base/core/res:framework-res aapt2 link
FAILED: out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/package-res.apk out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/proguard.options out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/R.txt out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/extra_packages
out/soong/host/linux-x86/bin/aapt2 link -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/package-res.apk --private-symbols com.android.internal --no-auto-version --no-static-lib-packages --manifest out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/manifest_fixer/AndroidManifest.xml -A frameworks/base/core/res/assets --min-sdk-version Q --target-sdk-version Q --version-code 27 --version-name Q --product emulator -c en_US,en_US,cs_CZ,da_DK,de_AT,de_CH,de_DE,de_LI,el _GR,en_AU,en_CA,en_GB,en_NZ,en_SG,eo_EU,es_ES,fr_C A,fr_CH,fr_BE,fr_FR,it_CH,it_IT,ja_JP,ko_KR,nb_NO, nl_BE,nl_NL,pl_PL,pt_PT,ru_RU,sv_SE,tr_TR,zh_CN,zh _HK,zh_TW,am_ET,hi_IN,en_US,af_ZA,am_ET,ar_EG,ar_X B,az_AZ,be_BY,bg_BG,bn_BD,bs_BA,ca_ES,cs_CZ,da_DK, de_DE,el_GR,en_AU,en_CA,en_GB,en_IN,en_XA,en_XC,es _ES,es_US,et_EE,eu_ES,fa_IR,fi_FI,fr_CA,fr_FR,gl_E S,gu_IN,hi_IN,hr_HR,hu_HU,hy_AM,in_ID,is_IS,it_IT, iw_IL,ja_JP,ka_GE,kk_KZ,km_KH,kn_IN,ko_KR,ky_KG,lo _LA,lt_LT,lv_LV,mk_MK,ml_IN,mn_MN,mr_IN,ms_MY,my_M M,nb_NO,ne_NP,nl_NL,pa_IN,pl_PL,pt_BR,pt_PT,ro_RO, ru_RU,si_LK,sk_SK,sl_SI,sq_AL,sr_Latn_RS,sr_RS,sv_ SE,sw_TZ,ta_IN,te_IN,th_TH,tl_PH,tr_TR,uk_UA,ur_PK ,uz_UZ,vi_VN,zh_CN,zh_HK,zh_TW,zu_ZA --java out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R --proguard out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/proguard.options --output-text-symbols out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/R.txt @out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/res.list -R @out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/overlay.list && out/soong/host/linux-x86/bin/soong_zip -write_if_changed -jar -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar -C out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R -D out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R &&out/soong/host/linux-x86/bin/extract_jar_packages -i out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/extra_packages --prefix '--extra-packages '
out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/drawable-hd_common/aapt2/frameworks/base/core/res/res/drawable-hdpi_progressbar_indeterminate_holo8.png.flat: error: failed to open.
error: failed parsing input.
20:08:20 ninja failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
I couldn't find an answer to this error. Any help will be appreciated, thanks!