Before I get round to setting up Forked-DAAPD on my Pi, I’ll need to get Bluetooth audio working.
First we’ll install PulseAudio and the Bluetooth Module
sudo apt-get install pulseaudio pulseaudio-module-bluetooth
Grant many permissions to pulseaudio and audio by adding the root and pi users to the following groups
sudo adduser pi pulse
sudo adduser pi pulse-access
sudo adduser pi audio
sudo adduser root pulse
sudo adduser root pulse-access
sudo adduser root audio
Next we’ll need to amend the system.pa file that PulseAudio uses for configuration.
sudo nano /etc/pulse/system.pa
Add the following lines at the bottom of the file
Now get PulseAudio running as system. Don’t worry if the first command says “Failed to kill daemon” as it just means PulseAudio wasn’t running already. Eventually we’ll set this to run at startup.
sudo pulseaudio --system
At this point PulseAudio is running in your current session, which renders this terminal session unable to do anything else, so open up another connection and login so we can connect the Bluetooth Speaker
You should now be connected to your bluetooth speaker so we can configure Forked-DAAPD