Emmabuntus, Ubuntu, Derivate, Linux, Open Source BackTrack, Linux, distributions, Ubuntu, derivate, securuty, forensic VirtualBox, Linux, Ubuntu, Raring Ringtail synaptic, Ubuntu, Linux, software packages jwplayer, multimedia, Linux, Ubuntu, flash Meshlab, graphic, software, Ubuntu, open source, Linux Synapse, Linux, Ubuntu, raring, Quantal Gimp, Ubuntu, Linux FreeMind, Linux, open source Linux, infographic, history

Music Player Daemon (MPD) allows remote access for playing various sound files and managing playlists

Music Player Daemon (MPD) is a flexible, powerful, server-side application for playing music.

Music Player Daemon (MPD) is a server that allows remote access for playing music in various formats and managing playlists. It makes a great desktop player with frontend options (Qt, GTK, ncurses, Windows, and Web clients are available). It is also appropriate as a console player that is scriptable, and is especially useful if X is restarted frequently. A set of rapid development tools for clients are being developed and include a C library, Python module, PHP class, Perl module, and Java Class. The goals are to be easy to install and use, to have minimal resource requirements, to be stable and flexible, and easy to interface.

Through plugins and libraries it can play a variety of sound files while being controlled by its network protocol. For more information, read about what mpd is and is not.

Decoder Plugins: AudioFile, libfaad (aac and mp4), ffmpeg, FLAC, fluidsynth, libmad and libmpg123 (mp3), Musepack, OggFlac, OggTremor, OggVorbis, WavPack, libsidplay, libsndfile, wildmidi
Output Plugins: ALSA, FIFO, JACK, OSS, OSX, libao, PulseAudio, Media MVP, Shoutcast/MP3, Shoutcast/Ogg Vorbis
Metadata: APEv2, id3v1, id3v2, MP4, Vorbis
Mixers: ALSA, OSS, Software Mixing
Protocols: TCP, IPv6, and Unix Domain Sockets

General Installing From Source
  • First check that you have all the dependencies that you want from Dependencies
  • Retrieving the sources
    • First, do you want to install from the latest development sources? If so, follow the guide.
    • Otherwise you can download the latest sources
  • Follow the procedure at linuxquestions.org going straight to the ./configure step if you downloaded from subversion. A hint that that link doesn't give is there are specific options that you can look through by typing ./configure --help, then adding those to your ./configure will make your MPD turn out differently, although the defaults will do just fine.
Installing with Ports
    • you may need to update your ports tree (use CVSup, see the FreeBSD handbook)
    • make sure internet works, or put the source file in /usr/ports/distfiles
    • if portupgrade is installed

portinstall musicpd


cd /usr/ports/audio/musicpd

make install cle

Installing with Packages

  • you may need to set some options, otherwise you will probably get an outdated MPD release (see the FreeBSD handbook)
  • make sure internet works, then do a
pkg_add -r musicpd
pkg_add /path/to/package.tgz

Configure MPD
  • for general configuration: edit /usr/local/etc/mpd.conf (see Configuration for details)
  • to start MPD at boot time: edit /etc/rc.conf and include musicpd_enable=YES
  • initial database creation:
/usr/local/bin/mpd --create-db /usr/local/etc/mpd.conf

Kernel compilers beware
  • MPD needs System V shared memory; make sure 'SYSVSHM' is included in your kernel!
Ubuntu Install Procedure
  • First, edit /etc/apt/sources.list and enable the 'universe' repository. After you make this change, you will have to run apt-get update.
  • You can use Synaptic. If for some reason this installation fails, this howto on the Ubuntu Forums may help.
aptitude update
aptitude install mpd


If you just need only MP3 and FLAC support through ALSA, then you can compile it from source:

  • download the latest sources
  • extract them to some directory (for example mpd-x-x-x)
  • go to this directory (for example cd mpd-x-x-x)
  • install the dependencies, compile and install:
sudo aptitude update
sudo aptitude install libasound2-dev libmad0-dev libid3tag0-dev libflac-dev libflac++-dev ./configure
sudo make install

Mac OS X 10.3, 10.4 Install Procedure

See the osx page for details.

Get Chitika | Premium

NetBSD Install Procedure
  • First select all the dependencies that you want from Dependencies and put the appropriate indications in the PKG_OPTIONS.musicpd variable. Possibilities are: aac, audiofile, flac, iconv, id3, and ogg.
  • install MPD through pkgsrc
    • you may need to update your pkgsrc tree (2004Q2 and up have it) (see the documentation for more information on updating)
cd /usr/pkgsrc/audio/musicpd
make install
  • configure MPD:
    • for general configuration edit /usr/pkg/etc/mpd.conf (see Configuration for details) (example is in /usr/pkg/share/examples/mpd/mpd.conf)
    • initial database creation:
/usr/pkg/bin/mpd --create-db /usr/pkg/etc/mpd.conf


Since libmad is integer only, performance isn't the best on NetBSD/sparc{,64}. In case you don't want MPD to use 15% CPU on a 440 MHz UltraSPARC-IIi, you might consider adding these lines to your /usr/pkgsrc/audio/libmad/Makefile:

CONFIGURE_ARGS+= --enable-fpm=sparc
CONFIGURE_ARGS+= --enable-speed

and then run

cd /usr/pkgsrc/audio/libmad

make clean all replace

OpenBSD Install Procedure

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

MPD 0.11:

  • ./configure --with-ao-includes=/usr/local/include --with-ao=/usr/local/lib --disable-ipv6

MPD 0.12:

  • ./configure --enable-ao --with-ao-includes=/usr/local/include --with-ao=/usr/local/lib
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.

source: About.com Linux

If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:


Related Post

Linux Links

Share on Google Plus

About Hugo Repetto

Ubuntu is a Linux distribution that offers an operating system predominantly focused on desktop computers but also provides support for servers. Based on Debian GNU / Linux, Ubuntu focuses on ease of use, freedom in usage restriction, regular releases (every 6 months) and ease of installation.
    Blogger Comment
    Facebook Comment


Post a Comment