Install the mpd and mpc packages

add snd_bcm2835 to /etc/modules

  • install the mpd and mpc packages:
    sudo apt-get install mpd mpc
  • change the permissions of mpd (just to make sure):
    sudo service mpd stop
    sudo chmod -R g+w /var/lib/mpd
    sudo chmod -R g+w /var/run/mpd
  • make a change to the mpd config file /etc/mpd.conf
    sudo nano /etc/mpd.conf
    Comment OUT the line:
    bind_to_address “localhost”
    So, change it to:
    # bind_to_address “localhost”
  • reboot your Raspberry PI:
    sudo shutdown now -r
  • after it’s up and running again add an Internet radio URL, for instance:
    mpc add http://icecast.omroep.nl/3fm-bb-mp3
  • to start playing the stream type:
    mpc play
  • some useful mpc commands (use ‘mpc help‘ to see them all):
    mpc – Display status
    mpc current – Show the currently playing song
    mpc stop – Stop the currently playing playlists
    mpc clear – Clear the current playlist

Add USB sound card 
sudo nano /etc/modprobe.d/alsa-base.conf
For all but the most recent Raspbian Wheezy releases, look for the line that reads:
#options snd-usb-audio index=0
Change this to:

options snd-usb-audio index=0

amixer cset numid=3 1 

Comments