Rozmyślania mimochodem spisane

kontakt now listy gotowanie techniczne wszystkie wpisy

atom | rss


Main site
mpd+ncmcpp

28 lip 2019 | tags: cui,

mpd+ncmccp is a golden combination for reliable music with hot plugged USB storage. Here I'll describe how I've configure my setup.

MPD

Current working configuration is based on Arch Wiki

I had some problems with permissions to music directory with seperate global mpd user. I solved these with local user mpd sesstion:

Disable systemd's mpd.service on the startup:

$ sudo systemctl disable mpd.service

Autostart mpd. If you're using some kind of Desktop Enviroment it could be done in .xinitrc (or DE specific configuration), otherwise use .initrc. Simply add the following line to config file:

mpd &

PulseAudio, local user workaround

If pulse audio doesn't you can try using this workaround.

/etc/fstab

To allow hot-plugging of the USB storage I'm using /etc/fstab

Get USB's UUID:

$ sudo blkid /dev/sdb1
[sudo] password for cmd: 
/dev/sdb1: LABEL="Music" UUID="5ec3ea09-fd96-4168-93d0-871bc0bfa039"
UUID_SUB="a479a36c-e5e6-4986-86ec-0a9be9e8d820" TYPE="btrfs"
PARTUUID="7e6fd15e-01"

Edit /etc/fstab. Please notice that there should be empty line at the end of /etc/fstab!

UUID="5ec3ea09-fd96-4168-93d0-871bc0bfa039" /YOUR/MOUNT/POINT auto rw,user,auto 0 0