Skip to content

Instantly share code, notes, and snippets.

@johannilsson
Created December 7, 2013 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johannilsson/7841175 to your computer and use it in GitHub Desktop.
Save johannilsson/7841175 to your computer and use it in GitHub Desktop.
Notes for getting Spotify to run o a Raspberry Pi.

Spotify on Raspberry Pi

Notes for getting libspotify to run on a RPi.

sudo apt-get install libasound2-dev
sudo apt-get install alsa-utils

Not completly sure if this was needed but found it in my history. But should allow playback using the rca cable.

amixer cset numid=3 1

Install libspotify.

wget ....
tar -xzf libspotify-12.1.103-Linux-armv6-bcm2708hardfp-release.tar.gz
cd tar -xzf libspotify-12.1.103-Linux-armv6-bcm2708hardfp-release
sudo make install prefix=/usr/local
cd share/doc/libspotify/examples/

Get a app key from Spotify and add it to appkey.c.

Compile the jukebox example.

cd jukebox
make

Start the jukebox;

./jukebox -u USERNAME -p PASSWORD -l myjukebox

References

http://jeffskinnerbox.wordpress.com/2012/11/15/getting-audio-out-working-on-the-raspberry-pi/

http://devnews.spotify.com/2013/01/22/libspotify-12-for-hardfloat-armv6-raspberry-pi-beta/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment