Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

PulseAudio is the standard audio server in desktop installations. However in a server installation audio services and thus PulseAudio are not provided.

How do I install and make use of PulseAudio in a headless server?

share|improve this question
up vote 13 down vote accepted

Install ALSA

$ sudo apt-get install libasound2 libasound2-plugins alsa-utils alsa-oss

Install PulseAudio:

$ sudo apt-get install pulseaudio pulseaudio-utils

Set Group Memberships for PA:

$ sudo usermod -aG pulse,pulse-access <username>

Run the PulseaudioServer:

$ pulseaudio -D

Following command tells us if a sink is recognized by PulseAudio:

$ pacmd list-sinks

Remember sinkname for output below.

This command will play a sound file to a given sink:

$ pacmd play-file <filename> <sinkname>

We may need to unmute audio devices:

  • for ALSA: use alsamixer
  • for Pulseaudio: use pacmd set-sink-mute n 0 where n is the sink index (likely 0)

For further CLI commands see also the Pulse Audio Wiki

To configure Pulseaudio Server to our needs we may need to edit /etc/pulse/ and /etc/pulse/daemon.conf that come with self-explanatory. notes.

For testing the soundsystem see alsoSound Troubleshooting Guide

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.