yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] collindv:
My install is failing with the following:

INFO: Mount path: /data/local/chroot

INFO: Install chroot enviroment

INFO: distro: precise

INFO: image name: linux.img

INFO: image size: 1024

INFO: image path: /data/local

INFO: mount path: /data/local/chroot

INFO: Creating linux.img

1024+0 records in

1024+0 records out

1073741824 bytes (1.0GB) copied, 79.651296 seconds, 12.9MB/s

INFO: image linux.img created

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

INFO: linux.img formated ext2

INFO: mounted: rootfs

INFO: installing first stage

sh: applet not found

INFO: Cleaning up chroot resources

INFO: chroot resources cleaned up

INFO: unmount chroot enviroment

INFO: unmounted: rootfs

ERROR: unable to start first stage
[Android Software/Hacking General [Developers Only]] userdelroot:
try the new release and see if that fixes it.

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

Let me know how the new version works.
[Android Software/Hacking General [Developers Only]] collindv:
Same error :(
[Android Software/Hacking General [Developers Only]] userdelroot:
what is the device you are trying to do this on?

what is the command line you are using?

Please provide steps you used to generate error

Thanks.

If all else fails, if you have teamviewer and adb installed I can check it to see the issue.
[Android Software/Hacking General [Developers Only]] collindv:
It is a tf300t transformer tablet running cromi-x. I Previously had it working under CM11 but recently changed Roms.

I am running:

su

cd /data/local/iom

sh iom

I can post the entire output later when I get home or any logs you need if it helps. I appreciate the team viewer offer.
[Android Software/Hacking General [Developers Only]] collindv:
Here is the full terminal window copy;

u0_a59@android:/ $ su

root@android:/ # cd /data/local/iom

root@android:/data/local/iom # sh iom

INFO: Entering interactive mode

What would you like to do?

1) - Install

2) - Mount

Select a number [1,2]> 1

Select a distro

0) precise

1) quantal

2) raring

3) saucy

4) kali

select a number [0,1,2,3,4]> 3

Select Size

1) - 850 megs

2) - 1 gig

3) - 1.5 gig

4) - 2 gig

select a number [1,2,3,4]> 2

Enter full path to image

leave blank for default

default [/data/local/linux.img]>

INFO: using defaults for image

INFO: image name: linux.img

INFO: image path: /data/local

Enter full mount path

leave blank for default

default: [/data/local/chroot]>

INFO: Mount path: /data/local/chroot

INFO: Install chroot enviroment

INFO: distro: saucy

INFO: image name: linux.img

INFO: image size: 1024

INFO: image path: /data/local

INFO: mount path: /data/local/chroot

INFO: Creating linux.img

1024+0 records in

1024+0 records out

1073741824 bytes (1.0GB) copied, 77.712451 seconds, 13.2MB/s

INFO: image linux.img created

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

INFO: linux.img formated ext2

INFO: mounted: rootfs

INFO: installing first stage

sh: applet not found

INFO: Cleaning up chroot resources

INFO: chroot resources cleaned up

INFO: unmount chroot enviroment

INFO: unmounted: rootfs

ERROR: unable to start first stage

1|root@android:/data/local/iom #
[Android Software/Hacking General [Developers Only]] userdelroot:
No prob. I had to do the teamviewer thing with someone else also.

Try to just install without the gui portion..
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
You apparently don't have a required busybox applet. Get the busybox app from the play store and update your busybox. That should fix it.
[Android Software/Hacking General [Developers Only]] userdelroot:
I am not so sure that is true, as it passes the prog found portion. and sh should be installed on stock at /system/bin/sh which symlinks to mksh

So I am not so sure that is the issue.

Although his sh could be borked?

On a side note, I am attempting to install on a stock rooted galaxy nexus :eek:)
[Android Software/Hacking General [Developers Only]] collindv:
Installing and updating busybox from the store made no difference. Installing without using GUI did not either :(.
[Android Software/Hacking General [Developers Only]] userdelroot:
New release version 0.7.3

install-or-mount-v0.7.3-gui.zip
[Android Software/Hacking General [Developers Only]] userdelroot:
Try the updated version i just posted.

install-or-mount-v0.7.3-gui.zip
[Android Software/Hacking General [Developers Only]] collindv:
Same :(
[Android Software/Hacking General [Developers Only]] userdelroot:
Do not just unzip to the old iom directory.

rm -rf iom

then unzip the new one so it can check progs again.
[Android Software/Hacking General [Developers Only]] collindv:
No difference. Sorry to take up your time.
[Android Software/Hacking General [Developers Only]] userdelroot:
hmm,

Do you have adb installed on your computer?

if so would I be able to teamviewer in?
[Android Software/Hacking General [Developers Only]] collindv:
I am setup with adb and teamviewer but can't do it tonight unfortunately. Maybe tomorrow evening?
[Android Software/Hacking General [Developers Only]] userdelroot:
ok let me know via private message..

Updated version also

install-or-mount-v0.7.4-gui.zip
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
Try copy busybox from iom bin directory to system/xbin. It worked for me. Do a backup your old busybox from xbin.
[Android Software/Hacking General [Developers Only]] userdelroot:
Is the new release work for you now?
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
Yes, install and mount are OK.

You have a little bug with ifconfig and umount proc in first instalation.

View attachment 2598183

View attachment 2598201

Next mounting image is OK.
[Android Software/Hacking General [Developers Only]] userdelroot:
The bug is during install. For some reason the install unmounts /proc

I am aware of it, I have tried to unmount everything once install completes and then remount but that fails miserably lol.

Exiting and remounting does fix it however.

I will work on that later today as it is annoying.

Also it's ifconfig not ipconfig

Also Kali Linux users don't have /sbin in their path

You would need to /sbin/ifconfig if using Kali.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Ohh that's why I couldn't run it. Thanks for the tip:)
[Android Software/Hacking General [Developers Only]] userdelroot:
Question:

Anyone here good at graphics or creating logos etc?

If so and want to contribute please priv message me.

Thanks.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
My brother is. What would you like to logo to resemble?
[Android Software/Hacking General [Developers Only]] userdelroot:
Got someone working on it, but thank you anyways.
[Android Software/Hacking General [Developers Only]] userdelroot:
Update 03-01-2014

Released new version with minor fixes

install-or-mount-v0.7.6-gui.zip
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
Works well. No errors.

VNC not connect, but its maybe my fault. localhost:5900 / nexus is it right?
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Yes but have you installed/started the server?
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
Of course.
[Android Software/Hacking General [Developers Only]] userdelroot:
Vnc and lxde are installed after the finishing setup. It will ask if you want to install. I am not sure if in have a default in there or not if you just hit enter.

To check if it is installed type x11vnc --help

From within chroot
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
VNC and lxde start, but vnc client not connect.
[Android Software/Hacking General [Developers Only]] userdelroot:
Launch IOM and mount . then connect to device via another terminal or another adb shell

Type:

busybox sysctl net.ipv4.ip_forward

What does it show?

If it shows 0 then I need to fix something. If it shows 1 then it is probably something on your side.

As it should show 1 for forwarding
[Android Software/Hacking General [Developers Only]] nscxp2005:
With this is it possible to run Ubuntu 13.10 with Unity on the Nexus 7 2012 Edition?
[Android Software/Hacking General [Developers Only]] userdelroot:
I have not tried unity, and it is probably not recommended as Unity is resource intensive. It will run LXDE which is lightweight and less resource intensive. Also with that said, Unity takes up quite a bit storage.

So to answer your question, no not using this method to chroot.
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
View attachment 2610134
[Android Software/Hacking General [Developers Only]] userdelroot:
eeek!!!

is that once you are in the chroot?

if it is for a temp fix log in on a second terminal and type busybox sysctl -w net.ipv4.ip_forward=1

EDIT:

I just tried it and it is working for me, not sure why your's is not setting.
[Android Software/Hacking General [Developers Only]] nscxp2005:
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
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
I might have the time to do it in two hours, if not then tomorrow
[Android Software/Hacking General [Developers Only]] userdelroot:
Did you make a video yet? I wanna see it!!! Lol
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Im really sorry guys, but my retarded teacher decided that will have three test today, so I couldn't even get a second of free time :p. Today Im making the video, only question is how long will it upload to youtube.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Im going to start recording now, video should be up in a few hours max. Depends mostly on upload time because I dont know how large the file will be :p

After hours of trying I finally found a recording app that actually works :D It's 12:15 am so I cannot finish the video now - everybody's sleeping :/ but I can promise it will be ready tomorrow
[Android Software/Hacking General [Developers Only]] userdelroot:
I'm not sleeping I'm at work.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
I meant everybody in my house :p
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Video is done :D

Here's The YouTube link

Install or Mount Tutorial
[Android Software/Hacking General [Developers Only]] userdelroot:
Can I place this on the main thread ? With you getting credits of course
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
It would be an honor :D
[Android Software/Hacking General [Developers Only]] PunkUnity:
Looks like the entire process has changed since I was last here lol. Been since version .4.1.... Im getting absolutely nothing working lol

ViperOne@/$ su

ViperOne@/# sh iom --install --size=1 --distro=1 /data/local/linux.img /data/local/chroot

sh iom --install --size=1 --distro=1 /data/local/o=1 /data/local/linux.img /data/l ocal/chroot <

sh: iom: No such file or directory

127|ViperOne@/# cd /data/local

cd /data/local

ViperOne@/data/local# sh iom --install --size=1 --distro=1 /data/local/linux.img /data/local/chroot

sh iom --install --size=1 --distro=1 /data/local/distro=1 /data/local/linux.i mg /data/local/chroot <

ViperOne@/data/local# sh iom --install --size=1 --distro=1 /data/local/linux.img /data/local/chroot

sh iom --install --size=1 --distro=1 /data/local/distro=1 /data/local/linux.i mg /data/local/chroot <

ViperOne@/data/local# sh iom --auto=1

sh iom --auto=1

ViperOne@/data/local# sh iom

sh iom

ViperOne@/data/local# sh iom --mountonly /data/local/linux.img /data/local/chroot

sh iom --mountonly /data/local/linux.img /data/loal/linux.img /data/local/chr oot <

ViperOne@/data/local# sh iom

sh iom

ViperOne@/data/local#

Nothing happens every time I typed commands in....
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Go check out my tutorial to see how to use the new version. There's a youtube link a few posts above
[Android Software/Hacking General [Developers Only]] userdelroot:
You need to extract the zip file to /data/local

then cd /data/local/iom

then type

sh iom
[Android Software/Hacking General [Developers Only]] PunkUnity:
I did do that.... ill just watch the video

thanks for the help again! as always!
[Android Software/Hacking General [Developers Only]] userdelroot:
New GUI Coming soon....

New gui coming soon...
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Ooooh shiny :D I love it, although looks like I'll have to redo the tutorial ;)
[Android Software/Hacking General [Developers Only]] userdelroot:
HAHA yea my bad...

I tried to do this on the initial version, however tput and terminfo are not available on android due to ncurses libs and instead of building and compiling across multiple android versions, I am using my own tput if you will; ;)
[Android Software/Hacking General [Developers Only]] userdelroot:
updated release 03-11-2014

new version

install-or-mount-v0.8-gui.zip
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Is the quickmount script fromat still the same? Can I just copy over the old ones from 0.7
[Android Software/Hacking General [Developers Only]] userdelroot:
Yes they are.
[Android Software/Hacking General [Developers Only]] userdelroot:
How is the new version working?
[Android Software/Hacking General [Developers Only]] nscxp2005:
To the dev of this app.

I would like to know if it is possible for you to add gnome and unity support if the user selects No to installing LXDE. Thanks
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Gnome and unity are too much for android devices to handle. They eat up RAM and since you're running android in the background, your CPU wouldn't be happy about it either, even with a high-end phone like your Z1 :p

Did get a chance to test it yet :/ had to learn for test tomorrow and play minecraft :)
[Android Software/Hacking General [Developers Only]] userdelroot:
As paxy97 mentioned, it would cause your device to run very poorly.

However for ****s and giggles I will attempt it and see how it works on my nexus 5 and 7

However I will probably not add support but will add a script to install it if you feel you want to try it..
[Android Software/Hacking General [Developers Only]] nscxp2005:
Yes please, that would be awesome
[Android Software/Hacking General [Developers Only]] nscxp2005:
Hi userdelroot,

Sorry for the double post. Have you tried Unity or Gnome to see how they perform on the Nexus 7 2013?

I hope it runs really well.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Is there a way to get it with apt-get? I was just thinking and realised that i have reinstalled unity like this on my pc :D, so I thought it would have to be possible on android too.
[Android Software/Hacking General [Developers Only]] userdelroot:
Yes

It should be possible
[Android Software/Hacking General [Developers Only]] userdelroot:
No I am sorry, I have not had any time this week.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Btw Im sorry if I have posted anything bad. Im currently a "bit" drunk (dont know how Im even posting this :) )
[Android Software/Hacking General [Developers Only]] userdelroot:
Lol..

while true
If [ -n "$alcohol" ] && [ "$user_drunk" = 'true' ]; then
phone_down
else
break
fi
done
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Ahahahahahha that would be really nice to have :D
[Android Software/Hacking General [Developers Only]] userdelroot:
I guess no one is having issues.. Good good.

Debian is already available just have to add the code for it.

I will also be including a script to decompile apk stuff within chroot for you themers.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Ohhh nice :D. Which tool will you use for decompiling?
[Android Software/Hacking General [Developers Only]] userdelroot:
Linux version I created from another project. But I redid that code also but haven't released the new code yet.
[Android Software/Hacking General [Developers Only]] nscxp2005:
Userdelroot,

Will you still have time to test how Unity and Gnome work under chroot.

Thanks
[Android Software/Hacking General [Developers Only]] userdelroot:
I will work on that this weekend
[Android Software/Hacking General [Developers Only]] nscxp2005:
Awesome. I can't wait to find out the results. I hope it runs decent
[Android Software/Hacking General [Developers Only]] userdelroot:
I would have to say at this point, no go on Unity. I have not tried GNOME yet.

For this project for now I am going to stick with the LXDE enviroment. As it is lightweight and less resource intensive unlike Unity and Gnome.

Sorry for the negative results.
[Android Software/Hacking General [Developers Only]] nscxp2005:
Ok. Do you know any other alternatives to LXDE that would work?
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
I cant remember the name of the kubuntu desktop, but you could give that a try, userdelroot
[Android Software/Hacking General [Developers Only]] userdelroot:
Xcfe is I believe used in kubuntu.

And actually. The Ubuntu install would actually be lubuntu cause that uses lxde lol.

Where Ubuntu uses gnome or unity.

I have an update I'll push out this weekend or so. It is just minor bug fixes...

Linux on android appears to be releasing another version.

I have attempted to reach out to that project and contribute but no response.

So depending how well their new version works this project may become obsolete.

I personally like the script way as it is clean etc. However it doesn't have all the bells an whistles.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
I can just agree with you. Call me old-fashioned, but I've always liked a terminal script better than an app with a gui :). Also, isn't xfce for Xubuntu? As far as I remember, Kubuntu is using it's own desktop, not xfce.
[Android Software/Hacking General [Developers Only]] nscxp2005:
I think KUbuntu uses Plasma. I have heard that this runs really well on chroot.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Userdelroot have you tried optimizing the unmount part of the script. It's quite slow for me (takes about a minute) and still writes many lines of this:

lsof: no pwd entry for UID 2800
[Android Software/Hacking General [Developers Only]] Lihis:
Ubuntu uses Unity (gnome), Xubuntu use XFCE. Correct me if I'm wrong but Kubuntu use KDE? Lubuntu use lxde which is lighter than xfce.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Correct only one thing to add: kde is also called plasma :p
[Android Software/Hacking General [Developers Only]] userdelroot:
That is weird as I never see that error. I thought I did fix that from happening.

It is optimized for the most part. The reason it takes a few seconds is because it kills off resources in the chroot so it can cleanly unmount the filesystem. Without it you would have to reboot all the time.

The other issue is some lsof versions have different results lol. where is the first portion has the pid and some have it as to where lsof has the first portion as the command and the second portion as the PID so I need to check both. If yours takes a few seconds it is because it uses the second method. Try updating your busybox to a better version? See if that helps.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
Its not an error, just a warning. Chroot is unmounting correctly, it's just a bit annoying :/ and afaik my busybox is updated
[Android Software/Hacking General [Developers Only]] userdelroot:
OK I fixed a few things sorry been busy with another project.

I will add that to the list paxy.
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
I can confirm that the gcc compiler is working perfectly fine.
[Android Software/Hacking General [Developers Only]] luvher:
GREAT!!

Succesful installation!!

Device: LG G2 32GB

Rom: PARANOIDANDROID 4.2+ G2 [beta3]

Version: AOSPA 4.4.2 KVT49L

Extra: Stock Houstonn Kernel

Script is really the best out there!! Tried every App/Script.. but the stability of this is unbelievable..

[MENTION=2819483]userdelroot[/MENTION] if you need any help in maybe translate your script into german language i'll help you!!

THANKS!!
[Android Software/Hacking General [Developers Only]] nscxp2005:
Hi userdelroot,

I would like to know if it is possible to run Elementary OS using your script on the nexus 7 2013?

I know Unity won't work but Elementary OS or UI looks really nice.

Would you be able to try it out and let me me know.

Thank you so much.
[Android Software/Hacking General [Developers Only]] userdelroot:
Thank you for the kind words.

I will let you know about the translation. As code gets improved upon.

However I have not been working much on this project as of late. There were a few bug fixes that have been addressed. Other then that the script works.

I will add your device to list.
[Android Software/Hacking General [Developers Only]] luvher:
That's okay, as long as the Project doesn't die :) Is there a way to change the size of the Image? 2GB is not enough for me ;)
[Android Software/Hacking General [Developers Only]] userdelroot:
Unfortunately no not at this time. As most tools do not support > 2gig

This will be one of the issues I will try to work out.
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
If you want resize your img file - http://www.techpository.com/?page_id=1142

Works for me.
[Android Software/Hacking General [Developers Only]] Crysis2:
erS@/$ su

ViperS@/# sh iom --help

sh: iom: No such file or directory

127|ViperS@/# ViperS@/$ su

sh: ViperS@/$: not found

127|ViperS@/# ViperS@/# sh iom --help

sh: ViperS@/#: not found

127|ViperS@/# sh: iom: No such file or directory

sh: sh:: not found

e=1 --distro=1 /data/local/linux.img/data/local/chroot <

sh: iom: No such file or directory

127|ViperS@/#

What I am doing wrong?

Отправлено с моего HTC One S через Tapatalk
[Android Software/Hacking General [Developers Only]] userdelroot:
You need to download the file unzip it to /data/local then cd to it.
[Android Software/Hacking General [Developers Only]] luvher:
Urggh.. that's not what i wanted to hear.. anyway hope you'll find a fix for it! :good: btw. has your script the possibility to install on an existing image?

Thanks for for the link, but it doesn't work for me.. btw. maybe it works but everytime i try to connect to the GUI it says "Connection refused"? Maybe that's one of the problems userdelroot explains?
[Android Software/Hacking General [Developers Only]] ill13:
This is fantastic.Works well on my stock nexus5. However the 0.8 version did not work for me, but the 0.7.6 did.

The only issue i have is that i cannot seem to change the default resolution of 1280x750 to something higher. Any ideas?
[Android Software/Hacking General [Developers Only]] Crysis2:
Like this?

ViperS@/$ su

ViperS@/# cd /sdcard/data/local/

ViperS@/sdcard/data/local# sh iom --help

ViperS@/sdcard/data/local#

But didn't work.

Отправлено с моего HTC One S через Tapatalk