Step 2 – Update the OS and retrieve MPD using the apt-get command.
sudo apt-get update
sudo apt-get install mpd mpc
In the second line we added mpc so that we can control MPD in later steps.
Step 2bis – For Raspbian Jessie Full only.
If you type
fuser -fv /dev/snd/*
you will get something like this
USER PID ACCESS COMMAND
/dev/snd/controlC0: pi 758 F.... lxpanel
to show that the audio card is busy because of controls within the GUI. The quickest way for a workaround is to change the booting option for Rasbian so that it starts in console mode.
Then choose “Boot Options” -> “Desktop / CLI” -> “Console” and reboot for the changes to take effect.
Running once again the command above should not return anything indicating that the sound card has been freed up.