Skip to content

Instantly share code, notes, and snippets.

@sdushantha
Last active November 17, 2023 10:12
Show Gist options
  • Save sdushantha/fd0b4f7d69b814317bc33da3a57fdf49 to your computer and use it in GitHub Desktop.
Save sdushantha/fd0b4f7d69b814317bc33da3a57fdf49 to your computer and use it in GitHub Desktop.
ncmpcpp + mpd + mpc on macOS

Install the required packages

brew install ncmpcpp mpd mpc

Make the.mpd directory in your home directory

mkdir ~/.mpd

Create the required files

touch mpd.conf mpd.db mpd.log mpd.pid mpdstate

Add this configuration to mpd.conf

NOTE: Change the value for music_directory to the path where you store your music!

music_directory         "~/Music"
playlist_directory      "~/.mpd/playlists"
db_file                 "~/.mpd/mpd.db"
log_file                "~/.mpd/mpd.log"
pid_file                "~/.mpd/mpd.pid"
state_file              "~/.mpd/mpdstate"
auto_update             "yes"
auto_update_depth       "2"
follow_outside_symlinks "yes"
follow_inside_symlinks  "yes"

audio_output {
    type                  "osx"
    name                  "CoreAudio"
    mixer_type            "software"
}

decoder {
    plugin                "mp4ff"
    enabled               "no"
}

bind_to_address         "127.0.0.1"
port                    "6600"
@codeitlikemiley
Copy link

this has no sound on my macbook air m1 ...
dont know if this is compatible or not on mac m1 yet

@sdushantha
Copy link
Author

@codeitlikemiley I highly doubt mpd or ncmpcpp this on the M1 yet. It might worth a shot to send in a feature request asking support for the M1s

@abzrg
Copy link

abzrg commented May 7, 2022

To restart mpd after an upgrade:

brew services restart mpd

Or, if you don't want/need a background service you can just run:

/opt/homebrew/opt/mpd/bin/mpd --no-daemon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment