Ubuntu → Spotify Connect speaker (ALSA-only, headless)
Oct 17, 2025
Goal
Turn an Ubuntu box into a Spotify Connect target named Apartment Jam using ALSA only.
What this does
- Builds
librespotwithalsa-backendandlibmdns - Pins audio to
plughw:0,0 - Runs as system user
spotify - Advertises over mDNS and opens firewall
- Persists creds under
/var/lib/librespot
Install
# download and run the installer
One-time OAuth on a headless box
On the server:
Leave that running. From your laptop:
# open the printed Spotify URL, finish login, wait for "Logged in"
Then:
Connect from phone
Same Wi-Fi → play a track → device icon → Apartment Jam.
Quick ops
|
Notes
- If the device never appears, disable AP “client isolation” and allow UDP 5353.
- To update: