Provide instructions to run without being root
kamaradclimber opened this issue · 1 comments
kamaradclimber commented
Common instructions (http://unix.stackexchange.com/questions/96106/bluetooth-le-scan-as-non-root) do not seem to work correctly.
We should have a way to run as non-root.
kirichkov commented
On Raspbian Jessie the common instructions used to work out of the box. In Stretch, one should install consolekit
$ sudo apt-get install consolekit
If you are still having issues on Raspbian try the following:
- Add the user (e.g.
pi
) that will be running the scanner to thebluetooth
group:
sudo adduser pi bluetooth
- Edit
/etc/dbus-1/system.d/bluetooth.conf
2.1. Find the line<policy group="bluetooth">
2.2. Add below it<allow send_interface="org.freedesktop.DBus.Introspectable"/>