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?
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?
Install ALSA
Install PulseAudio:
Set Group Memberships for PA:
Run the PulseaudioServer:
Following command tells us if a sink is recognized by PulseAudio:
Remember sinkname for output below.
This command will play a sound file to a given sink:
We may need to unmute audio devices:
alsamixer
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/default.pa
and/etc/pulse/daemon.conf
that come with self-explanatory. notes.For testing the soundsystem see alsoSound Troubleshooting Guide