Installation
go-mpd-discplayer requires runtime libraries for disc ID reading and device monitoring (libdiscid, libgudev, libcdio-paranoia). These are installed automatically by the deb package.
Platform support
Section titled “Platform support”| Architecture | Package | Tested on |
|---|---|---|
| amd64 | deb | Fedora 43, Debian 13 |
| arm64 | deb | Raspberry Pi 3/4/5 (64-bit) |
| armv7hf | deb | Raspberry Pi 2/3 (32-bit) |
| armhf (ARMv6) | deb | Raspberry Pi B / B+ / Zero |
APT repository (Debian / Raspberry Pi OS)
Section titled “APT repository (Debian / Raspberry Pi OS)”curl -fsSL https://apt.odio.love/key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/odio.gpgecho "deb [signed-by=/usr/share/keyrings/odio.gpg] https://apt.odio.love stable main" | sudo tee /etc/apt/sources.list.d/odio.listsudo apt updatesudo apt install mpd-discplayerPackages (deb)
Section titled “Packages (deb)”Pre-built deb packages for all architectures are available on the releases page.
sudo dpkg -i mpd-discplayer_<version>_<arch>.debBinary
Section titled “Binary”Download the standalone binary from the releases page and install the required runtime libraries:
# Debian Bookwormsudo apt install libcdparanoia0 libdiscid0 libgudev-1.0-0
# Debian Trixie / Raspberry Pi OS (latest)sudo apt install libcdio-paranoia2t64 libdiscid0 libgudev-1.0-0From source
Section titled “From source”Install the dev libraries first:
# Debiansudo apt install gcc libdiscid-dev libgudev-1.0-dev libasound2-dev pkg-config
# Fedorasudo dnf install gcc libdiscid-devel libgudev-devel alsa-lib-devel pkgconfThen build:
git clone https://github.com/b0bbywan/go-mpd-discplayer.gitcd go-mpd-discplayergo build -o mpd-discplayer .systemd user service
Section titled “systemd user service”The deb package installs the service automatically. If you installed from source:
sudo cp share/mpd-discplayer.service /usr/lib/systemd/user/systemctl --user daemon-reloadsystemctl --user enable --now mpd-discplayerHeadless systems: enable lingering so the user session survives without an active login:
sudo loginctl enable-linger <username>