Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-10 Thread Bo Berglund
OK, I have now subscribed to the fpc-other list. Hopefully I can ask "stupid" fpc usage questuions there... Best Regards, Bo Berglund -Original Message- You just mentioned that you don't like to subscribe to mailing lists because you already receive many mails. By posting mails on

Re: [fpc-pascal] Access GPIO pins on RPi2 without root? [lenghty and very [OT] ]

2015-10-09 Thread Lukasz Sokol
On 09/10/15 08:50, Bo Berglund wrote: > On Thu, 08 Oct 2015 22:01:49 +, Mark Morgan Lloyd > wrote: >>> Sorry for causing a problem here... >>> The lists you refer to are not present in the Gmane newsserver as a >>> newsgroup so I cannot access it. >> >> I

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-09 Thread Marc Santhoff
On Fr, 2015-10-09 at 09:50 +0200, Bo Berglund wrote: > On Thu, 08 Oct 2015 22:01:49 +, Mark Morgan Lloyd > wrote: > >> I will try to locate an updated pigpio.pas file by asking in the > >> Lazarus forum instead. > > > >I would strongly suggest going

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-09 Thread Mark Morgan Lloyd
Jonas Maebe wrote: Bo Berglund wrote: I have asked about this on the Pi forum instead, but I fear noone (almost) over there use free-pascal so I have no high hopes. The point is that this question is completely unrelated to Pascal or Free Pascal. It's a basic Unix/Linux usage question, which

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-09 Thread Lukasz Sokol
On 09/10/15 09:33, Jonas Maebe wrote: > Bo Berglund wrote: >> I have asked about this on the Pi forum instead, but I fear noone >> (almost) over there use free-pascal so I have no high hopes. > > The point is that this question is completely unrelated to Pascal or > Free Pascal. It's a basic

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-09 Thread Jonas Maebe
Bo Berglund wrote: I have asked about this on the Pi forum instead, but I fear noone (almost) over there use free-pascal so I have no high hopes. The point is that this question is completely unrelated to Pascal or Free Pascal. It's a basic Unix/Linux usage question, which is independent of

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-09 Thread Bo Berglund
On Thu, 08 Oct 2015 22:01:49 +, Mark Morgan Lloyd wrote: >> Sorry for causing a problem here... >> The lists you refer to are not present in the Gmane newsserver as a >> newsgroup so I cannot access it. > >I suggest setting up a direct subscription using

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-08 Thread Henry Vermaak
On Wed, Oct 07, 2015 at 01:09:58PM +0200, Bo Berglund wrote: > On Wed, 07 Oct 2015 10:05:03 +0200, Jonas Maebe > wrote: > >Bo Berglund wrote on Wed, 07 Oct 2015: > > > >> How can one control the GPIO outputs on a Raspberry Pi2 without > >> needing the program to run as

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-08 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On Wed, Oct 07, 2015 at 01:09:58PM +0200, Bo Berglund wrote: On Wed, 07 Oct 2015 10:05:03 +0200, Jonas Maebe wrote: Bo Berglund wrote on Wed, 07 Oct 2015: How can one control the GPIO outputs on a Raspberry Pi2 without needing the program to

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-08 Thread Bo Berglund
On Thu, 08 Oct 2015 13:15:10 +, Mark Morgan Lloyd wrote: >> You access the GPIOs via the kernel's sysfs interface. The files are >> all under /sys/class/gpio. I'd be pretty amazed if your distro doesn't >> already have a udev rule to set a certain group

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-08 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 08 Oct 2015 19:48:54 +, Mark Morgan Lloyd wrote: Do not, under any circumstances, try to fiddle with the permission of those files/directories. Instead, add the gpio group to your normal user (as I have already said). Jonas

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-08 Thread Bo Berglund
On Thu, 08 Oct 2015 19:48:54 +, Mark Morgan Lloyd wrote: >Do not, under any circumstances, try to fiddle with the permission of >those files/directories. Instead, add the gpio group to your normal user >(as I have already said). > >Jonas has already

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-08 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 08 Oct 2015 13:15:10 +, Mark Morgan Lloyd wrote: You access the GPIOs via the kernel's sysfs interface. The files are all under /sys/class/gpio. I'd be pretty amazed if your distro doesn't already have a udev rule to set a

[fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-07 Thread Bo Berglund
How can one control the GPIO outputs on a Raspberry Pi2 without needing the program to run as root? I am using Raspbian Wheezy and I need to add two relays controls to my program. The pages I have found with google are for the original Pi so the connector referenced is the wrong size and it is

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-07 Thread leledumbo
>How can one control the GPIO outputs on a Raspberry Pi2 without needing the program to run as root? sudo chown root sudo chmod 4755 The 4 is setuid bit, which will allow normal users to run the program but the program itself has root privilege. -- View this message in context:

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-07 Thread Lukasz Sokol
On 07/10/15 08:02, Bo Berglund wrote: > How can one control the GPIO outputs on a Raspberry Pi2 without > needing the program to run as root? I am using Raspbian Wheezy and I > need to add two relays controls to my program. > The pages I have found with google are for the original Pi so the >

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-07 Thread Jonas Maebe
Bo Berglund wrote on Wed, 07 Oct 2015: How can one control the GPIO outputs on a Raspberry Pi2 without needing the program to run as root? I am using Raspbian Wheezy and I need to add two relays controls to my program. This really has nothing to do with either FPC or Pascal programming in

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-07 Thread Michael Van Canneyt
On Wed, 7 Oct 2015, Mark Morgan Lloyd wrote: Jonas Maebe wrote: Bo Berglund wrote on Wed, 07 Oct 2015: I think that it really does because there must be some interface between the FPC system and the underlying operating system managing the hardware. On Linux/Unix, every interface to

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-07 Thread Mark Morgan Lloyd
Jonas Maebe wrote: Bo Berglund wrote on Wed, 07 Oct 2015: I think that it really does because there must be some interface between the FPC system and the underlying operating system managing the hardware. On Linux/Unix, every interface to hardware gets exposed as a file (generally under