mpd

Install

From Music Player Daemon Community Wiki

Installing from source should work for all *nix distributions. In many cases it is better to go below to look for specific installation instructions for your distribution if you're in a *nix distribution.

Contents

General Installing From Source

Debian Install Procedure

If you are using Debian Sarge or Sid, then simply do:

apt-get update
apt-get install mpd



Ubuntu Install Procedure

apt-get update
apt-get install mpd
$ dpkg -L mpd | grep example
/usr/share/doc/mpd/examples
/usr/share/doc/mpd/examples/mpdconf.example.gz

(You may wish to zcat the gz file to your favorite target.)



Gentoo Install Procedure

If you want to install a subversion ebuild, replace mpd when emerging with mpd-svn

# emerge -pv mpd
[ebuild  N    ] media-sound/mpd-0.11.5-r2 
USE="aac alsa audiofile flac mad unicode -ipv6 -mikmod -vorbis" 1,101 kB
# emerge mpd
# {your text editor here} /etc/mpd.conf
# rc-update add mpd default
# /usr/bin/mpd --create-db
# /etc/init.d/mpd start



Arch Linux Install Procedure

pacman -Sy mpd
cp /etc/mpd.conf.example /etc/mpd.conf
{your editor} /etc/mpd.conf
mkdir ~/.mpd ~/.mpd/playlists
/etc/rc.d/mpd create-db
/etc/rc.d/mpd start
pacman -Sy ncmpc mpc gmpc glurp



Fedora Install Procedure

# yum install mpd

or

# apt-get install mpd

if you prefer apt.

# {your text editor here} /etc/mpd.conf
# mpd --create-db
# service mpd start
# chkconfig mpd on
# yum install mpc gmpc

ncmpc is pending...



Mandrake Install Procedure

urpmi mpd



FreeBSD Install Procedure

Installing with Ports

portinstall musicpd

otherwise

cd /usr/ports/audio/musicpd
make install clean



Installing with Packages

pkg install musicpd
pkg add /path/to/package.txz



Configure MPD

/usr/local/bin/mpd --create-db /usr/local/etc/mpd.conf



Mac OS X 10.3, 10.4 Install Procedure



NetBSD Install Procedure

cd /usr/pkgsrc/audio/musicpd
make install


/usr/pkg/bin/mpd --create-db /usr/pkg/etc/mpd.conf



OpenBSD Install Procedure

These are the configure script flags I found helpful for getting mpd running on Openbsd 3.8 i386.

MPD 0.11:

MPD 0.12:



Windows Install Procedure

This may not work yet, but if it does the instructions are at Windows Compatibility



OpenWRT Install procedure

Full details on how to setup mpd and phpMp2 on OpenWRT are available here



Software Appliance Availability

If you have a spare machine (virtual or real) and you don't want to deal with configuration and setup yourself, there is a software appliance based on MusicPD available at http://www.rpath.org/rbuilder/project/musicpd/ -- it's currently shipped as a VMware virtual machine image, and comes with a minimal version of rPath Linux, MusicPD installed and configured, phpMp, and the beginnings of a web-based configuration tool. It also supports music shares over NFS and Samba. Word of warning: the appliance does not include MP3 support.