- Download spotifyd
wget -qO- https://github.com/Spotifyd/spotifyd/releases/download/v0.3.2/spotifyd-linux-armv6-slim.tar.gz | tar -xvz -C /opt
- Add it to upstart
nano /etc/init/spotifyd.conf
description "spotifyd service"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [06]
respawn
script
exec /opt/spotifyd --no-daemon
end script
for debug use /opt/spotifyd --no-daemon >> /mnt/data/spotifyd.log 2>&1
- Add spotifyd config
nano /etc/spotifyd.conf
[global]
username = "spotify_username"
password = "spotify_password"
backend = "alsa" # run `spotifyd --backends` for possible values
device = "hw" # run `aplay -L` for possible values
# control = "alsa_audio_device" # device for the mixer
mixer = "Lineout volume control"
volume-control = "alsa" # or alsa_linear, or softvol
device_name = "Rockrobo" # must not contain spaces
device_type = "speaker"
bitrate = 160 # or 96, or 320
no_audio_cache = true
volume-normalisation = true
normalisation-pregain = -10