|Re: running Lua Remote Application - Permission denied [message #1062904 is a reply to message #1062903]
||Tue, 11 June 2013 10:46
| Benjamin Cabé
Registered: July 2009
Location: Toulouse, France
As you noticed you should be a superuser indeed for manipulating the GPIO. Therefore, instead of connecting to your remote system using pi/raspberry as I am pretty sure you are doing, you should rather create a root user and then configure your remote system in Eclipse to use this login.
Enabling the root user is pretty simple, see http://www.instructables.com/id/Control-Stuff-with-your-Raspberry-Pi-GPIO/step2/Root-account/
Also, maybe doing something as the following should work, maybe?
> os.execute("sudo echo GPIO4 > /sys/class/gpio/export")
On a side note, have you looked at Mihini? We are working on providing a nice GPIO API in it (see this branch) but that still requires super-privileges.
My blog: http://blog.benjamin-cabe.com
[Updated on: Tue, 11 June 2013 10:46]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01812 seconds