Skip to content

Instantly share code, notes, and snippets.

@bademux
Last active November 28, 2021 13:39
Show Gist options
  • Save bademux/933a7feaa494e2a655db5cebada607ae to your computer and use it in GitHub Desktop.
Save bademux/933a7feaa494e2a655db5cebada607ae to your computer and use it in GitHub Desktop.
Install Spotifyd on rooted rockrobo
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment