This guide will help you to install
spotifyd on a Raspberry Pi and have it always running.
- Download the latest ARMv6 from https://github.com/Spotifyd/spotifyd/releases (use
- Unzip the file:
tar xzf spotifyd-linux-arm6*You will now see a file called
spotifyd. You can run it with
Create a systemd service file and copy the default configuration into it. Change ExecStart to where you unzipped the
sudo nano /etc/systemd/user/spotifyd.service
if you want to run as user instead of root or have some
Failed to get D-Bus connection: Connection refused, you define
spotifyd.service in your home directory:
mkdir -p ~/.config/systemd/user/ nano ~/.config/systemd/user/spotifyd.service systemctl --user daemon-reload
Spotifyd comes pre-configured with defaults that should be working in most cases, but if you want to tweak it further to your needs, have a look at the configuration section of this book.
systemctl --user start spotifyd.service
Now see if you can find it in the normal Spotify client (Devices in right bottom corner). Retry the above steps if you can't find it.
sudo loginctl enable-linger <username> systemctl --user enable spotifyd.service
The first command is required to enable your user to run long-running services. Without it
systemd would kill the
spotifyd process as soon as you log out, and only run it when you log in.
spotifyd is always running on the Pi, so you can use it as a listening device remotely!