Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,599 Members 38,775 Now Online
XDA Developers Android and Mobile Development Forum
Announcement from userdelroot: Install or Mount (IOM) version 0.8 recoded gui for nicer look and feel

[Tool][chroot] Install or Mount (IOM) [create chroot on device in minutes ] | Update 03-11-2014 | Version 0.8 gui

Tip us?
 
userdelroot
Old
(Last edited by userdelroot; 11th March 2014 at 06:50 AM.)
#1  
Senior Member - OP
Thanks Meter 155
Posts: 331
Join Date: Aug 2010
Location: Florida

 
DONATE TO ME
Default [Tool][chroot] Install or Mount (IOM) [create chroot on device in minutes ] | Update 03-11-2014 | Version 0.8 gui


Install or Mount

IOM for short

Code:
DISCLAIMER I am not responsible for you, your device, families devices if you use this script. You use at your own risk.


Install or Mount Stable
Quote:
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

Quote:
IOM Color GUI
Quote:
Ubuntu GUI on device using VNC
Quote:
PC to Ubuntu GUI on device using VNC
Quote:
Kali GUI on device using VNC
Quote:
Terminal View on device


FAQ
Quote:

[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://forum.xda-developers.com/show...&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/d....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

Install / Using
Quote:
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

Quote:
Install chroot
Code:
sh iom --install --size=1 --distro=1 /data/local/linux.img /data/local/chroot
Code:
sh iom --auto=1
GUI
Code:
sh iom
Quote:
mount chroot
Code:
sh iom --mountonly /data/local/linux.img /data/local/chroot
GUI
Code:
sh iom
Credits
Quote:
debootstrap developers
busybox creators
If i missed anyone let me know

Logo by http://sbco.cz

Youtube video by: paxy97

Supported Distro's





Quote:
Watch Video
http://youtu.be/w7wjzK7qmO4

Quote:
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
XDA:DevDB Information
install-or-mount | iom for short, a Tool/Utility for the Android General

Contributors
userdelroot

Version Information
Status: Stable
Current Stable Version: 0.8
Stable Release Date: 2014-03-11

Created 2014-01-28
Last Updated 2014-03-11
Attached Thumbnails
Click image for larger version

Name:	iom-device-gui.jpg
Views:	1973
Size:	23.7 KB
ID:	2555744   Click image for larger version

Name:	iom-desktop.jpg
Views:	1947
Size:	30.5 KB
ID:	2555745   Click image for larger version

Name:	kali.png
Views:	1845
Size:	29.7 KB
ID:	2557731  
The Following 19 Users Say Thank You to userdelroot For This Useful Post: [ Click to Expand ]
 
userdelroot
Old
(Last edited by userdelroot; 11th May 2014 at 02:01 AM.) Reason: edit
#2  
Senior Member - OP
Thanks Meter 155
Posts: 331
Join Date: Aug 2010
Location: Florida

 
DONATE TO ME
Default Device List

Device List
Quote:

Device: Droid X
Rom: CyanogenMod 11 - Unofficial
Version: 4.4.2
Extra: 2.3.32.9-AeroKernel

Device: GT-I9305
Rom: Omni 4.4.2-20140429-9305
Version: Android 4.4.2
Extra: Kernel 3.0.101-CM (Boeffla 2.2-20140327) on 64BG external SD

Device: LG G2 32GB
Rom: PARANOIDANDROID 4.2+ G2 [beta3]
Version: AOSPA 4.4.2 KVT49L
Extra: Stock Houstonn Kernel

Device: Galaxy Nexus
Rom: Stock + rooted + busybox
Version: 4.3

Device: Nexus 5
Rom: Stock + ElementalX Kernel 2.6
Version: 4.4.2

Device: Samsung Note II
Rom: 4.3, DN3 v3.1.1
Version: 4.5

Device: HTC ONE M7UL
Rom: Android Revolution HD 6.1 Google Edition
Version: 4.4.2
Extra: Stock
BusyBox: JRummy: https://play.google.com/store/apps/d...nstaller&hl=en

Device: Samsung i9305
Rom: CM 11
Version: 4.4.2
Kernel: agni oc UV

Device: Sony Xperia V LT15i
ROM: CM 11-20140131-NIGHTLY-tsubasa
Version: 4.4.2
Kernel: CM11 kernel

Device: Sony Xperia P
ROM: CM 11 RC1 UNOFFICIAL nypon
Version: 4.4.2
Extra: Kernel from the ROM (boot.img)

Device: Sony Xperia SP
ROM: VanirAOSP
Version: 4.4.2
Extra: Kernel from the ROM (boot.img)

Device: Sony Xperia V
ROM: leaked stock Rom
Version: 4.3

Device: Samsung Galaxy Note 3 (N9005)
ROM: X-NOTE BUILD 8.0 (KitKat 4.4.2)
Kernel: X-Kernel v 1.0
BusyBox Pro- 1.22.1 Version

Device: Galaxy S III Mini (GT-8190)
ROM: Custom
version: 4.4.2
rom name: Cyanogen mod 11 the only one fully working. by maclaw team

Nexus 7 2013
ROM: Stock + ElementalX 2.6 kernel
version: 4.4.2

Nexus 7 (2013) flo
ROM:SinLess
Version: 4.4.2
IOM busybox


Quote:
To report please provide the following info in the below format, as it makes it easier to copy and paste

Device:
Rom:
Version:
Extra:

example:
Device: Nexus 7 2013 (flo)
Rom: Stock
Version: 4.4.2
Extra: ElementalX Kernel 2.6
This is an on going list as users report their experience.

To report, send me a private message with the above info.
I will add it to the list.

Thank you for reporting...
The Following User Says Thank You to userdelroot For This Useful Post: [ Click to Expand ]
 
userdelroot
Old
(Last edited by userdelroot; 11th March 2014 at 06:39 AM.) Reason: EDIT 03-11-2014
#3  
Senior Member - OP
Thanks Meter 155
Posts: 331
Join Date: Aug 2010
Location: Florida

 
DONATE TO ME
Default ChangeLog

CHANGELOG
Quote:

[v0.8]
* updated version
* recoded gui interface
* added locales to file

[v0.7.7]
* added locale support
* fixed up free_chroot routines


[v0.7.6]
* minor fixes, added logging for errors
* minor code deletion, updated version

[v0.7.4]
* fixed freeing of resources, as lsof provided by some busybox's produce different results
* fixed: freeing of chroot resources

[v0.7.3]
* removed -e flag for sh as not needed
* removed /bin/sh from top of script, at it should not be there on release builds
* fixed typos that were causing bad substitution errros

[v0.7.2]
* removed install-lxde-packages script
* added to install lxde option on initial install
* fixed not getting ip address info in kali
* removed extra motd info
* fixed applet checks to default to /system/xbin/ first
* minor bug fixes and fixed sdcard paths
* added realpath to required progs
* fixed version info
* fixed commented line
* added manual set path if config does not exist
* fixed: configs path
* renamed .configs directory
* removed bin-configs and now use required_progs list
* changed required progs to use file list instead of dir list
* fixed: selection for distro in gui

[v0.7]
* updated version
* added install-lxde-packages script
* extra info if lxde is not installed
* fixed ssh errors
* fixed some minor code problems and removed unused functions
* fixed some minor code issues
* seperated the major functions into their own file, some code rewriting
* added: gui, and rewrote code
* renamed script to iom
* fixed: setting up nexus user
* fixed gui from not finishing correctly
* added: semi gui interface
* changed the command line options, added code for preparing for new release

[v0.5.2]
* fixed: script to install lxde manually
* fixed: user not being added correctly
* added -g command line switch to skip installing lxde
* added no lxde support script to instal manually

[v0.5.1]
* fixed: error output from lsof

[v0.5]
* fixed: resolv.conf being chmod 600 should be 644
* fixed name of quicklaunch-dist-imgname, also added our path at startup
* added: packages to initial install
* fixed: setup.sh to run quicker after install
* deleted motd
* added init scipt
* redid quicklaunch script, it nows places it in main dir
* fixed the freeing up of resources, should properly do this now
* fixed lxde remote acces
* added backup way of getting lxde working on some devices, uses tightvnc
* deleted quick-scripts dir

[v0.4.5]
* added kali linux support, fixed basepackage for kali
* added kali sources
* added kali support

[v0.4.2]
* added paths chroot paths
* reverted code back, as it seems to exit quicker
* deleted main directory which wiped git

[v0.4.1]
* fixed image exist bug

[v0.4]
* fixed up the init.sh updated version
* changed code and placed into sanity_check where it belongs
* xzcat required for raring
* removed comments
* modified x11 to allow remote connections
* added quick-script template
* fixed code and added checks to see if mounts are actually mounted
* added: function to unmount chroot, function to kill processes so a clean unmount can be done
* added lsof to be required
* added kill to be required
* added more android groups to default user

[v0.3.5]
* busybox replaced with one that is compat with most android vers
* updated version number

[v0.3.2]
* fixed -r switch


[v0.3]
* fixed the usage, being displayed after an unmount
* fixed -qq options
* redid busybox and program check code
* added chmod to .vnc dir
* fixed paths for files in skel directory
* added setup.sh to skel
* removed setup.sh
* added lxdestart and motd to skel dir
* removed files from main directory
* updated version
* Added project to git


Quote:
Linux Version Installs Available.

Linux Distros Available
  • Ubuntu precise
  • Ubuntu quantal
  • Ubuntu raring
  • Ubuntu saucy
  • Kali
More to come later.
The Following User Says Thank You to userdelroot For This Useful Post: [ Click to Expand ]
 
ekdmfree
Old
#4  
Member
Thanks Meter 4
Posts: 91
Join Date: Aug 2008
Default trying on note 2

1st

Now trying on note II with 4.3
 
aarish1
Old
#5  
aarish1's Avatar
Senior Member
Thanks Meter 41
Posts: 120
Join Date: Dec 2012
Location: Fazilka
Default help

when i write
Quote:
sh install-or-mount
, it gives an error , saying no such file or directory. I have extracted the script in the /data/local. what i am doing wrong ??
 
ekdmfree
Old
#6  
Member
Thanks Meter 4
Posts: 91
Join Date: Aug 2008
Quote:
Originally Posted by aarish1 View Post
when i write , it gives an error , saying no such file or directory. I have extracted the script in the /data/local. what i am doing wrong ??
you gotta go to the directory to execute the file...for example cd /data/local/install-or-mount

---------- Post added at 09:33 AM ---------- Previous post was at 09:24 AM ----------

Hello Developers,

I tried it on my note2 but returned back with the following error log, any help will be appreciated...

1|root@t03g:/data/local/install-or-mount # sh install-or-mount -i -n linux.img -m /data/local/chroot -l /data/local -o precise -3
t -i -n linux.img -m /data/local/chroot -l /data/local -o precise -3 <
Install optionsistro: precise
image: linux.img size: 4096 img location: /data/local

Build enviroment initializing...
check ar xbin path
ar path non existent
make sure symlink isn't just missing
applet ar using built in busybox
check awk xbin path
check bzip2 xbin path
check cat xbin path
check chmod xbin path
check chown xbin path
check chroot xbin path
check cp xbin path
check cut xbin path
check dd xbin path
check grep xbin path
check gunzip xbin path
check head xbin path
check id xbin path
check mkdir xbin path
check mke2fs xbin path
check mkfs.ext2 xbin path
check mknod xbin path
check mount xbin path
check mv xbin path
check printf xbin path
check reset xbin path
check rm xbin path
check sed xbin path
check sh xbin path
sh path non existent
make sure symlink isn't just missing
applet sh using built in busybox
check sha1sum xbin path
check sort xbin path
check sysctl xbin path
check tar xbin path
check touch xbin path
check tr xbin path
check umount xbin path
check uname xbin path
check uniq xbin path
check vi xbin path
check wc xbin path
check wget xbin path
check which xbin path
check zcat xbin path
setting up enviroment: [OK]
checking root: [OK]
Creating image: [OK]
Formating ext2
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
131072 inodes, 524288 blocks
26214 blocks (5%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
16 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912
[OK]
checking mount point: [OK]
Mount location: /data/local/chroot
rootfs: [OK]
starting debootstrap
debootstrap --no-check-gpg --extractor=ar --arch=armhf --foreign precise /data/
local/chroot
E: Couldn't work out current architecture
[fail]

>>CMD: [debootstrap --no-check-gpg] ARGS: [--extractor=ar --arch=armhf --foreign
precise]
>>>ERROR: [/data/local/install-or-mount/bin/debootstrap: line 424: uname: Permis
sion denied]
1|root@t03g:/data/local/install-or-mount #
 
aarish1
Old
#7  
aarish1's Avatar
Senior Member
Thanks Meter 41
Posts: 120
Join Date: Dec 2012
Location: Fazilka
Quote:
Originally Posted by ekdmfree View Post
you gotta go to the directory to execute the file...for example cd /data/local/install-or-mount

---------- Post added at 09:33 AM ---------- Previous post was at 09:24 AM ----------

Hello Developers,

I tried it on my note2 but returned back with the following error log, any help will be appreciated...

1|root@t03g:/data/local/install-or-mount # sh install-or-mount -i -n linux.img -m /data/local/chroot -l /data/local -o precise -3
t -i -n linux.img -m /data/local/chroot -l /data/local -o precise -3 <
Install optionsistro: precise
image: linux.img size: 4096 img location: /data/local

Build enviroment initializing...
check ar xbin path
ar path non existent
make sure symlink isn't just missing
applet ar using built in busybox
check awk xbin path
check bzip2 xbin path
check cat xbin path
check chmod xbin path
check chown xbin path
check chroot xbin path
check cp xbin path
check cut xbin path
check dd xbin path
check grep xbin path
check gunzip xbin path
check head xbin path
check id xbin path
check mkdir xbin path
check mke2fs xbin path
check mkfs.ext2 xbin path
check mknod xbin path
check mount xbin path
check mv xbin path
check printf xbin path
check reset xbin path
check rm xbin path
check sed xbin path
check sh xbin path
sh path non existent
make sure symlink isn't just missing
applet sh using built in busybox
check sha1sum xbin path
check sort xbin path
check sysctl xbin path
check tar xbin path
check touch xbin path
check tr xbin path
check umount xbin path
check uname xbin path
check uniq xbin path
check vi xbin path
check wc xbin path
check wget xbin path
check which xbin path
check zcat xbin path
setting up enviroment: [OK]
checking root: [OK]
Creating image: [OK]
Formating ext2
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
131072 inodes, 524288 blocks
26214 blocks (5%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
16 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912
[OK]
checking mount point: [OK]
Mount location: /data/local/chroot
rootfs: [OK]
starting debootstrap
debootstrap --no-check-gpg --extractor=ar --arch=armhf --foreign precise /data/
local/chroot
E: Couldn't work out current architecture
[fail]

>>CMD: [debootstrap --no-check-gpg] ARGS: [--extractor=ar --arch=armhf --foreign
precise]
>>>ERROR: [/data/local/install-or-mount/bin/debootstrap: line 424: uname: Permis
sion denied]
1|root@t03g:/data/local/install-or-mount #
how do i do that ?? sorry, I am a noob..
 
ekdmfree
Old
#8  
Member
Thanks Meter 4
Posts: 91
Join Date: Aug 2008
Quote:
Originally Posted by aarish1 View Post
how do i do that ?? sorry, I am a noob..
a good idea is to connect ur phone to laptop with adb

once connected, switch the directories and execute the commands.
if not you need a terminal emulator installed and you can use that.
hope that helps...let me know if you need a step by step approach
 
PTGamer
Old
(Last edited by PTGamer; 28th January 2014 at 11:03 AM.)
#9  
PTGamer's Avatar
Senior Member
Thanks Meter 104
Posts: 264
Join Date: Feb 2011
Quote:
Originally Posted by userdelroot View Post
[CENTER]
i cant find the files for . can someone point me where they are?

edited: found them. x)

for those who cant find them look near the thread title you should see a download button
 
aarish1
Old
#10  
aarish1's Avatar
Senior Member
Thanks Meter 41
Posts: 120
Join Date: Dec 2012
Location: Fazilka
Quote:
Originally Posted by ekdmfree View Post
a good idea is to connect ur phone to laptop with adb

once connected, switch the directories and execute the commands.
if not you need a terminal emulator installed and you can use that.
hope that helps...let me know if you need a step by step approach
can you pm me the step by step guide for terminal emulator..

Tags
android, chroot, install or mount, install-or-mount, linux on android
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes