Get a Complete Set of Logs with Andy Log

The importance of proper logging is undeniable. No, we’re not talking about lumberjack work. … more

Try Some Android Lollipop Applications on Your Device

Android 5.0 Lollipop has been officially announced and lucky users of Google Nexus 5 … more

AutoCon Manages Your Connections to Perserve Battery Life

As we’ve talked about in the past, battery life is still somewhat of a sore … more

How to Unlock and Root a Nexus Device – XDA TV

It is official–Google has released the Nexus 6 and the Nexus 9. The Nexus family … more
Post Reply

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

OP Graeme H

19th April 2014, 12:51 AM   |  #1  
OP Junior Member
Thanks Meter: 8
 
19 posts
Join Date:Joined: Jan 2010
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
 
4 posts
Join Date:Joined: Feb 2013
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: 8
 
19 posts
Join Date:Joined: Jan 2010
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
 
4 posts
Join Date:Joined: Feb 2013
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: 104
 
499 posts
Join Date:Joined: Dec 2013
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: 6
 
62 posts
Join Date:Joined: Jul 2012
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
 
4 posts
Join Date:Joined: Feb 2013
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


Top Threads in Galaxy Note Pro 12.2 Q&A, Help & Troubleshooting by ThreadRank