mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
put mediamtx user in video group
This commit is contained in:
@@ -63,6 +63,7 @@ If the script installs the sample config, it will remind you to edit `/etc/rover
|
||||
```
|
||||
|
||||
`roverd` requires access to `/dev/ttyAMA0` and `/sys/class/gpio`; keeping it under its own user ensures the rest of the system stays isolated.
|
||||
`mediamtx` needs read access to the camera devices (`/dev/media*`, `/dev/video*`), so the install script adds its service account to the `video` group; if you created the user manually, make sure it belongs to `video`.
|
||||
**BRC note:** writing to `/sys/class/gpio/export` typically requires root on Raspberry Pi OS. Until the pulser moves to `libgpiod`, either run the service as root or set `brc.gpioPin: -1` (rover may eventually sleep).
|
||||
If you set `media.manage: true` in `/etc/roverd.yaml`, make sure the `roverd` service account can invoke `systemctl <action> <media.service>` (either run the unit as root or grant sudo privileges for that command).
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ if [[ $INSTALL_MEDIAMTX -eq 1 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ensure_user mediamtx ""
|
||||
ensure_user mediamtx "video"
|
||||
install_mediamtx_binary
|
||||
install -d -o mediamtx -g mediamtx /etc/mediamtx
|
||||
install -o mediamtx -g mediamtx -m 0644 pi/mediamtx/mediamtx.yml /etc/mediamtx/mediamtx.yml
|
||||
|
||||
Reference in New Issue
Block a user