Installing the Music Player Daemon

By this stage you will now have a Raspberry Pi with a touch screen display.  If you used the Easy Install Image you should now have access to the console via the touch screen display.

Additional instructions on using the console

At this stage it is worth checking that your Raspberry Pi is up to date before continuing.

Download: file
sudo apt-get update

Now we can install mpc and mpd - the music player client and 'daemon' background controller - and add some radio stations to your play list.

The example stations listed below are BBC channels from the UK, but look around for your own favorite types of music!

Download: file
sudo apt-get install mpd mpc
mpc add http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio1_p?s=1365376033&e=1365390433&h=a0fef58c2149248d6bff1f7b7b438931
mpc add http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio2_p?s=1365376067&e=1365390467&h=d43dc8ae0f888809462a6cb7c389b46b
mpc add http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio3_p?s=1365376123&e=1365390523&h=d53cf2a92272f3289b314a2251d23bc8
mpc add http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio4_p?s=1365376126&e=1365390526&h=ed9a0642b30c422b07fbcd8683c52335
mpc add http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_5live_p?s=1365376271&e=1365390671&h=e0d82133f35ae74d41d5eab6b9c150a6

You can now check that mpc is working by starting a radiostation.  Don't forget to plug in your headphones!

Download: file
mpc play

A note on playlists

A copy of your playlist can be saved with the command

Download: file
mpc save my_playlist

The playlist is saved in /var/lib/mpd/playlists/

The playlist can be hand-edited with

Download: file
sudo nano /var/lib/mpd/playlists/my_playlist

Once edited the playlist can be loaded back into mpc with

Download: file
mpc load /var/lib/mpd/playlists/my_playlist

I have a number of playlists saved in /var/lib/mpd/playlists with different genres depending on my mood

This guide was first published on Aug 27, 2014. It was last updated on Aug 27, 2014. This page (Installing the Music Player Daemon) was last updated on May 18, 2019.