spotify on raspberry pi

system configuration

enable ipv6
first, check if its loaded

sudo sysctl -a|grep ipv6

if not load it

sudo modprobe ipv6

and also load it on every reboot with:

echo ipv6|sudo tee -a /etc/modules

install mopidy

main documentation from here

if you have another running instance of mpd/mpc shut it down – because mopidy has its own mpd/mpc

1. Add the archive’s GPG key:
wget -q -O – | sudo apt-key add –
2. Add the following to /etc/apt/sources.list, or if you have the directory /etc/apt/sources.list.d/, add it to a file called mopidy.list in that directory:
# Mopidy APT archive
deb stable main contrib non-free
deb-src stable main contrib non-free
For the lazy, you can simply run the following command to create /etc/apt/sources.list.d/mopidy.list:
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list
3. Install Mopidy and all dependencies:
sudo apt-get update
sudo apt-get install mopidy

about 25MB disk space will be used

4. now you can choose, if you want to run mopidy as a service (in the background) or only for testing as a user instance. (see also here)
running it as a user instance – first disable the service and shut it down
sudo update-rc.d mopidy disable
sudo service mopidy stop
start mopidy with

to configure it as a service first check if its running
ps aux | grep ‚mopidy‘
sudo service mopidy status

or start it
sudo service mopidy start

service commands
sudo service mopidy start
sudo service mopidy stop
sudo service mopidy restart
sudo service mopidy status

5. configuration
the config-file contains only changes to the default config. check your config with
mopidy config
sudo mopidyctl config

nano ~/.config/mopidy/mopidy.conf

sudo nano /etc/mopidy/mopidy.conf

sample-config for the http-extension
enabled = true
hostname = ::
port = 8081
WARNING – i had problems with the hostname set to the local ip address. my spotify playlists were missing after installing the http-client.
sample for local
enabled = true
data_dir = /var/lib/mopidy/local
media_dir = /data/music
playlists_dir = /data/radio
WARNING – i had problems with my m3u radio files/playlists. after putting them into a seperate folder outside of my music folder they were loaded successfully.
enabled = true
username = 1234567890
password = abcdefghijklm12345
bitrate = 320
here no warnings – use bitrate to encrease your quality
6. add-ons/extensions

add the nice http-extension MusicBox just do
pip install Mopidy-MusicBox-Webclient

7. log-file


other configurations for mopidy

config default Radio stations – just edit the following file


or - on musicbox

Convert iTunes-playlists to spotify!/article/Convert-Playlists-to-Spotify!/playlist/1425111848/104536359


Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

Du kommentierst mit Deinem Abmelden / Ändern )


Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )


Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s