Run Spotify on Raspberry Pi
Today we are writing about the iconic music player Spotify and how to run it on Raspberry Pi 2 and Raspberry Pi 3. Spotify is available on many platforms but not on Raspberry Pi :(. During the past month, we were working hard on the performance tuning of ExaGear Desktop and made it happen! You can even use Spotify Connect on Raspberry Pi and control the music from any of your devices.
In this post, we will tell you how to run Spotify on RPi 2 and RPi 3 using ExaGear Desktop which allows to run x86 apps on ARM mini PCs. And you would probably also love to know that with ExaGear Desktop you’ll be able to use more of your favorite apps, like Skype, Telegram, and many others, on your Raspberry Pi.We adapted the installation instruction from the official Spotify website. Below is a simple step-by-step instruction on how to install ExaGear and then install and run Spotify on your RPi.
Spotify installation instruction
Configure Raspbian
1. For smooth running of Spotify we recommend to increase swap space. Open configuration file in Terminal (command line) using the following command:
$ sudo nano /etc/dphys-swapfileRaspbian has 100MB of swap by default. You should change it to 2000MB in the configuration file. So you will have to find this line:
CONF_SWAPSIZE=100And then change it into:
CONF_SWAPSIZE=2048Press F3 key to save changes and F2 to close the file. Then restart dphys-swapfile to apply changes:
$ sudo /etc/init.d/dphys-swapfile stop$ sudo /etc/init.d/dphys-swapfile start
Install ExaGear Desktop
2. Download ExaGear Desktop archive with installation packages and license key. Open Terminal (command line) and unpack the downloaded archive using the following command:
$ tar -xvzpf exagear-desktop-rpi3.tar.gz3. Install and activate ExaGear by running install-exagear.sh script:
$ sudo ./install-exagear.shLaunch guest x86 system
4. Enter the guest x86 system by using the following command:
$ exagearStarting the shell in the guest image /opt/exagear/images/debian-8
5. Now you are in the x86 environment that can be checked by running the ‘arch’ command:
$ archi686
6. It is recommended to update apt-get repositories on the first launch of the guest system:
$ sudo apt-get updateInstall Spotify
7. Add the Spotify repository signing key to be able to verify the downloaded packages:
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C198868. Add the Spotify repository:
$ echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list9. Update list of available packages:
$ sudo apt-get update10. Install Spotify:
$ sudo apt-get install spotify-client$ sudo apt-get install libxss1
Run Spotify
Now just run Spotify from the Start menu to play your favorite music

Final notes
We hope that every owner of Raspberry Pi 2 and Raspberry Pi 3 will now enjoy listening to his/her favorite music with Spotify on his/her device! Would you like to run Netflix next?
It is also worth noting that with ExaGear Desktop you can run other x86 apps on Raspberry Pi and other ARM-based devices such as Odroid, Banana Pi, Beagleboard, Cubox, Jetson, Cubieboard etc.
Please note that running Spotify on Raspberry Pi 1 and Raspberry Pi Zero is not possible because of lack of NEON support in the hardware of these devices.
The original article is Run Spotify on Raspberry Pi