yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] ekdmfree:
trying on note 2

1st :o

Now trying on note II with 4.3
[Android Software/Hacking General [Developers Only]] aarish1:
help

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 ??
[Android Software/Hacking General [Developers Only]] ekdmfree:
you gotta go to the directory to execute the file...for example cd /data/local/install-or-mount :D

---------- 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 options:Distro: 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 #
[Android Software/Hacking General [Developers Only]] aarish1:
how do i do that ?? sorry, I am a noob..
[Android Software/Hacking General [Developers Only]] ekdmfree:
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
[Android Software/Hacking General [Developers Only]] PTGamer:
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​
[Android Software/Hacking General [Developers Only]] aarish1:
can you pm me the step by step guide for terminal emulator..
[Android Software/Hacking General [Developers Only]] PTGamer:
dude open the downloaded files open the 0.2.2.x folder copy ther folder that says "mount-or-intall" to /data/local (use a file manager for this like root browser, es explorer)

go to google pay download terminal

open terminal

write:

su root

cd /data/local/mount-or-install

sh install-or-mount -i -n linux.img -m /data/local/chroot -l /data/local -o precise -0

this is the part where the magic happens ...

now you need to wait.

dont panic if you dont see progress. mine stoped for 1 minute or 2 then continued

----------------------------------------------------
[Android Software/Hacking General [Developers Only]] PTGamer:
I think it is working on my phone.

maclaw 4.4.2 (CM11 port)
[Android Software/Hacking General [Developers Only]] cliff p:
Am I missing something? Did you pull the download links from your threads?
[Android Software/Hacking General [Developers Only]] PTGamer:
look near the title of the thread you should see something saying download ;)

[MENTION=2819483]userdelroot[/MENTION]

could you add a tested and aproved device list?at least for me it is working greak on my galaxy s iii mini (cm 11)
[Android Software/Hacking General [Developers Only]] reddyblazingboy:
i cant find and downloads links for required files
[Android Software/Hacking General [Developers Only]] Pulsa:
Try to open it from your pc

Sent from my XZ1, XSP, and X8
[Android Software/Hacking General [Developers Only]] PTGamer:
http://xdaforums.com/devdb/project/?id=2642#downloads
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
Released 0.2.2-alpha is good for me on Sony Xperia P CM11 4.4.2!

VNC not starting, error in lxdestart.sh Error.

$2 is blank in lxdestart.sh file.

EDIT: Removed in line

Can't connect to VNC, yet.

EDIT: I installed tightvncserver and it's working well. Good job.
[Android Software/Hacking General [Developers Only]] Pulsa:
Trying it now on my Xperia SP
[Android Software/Hacking General [Developers Only]] cliff p:
Thanks, I hadn't noticed those tabs before :)
[Android Software/Hacking General [Developers Only]] ekdmfree:
OK, finally I got it working and the image is stable now...you can add note 2 with DN3 in your working list...i will get you the changes I made as PM

moreover now couple of issues...

I cannot ssh into the box...when I try...I am stuck with an error saying "Server refused to allocate pty"

I know how to solve that but need root on the box and I tried every password i had given...it does not accept oit...what is the root password...can someone please help???

Thanks!
[Android Software/Hacking General [Developers Only]] userdelroot:
please pm me your device info in the format from the FAQ on the main thread.

awesome glad it is working. I also know what the problem. is with that. it is a caching issue. so if you have a fail and retry using the same image name and mount path it will fail again because it will on have files from the fail.

to fix that change the image name and mount path name eg: -n mylinux.img -m /data/local/mychroot

if your using precise you won't be able to ssh. you need to use a higher quantal and saucy I know work and Kali.

search this forum for the info to fix the password. you should have typed one in during install.

to get root mount with -r flag
[Android Software/Hacking General [Developers Only]] PunkUnity:
Maybe try typing

sudo su

nexus (passwrd)
[Android Software/Hacking General [Developers Only]] userdelroot:
I want to thank everyone for their support on this project. I didn't think it would have this much of a crowd, and I'm glad everyone is enjoying this tool.

With that said I want to give everyone an update on what the next release will include.

I will be releasing version 0.6 in the next week or so. This new version will be user friendly as you will not have to type out long things with switches. it will ask a few questions and install and or mount.

It will still have the ability to use switches however if some find that easier.

I have not had any feed back on 0.5 yet as some code was changed. specifically cleanly unmounting upon exit.

plus the new quicklaunch script makes mounting easy.

you no longer have to type sh lxdestart to start vnc and lxde. just typing lxdestart will launch it.

Please if you have used this tool please give me a review.

Thanks everyone

userdelroot
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
You made running Ubuntu (Not to speak of kali, which makes me able to hack my school network(Yay finally)) on android much faster, easier and better than anybody before. How did you not expect to get so many people interested in this :) Thank you for your excellent support and I hope that this thread will keep growing ;)

PS: I'm not abusing kali to get private data, just to give myself a few more permissions ;)
[Android Software/Hacking General [Developers Only]] userdelroot:
well let peeps know pass the word.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
I have a problem when mounting kali. The installation finished without an error, but there seems to be a problem with the user.

I tried removing everything and reinstalling, but still get the same error

root@tsubasa:/data/local/install-or-mount # sh quicklaunch-kali-kali.img
checking root: [OK]
Preparing chroot enviroment
Image name: kali.img
Mount Location: /data/local/chroot
Image Location: /storage/sdcard1/linux

Setting up enviroment: [OK]
checking mount point: [OK]

Mount location: /data/local/chroot
rootfs: [OK]
/sys: [OK]
/proc: [OK]
/dev: [OK]
/dev/pts: [OK]
/dev/shm: [OK]
creating mtab entries: [OK]
net.ipv4.ip_forward = 1
Setting up nameservers: [OK]
Entering chroot enviroment: [init]
[ ok ] Starting OpenBSD Secure Shell server: sshd.

Linux localhost 3.4.0-FXP-g9f44d43 #1 SMP PREEMPT Fri Feb 7 12:24:06 PST 2014 armv7l GNU/Linux

Welcome to Install or Mount (iom) chroot

Stay up-2-date with news
http://xdaforums.com/showthread.php?t=2627255

Let me know what device your are using,
drop me a private message with the following:
Device:
Rom:
Version:
Extras:

To start the graphic interface and vnc
type: lxdestart

Then connect to the graphical interface via VNC

Enjoy!!!

userdelroot

To shut down the Linux environment, just type 'exit' at this terminal,
wait until chroot fully exits.
sudo: unknown user: nexus
sudo: unable to initialize policy plugin
[ ok ] Stopping OpenBSD Secure Shell server: sshd.
Waiting for system shutdown

Exiting...

Attempting to free up resources....lsof: no pwd entry for UID 2800
lsof: no pwd entry for UID 2800[COLOR="Red"][B] --IT RETURNED THIS ABOUT 200 TIMES![/B][/COLOR]

.....done
Unmounting chroot enviroment
/sys: [OK]
/dev/pts: [OK]
/dev/shm: [OK]
/proc: [OK]
/dev: [OK]
rootfs: [OK]
...done
root@tsubasa:/data/local/install-or-mount #
[Android Software/Hacking General [Developers Only]] userdelroot:
It does not seem to have created to nexus user when you installed for some reason.

to get around the nexus user error. modify the quicklaunch script and put -r at the end

or if manually mounting use the -r switch. That will give you a rootshell.

Then you check if the nexus user was created etc.

if you reinstall dont use the same linux.img name change the name.

as for the pwd entry stuff.. i will have to look at that.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
What do I have to wipe to use the same name again, because it's easier to extract the script again than use a different name every time :D
[Android Software/Hacking General [Developers Only]] userdelroot:
not sure what you mean.

don't use -n linux.img

use -n kali.img or something

the device storage caches so if it fails and you use same image name it will fail again
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Ok I get it, but where does it cache that information? Would it help if I wipe cache in recovery or something like that?
[Android Software/Hacking General [Developers Only]] userdelroot:
the nand is caching it. naming the image something else during an install fixes this

this isn't cached in /cache on the device. it is cached on the nand itself. so wiping

/cache will not fix it.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Sorry if I'm bothering you with these questions, but what is the nand? :D I googled it but I just found the nandroid backup.
[Android Software/Hacking General [Developers Only]] userdelroot:
http://whatis.techtarget.com/definition/NAND-flash-memory
[Android Software/Hacking General [Developers Only]] userdelroot:
thanks for ?
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
I tried running mounting Kali with the -r flag, but it's still not working. I have no idea why it's not creating a nexus user.

# sh install-or-mount -n KaliLinux.img -m /data/local/chroot -l /sorage/sdcard1/linux -r
checking root: [OK]
Preparing chroot enviroment
Image name: KaliLinux.img
Mount Location: /data/local/chroot
Image Location: /sorage/sdcard1/linux

Setting up enviroment: [OK]
checking mount point: [OK]

Mount location: /data/local/chroot
rootfs: [fail]

>>CMD: [mount -o] ARGS: [loop /sorage/sdcard1/linux/KaliLinux.img /data/local/chroot ]
>>>ERROR: [mount: mounting /sorage/sdcard1/linux/KaliLinux.img on /data/local/chroot failed: No such file or directory]

Exiting...

Attempting to free up resources....lsof: no pwd entry for UID 2800
lsof: no pwd entry for UID 2800
#200 times
...done
1|root@tsubasa:/data/local/linux #
[Android Software/Hacking General [Developers Only]] userdelroot:
check your spelling you have sorage
[Android Software/Hacking General [Developers Only]] Droidcore:
Several times I tried to get into trouble

Can not execute file :crying:
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
I retyped the command into the post not copied :p, but for some to me unknown reason it worked today. After three days of trying it worked. Haven't done anything different :confused:. But never mind thanks for your help :good:
[Android Software/Hacking General [Developers Only]] userdelroot:
Coming soon

Lil teaser, it isn't much but it will make things a little simpler. It will also begin to create a config for each image created.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Ok now I have a new error :(

Im trying to install precise again after a ROM reflash (running CM11 nightly on Xperia V) and it works just fine until the part when it downloads the dependencies. Here's the whole log:

root@tsubasa:/ # sh precise ##This is a script I made for installing. It looks like this(ignore typos I'm retyping this on my PC) sh install-or-mount -i -n PreciseUbuntu.img -m /data/local/chroot -l /storage/sdcard1/linux
checking root: [OK]
Install options:
Distro: precise
image: PreciseUbuntu.img size: 1024 img location: /storage/sdcard1/linux ##Used new name that I've never used before

Setting up enviroment: [OK]
Creating image: [OK]
Formating ext2
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
65536 inodes, 262144 blocks
13107 blocks (5%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
8 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
[OK]
checking mount point: [OK]

Mount location: /data/local/chroot
rootfs: [OK]
starting debootstrap
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional base dependencies: cpp cpp-4.6 fontconfig fontconfig-config libatk1.0-0 libatk1.0-data libavahi-client3 libavahi-common-data libavahi-common3 libbsd0
libcairo2 libcups2 libdatrie1 libedit2 libfontconfig1 libfontenc1 libfreetype6 libgcrypt11 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgmp10 libgnutls26 libgpg-error0 libgpm2
libgssapi-krb5-2 libgtk2.0-0 libgtk2.0-common libice6 libjasper1 libjpeg-turbo8 libjpeg8 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libmpc2 libmpfr4 libp11-kit0 libpango1.0-0
libpixman-1-0 libpython2.7 libsm6 libtasn1-3 libthai-data libthai0 libtiff4 libwrap0 libx11-6 libx11-data libxau6 libxaw7 libxcb-render0 libxcb-shm0 libxcb1 libxcomposite1 libxcursor1
libxdamage1 libxdmcp6 libxext6 libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxkbfile1 libxml2 libxmu6 libxmuu1 libxpm4 libxrandr2 libxrender1 libxt6 libxxf86vm1 shared-mime-info
ttf-dejavu-core vim-runtime x11-common x11-xkb-utils xauth xfonts-encodings xfonts-utils xserver-common
I: Checking component main on http://ports.ubuntu.com...
E: Couldn't find these debs: desktop-base lxde menu-xdg x11vnc xfonts-100dpi xfonts-75dpi
[fail]
Failure bailing out

Exiting...

Attempting to free up resources....lsof: no pwd entry for UID 2800
lsof: no pwd entry for UID 2800
lsof: no pwd entry for UID 2800 # times 200 again...
.....done
Unmounting chroot enviroment
rootfs: [OK]
...done
1|root@tsubasa:/data/local/install-or-mount #
[Android Software/Hacking General [Developers Only]] userdelroot:
Please search this forum on how to get the debootstrap.log and post that also.

I will update this weekend with an option to bypass the lxde packaged on install. Which is what the extra packages are it is trying to get.

Also are you connected via WiFi or your phone data connection?
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Wifi, 10 Mbps connection, so that shouldn't be a problem :p. I'll provide the debootstrap after I com home from school.

My debootstrap.log file is empty o.O
[Android Software/Hacking General [Developers Only]] userdelroot:
OK I'll provide an update which will do a base install without lxde initially. Then a script to run manually once install finishes. Maybe try again ? Could of been Ubuntu site being down or something?
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Still not working, so I assume it's not server-related. What it could be though is that I have changed my LCP DPI in the build.prop because the lxde might be looking for a version for my resolution, but can't find it. Is that possible?
[Android Software/Hacking General [Developers Only]] userdelroot:
No, has nothing to do with that. It isn't downloading the packages for some reason. Can you try something other than precise? Try saucy or quantal see what happens?
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
I just tried saucy, but no luck either. Will give a shot at quantal now :D

Update: quantual also not working :(
[Android Software/Hacking General [Developers Only]] userdelroot:
Updated with minor fixes see change log.

Also has a -g switch to not install lxde automatically and provides a script in /root to manually install
[Android Software/Hacking General [Developers Only]] ekdmfree:
its going great...you are doin awesome job buddy...not sure if I can help :)
[Android Software/Hacking General [Developers Only]] userdelroot:
Thank you, feel free to donate and or write a review :)

On a side note, the semi-gui interface is going to be released in the next week or so. I rewrote about a quarter of the code for the gui, and it now gives warning and info information in a nicer format.
[Android Software/Hacking General [Developers Only]] PTGamer:
im trying to make a script for an automated install or mount for this. ive only added 2 files.

those 2 files are pointing to the install-or-mount.sh

they push the commands you've shared in the 1st thread for mounting and installing.(im a lazy guy.. i dont like to write all that thing every time i want to mount or install the chroot ;)

to the chroot folder

go to the location of the file with terminal and write

"sh install.sh" for install(without the " ")

"sh mount.sh" if you want to mount(without the " ")
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
A script like that will be coming with the next release, which is coming next week probably :p.
[Android Software/Hacking General [Developers Only]] PTGamer:
any way until they release it here you have a work around :)

if the op want i can remove the link

BTW it is working and only 2 files where added.

install.sh and mount.sh
[Android Software/Hacking General [Developers Only]] userdelroot:
You know once the install is done there is a quick launch script for mounting?

I'll have to to check out your scripts.
[Android Software/Hacking General [Developers Only]] PTGamer:
i can add it too... it is very simple... wanna share the command?
[Android Software/Hacking General [Developers Only]] userdelroot:
the GUI is done as well as configs..

I am testing an install now :)

This release is a MAJOR code redo.

I will being releasing as an alpha release again due to all the code changes.
[Android Software/Hacking General [Developers Only]] userdelroot:
0.7-gui-alpha RELEASED!

NOTE: The new release command line switches have CHANGED!.

NOTE: The command line switches are simpler

NOTE: GUI asks a few questions and installs, pretty simple really

NOTE: The old release 0.5.2 will remain until the gui is stable.

http://xdaforums.com/showpost.php?p=49830603&postcount=1
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Why is there no wget or curl command i saucy? Im using the lastest 0.7 script
[Android Software/Hacking General [Developers Only]] userdelroot:
Inside the chroot?

Install it while inside chroot

sudo apt-get install wget
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
It says the is now such packages. Same for curl :(
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
Good job with new release, man. But deboostrap not found during install.
[Android Software/Hacking General [Developers Only]] userdelroot:
Please provide the error output.

Also what part of then install? First or second stage?
[Android Software/Hacking General [Developers Only]] userdelroot:
sudo apt-get update

sudo apt-get install wget
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
First stage. Screenshot in attach.
[Android Software/Hacking General [Developers Only]] userdelroot:
Look in iom/bin

Do you see it in there?

Kind of a weird error
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
Yes, debootstrap si in bin directory.

I copied to /data/local

linux.img changed to /sdcard

Default setting gave me the same error.
[Android Software/Hacking General [Developers Only]] userdelroot:
Try to install with

sh iom --auto=0

Also I'm not sure I understand you. You copied what?

Also if it fails but created the image use

sh iom --resume

;) then you don't have to delete image. As long as it created it and formatted the image of course.
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
sh iom --auto=0 not working.

Path to iom is: /data/local/iom

Path to img file: /sdcard

--------

This is my setting for install.

I have a little bug for you: if use gui install and choose distro - you have 5 distros, but your echo for select is [1,2,3,4] not [0,1,2,3,4].
[Android Software/Hacking General [Developers Only]] userdelroot:
Doh..

Yea that isn't right. Thanks

I actually had 0,1,3,4,5 lol

The path for image is different then previous release.

It should be the full path.

/sdcard/linux.img

No need to type it separately ...

I believe it should ask for full image path. If not I need to add that verbage.

Did it work with auto?

As in with iom defaults /data/local/iom

Etc

Sorry bro I am at work, and won't be able to fix it until this weekend.

Just trying to figure out why it isn't finding debootstrap.

Are you executing iom from

cd /data/local/iom

Then sh iom ...