From 0cef7358c9bf9fb9ffaae4dd943ab2c0dc758251 Mon Sep 17 00:00:00 2001 From: Drizzt321 Date: Fri, 14 Jul 2023 01:28:27 -0700 Subject: [PATCH] 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 --- doc/configuration.md | 4 ++++ doc/player_setup.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/doc/configuration.md b/doc/configuration.md index ae2037d6..0454fb53 100644 --- a/doc/configuration.md +++ b/doc/configuration.md @@ -51,6 +51,10 @@ pipe:///?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` +**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 Launches librespot and reads audio from stdout diff --git a/doc/player_setup.md b/doc/player_setup.md index 7e5925d9..0143fad8 100644 --- a/doc/player_setup.md +++ b/doc/player_setup.md @@ -9,6 +9,10 @@ The goal is to build the following chain: 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 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.