💾 Archived View for duncan.bayne.id.au › gemlog › spotify-on-freebsd captured on 2023-04-26 at 13:02:40. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

➡️ Next capture (2024-02-05)

-=-=-=-=-=-=-

Spotify running on FreeBSD

Posted on 2022-09-25

I'm having a good run these past few days - being on leave has given me the headspace to deal with a few niggling tech issues. This time around - Spotify running on FreeBSD 13.1 :)

Spotify daemon running in a FreeBSD terminal buffer

Spotify QT GUI playing Blues for Ben

The script itself is quite straightforward ...

spotify script

#!/usr/bin/env bash

set -euxo pipefail
shellcheck "$0"

# for now, spotifyd and avahi-daemon can't coexist ;(
sudo service avahi-daemon stop || echo "Maybe it's already stopped ..."

spotify-qt &
spotifyd --config-path /home/duncan/personal-git/conf/spotify/spotifyd.conf --no-daemon

# restart avahi-daemon after spotify is done
sudo service avahi-daemon start

It uses a simple config that decrypts credentials using GPG ...

[global]
username_cmd = "gpg --decrypt /home/duncan/personal-git/conf/spotify/username.gpg 2>/dev/null"
password_cmd = "gpg --decrypt /home/duncan/personal-git/conf/spotify/password.gpg 2>/dev/null"
backend = "portaudio"

And now I can have music wherever I go :)

So long as I keep paying my Spotify family account bill, that is, and as long as I have a decent network connection. I'm okay with that, though - as much as pirating music is more convenient, I prefer mechanisms that actually get money into artists' hands.

______

Back to Duncan Bayne's Gemlog

Home

Comment on this post

______

© Duncan Bayne 2022 - 2023. This work is licensed under a Creative Commons Attribution 4.0 International License.

Built with Kiln