Working on a 4 year old Droid X Running KitKat!!!
Device: Droid X
Rom: CyanogenMod 11 - Unofficial
Version: 4.4.2
Extra: 2.3.32.9-AeroKernel
Device: Droid X
Rom: CyanogenMod 11 - Unofficial
Version: 4.4.2
Extra: 2.3.32.9-AeroKernel
Hello,
hope I can help with something following:
The used (internal) mke2fs didn't make the 2GB installation for me.
So change the following in the bold files:
"iom-functions" (add an "busybox" bevore the mke2fs):
in line 503 to
and line 508Code:busybox mkfs.ext2 -F $IMG_PATH/$IMG_NAME && info FORMIMG "$IMG_NAME formated $fs_type" || error 1 FORMIMG "unable to format %s to $fs_type" "$IMG_NAME" 1>>$IOM_LOG
Code:busybox mke2fs -F $IMG_PATH/$IMG_NAME && info FORMIMG "$IMG_NAME formated $fs_type" || error 1 FORMIMG "unable to format %s to $fs_type" "$IMG_NAME" 1>>$IOM_LOG
"iom" (change every 2048 to 4095 - so the 2GB option isn't there anymore, but I dont use 2GB, only 4GB instead)
line 567 AND 586
Code:IMG_SIZE=4095
"./locales/en_text.conf"
line 54
line 59Code:set_imgsize_4='4) 4 gig'
Code:sel_imgsize_4=4095
after that changes you can directely create a 4GB - image, worked faster than resizing...
And the error
went away (had the same problems), bacause the image was created, but not formatted, and the next thing was trying mount, what failed.
By the way:
Thanks to userdelroot for your working script - i tried 2 days to find a working one! Thanks!!!
GT-I9305
Android 4.4.2
Omni 4.4.2-20140429-9305
Kernel 3.0.101-CM (Boeffla 2.2-20140327)
on 64BG external SD
greetings, Quantenkosmos.
P.S.: Screenshots available if you want (after setting up everything in my saucy).
Okay this is what I keep getting
More permission errors
Sent from my SM-G900F using Tapatalk
I can not read that picture as it gets distorted when I zoom.in.
Can you copy and paste the error?
Also did you go through the install process first? like what steps did you take to get that error?
Sent from my Nexus 5 using XDA Free mobile app
HELP
I'M TRYING TO USE LINUX DEPLOY TO RUN KALI AND I KEEP GETTING THIS
1:06:23] + sed -i s|^#!.*|#!/data/local/linux/bin/sh|g /data/local/linux/bin/linuxdeploy
[11:06:23] + sed -i s|^DEBUG_MODE=.*|DEBUG_MODE="y"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^TRACE_MODE=.*|TRACE_MODE="y"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^IMG_TARGET=.*|IMG_TARGET="/storage/emulated/0/linux.img"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^IMG_SIZE=.*|IMG_SIZE="0"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^FS_TYPE=.*|FS_TYPE="auto"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^DEPLOY_TYPE=.*|DEPLOY_TYPE="file"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^DISTRIB=.*|DISTRIB="kali"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^ARCH=.*|ARCH="armel"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^SUITE=.*|SUITE="kali"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^MIRROR=.*|MIRROR="http://http.kali.org/kali"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^USER_NAME=.*|USER_NAME="android"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^SERVER_DNS=.*|SERVER_DNS=""|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^LOCALE=.*|LOCALE="en_US.UTF-8"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^DESKTOP_ENV=.*|DESKTOP_ENV="lxde"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^COMPONENTS=.*|COMPONENTS="vnc desktop ssh"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^STARTUP=.*|STARTUP="ssh vnc"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^CUSTOM_SCRIPTS=.*|CUSTOM_SCRIPTS=""|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^CUSTOM_MOUNTS=.*|CUSTOM_MOUNTS=""|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^SSH_PORT=.*|SSH_PORT="22"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^VNC_DISPLAY=.*|VNC_DISPLAY="0"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^VNC_DEPTH=.*|VNC_DEPTH="16"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^VNC_DPI=.*|VNC_DPI="75"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^VNC_GEOMETRY=.*|VNC_GEOMETRY="1080x1920"|g /data/local/linux/etc/deploy.conf
[11:06:23] + sed -i s|^VNC_ARGS=.*|VNC_ARGS=""|g /data/local/linux/etc/deploy.conf
[11:06:24] + sed -i s|^XSERVER_DISPLAY=.*|XSERVER_DISPLAY="0"|g /data/local/linux/etc/deploy.conf
[11:06:24] + sed -i s|^XSERVER_HOST=.*|XSERVER_HOST="127.0.0.1"|g /data/local/linux/etc/deploy.conf
[11:06:24] + sed -i s|^FB_DISPLAY=.*|FB_DISPLAY="0"|g /data/local/linux/etc/deploy.conf
[11:06:24] + sed -i s|^FB_DPI=.*|FB_DPI="100"|g /data/local/linux/etc/deploy.conf
[11:06:24] + sed -i s|^FB_DEV=.*|FB_DEV="/dev/graphics/fb0"|g /data/local/linux/etc/deploy.conf
[11:06:24] + sed -i s|^FB_INPUT=.*|FB_INPUT="/dev/input/event2"|g /data/local/linux/etc/deploy.conf
[11:06:24] + sed -i s|^FB_ARGS=.*|FB_ARGS=""|g /data/local/linux/etc/deploy.conf
[11:06:24] + sed -i s|^FB_FREEZE=.*|FB_FREEZE="none"|g /data/local/linux/etc/deploy.conf
[11:06:24] + [ 0 -eq 0 ]
[11:06:24] + exit 0
[11:06:24] done
[11:06:24] + /data/local/linux/bin/linuxdeploy install
[11:06:24] + cd /data/local/linux
[11:06:24] + umask 0022
[11:06:24] + msg >>> begin: install
[11:06:24] + echo >>> begin: install
[11:06:24] >>> begin: install
[11:06:24] + install_system
[11:06:24] + prepare_system
[11:06:24] + msg -n Checking mount points ...
[11:06:24] + echo -n Checking mount points ...
[11:06:24] Checking mount points ... + cat /proc/mounts
[11:06:24] /data/local/linux/bin/linuxdeploy: line 1: cat: Permission denied
[11:06:24] + grep /data/local/linux/mnt
[11:06:24] /data/local/linux/bin/linuxdeploy: line 1: grep: Permission denied
[11:06:24] done
[11:06:24] Checking installation path ... done
[11:06:24] + is_mnt=
[11:06:24] + [ -z ]
[11:06:24] + msg done
[11:06:24] + echo done
[11:06:24] + msg -n Checking installation path ...
[11:06:24] + echo -n Checking installation path ...
[11:06:24] + [ file == file ]
[11:06:24] + [ -e /storage/emulated/0/linux.img -a ! -f /storage/emulated/0/linux.img ]
[11:06:24] + [ file == partition ]
[11:06:24] + msg done
[11:06:24] + echo done
[11:06:24] + [ file == file ]
[11:06:24] + [ 0 -eq 0 ]
[11:06:24] + [ -f /storage/emulated/0/linux.img ]
[11:06:24] + FILE_SIZE=0
[11:06:24] + dirname /storage/emulated/0/linux.img
[11:06:24] /data/local/linux/bin/linuxdeploy: line 1: dirname: Permission denied
[11:06:24] + DIR_NAME=
[11:06:25] + stat -c %s -f
[11:06:25] /data/local/linux/bin/linuxdeploy: line 1: stat: Permission denied
[11:06:25] + BLOCK_SIZE=
[11:06:25] + stat -c %a -f
[11:06:25] /data/local/linux/bin/linuxdeploy: line 1: stat: Permission denied
[11:06:25] Making new disk image (0 MB) ... + AVAILABLE_SIZE=
[11:06:25] + let AVAILABLE_SIZE=(*)+0
[11:06:25] /data/local/linux/bin/linuxdeploy: let: line 1: arithmetic syntax error
[11:06:25] + let IMG_SIZE=(-/10)/1048576
[11:06:25] /data/local/linux/bin/linuxdeploy: let: line 1: arithmetic syntax error
[11:06:25] + [ 0 -gt 4095 ]
[11:06:25] + msg -n Making new disk image (0 MB) ...
[11:06:25] + echo -n Making new disk image (0 MB) ...
[11:06:25] + set -e
[11:06:25] + dd if=/dev/zero of=/storage/emulated/0/linux.img bs=1048576 seek=0 count=0
[11:06:25] /data/local/linux/bin/linuxdeploy: line 1: dd: Permission denied
[11:06:25] + dd if=/dev/zero of=/storage/emulated/0/linux.img bs=1048576 count=0
[11:06:25] fail
[11:06:25] <<< end: install
[11:06:25] /data/local/linux/bin/linuxdeploy: line 1: dd: Permission denied
[11:06:25] + [ 126 -eq 0 ]
[11:06:25] + msg fail
[11:06:25] + echo fail
[11:06:25] + return 1
[11:06:25] + [ 1 -ne 0 ]
[11:06:25] + return 1
[11:06:25] + msg <<< end: install
[11:06:25] + echo <<< end: install
[11:06:25] + exit
Sent from my SM-G900F using Tapatalk
Ask in Linux deploy thread. this is not Linux deploy
Sent from my Nexus 5 using XDA Free mobile app
Sorry my bad, can you point me in the right direction?
Sent from my SM-G900F using Tapatalk
[CENTER]
[COLOR="Red"]DISCLAIMER[/COLOR]
I am not responsible for you, your device, families devices
if you use this script. You use at your own risk.
The install-or-mount script (iom) will build a chroot environment, on the device.
It will create the proper image and download the necessary packages for the image.
(Approximately 200megs
[Q] What distro's can we use?
[A] Currently, Ubuntu precise - saucy, Kali.
[Q] I want xyz distro can we get it?
[A] Yes, if users would like it and it is possible I will add upon request.
[Q] Can you I access the VNC GUI from my PC?
[A] Yes, you can See post http://xdaforums.com/showpost.php?p=49995584&postcount=149
[Q] Can I ssh from my PC to the device?
[A] Yes, but it depends what Ubuntu version. Ubuntu saucy does work. Ubuntu precise does not
[Q] Can I just use the busybox included in IOM?
[A] No, the busybox included is a stripped down version to be compatible with most Android versions.
[Q] Can I connect to the GUI from the device
[A] Yes, using VNC, I use https://play.google.com/store/apps/details?id=com.realvnc.viewer.android&hl=en
[Q] Can I compile arm binary's to run on an Android device.
[A] Yes, the apt-get install make gcc. Will install the arm compilers no need to setup a cross-compiler. This is limited however as some android libs would be missing
[Q] Will there be an APP on the Google Play Store.
[A] No, probably not. This is for others to learn also, If an app was created it would make things simpler then they are.
[Q] Is this project under source control.
[A] Yes, on my local system, however, I do have a github, but I have not pushed anything to it as of yet. Maybe in the future.
[Q] How can I help?
[A] Maybe, Send me a private message ?
[Q] Why was this project made when there are other projects that are similar?
[A] I initially started this for another project to help out, but it seems that project has died.
[Q] LXDE no longer installs automatically why?
[A] The depend packages fail, which is out of my control manually install with sudo sh /root/install-lxde-packages
[/CENTER]extract the zip to /data/local
open a terminal or adb shell
get root access
su
help for command line
sh iom --help
GUI
sh iom
Install chroot
Code:sh iom --install --size=1 --distro=1 /data/local/linux.img /data/local/chroot
GUICode:sh iom --auto=1
Code:sh iom
mount chroot
GUICode:sh iom --mountonly /data/local/linux.img /data/local/chroot
Code:sh iom
debootstrap developers
busybox creators
If i missed anyone let me know
Logo by http://sbco.cz
Youtube video by: paxy97
DOWNLOAD
UPDATE: 03-11-2014
Release: 0.8 gui color
md5: 3b3b574ecb4f5d4eefa605272b86a6a1
install-or-mount-v0.8-gui.zip
UPDATE: 03-01-2014
Release: 0.7.6 gui stable
md5: 8c05c0e050cf1c43935966fc73ccd837
install-or-mount-v0.7.6-gui.zip
ChangeLog
Changelog
Would somebody be able to make a video of this running Linux on a tablet or phone. It would be cool to see how this works
Sent from my C6903 using Tapatalk
busybox mkfs.ext2 -F $IMG_PATH/$IMG_NAME && info FORMIMG "$IMG_NAME formated $fs_type" || error 1 FORMIMG "unable to format %s to $fs_type" "$IMG_NAME" 1>>$IOM_LOG
busybox mke2fs -F $IMG_PATH/$IMG_NAME && info FORMIMG "$IMG_NAME formated $fs_type" || error 1 FORMIMG "unable to format %s to $fs_type" "$IMG_NAME" 1>>$IOM_LOG
IMG_SIZE=4095
set_imgsize_4='4) 4 gig'
sel_imgsize_4=4095
went away (had the same problems), bacause the image was created, but not formatted, and the next thing was trying mount, what failed.Error was:
"ERROR: Can not mount /data/local/chroot rootfs"
...So I ran the old version and all was well [stock nexus5]!
However I tried the old version on my Kurio7s [running stock 4.4.2] and I get the same error. I have not yet tried 0.8.0 on the Kurio7s
And thank you for the info on changing the resolution!
That strange problem is because the nand has issues when you delete and create in the exact same place.
This has happened to me several times when debugging and took me a bit to figure out.
If you do the following:
Create 800meg image and install or install fails for whatever reason.
Then delete that image and create a 2gig image at the same location as the 800meg image
The image will be 800 megs.
As the device storage almost caches or doesn't properly delete the sectors from the nand. Probably same with external SD also.
I'm not sure if that is a bug in the OS or an issue with nand in general.
I noticed this on fail install. I would fix code delete image and reinstall.
Install seemed fine.
But mounting would fail, and the image would only contain files from where install failed.
To correct this problem when yoi create a new image, don't use the same name for the image or change the image path.
That fixes that issue.
Sent from my Nexus 5 using xda app-developers app