ncmpcpp is an mpd client. In short, it’s the frontend of mpd. The actual music player is mpd, but managing mpd with barehand is not possible. So, the most common way to control mpd is using ncmpcpp, to list the library, arranging the playlist, choosing the music, and other actions. mpd + ncmpcpp duo usually also paired with mpc for control.
Don’t forget that ncmpcpp is a terminal applications.
They are available in almost every distro repository. So, just get them all easily. I use Debian by the way.
On Debian, after installing mpd, it will be launched as system service automatically, which is annoying. I want to run mpd as user process instead of system service. So, I disable the mpd system service.
Now, mpd will use the user configuration in ~/.mpd/mpd.conf instead of the system wide mpd configuration in /etc/mpd.conf. Here is my mpd configuration..
I do dualboot with Windows 7. Even I’m very very rare to boot Windows, I’m still keeping it. Just in case one day I will need it. I store my musics in an NTFS partition called Media. So, if boot Windows I’m still be able to enjoy my metal playlist. I mount that media partition automatically on boot to /media/addy/Media/musik/ by editing the /etc/fstab file.
That’s the line I add to my fstab file. I put it in the most bottom line.
I get the UUID of my partition using
sudo blkid command.
The change will be applied on the next boot.
Okay, back to the mpd configuration.
Replace addy in line number 3 to 6 with your own username.
Just in case you forgot your username, you could get it using
I use PulseAudio for my sound. If you’re using pure ALSA,
try to replace the line number 8 to 11 with..
ncmpcpp configuration is placed in ~/.ncmpcpp/config file.
I tried to paste the code to this page, but the syntax was conflicted with
So, get the text file here. The square brackets are comments,
just like # symbol. Just a matter of personal preference.
The explanations of my ncmpcpp config would be very long if wrote them all here.
The config is very rational, it’s very easy to be understood only by reading it.
But if you need more detailed explanations, it’s available inside the manual pages.
man ncmpcpp command to open it.
mpc has no configuration file. The tasks of mpc are just for simply controlling mpd.
mpc toggle, etc.
The advantage is, we could bind those command to our multimedia keys.
So, even the ncmpcpp is closed we still be able to control the mpd.
I use Openbox, so I put those keybinds in rc.xml
By default, Debian (the king of automations) also placed the autostart for mpd in /etc/xdg/autostart/. If not, just simply add to your DE/WM autostart configuration. So, after we reach the desktop after boot, we only need to hit the Play button to listen the music (if there is a playlist stored).
XDG global autostart needs python-xdg packages.
After mpd process is running (you could also manually run it by typing
in terminal), you can launch ncmpcpp music player by typing
ncmpcpp in terminal.
It will be blank by default, because we haven’t load any playlist.
I recommend You to update the playlist first. On ncmpcpp, hit U keyboard button.
Just in case it doesn’t work, Launch a new terminal then type
After it got finished. You can access your music library in ncmpcpp.
Hit number 2 then navigate using Arrows keys, Enter, and Backspace.
Hit Space to add an album or an artist
recursively to the playlist. Hit number one to go back to the playlist.
Hit enter to select and play music.
My theme is pretty simple & ugly. The only good thing of my setup is the glorious Dream Theater playlist. I really recommend you to listen Octavarium album. It’s one of their best album. You could visit https://dotshare.it to discover more Configuration examples. And of course, visit https://reddit.com/r/unixporn for even more configuration examples. You will see a lot of ncmpcpp in that Subreddit.
ncmpcpp has a lot other keybinds. Just read the manual pages to discover them.
And as always.. Thanks for reading!