Hardware Reference
In-Depth Information
For this hack, you'll need a Spotify Premium account and an audio set, either head-
phones or a set of USB speakers. A monitor or television is not required, but might
come in handy.
Getting and Configuring the Software
Download the ready-to-go image from http://www.pimusicbox.com . For this guide, we
used Pi MusicBox version 0.4. Newer versions should generally work the same way,
though specific options could change.
After downloading the ZIP file, extract it:
$ unzip musicbox0.4.zip
Put the resulting image on your SD card (you'll need to use at least 1 GB):
$ su -c 'dd bs=4M if=musicbox0.4.img of=/dev/mmcblk0'
$ su -c 'sync'
To make it as easy as possible to configure, you can edit the settings of Pi MusicBox
from any file manager, whether you're using Linux, Mac, or Windows.
In MUSICBOX , you'll see a folder called config containing a file called settings.ini , which
you should open in a text editor. The file is structured like other ini files. All lines starting
with a ## are comments, and some configuration lines are also commented out. If you
want to use them, remove the ## at the beginning of the line.
You can also edit this file when you boot your Pi and log in (see “Getting Your Hands
Dirty” on page 243 ). The file then is located in /boot/config/ .
The most basic configuration file looks like this:
[MusicBox]
SPOTIFY_USERNAME = 'spotifyusername'
SPOTIFY_PASSWORD = 'spotifypassword'
These three settings should be enough to run Pi MusicBox:
[MusicBox]
The section name of the configuration file. It has to be there, but you can ignore
it.
spotifyusername
The username of your Spotify Premium account (or Facebook login if you use
Facebook to connect to Spotify).
spotifypassword
Your own password, of course.
Search WWH ::




Custom Search