Skip to content

Instantly share code, notes, and snippets.

@scorpp
Last active July 16, 2019 14:33
Show Gist options
  • Select an option

  • Save scorpp/454304ca6c88d7e30697 to your computer and use it in GitHub Desktop.

Select an option

Save scorpp/454304ca6c88d7e30697 to your computer and use it in GitHub Desktop.

Revisions

  1. scorpp revised this gist Oct 21, 2015. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion docker-pulse-server.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1,9 @@
    docker run --rm -ti --device=/dev/snd/controlC0 --device=/dev/snd/pcmC0D0p --device=/dev/sndpcmC0D1p --device=/dev/snd/timer -p 4713:4713 rpi-deb-pulse /bin/bash -c "groupadd --gid $(ls -l /dev/snd/controlC0 | cut -d' ' -f4 | xargs getent group | cut -d: -f3) alsadev && gpasswd -a pulse alsadev && pulseaudio --system --high-priority --no-cpu-limit -v -L 'module-alsa-sink device=hw:0,0' -L 'module-native-protocol-tcp auth-ip-acl=10.2.0.0/24'"
    docker run --rm -ti \
    --device=/dev/snd/controlC0 --device=/dev/snd/pcmC0D0p --device=/dev/sndpcmC0D1p --device=/dev/snd/timer \
    -p 4713:4713 \
    rpi-deb-pulse \
    /bin/bash -c "groupadd --gid $(ls -l /dev/snd/controlC0 | cut -d' ' -f4 | xargs getent group | cut -d: -f3) alsadev \
    && gpasswd -a pulse alsadev \
    && pulseaudio --system --high-priority --no-cpu-limit -v \
    -L 'module-alsa-sink device=hw:0,0' \
    -L 'module-native-protocol-tcp auth-ip-acl=10.2.0.0/24'"
  2. scorpp created this gist Oct 21, 2015.
    1 change: 1 addition & 0 deletions docker-pulse-server.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    docker run --rm -ti --device=/dev/snd/controlC0 --device=/dev/snd/pcmC0D0p --device=/dev/sndpcmC0D1p --device=/dev/snd/timer -p 4713:4713 rpi-deb-pulse /bin/bash -c "groupadd --gid $(ls -l /dev/snd/controlC0 | cut -d' ' -f4 | xargs getent group | cut -d: -f3) alsadev && gpasswd -a pulse alsadev && pulseaudio --system --high-priority --no-cpu-limit -v -L 'module-alsa-sink device=hw:0,0' -L 'module-native-protocol-tcp auth-ip-acl=10.2.0.0/24'"