yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] S0AndS0:
Try removing the sdcard from the mix and extraxt to "/data/local" under the root directory of your android device. If your device doesn't have enough internal space you can try linking a directory on your sdcard to the data/local directory.

cd /data/local
ln -s /sdcard/some_dir

However this may not work because android resricts permissions that can be set on the sdcard, so perhaps hardlinking instead of softlinking?

Sent from: SPH-D700 or myTouch3Gs or Sero 7 Pro

Linux Install guide for Android devices that I'm writing:

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

Or

https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web

And my script pack for installing; Java's JDK, node.js and more to your Linux OS

https://github.com/S0AndS0/Debian-Kit-Mods

Note: if you're new to Linux/scripting/command line; check readme file for instructions.
[Android Software/Hacking General [Developers Only]] Crysis2:
My device using internal memory and now something around 2.7Gb is free and tried with extracting in root an without root no chance will test the 7 version and report here.

Отправлено с моего HTC One S через Tapatalk
[Android Software/Hacking General [Developers Only]] S0AndS0:
-Well I suppose it could be an issue with the app/program you're using to do the original extract; try extracting and then visually compare for difference between exploring the compressed file and the directories/files that where extracted. I suggest this because on my devices I've had files and directories just not extract and not pop any errors until I go to use something that just isn't there.

-Another possibility is that permissions are not being preserved and upon extraction don't have the option to execute

chmod +x /dir_path/fileName

Should help with that. You can also define a reference file and define an whole manor of permission mods using a file that you already like the permissions settings like bellow:

chmod --reference=/someDir/exampleFile /some_otherDir/fileBeing_modded

--just be sure to not mix up which file is the one to be modded and you can have a whole manner templet files with different permissions and cycle through them really quickly till ya find the combo that does exactly what you need.

Have a look over here at the lildebi source code

https://github.com/guardianproject/lildebi

Supposedly they have a little script that will let you resize the image file used for chroot Linux hidden in one of the directories of the above github. Perhaps we can have one that's been pulled out and made to work with this method here?

And in the mean-time if users absolutely need 10+ gigs on a sdcard partition; Debian Kit app from the market place can be used to install a non-chroot Linux OS within the same folder tree as your Android system, and, supports partitions as big as your device can support.

Sent from: SPH-D700 or myTouch3Gs or Sero 7 Pro

Linux Install guide for Android devices that I'm writing:

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

Or

https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web

And my script pack for installing; Java's JDK, node.js and more to your Linux OS

https://github.com/S0AndS0/Debian-Kit-Mods

Note: if you're new to Linux/scripting/command line; check readme file for instructions.
[Android Software/Hacking General [Developers Only]] userdelroot:
What was the error 0.8 gave you ?

I assume you mean the vnc for the resolution?

change the resolution in > /usr/bin/lxdestart
[Android Software/Hacking General [Developers Only]] luvher:
That would be great!! :good:

Btw. new strange problem.. since yesterday it doesn't matter which size i choose at the install script, i'll always get a 850MB file.. well, not the image itself, it's 1 or 1,5 GB (2GB fails to format?!) but if i take a look with the filemanager in ubuntu it only shows 836MB?! :confused:
[Android Software/Hacking General [Developers Only]] Crysis2:
I will try it but when my laptop fixed and my phone need to be re flashed too.

What software you recommend for ubuntu to extract with?

Did any one with similar specific like internal memory and HTC x device had this problem?

(Sorry for my really bad English)

Отправлено с моего HTC One S через Tapatalk
[Android Software/Hacking General [Developers Only]] ill13:
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!
[Android Software/Hacking General [Developers Only]] userdelroot:
make sure you have a busybox even on stock.

weird that old version works but new one doesn't as the code between them is almost the same.
[Android Software/Hacking General [Developers Only]] S0AndS0:
What's up with your laptop? If it is hard drive/OS failure there's an app that let's you use your phone as a USB boot option(I'll dig up a link in a bit) which would let you run some software to possibly fix it; but that would be for a whole other thread for discussion on how to fix a PC with an Android device...

For extraction I usually use the Linux command line on the PC too, "tar" usually. Most what I've found is many Android device's barf when out of memory or when a background app wakes up during an extraction and other times I'm just left scratching my head because everything goes great aside from a missing directory or two.

All my devices (HTC included) have sdcards, I make it one of the required features so I doubt I'll be able to replicate your errors.

Check your "LOST.DIR" on your sdcard; this directory gets filled up with "orphaned" files, kinda like a Windows "recycle bin", and I've had out of space errors dew to the above directory filling up with deleted old Linux installs and other junk. Also you could try 2046MB instead of 2048MB because I've found trying to squeeze those last few bits in can cause some devices to barf on the creation of the image file portion of install.

Sent from: SPH-D700 or myTouch3Gs or Sero 7 Pro

Linux Install guide for Android devices that I'm writing:

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

Or

https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web

And my script pack for installing; Java's JDK, node.js and more to your Linux OS

https://github.com/S0AndS0/Debian-Kit-Mods

Note: if you're new to Linux/scripting/command line; check readme file for instructions.
[Android Software/Hacking General [Developers Only]] Crysis2:
My laptop LCD damaged so I send it for repairing.

The big problem about my device is that it's not given even a single error when I write the command in terminal app it's not doing anything just stays where it was no errors so I am not even sure it's working on my phone.

Will report when tested both of old and new versions.

Отправлено с моего HTC One S через Tapatalk
[Android Software/Hacking General [Developers Only]] userdelroot:
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.
[Android Software/Hacking General [Developers Only]] userdelroot:
I'm not sure what you are doing but the steps are as followed.

Download tool.

Unzip tool to /data/local

su

cd /data/local/iom

sh iom
[Android Software/Hacking General [Developers Only]] userdelroot:
As version 0.8 works on stock Samsung galaxy nexus stock Lol .

Nexus 5 and nexus 7 stock but with elementalx kernel
[Android Software/Hacking General [Developers Only]] Lihis:
Reboot your phone and try mount again?
[Android Software/Hacking General [Developers Only]] Crysis2:
Going to that.

Отправлено с моего HTC One S через Tapatalk
[Android Software/Hacking General [Developers Only]] userdelroot:
to mount

sh iom

make mount selection
[Android Software/Hacking General [Developers Only]] Crysis2:
What now?

ViperS@/$ su

ViperS@/# cd /data/local/iom

ViperS@/data/local/iom# sh iom

INFO: Entering interactive mode

What would you like to do?

1) - Install

2) - Mount

Select a number [1,2]> 2

Select config

1) - quantal-linux.img

select a number> 1

INFO: Mounting chroot enviroment

INFO: image: linux.img

INFO: image path: /data/local

INFO: mount path: /data/local/chroot

INFO: mounted: rootfs

INFO: mounted: sys

INFO: mounted: proc

INFO: mounted: dev

INFO: mounted: pts

INFO: mounted: shm

Linux localhost 3.4.61-LIBERTY-SENSE-v4-g291f820-dirty #1 SMP PREEMPT Thu Sep 12 14:36:20 EAT 2013 armv7l armv7l 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.

nexus@localhost:~$ lxdestart

Launching LXDE

x11vnc started

Connect to vnc from your device:

use one of the following ip addresses:

127.0.0.1

192.168.1.2

nexus@localhost:~$ vnc 127.0.0.1

-bash: vnc: command not found

nexus@localhost:~$

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

Started the lxde but don't know hot to connect to vnc

---------- Post added at 05:37 PM ---------- Previous post was at 05:23 PM ----------

Help

Отправлено с моего HTC One S через Tapatalk
[Android Software/Hacking General [Developers Only]] Lihis:
You have two choises:

1) Download a VNC app to your phone

2) Install VNC viewer program to your PC

When you have made your decision, look the output after the "lxdestart" command:

The upper (127.0.0.1) IP is for connecting from your phone VNC app. And the lower IP, in your case it is 192.168.1.2, is for connecting from WiFi network, eg. PC or even from another phone.

Conclusion:

127.0.0.1 -> Connect from same phone running IOM

192.* -> Connect from your local WiFi network

xxx.* -> Connect from anywhere from the world, but pretty much all carriers block inbound connections so you can't..
[Android Software/Hacking General [Developers Only]] Crysis2:
Sorry forget to delete it.

Отправлено с моего HTC One S через Tapatalk
[Android Software/Hacking General [Developers Only]] userdelroot:
the 192.* depends on your WiFi network.

It may or may not work connecting to carrier as they usually block inbound connections.
[Android Software/Hacking General [Developers Only]] userdelroot:
no idea what your saying
[Android Software/Hacking General [Developers Only]] Crysis2:
Nothing at all.ignore it.

Отправлено с моего HTC One S через Tapatalk
[Android Software/Hacking General [Developers Only]] userdelroot:
You need to follow the directions... vnc 127.0.0.1

is not going to work.

search this thread or look at the q&a thread or look at the main thread.

I'll give you a hint.

you gotta download the vnc viewer app in android or on your pc
[Android Software/Hacking General [Developers Only]] Lihis:
Yes. I admit, instructions was too user specific. EDIT: Previous post fixed..
[Android Software/Hacking General [Developers Only]] Crysis2:
Can't download from Googleplay.

How I can backup the Linux?(i wanna re install my phone Rom)

Also the androidvnc gives me error:View attachment 2687981View attachment 2687982

Отправлено с моего HTC One S через Tapatalk
[Android Software/Hacking General [Developers Only]] S0AndS0:
Sent from: SPH-D700 or myTouch3Gs or Sero 7 Pro

Linux Install guide for Android devices that I'm writing:

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

Or

https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web

And my script pack for installing; Java's JDK, node.js and more to your Linux OS

https://github.com/S0AndS0/Debian-Kit-Mods

Note: if you're new to Linux/scripting/command line; check readme file for instructions.
[Android Software/Hacking General [Developers Only]] Crysis2:
Unmount when downloading app?

Didn't got your point?

Отправлено с моего HTC One S через Tapatalk
[Android Software/Hacking General [Developers Only]] S0AndS0:
Unmount as in shut Linux down when ya get those errors and try the market place download again. Sometimes they seem to step on each others toes.

Sent from: SPH-D700 or myTouch3Gs or Sero 7 Pro

Linux Install guide for Android devices that I'm writing:

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

Or

https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web

And my script pack for installing; Java's JDK, node.js and more to your Linux OS

https://github.com/S0AndS0/Debian-Kit-Mods

Note: if you're new to Linux/scripting/command line; check readme file for instructions.
[Android Software/Hacking General [Developers Only]] Quantenkosmos:
more than 2GB - 4GB

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

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

and line 508

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

IMG_SIZE=4095

"./locales/en_text.conf"

line 54

set_imgsize_4='4) 4 gig'

line 59

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).
[Android Software/Hacking General [Developers Only]] userdelroot:
I plan on adding 4 gigs to script but it may not work on devices
[Android Software/Hacking General [Developers Only]] Earl831SC:
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
[Android Software/Hacking General [Developers Only]] luvher:
Damn.. that's it!! Now i can create images in the size that i want :) tested up to 8GB will test more these days..

Anyone ever succesfully installed "Ubuntu Software Center" or something familiar? get bunches of errors after installing..

And someone tried to use Google Chrome (Chromium) with Chromecast? Was able to mirror Tabs :) but when i try to mirror the whole screen i get an error message??

Thx again to userdelroot for the script and Quantenkosmos for the tip with the imagesizes :)
[Android Software/Hacking General [Developers Only]] userdelroot:
Those that provided your device information thank you.

I updated the Device List.
[Android Software/Hacking General [Developers Only]] lionking8600:
Okay this is what I keep getting

More permission errors
[Android Software/Hacking General [Developers Only]] userdelroot:
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?
[Android Software/Hacking General [Developers Only]] userdelroot:
You must run the command as root.

In a terminal or using adb make sure you

su

then run the command sh iom
[Android Software/Hacking General [Developers Only]] lionking8600:
Does anyone know where I can get the stock kernel? Switching kernels means I loose all the Se goodies, including private mode and all the files in it.
[Android Software/Hacking General [Developers Only]] userdelroot:
Ask in Linux deploy thread. this is not Linux deploy
[Android Software/Hacking General [Developers Only]] lionking8600:
Sorry my bad, can you point me in the right direction?
[Android Software/Hacking General [Developers Only]] userdelroot:
Sorry. I don't even know if they have a post on Xda. I would use this script as it worked for a lot of users.
[Android Software/Hacking General [Developers Only]] JayjohnX:
can not mount image

Hello,

I am trying to get it running on my s4 mini.

Anyhow always when I try to mount the linux.img it says: mount: permission denied (are you root?)

(please see the attached screenshot)

You probably first recommend me to check if I have my phone properly rooted and if I have the root privileges. Yes I have both.

For rooting I used this: http://xdaforums.com/showthread.php?t=2364980

It worked successfully. The App RootChecker says, Phone successfully rooted, the App SuperSU also.

I installed Terminal Emulator for the Install or Mount and also BusyBox X+ for some missing commands. Both are in the list of SuperSU and when I am starting Terminal Emulator and typing "su" a message tells me that I have SuperUser rights.

Also the installation of Install or Mount was without any error - except at the end when it was trying to mount the linux.img.

I searched the forum and google for this problem - but all solutions are concerning problems when the users didn't type su or haven't properly rooted or something similar.

Thanks
[Android Software/Hacking General [Developers Only]] userdelroot:
so you ran sh iom selected the install options first?
[Android Software/Hacking General [Developers Only]] JayjohnX:
Yes. Installation ran until it is trying to mount, then it has shown the same error like when I try to start it (shown in Screenshot).
[Android Software/Hacking General [Developers Only]] JayjohnX:
Does nobody had something similar before?
[Android Software/Hacking General [Developers Only]] JayjohnX:
Hay anyone used the ROM mentioned here in the forum (http://xdaforums.com/showthread.php?t=2364980) for rooting and was successful by using IOM? Or what type of ROM are you using and why?
[Android Software/Hacking General [Developers Only]] Cypher2:
not getting past the utilities check - saying ar is unavailable. busybox is installed as I'm running CM 11 M9 on a TF700T.

any help?
[Android Software/Hacking General [Developers Only]] JayjohnX:
Seems to be dead here - really sad. because it is such a great idea...
[Android Software/Hacking General [Developers Only]] djensen777:
Script working on Note Pro 12.2 SM-P905V (Verizon), but sudo apt-get update or upgrade is no go.

Cannot find right root password, or let me change it. Need help please.
[Android Software/Hacking General [Developers Only]] Pulsa:
[MENTION=2819483]userdelroot[/MENTION] how to do this, can anyone help me?

Sent from my XZ1, XSP, and X8
[Android Software/Hacking General [Developers Only]] cliff p:
You need to hold the volume up while pressing either W or S (up or down, respectively). In the top right of your terminal app, click the ... to select special keys if you want to know what other keys do
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
Vol Up twice and W (up) or D (down) or just hit Enter.

You have special chars in terminal. Push dialog button and select Special chars.

[MENTION=2819483]userdelroot[/MENTION]: Another error if I choose image size > 1.5GB.
[Android Software/Hacking General [Developers Only]] userdelroot:
Yes, if everyone can report back that it installed. However it should in theory work on all newer devices.

I'm gonna try my Samsung Galaxy Nexus later.
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
Oukej, Sony Xperia P CM11 4.4.2 Works!
[Android Software/Hacking General [Developers Only]] cliff p:
[MENTION=2819483]userdelroot[/MENTION] -

AT&T Samsung Galaxy Note II (SGH-I317)

Temesek Unofficial CM11 Build: http://xdaforums.com/showthread.php?t=2596887

Standard flash, nothing added (no busybox install from Google Play, etc.)

Installs fine with latest alpha. Haven't had a chance to play with it using vnc. Any thoughts on running VNC viewer from the phone to connect with the ubuntu installation? I'd like to play with it from the phone directly.

Also, do you plan to maybe have a launcher in the future that will allow you to launch ubuntu?
[Android Software/Hacking General [Developers Only]] userdelroot:
Once it installs it should give you a prompt as user nexus?

Once at this prompt type

sh lxdestart.sh

Look at the IP provided.

In android open a vnc viewer and connect to IP

Use the password you entered during install.

Connect and you have full lxde Linux GUI

:)
[Android Software/Hacking General [Developers Only]] ONDR4SH3K:
This is tutorial for functionally VNC server, if you want:

Add new line/s bottom and save:

exit from chroot and start linux again with -z param

Start VNC client and join to server. Default port is: 5901
[Android Software/Hacking General [Developers Only]] DJW6927:
I tried on a HTC One running Dirty Unicorns... this mean anything to anyone?

[OK]

/proc: [OK]

/dev/pts: [OK]

/dev/shm: [OK]

debootstrap second stage

I: Installing core packages...

W: Failure trying to run: dpkg --force-depends --install /var/cache/apt/archives/base-files_6.5ubuntu6_armhf.deb /var/cache/apt/archives/base-passwd_3.5.24_armhf.deb

[fail]

Failure bailing out
[Android Software/Hacking General [Developers Only]] cliff p:
Thanks I guess I should have looked at the address. As an aside I ended my session earlier. In order to restart the Ubuntu installation, what is the command, or where is it located? My chroot folder is empty and sh Ubuntu yields bad syntax.

---------- Post added at 04:58 PM ---------- Previous post was at 04:54 PM ----------

Never mind I'm an idiot. RTFM ha!

---------- Post added at 05:24 PM ---------- Previous post was at 04:58 PM ----------

Works fantastic. ;). Would be really cool to get ahold of ubuntu's mobile source and incorporate it. Great work though! I'm going to play around with some stuff
[Android Software/Hacking General [Developers Only]] userdelroot:
Ubuntu Touch is possible
[Android Software/Hacking General [Developers Only]] TheEdgeOfRage:
You sir are the mother of God. This is more than I actually needed :D.
[Android Software/Hacking General [Developers Only]] Benko111:
Same here, but different error. In the end it aborts saying [sh: applet not found], see screenshot.

Galaxy S3 on SlimBean 4.3 and Busybox of course installed.

Any help?
[Android Software/Hacking General [Developers Only]] userdelroot:
i will but it is difficult for me right now. hard drive failure / failing. reinstalling on new drive..

with that said....

if you get it working on your device please send me a private message with the following

thanks
[Android Software/Hacking General [Developers Only]] userdelroot:
ill work on this tonight