yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] userdelroot:
Can you put it in the format

Device: Nexus 7 2013

Rom: Stock

Version: 4.4.2

Extra: ElementalX 2.6 kernel

Please ?

Then Ill add it to the second thread

Also glad it is working for you...

Post your screen shots :)
[Android Software/Hacking General [Developers Only]] Pulsa:
Ok

Device: Sony Xperia SP

ROM: VanirAOSP

Version: 4.4.2

Extra: Kernel from the ROM (boot.img)

Sent from My XZ1, XSP, and X8
[Android Software/Hacking General [Developers Only]] userdelroot:
[MENTION=5439357]Pulsa[/MENTION] thank you

EDIT:

[MENTION=5439357]Pulsa[/MENTION] added to the second thread thanks
[Android Software/Hacking General [Developers Only]] Pulsa:
May you press the thanks button please:D:)

Sent from My XZ1, XSP, and X8
[Android Software/Hacking General [Developers Only]] userdelroot:
[MENTION=5439357]Pulsa[/MENTION] LOL yes I may, i usally do my bad.

Enjoy your new chroot enviroment...

Now you can even compile arm programs and copy to device and run em. :)

More on that later ;)
[Android Software/Hacking General [Developers Only]] Pulsa:
Thanks:):thumbup:

Sent from My XZ1, XSP, and X8
[Android Software/Hacking General [Developers Only]] PunkUnity:
I just posted a bunch of stuff on accident. i am going to do everything again. I will post results. TY. Im not a noob to linux, i just think my fat fingers are getting in the way when im tired...
[Android Software/Hacking General [Developers Only]] userdelroot:
LOL No prob..

you aren't the only one..
[Android Software/Hacking General [Developers Only]] Pulsa:
[MENTION=2819483]userdelroot[/MENTION] what will happen if i update the install-or-mount script?

Sent from My XZ1, XSP, and X8
[Android Software/Hacking General [Developers Only]] PunkUnity:
I don't know how to extract the log file. I'm pretty sure I did everything right this time. Did all copy and paste from. oP to terminal in android. Thsnks again! Seems like its almost working.

http://pastebin.ca/2610951
[Android Software/Hacking General [Developers Only]] userdelroot:
Nothing it will just update all files in the install-or-mount/

directory
[Android Software/Hacking General [Developers Only]] userdelroot:
you were almost there but just type debootstrap.log as u can see does nothing. It is a log not a program fyi..

cp debootstrap.log /sdcard/

then upload that here

OR if you have a desktop with a working adb tool and VNC, I can check it if you like.
[Android Software/Hacking General [Developers Only]] Pulsa:
What's new in this new version?

Sent from My XZ1, XSP, and X8
[Android Software/Hacking General [Developers Only]] PunkUnity:
https://docs.google.com/file/d/0Byp_Oxka--aWYU41ZXB0aDQyTkk/edit?usp=docslist_api

dpkg: warning: parsing file '/var/lib/dpkg/status' near line 4 package 'dpkg':

missing description

dpkg: warning: parsing file '/var/lib/dpkg/status' near line 4 package 'dpkg':

missing maintainer

dpkg: warning: parsing file '/var/lib/dpkg/status' near line 4 package 'dpkg':

missing architecture

dpkg: warning: 'ldconfig' not found in PATH or not executable.

dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.

dpkg: error: 2 expected programs not found in PATH or not executable.

Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
[Android Software/Hacking General [Developers Only]] userdelroot:
It is asking me for access can you please share it or put the file in a public place so I can view it.
[Android Software/Hacking General [Developers Only]] PunkUnity:
I posted what was in the file in my previous post

https://drive.google.com/file/d/0Byp_Oxka--aWWWtBdWZ4U1Z6R00/edit?usp=sharing
[Android Software/Hacking General [Developers Only]] Balino:
What's wrong?
[Android Software/Hacking General [Developers Only]] PunkUnity:
On your terminal app, you need to do the commands form the original post

su

cd /data/local/install-or-mount.... etc etc....

then run the install command....(sh install-or-mount-etc etc....) wait to finish.....

then run the mount command.....

all in the original post

also see here

http://xdaforums.com/showthread.php?t=2625585

hit thanks if i helped
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
What's the default sudo password?

And also [MENTION=2819483]userdelroot[/MENTION] I can confirm that this is working on Sony speria V LT15i running CM11
[Android Software/Hacking General [Developers Only]] userdelroot:
It should have asked you during the install to enter a password. What ever you typed in is the sudo password.

Also can you please refer to

http://xdaforums.com/showpost.php?p=49830606&postcount=2

For the device list format so I can copy paste.
[Android Software/Hacking General [Developers Only]] PunkUnity:
I downloaded the new "stable" version. I deleted all the old files and directories and started over. Still getting same type of errors. Seems to install sometimes with minimal errors, but wont mount. Sometimes and usually it just wont fetch packages for the os...
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Yes it asked me for a password and I typed root and it returned an error (I dont remember what it exactly said) and i replied no. Now I can't get sudo, but never mind, I'll figure something out.

Device: Sony Xperia V LT15i

ROM: CM 11-20140131-NIGHTLY-tsubasa

Version: 4.4.2

Kernel: CM11 kernel
[Android Software/Hacking General [Developers Only]] rasterall:
Error

Hello, i have a problem with the installation and i hope someone can help me. I receive the following message:

Checking for ar (fail)

ar could not be located

Please install a busybox which include ar.

Sorry if is as stupid question. Thank you!
[Android Software/Hacking General [Developers Only]] userdelroot:
That means two things are happening.

1) The busybox included in IOM does not work so the script could not link ar to it.

2) That means your busybox that you have on your device or rom does not have ar support

That means install a busybox with ar archive support.
[Android Software/Hacking General [Developers Only]] userdelroot:
I need the error from either the screen or from chroot/debootstrap/debootstrap.log

There are plenty of posts here on how to get to the debootstrap.log
[Android Software/Hacking General [Developers Only]] PunkUnity:
I posted a few posts back exactly what was in my debootrap log file

---------- Post added at 03:10 PM ---------- Previous post was at 03:08 PM ----------

This is what the log file says
[Android Software/Hacking General [Developers Only]] userdelroot:
Thanks for the device info

I will add some code to help you get around that so you will have rootshell for cases like this.

Give me a few...
[Android Software/Hacking General [Developers Only]] userdelroot:
install-or-mount-v0.3.2-stable.zip

extract it and use the -r switch at the end
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
You're THE BEST, man <3 (Totally not gay)
[Android Software/Hacking General [Developers Only]] userdelroot:
haha
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Now, this might be a bit too much to ask, but would it be possible to connect to the vnc server from my PC if they're on the same network? I tried it with a couple of vnc clients but each one said connection refused :(

Edit: Just realized that I can't connect to the local IP on my phone too. Just localhost (127.0.0.1) is working
[Android Software/Hacking General [Developers Only]] rasterall:
Can you recommend me such a bussybox? I already tried two applications and received the same answer. Thank You!
[Android Software/Hacking General [Developers Only]] userdelroot:
Retry with the newest install-or-mount 0.3.5

http://xdaforums.com/showpost.php?p=49830603&postcount=1

It includes a compatible busybox for most android versions. It is a stripped down version of busybox for the ar archiver
[Android Software/Hacking General [Developers Only]] userdelroot:
Yea, I am looking into this, not sure what or why this is happening. I could be some permission or group or something :|

However, I was able to ssh in but I keep getting a write error broken pipe. Why does it keep breaking my pipe lol

those aren't necessarily an issue with install-or-mount. As it does what it is intended.

However it would be nice if those things worked.

On a side note, those that are having problems with ar missing, please use the 0.3.5 release. As it includes a compat busybox for most android versions. It is a stripped down version but most of the tools already included in roms or stock rooted devices. Except for ar

The new busybox worked on my nexus 7 2013 and my Original Galaxy Nexus running 4.2.2, so I am pretty sure it will work for most everyone.

Also I built it within my chroot :)
[Android Software/Hacking General [Developers Only]] Pulsa:
[MENTION=2819483]userdelroot[/MENTION] i can re-confirm that this work on NayakKernel too

Device: Sony Xperia SP

ROM: VanirAOSP

Version: 4.4.2

Extra: Kernel from the ROM (boot.img) and NayakKernel v0.3

Sent from My XZ1, XSP, and X8
[Android Software/Hacking General [Developers Only]] userdelroot:
Nice thanks for the update.

Did you get your sudo password fixed?
[Android Software/Hacking General [Developers Only]] rasterall:
I tried with this new version and unfortunately the error it is still here. For your information i have a galaxy note 3 with a stock rom 4.4.2 with root. I hope there is a solution for this problem. Thank you for your help and understanding.
[Android Software/Hacking General [Developers Only]] userdelroot:
hmm what is the error?

EDIT:

if you unzipped the new release on top of the old one you have to,

cd /data/local/install-or-mount

rm -rf [B][SIZE="4"].bin-configs-done[/SIZE][/B]

This will allow the script to re-check the required files needed...
[Android Software/Hacking General [Developers Only]] PunkUnity:
Seems to get closer....

Please read pastebin AND the debootstrap.log file at the end... this is with newest version. Thanks.

http://pastebin.com/ED5SsTbs

Debootstrap Log file too... reads as following ...

dpkg: warning: parsing file '/var/lib/dpkg/status' near line 4 package 'dpkg':

missing description

dpkg: warning: parsing file '/var/lib/dpkg/status' near line 4 package 'dpkg':

missing maintainer

dpkg: warning: parsing file '/var/lib/dpkg/status' near line 4 package 'dpkg':

missing architecture

dpkg: warning: 'ldconfig' not found in PATH or not executable.

dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.

dpkg: error: 2 expected programs not found in PATH or not executable.

Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
[Android Software/Hacking General [Developers Only]] collindv:
I can't seem to fix my sudo password. I dont think it asked me during install (I tried twice). When I log in with rootshell and use the passwd command I get a permissions error.

root@localhost:/# passwd nexus

passwd: u:r:init_shell:s0 is not authorized to change the password of nexus
[Android Software/Hacking General [Developers Only]] Pulsa:
Your welcome, by the way, can you press the thanks button again please hehe:D

Edit: yes, sudo password fixed:thumbup:

Sent from My XZ1, XSP, and X8
[Android Software/Hacking General [Developers Only]] collindv:
How did you fix it?
[Android Software/Hacking General [Developers Only]] PunkUnity:
I've tried this and around 5 other ways to get linux on my HTC One and always fail somewhere. I might give up and try it on my droidx2 if I can get it to boot lol... Apparently my phone hates linux. Hope my errors I've posted help further development somehow.
[Android Software/Hacking General [Developers Only]] userdelroot:
Do you have a linux distro or windows machine with adb installed and working ?

if so I could if you want vnc into your machine and figure out what is up.

You still did not post the debootstrap.log <--

Also PLEASE PLEASE PLEASE if the install fails do not try to just mount the image cause this will surely fail due to the install failing...

Anyways let me know.

Anway
[Android Software/Hacking General [Developers Only]] userdelroot:
as root

cp /etc/shadow /etc/shadow.bak

edit /etc/shadow

replace the line nexus with the below

nexus:$6$IsRj9yNI$1efik2Hmdc08x7xR90f49aT2zxPB1Z2n1z5v1kgiAYcKoN3H/iHTFWopJyGbEKaF0Khrbmf2EiDcP8u8HKA/s0:16102:0:99999:7:::

default pass is nexus please change it once you can sudo
[Android Software/Hacking General [Developers Only]] rasterall:
After several busybox tries , i succeeded in starting the installation but now i have the following error:. Any ideas? Thanks.
[Android Software/Hacking General [Developers Only]] userdelroot:
don't type su root

just su

and then try it again.
[Android Software/Hacking General [Developers Only]] userdelroot:
You can connect from your PC to your device :)

Edit: lxdestart

30 x11vnc -q -localhost -display :0 -forever -usepw > /dev/null 2>&1 &

to read

30 x11vnc -q -display :0 -forever -usepw > /dev/null 2>&1 &

-localhost was for security so people just don't have random people inside their device
[Android Software/Hacking General [Developers Only]] collindv:
After I restart when I try to mount I end up with this:

>>>ERROR: [mount: mounting proc on /data/local/linux/proc failed: No such file or directory]
[Android Software/Hacking General [Developers Only]] userdelroot:
Did the install finish successfully? If it did not then it will not mount.
[Android Software/Hacking General [Developers Only]] PunkUnity:
We can do vnc tomorrow. My debug bootstrap log is right above. I copied and pasted its contents several times. The part where it says - dpkg warning over and over ... that's what was in that debootstrap.log file. I also posted a secind link with public availability to my google drive with the log file
[Android Software/Hacking General [Developers Only]] userdelroot:
I am looking into this.
[Android Software/Hacking General [Developers Only]] userdelroot:
Ok just private message me.
[Android Software/Hacking General [Developers Only]] ekdmfree:
Well, you are replying me...that is more than enough...thanks a lot!

Now this is getting interesting...it says in the dbootstrap.log file

Whereas I can very well browse the same url from my phone....interesting eh!!

Please help
[Android Software/Hacking General [Developers Only]] userdelroot:
Yes that means the busybox you are using is a broken one...

try:

busybox ping google.com

It will probably say bad address.

The busybox included is very limited and does not even include wget because it is compat with most android versions.. Where is if wget, ping and the like are included, they need to be compiled with the android source because of the lib's which your busybox was not.

Please get a working busybox.. I believe they have busybox in the play store. I remember someone saying they used busybox X from the google play store.

Install that and then try again.
[Android Software/Hacking General [Developers Only]] ekdmfree:
Yes I thought of the same...the problem is with resolving it from commandline...nothing is wrong with your script so far,... :)

Let me resolve the problem and report you back...thanks buddy!
[Android Software/Hacking General [Developers Only]] eushaun99:
I'm getting this error on my galaxy tab 10.1 running Omni 4.4. Here's what it says in the debootstrap.log. Hope it helps.

dpkg: warning: parsing file '/var/lib/dpkg/status' near line 4 package 'dpkg':
missing description
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 4 package 'dpkg':
missing maintainer
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 4 package 'dpkg':
missing architecture
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
[Android Software/Hacking General [Developers Only]] ekdmfree:
now this is frustrating...someone kill me

donno what is going wrong...just frustating...I updated the busybox in /system/xbin and later on /system/bin

tried installing script again (now wget is able to resolve the address...I tried it separately)

and the dbootstrap started drama
[Android Software/Hacking General [Developers Only]] ekdmfree:
ok, somehow I managed to get evertything work....I mean wen i tried wget, sh was not working and vice versa...the problem was that wget was not able to resolve the name...so i changed it to IPs...

it finally installed...now when I am trying to mount it...proc doesn't mount...now need some serious troubleshooting

1|root@t03g:/data/local/install-or-mount # sh install-or-mount -z -n linux.img -m /data/local/chroot -l /data/local -r
t -z -n linux.img -m /data/local/chroot -l /data/local -r <
checking root: [OK]
Preparing chroot enviroment
Image name: linux.img
Mount Location: /data/local/chroot
Image Location: /data/local

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

Mount location: /data/local/chroot
rootfs: [OK]
/sys: [OK]
/proc: [fail]

>>CMD: [mount -t] ARGS: [proc proc /data/local/chroot/proc ]
>>>ERROR: [mount: mounting proc on /data/local/chroot/proc failed: No such file or directory]

Exiting...

Unmounting chroot enviroment
/sys: [OK]
rootfs: [OK]
...done
[Android Software/Hacking General [Developers Only]] userdelroot:
yes reboot.

delete /data/local/install-or-mount

delete /data/local/chroot

delete /data/local/linux.img

reboot

extract install or mount and try to install again using 4.1
[Android Software/Hacking General [Developers Only]] PunkUnity:
same thing my debootstrap.log says....
[Android Software/Hacking General [Developers Only]] PunkUnity:
Can confirm 0.4.5 working on

Device: HTC ONE M7UL S-OFF SUPERCID

Rom: Android Revolution HD 6.1 Google Edition

Version: 4.4.2

Kernel: Stock

BusyBox: JRummy: https://play.google.com/store/apps/details?id=com.jrummy.busybox.installer&hl=en

Going to try and get an old Motorola Droid X2 to work tomorrow...
[Android Software/Hacking General [Developers Only]] userdelroot:
Thanks for update.
[Android Software/Hacking General [Developers Only]] PunkUnity:
No. THANK YOU for all your time and hard work! Hopefully I'm worst case scenario.... Seriously legit work . only Linux ever able to really work on my phone! Make it an app with a donate version and I'll buy it for sure! Or where can I donate?
[Android Software/Hacking General [Developers Only]] userdelroot:
Apps in the market = more problems..

Actually don't have a donate? Maybe i should get one?

This is K.I.S.S (keep it simple, stupid)

Which this is very lightweight and does as needed.

yes your phone was a ***** not gonna lie lol..

Maybe some other users know of an answer or can help you find an answer or your shell where it is showing ascii characters with ls and vi
[Android Software/Hacking General [Developers Only]] PunkUnity:
Yes you should have a donate button. Also I do like how this method is implemented. Safe, secure,etc. Good work. Trying on DroidX2 now lol

.

---------- Post added at 11:40 PM ---------- Previous post was at 11:21 PM ----------

http://pastebin.com/Sk5e5KMf

Droid X 2 fail lol. Ancient phone so no big deal. if you want you can check it out. It's pretty much a paper weight tho.

Sent from an ancient technology known as DroidX2

EDIT: I was able to install kali on my htc one, havent tried ubuntu since i got kali working. Ubuntu saucy is not installing on my droidx2 tho...
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
i assume it's -o kali to install kali? I'm in school currently but will try it as soon as I get home
[Android Software/Hacking General [Developers Only]] ekdmfree:
can someone please help me with the following error log when I am trying to mount it after a successful install on Note2, DN3

1|root@t03g:/data/local/install-or-mount # sh install-or-mount -z -n linux.img -m /data/local/chroot -l /data/local -r

t -z -n linux.img -m /data/local/chroot -l /data/local -r <

checking root: [OK]

Preparing chroot enviroment

Image name: linux.img

Mount Location: /data/local/chroot

Image Location: /data/local

Setting up enviroment: [OK]

checking mount point: [OK]

Mount location: /data/local/chroot

rootfs: [OK]

/sys: [OK]

/proc: [fail]

>>CMD: [mount -t] ARGS: [proc proc /data/local/chroot/proc ]

>>>ERROR: [mount: mounting proc on /data/local/chroot/proc failed: No such file or directory]

Exiting...

Unmounting chroot enviroment

/sys: [OK]

rootfs: [OK]

...done
[Android Software/Hacking General [Developers Only]] userdelroot:
reboot

delete linux.img

delete chroot

delete install-or-mount

get latest install-or-mount

install
[Android Software/Hacking General [Developers Only]] ekdmfree:
Thank you sir, I did the same...now I am on the stable release..spent the whole day on this...got it working...

felt relax

rebooted my device and then thrown back on the same error while trying to mount the img...looks like I will not be able to enjoy this :(
[Android Software/Hacking General [Developers Only]] userdelroot:
weird. it shouldn't delete the internal image like that.

I would say try it again.

with the process.

reboot

delete everything

install

reboot

then mount it with the mount switches.

don't use the quick script.

if it mounts then it is the quick script.

I have rewrote those, as I had issues using them. where proc would be missing.
[Android Software/Hacking General [Developers Only]] ekdmfree:
ok...i will give it a try tomorrow!

i donno which quick script are u talking about but it got mounted after the install automatically...where it worked...I was unable to connect via vnc remotely so I rebooted and then started mount with switches mentioned in OP but it failed with the proc error :(

Lemme try again may be tomorrow and will update
[Android Software/Hacking General [Developers Only]] userdelroot:
what device are you using?
[Android Software/Hacking General [Developers Only]] collindv:
Same thing is happening to me on an Asus tf300t transformer tablet running cm11 with grimlock kernel
[Android Software/Hacking General [Developers Only]] userdelroot:
OK.. I'll look at the code tonight. there is no rm code in the script so I don't know why it is deleting the chroot filesystem.

I did have this issue a few times, and a reboot of device fixed it.

when it fails to remount did you get an error when you exited initially?
[Android Software/Hacking General [Developers Only]] collindv:
Not that I know of. It seemed to unmount cleanly

---------- Post added at 09:55 PM ---------- Previous post was at 09:32 PM ----------

Just reinstalled from scratch and it seemed to mount ok after a reboot. I will update if the issue reappears.
[Android Software/Hacking General [Developers Only]] userdelroot:
This post is from my Nexus 7 2013 from install-or-mount chroot with kali linux. Running lxde x11vnc and iceweasel web browser.

To use iceweasel which is based of of mozilla sudo apt-get install iceweasel then launch lxdestart :)

I am also connected to my device from my desktop :)

Hope everyone else is enjoying this and using this as much as me lol
[Android Software/Hacking General [Developers Only]] ekdmfree:
I am using Note 2 with DN3 ROM

it got installed correctly for the first time and wit the install script, it got mounted as well,...later after a reboot it just fails at proc...no errors were seen at install script
[Android Software/Hacking General [Developers Only]] PunkUnity:
Just a side note on my situation. Got everything working. But I guess my Android console terminal sacked. So I found a way to install bash 4.2 onto my phone. Now I open android terminal and type su, then, bash... https://play.google.com/store/apps/...ell+x&pcampaignid=APPU_sfzxUv-BI46DogT5lYKQAQ

Screenshot

https://www.dropbox.com/s/v04yttwqli2flyc/Screenshot_2014-02-05-01-06-46.png
[G2 Q&A, Help & Troubleshooting] Commander Rikers Beard:
I just manually checked for an update and my phone downloaded a file. After reboot sprint spark has been installed. Sadly, I have not seen a speed or signal gain yet.
[G2 Q&A, Help & Troubleshooting] marcviado:
Sorry but Why is this in the development thread? Wrong place to post try the Q&A thread
[G2 Q&A, Help & Troubleshooting] Commander Rikers Beard:
My mistake. Wasn't paying attention obviously. :/