Comments (3)
Hi,
PiPiper needs root permission to work, it access to /dev/mem (via a kernel module or directly wih the C library) which need root permission.
As it is not advised to run a webserver as root, I will recommend you to escalate permissions only for a PiPiper dedicated process, there is an issue about it, but nothing as been properly written as of now.
If you make any progress on this front keep us up to date.
from pi_piper.
I'm not going to say it's the best idea performance becomes an issue when running the full rails stack but ... This is a site I wrote to do LED stuff: https://github.com/bguest/blinky... If you look at the pusher_example branch its pretty basic. Also, yeah, you need to deploy to root.
Also, here's a write up on how to set up the pi: http://www.blogithub.com/bguest/pi_on_rails ...
from pi_piper.
So after much trial and error I end up installing everything as root. I could not get rails to write to GPIO pins with out installing ruby, rails, pi piper all as root. It works, but there has to be a better way other than installing as root.
from pi_piper.
Related Issues (20)
- Is Pi_Piper ready for RPi 3 ? HOT 4
- Pin.on?/.off? notworking ?
- Seg fault HOT 1
- Gem Version 2.0? HOT 1
- Output pin turns back on after exit HOT 2
- Resource Not Available HOT 2
- Yet Another Problem HOT 9
- Sorry if it's a noob question... HOT 9
- Can't read correct values from a rpi B 1 HOT 5
- One-wire monitoring with PiPiper HOT 2
- Why is lib/pi_piper/driver.rb empty method definitions? HOT 3
- OpenWRT? HOT 1
- tegv
- Behavior of after/watch not as expected HOT 1
- Example of i2c
- Issue with ffi gem dependency
- RPi 3+ 64bits HOT 1
- Race condition on non root user when PiPiper::Pin.new HOT 1
- pi_piper with gtk aborts ruby interpreter (RPi Raspbian Stretch) HOT 1
- Examples with tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi_piper.