Monday, May 4, 2015

Guide: Playing Spotify on Raspberry Pi 2 Without Premium

Ok, I'm going to write my first guide, so bear with me if it has any errors. You're welcome to spot them out in the comments.

So I've wanted to play Spotify on my raspberry pi to make it into a streaming client. But for this, you need a premium account. So I found a workaround for playing Spotify on the raspberry pi 2 without premium.


  1. I'm using the Ubuntu community image since it has the latest packages which I like, although this should work on plain raspbian as well. Ubuntu download.
  2. Now what I'm going to use is the Spotify Web player, since to use or make an unofficial client would mean having premium. So make sure you have a Spotify account and a raspberry pi and get it all set up. A guide will be written on how to do that. 
  3. Install chromium. This isn't the fastest browser, but through a hack it does have support for Flash which Spotify uses. sudo apt-get install chromium -y  
  4. Now I'm going to copy the instructions posted by gkreidl at the Raspberry Pi Forums (Link) Put this into the Terminal:
    wget http://odroidxu.leeharris.me.uk/PepperFlash-12.0.0.77-armv7h.tar.gz tar -xzf PepperFlash-12.0.0.77-armv7h.tar.gz
    cd PepperFlash
    chmod +x *
    sudo cp * /usr/lib/chromium/plugins
    sudo nano /etc/chromium/default
  5. Now uncomment the line starting with "CHROMIUM_FLAGS=" Add the following line: CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium/plugins/libpepflashplayer.so --ppapi-flash-version=12.0.0.77 -password-store=detect -user-data-dir"
    Save (CTRL+X, Y, ENTER)
  6. Open up chromium and go to chrome://plugins. Find pepperflash and enable it. Now you have flash.
  7. Now go to the Spotify web player (Link) and it should work. The UI is very slow, but its the only way I could find that doesn't require premium. Playback hardly has any stutters on my tests though.
I hope you enjoyed this!

No comments:

Post a Comment