15 janvier 2012

mpd sur macosx

Tested on macosx 10.6

  • Install homebrew
  • Open a Terminal
  • /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
  • brew install git
    • brew install mpd
    • mkdir ~/.mpd
    • mkdir ~/.mpd/playlists
    • touch ~/.mpd/database

    create a ~/mpd.conf configuration file with this:

~/music_directory "~/collectionMusique"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/database"
pid_file "~/.mpd/pid"
state_file "~/.mpd/state"
sticker_file "~/.mpd/sticker.sql"
port "6600"
auto_update "yes"
audio_output {
type "osx"
name "My Mac Device"
mixer_type "software"


launch the script editor application and copy the following lines

do shell script "/usr/local/bin/mpd ~/mpd.conf" 

Compile it to check it works. Note that /usr/local/bin is the path for a homebrew installation, adjust it to your needs.

Save the script in a chosen folder and in the format field select "application", then go to the system preferences and put the application you just created in the start-up list for your user.

Now mpd should start on boot with settings given in ~/mpd.conf.

Stream on android thanks to mpdroid freely available on the market


Stop the server

killall mpd