Comments (9)
Unfortunately using raw sockets requires root privileges. As far as I can tell you have to options, either you run homebridge as root or you give the user that is running homebridge the CAP_NET_RAW
(see $ man 7 capabilities
.) I don't personally have experience with the CAP_NET_RAW
, I run homebridge as root on a dedicated Pi.
from homebridge-wol.
Aaaah good to know I'll check it! Okay maybe I'd just run homebridge as root, I don't think that this would have any disadvantages. But please correct me if there are things I should keep an eye, when running hombridge as root.
Thanks a lot @blubber !
from homebridge-wol.
Well, running it as root implies trust, the root user can do literally everything on the computer. You are downloading and installing software from the internet, it's up to you to decide whether or not you trust the homebridge and plugin developers.
This is not just homebridge specific by the way, it goes or anything you run as root.
from homebridge-wol.
I have the same issue with the homebridge-people-plus plugin on a raspberry pi. I got it to run by copying the config.json file to root/.homebridge and running sudo homebridge. But how do I get this to run from the default /home/pi folder the way it should? How can I give user pi the permission it needs? - thanks
from homebridge-wol.
@AAShepAA I think there’s a note about it in the readme about “capabilities”. Please try that solution and come back whether it works or not.
from homebridge-wol.
from homebridge-wol.
@AAShepAA I meant in the readme for this package.
from homebridge-wol.
from homebridge-wol.
@AAShepAA here you go, the commit that added the note: 6e1ef14
I hope it solves your issue.
from homebridge-wol.
Related Issues (20)
- WOL doesn't work after extended time
- Network Device Ping Status every Time offline
- Settings for mac mini running Monterey
- Sleep-On-LAN (SOL)
- Can't shutdown my computer with the shutdown command
- WOL starts device, but no ping and no Online status HOT 9
- Homebridge running on docker no sambo-common
- Check if Windows PC is sleeping
- Samba Mac
- Ask for wake/start command
- Adding plugin to HomeKit
- ssh keeps asking for passphrase
- Feature Request: Add support for pingsToChange for ping commands HOT 2
- Please add icons if possible HOT 1
- Dont wake after shutdown HOT 15
- Add instruction for Enable Printer and File Sharing W10+ HOT 1
- magic packets sent not waking pc anymore HOT 14
- Unraid: setcap cap_net_raw=pe /path/to/bin/node
- Problems ssh to windows only from homebridge terminal
- Ping function for detecting the PC online not working recently HOT 2
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 homebridge-wol.