FORUMS

XDA Recap: This Week In Android (Apr 26 – May 2)

Here in the digital XDA newsroom, we spend our days pouring over an average of … more

Sunday Debate: Great Camera Hardware, or Software?

Join us in a fun Sunday Debate on phone cameras. Come with your opinions and feel … more

XDA Picks: Best Apps of the Week (Apr 25 – May 1)

Apps are at the front and center of any smartphone experience, and with over a … more

Lollipop Xposed Framework Alpha 4 Released

Good news to all Xposed Framework fans. XDA Senior Recognized … more
Post Reply Subscribe to Thread Email Thread

[Q] Has anyone successfully run Complete Linux Installer (or similar)

19th April 2014, 12:51 AM |#1  
OP Junior Member
Thanks Meter: 9
 
More
Hi everyone, I'm trying to get a full blown GNU distro of Linux running on my note pro but I've hit a snag. It seems like the device should support it, but every time I try to run a script that creates loopback devices, mounts directories, etc. I get permission errors even though I definitely have root.

Here's where it gets weird. Completel Linux installer fails when it tries to run this command:

Code:
mknod /dev/block/loop255 b 7 255
and it gives this error:

Code:
mknod: /dev/block/loop255: Operation not permitted
Despite what the error says, the script is being run as root. The app automatically opens the terminal and runs the command as root, but I also tried manually executing su and running the same script but the same error occurs.

As an experiment, I tried manually running just that one mknod commad and it works fine. In fact, if I manually execute every line in the bootscript.sh file it all seems to execute perfectly fine. But if I put the exact same mknod command into a .sh file and execute it like this:

Code:
> sh test.sh
Then it gives the same error. Interestingly, if I directly run mknod as a non-root user it does not give me the "Operation not permitted" error, instead it says "Permission denied". I tried some other apps like Debian Kit as well and they seem to give the same error.

Any ideas why it would matter whether I manually enter a command into the terminal or whether I execute the same command indirectly from a file? I tried other terminal apps as well and it made no difference.

Thanks.
 
 
19th April 2014, 05:41 AM |#2  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by Graeme H

Hi everyone, I'm trying to get a full blown GNU distro of Linux running on my note pro but I've hit a snag. It seems like the device should support it, but every time I try to run a script that creates loopback devices, mounts directories, etc. I get permission errors even though I definitely have root.

Here's where it gets weird. Completel Linux installer fails when it tries to run this command:

Code:
mknod /dev/block/loop255 b 7 255
and it gives this error:

Code:
mknod: /dev/block/loop255: Operation not permitted
Despite what the error says, the script is being run as root. The app automatically opens the terminal and runs the command as root, but I also tried manually executing su and running the same script but the same error occurs.

As an experiment, I tried manually running just that one mknod commad and it works fine. In fact, if I manually execute every line in the bootscript.sh file it all seems to execute perfectly fine. But if I put the exact same mknod command into a .sh file and execute it like this:

Code:
> sh test.sh
Then it gives the same error. Interestingly, if I directly run mknod as a non-root user it does not give me the "Operation not permitted" error, instead it says "Permission denied". I tried some other apps like Debian Kit as well and they seem to give the same error.

Any ideas why it would matter whether I manually enter a command into the terminal or whether I execute the same command indirectly from a file? I tried other terminal apps as well and it made no difference.

Thanks.




try source the script ,eg: . test.sh, this works but i don't know why.
The Following User Says Thank You to pheyx For This Useful Post: [ View ]
21st April 2014, 05:27 AM |#3  
OP Junior Member
Thanks Meter: 9
 
More
Good idea pheyx! That's a great workaround which basically solves my problem for now... or at least sends me on to the next problem

Thanks for you help.
21st April 2014, 08:04 AM |#4  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by Graeme H

Good idea pheyx! That's a great workaround which basically solves my problem for now... or at least sends me on to the next problem

Thanks for you help.

I think I've found the reason. It's due to selinux. The selinux is set to enforced on android from 4.4. I flashed a kernel that sets selinux to permissive and it resolved the issue. Now the complete linux installer ran perfectly without modifying the scripts.
21st April 2014, 08:05 PM |#5  
Senior Member
Thanks Meter: 111
 
More
Quote:
Originally Posted by pheyx

I think I've found the reason. It's due to selinux. The selinux is set to enforced on android from 4.4. I flashed a kernel that sets selinux to permissive and it resolved the issue. Now the complete linux installer ran perfectly without modifying the scripts.

how well is Linux running on it for you?

Sent from my SM-P900 using XDA Premium HD app
26th April 2014, 12:19 AM |#6  
Member
Thanks Meter: 7
 
More
Yeah, how well is it running?

I guess it's out of the question both due to speed (Complete Linux Installer uses laggy VNC remote desktop) and hardware (I guess the stylus won't work pressure-sensitive-ish due to VNC), but I'd love to run MyPaint on NotePRO.
26th April 2014, 11:34 AM |#7  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by Duly.noted

how well is Linux running on it for you?

Sent from my SM-P900 using XDA Premium HD app

Quote:
Originally Posted by Redsandro

Yeah, how well is it running?

I guess it's out of the question both due to speed (Complete Linux Installer uses laggy VNC remote desktop) and hardware (I guess the stylus won't work pressure-sensitive-ish due to VNC), but I'd love to run MyPaint on NotePRO.

X Window performance is bad if using VNC, is better when using xsdl x server. Also can use fbdev(or fbturbo) native x server(and the cons is in either case must shutdown android stack),but I have no success using these two linux native x server
Post Reply Subscribe to Thread

Tags
bash, linux
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes