Ubuntu Geek

Ubuntu Linux Tips,Howtos&Tutorials|Feisty,Gutsy,Hardy,Intrepid

  • RSS Feed

    subscribe to the ubuntu Geek RSS feed


  • Sponsor

  • Categories

  • Meta

  • Sponsor

  • Archives

  • Support Ubuntugeek

    Amount $:
    Website(Optional):


  • Favourite Sites

Howto Get mpd running with pulseaudio in Ubuntu 8.04 (Hardy Heron)

Posted by admin on May 1st, 2008 Email This Post Email This Post

Music Player Daemon (MPD) is a server that allows remote access for playing audio files (Ogg-Vorbis, FLAC, MP3, Wave, and AIFF), streams (Ogg-Vorbis, MP3) and managing playlists. Gapless playback, buffered output, and crossfading support is also included. The design focus is on integrating a computer into a stereo system that provides control for music playback over a TCP/IP network. The goals are to be easy to install and use, to have minimal resource requirements (it has been reported to run fine on a Pentium 75), and to remain stable and flexible.


The daemon is controlled through a client which need not run on the same computer mpd runs on. The separate client and server design allows users to choose a user interface that best suites their tastes independently of the underlying daemon (this package) which actually plays music.

PulseAudio is the standard sound server in Ubuntu Hardy Heron 8.04.

PulseAudio Preferences (paprefs) is a simple GTK based configuration dialog for the PulseAudio sound server.

Install mpd and paprefs using the following command

sudo aptitude install mpd paprefs

In PulseAudio Preferences, make sure these two options are enabled

* Enable network access to local sound devices
* Don’t require authentication

Now you need to edit mpd.conf file

sudo gedit /etc/mpd.conf

add the following lines

audio_output {
type “pulse”
name “My MPD PulseAudio Output”
}

save and exit the file

Don’t add any other options to this! Let MPD just use PulseAudio’s defaults.

Now, restart MPD using the following command

sudo /etc/init.d/mpd restart

Howto fix system sounds in hardy pulseaudio

If you have any problems with system sounds in hardy pulseaudio follow this procedure

Edit /etc/pulse/default.pa file using the following command
sudo gedit /etc/pulse/default.paMake this change
# original line
#load-module module-esound-protocol-unix
to
#changed line
load-module module-esound-protocol-unix socket=/tmp/.esd/socket
save and exit the file

Share/Save/Bookmark

If you want to be notified the next time we write something please subscribe to our RSS feed.Thanks for Visiting!

Related Articles

5 Responses to “Howto Get mpd running with pulseaudio in Ubuntu 8.04 (Hardy Heron)”

  1. Luis Says:

    Hi, when I add the audio_ouput section

    i get the error message
    improperly formatted config file at line 69: name

    When I uncomment one of the predefined audio_output secions, the daeaon starts up fine.

    Do you have any idea?

  2. Luis Says:

    Of course, i have to remove the suggested section

    audio_output {
    type “pulse”
    name “My MPD PulseAudio Output”
    }

    to make it startup ok.

  3. val Says:

    Hi,

    I got the same error message. I copy pasted and the “” are wrong, replace them by retyping them, and the problem is gone.

  4. henriquemaia Says:

    Thanks Val. I had the same message and your tip did the trick.

    Thanks Ubuntugeek for this howto.

  5. Phred Says:

    Same here. The actual quotes are different and need to be retyped then restarts fine. Great how to. Thanx.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>