Added more fs.protected_fifos to player_setup and configuration (#1130)

* Added mention of protected_fifos on `pipes`

* Added info about disabling protected_fifos

Added info about disabling protected_fifos at the top, to make it obvious it can apply to just about every stream time, not just Mopidy.

* Update configuration.md

* Update player_setup.md

* Update configuration.md
This commit is contained in:
Drizzt321 2023-07-14 01:28:27 -07:00 committed by GitHub
parent 7c45fb2480
commit 0cef7358c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -51,6 +51,10 @@ pipe:///<path/to/pipe>?name=<name>[&mode=create][&dryout_ms=2000]
`mode` can be `create` or `read`. Sometimes your audio source might insist in creating the pipe itself. So the pipe creation mode can by changed to "not create, but only read mode", using the `mode` option set to `read` `mode` can be `create` or `read`. Sometimes your audio source might insist in creating the pipe itself. So the pipe creation mode can by changed to "not create, but only read mode", using the `mode` option set to `read`
**NOTE** With newer kernels using FIFO pipes in a world writeable sticky dir (e.g. `/tmp`) one might also have to turn off `fs.protected_fifos`, as default settings have changed recently: `sudo sysctl fs.protected_fifos=0`.
See [stackexchange](https://unix.stackexchange.com/questions/503111/group-permissions-for-root-not-working-in-tmp) for more details. You need to run this after each reboot or add it to /etc/sysctl.conf or /etc/sysctl.d/50-default.conf depending on distribution.
### librespot ### librespot
Launches librespot and reads audio from stdout Launches librespot and reads audio from stdout

View file

@ -9,6 +9,10 @@ The goal is to build the following chain:
audio player software -> snapfifo -> snapserver -> network -> snapclient -> alsa audio player software -> snapfifo -> snapserver -> network -> snapclient -> alsa
``` ```
**NOTE** With newer kernels using FIFO pipes in a world writeable sticky dir (e.g. `/tmp`) one might also have to turn off `fs.protected_fifos`, as default settings have changed recently: `sudo sysctl fs.protected_fifos=0`.
See [stackexchange](https://unix.stackexchange.com/questions/503111/group-permissions-for-root-not-working-in-tmp) for more details. You need to run this after each reboot or add it to /etc/sysctl.conf or /etc/sysctl.d/50-default.conf depending on distribution.
## Streams ## Streams
Snapserver can read audio from several sources, which are configured in the `snapserver.conf` file (default location is `/etc/snapserver.conf`); the config file can be changed with the `-c` parameter. Snapserver can read audio from several sources, which are configured in the `snapserver.conf` file (default location is `/etc/snapserver.conf`); the config file can be changed with the `-c` parameter.