When I first began using the RPi for Internet radio, it
had a real problem with loud pops when changing
stations. So loud, in fact, as to almost make this
arrangement unusable. Recently, however, I reloaded my
RPi with the 02-09-2013 version of the Raspbian operating
system (available from raspberrypi.org); this problem
seems to have been fixed.
If you have an older version of the operating system
software on your RPi, I strongly suggest reloading it with
this new version. You can follow the directions in my
March 2013 article, "Raspberry Pi, Anyone?" All of the
initial configuration described in that article is still
appropriate and should be done before proceeding.
Assuming we are starting with a newly loaded RPi
image, we will first get the Wi-Fi working, then update the
OS software with all the newest packages. Next, we will
update the RPi firmware and install a series of packages
required to run MPD. Finally, we will configure MPD for
To get started, insert the SD memory card with the
operating system into the RPi and make all of the
connections listed in the hardware section above. Once
power is applied, your RPi should boot and take you into
raspi-config automatically if you haven't done your initial
configuration already, or to the command prompt if you
have. At this time, please log in with the username of pi
and the password of raspberry.
1. At the command prompt, type startx to start up the
Graphical User Interface (or GUI).
2. Click on the Wi-Fi Config icon to configure your
RPi for wireless operation. If you are going to use a
wired network connection, skip to step 6.
3. From the app's menu, click Network and then Add.
4. Input the SSID or name of your wireless network,
and select the appropriate Authentication method
for your network, if any. My wireless network uses
WPA2 — Personal authentication, but yours may be
different. Finally, type your network password into
the PSK field.
5. Click the Add button and if all is well, your RPi
should connect to your wireless network. If it
doesn't, check to see that you have the correct
SSID, Authentication, and PSK values set.
6. Click on the LXTerminal icon on the desktop to
bring up a shell window.
7. Type sudo apt-get update to allow your RPi to
determine all of its OS packages that are out of
8. Type sudo apt-get upgrade to install all of the new
9. Once the upgrade is complete, type sudo reboot to
restart your system. A reboot is necessary to utilize
all of the new software you just installed.
52 August 2013
10. Log back in and run startx again. This time, click
the Midori icon to bring up the browser. Type
github.com/hexxeh/rpi-update into the location
11. Also click on the LXTerminal icon to bring up a
12. In the shell, type sudo apt-get install git-core to
load some more software we will need.
13. We will now download and install the RPi
firmware updater so that our system can be
completely updated, both in terms of its firmware
and its OS software. In the Midori window, scroll
down to the Installing section and highlight the
long command that begins with sudo wget …
Once highlighted, copy it to the clipboard and
then paste it into the LXTerminal window to
14. To run the firmware updater, type sudo rpi-update.
15. After this process completes, reboot your system
again and log back in.
16. Next, we will install software that will automount
any USB Flash drives plugged into the RPi. This
means that if you plug in a new Flash drive, the
system will recognize it automatically without you
having to do anything. Type sudo apt-get install
usbmount. When completed, type sudo service
udev restart to make the system begin using the
17. To test that automounting is working, list the
content of the directory /media/usb0 using the
command ls /media/usb0. The directory should be
empty. Plug in a Flash drive with some files on it
into the USB hub and run the command again.
This time, the content of the Flash drive should be
visible in the directory listing. If not, reboot and
18. Finally, install MPD and MPC using the command
sudo apt-get install mpc mpd. We install MPD
because we need it; we install MPC to help in
testing the MPD server.
19. Next, we need to edit the MPD configuration file
that was just installed. We will invoke the vi
program editor with the following command line:
sudo vi /etc/ mpd.conf. You can use another editor
if you are more comfortable with it.
20. Find the music_directory line in the file and
change its value in double quotes to "/media
/usb0." This tells MPD where to look for music
files. Next, find the bind_to_address line and
replace "localhost" with "any." This allows us to
interact with the MPD server remotely. Next, find
the line #mixer_type "software" and remove the #
sign. Finally, find the line #autoupdate "yes"; first
remove the sign, and then change "yes" to "no."
Save the changes to the file with the command
:wq if using vi.