Skip to content

Instantly share code, notes, and snippets.

@morgoth
Last active September 28, 2015 16:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morgoth/1468756 to your computer and use it in GitHub Desktop.
Save morgoth/1468756 to your computer and use it in GitHub Desktop.
Pulseaudio sound server configuration
# Configuring sound server
# Tested on Ubuntu 11.10
sudo apt-get install pulseaudio-module-zeroconf
# Change /etc/default/pulseaudio file on server to contain:
PULSEAUDIO_SYSTEM_START=1
DISALLOW_MODULE_LOADING=1
# Change /etc/pulse/system.pa to contain:
load-module module-esound-protocol-tcp
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.0/16
load-module module-zeroconf-publish
# where 192.168.1.0/16 is allowed IP pool to connect
# Restart pulseaudio:
sudo /etc/init.d/pulseaudio restart
# Now you should be able to run from your local machine i.e.
PULSE_SERVER=192.168.1.101 mplayer some-movie.avi
# where 192.168.1.101 is IP of your sound server
# If something doesn't work, try restarting server ;-)
# Tested on Ubuntu 13.10
sudo apt-get install pulseaudio-module-zeroconf
# We will not use system wide configuration for pulseaudio.
# Change /etc/pulse/default.pa to contain:
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.0/16
# Stop pulseaudio:
pulseaudio --kill
# You may check to be sure that in /etc/default/client.conf there is no autospawn=no directive
# Pulseaudio will autospawn on each sound usage
# If there are some permission problems you may add mpd user to pulse, pulse-access and audio groups
# Now you should be able to run from your local machine i.e.
PULSE_SERVER=192.168.1.101 mplayer some-movie.avi
# where 192.168.1.101 is IP of your sound server
# If something doesn't work, try restarting server ;-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment