Published 01-01-0001 00:00:00

Installing MPD on Gentoo or Calculate

Installing from portage

~ # emerge -av media-sound/mpd

Editing the configuration file: /etc/mpd.conf

  • Variant for PulseAudio:
music_directory      "/mnt/NAS-AS-606T-F350/Media/Music"
playlist_directory   "/var/lib/mpd/playlists"
db_file              "/var/lib/mpd/database"
log_file             "/var/lib/mpd/log"
pid_file             "/var/lib/mpd/pid"
state_file           "/var/lib/mpd/state"

user                 "mpd"

bind_to_address      "localhost"
bind_to_address      "/var/lib/mpd/socket"

input {
        plugin "curl"

audio_output {
        type            "pulse"
        name            "Pulse MPD"
        server          "localhost"

At the same time, need to configure pulseaudio to receive the audio stream over TCP, for this, in the /etc/pulse/ file, must uncomment and edit the line:

load-module module-native-protocol-tcp auth-anonymous=1

Restart pulseaudio

~ $ killall pulseaudio

Launching a MPD service

~ # rc-service mpd start

Adding a MPD service to startup

~ # rc-update add mpd default