Install and setup is as simple as it gets to install any software on linux:
sudo apt-get update
sudo apt-get upgrade
And then:
sudo apt-get install mpd
sudo service mpd stop
sudo apt-get install mpd
sudo service mpd stop
After successful install we need to change a few lines to suit our purposes:
sudo nano /etc/mpd.conf
Directiory with your music & playlist:
- music_directory "/media/roastedmonk"
- playlist_directory "/media/roastedmonk/playlists"
and now, start mpd: try to run wothout sudo if any failure run with sudo :) you will thank me later
sudo service mpd start
Due to its small size, ympd is well-suited to run on the Raspberry Pi. Installing it is pretty straightforward:
git clone https://github.com/notandy/ympd
cd ympd/
sudo apt-get install cmake libmpdclient-dev libssl-dev
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
make
sudo make install
init.d
cd ..
sudo cp contrib/init.debian /etc/init.d/
sudo service ympd start
systemd
sudo cp contrib/ympd.service /usr/lib/systemd/system/
sudo cp contrib/ympd.default /etc/default/ympd
sudo systemctl daemon-reload
sudo systemctl enable ympd.service
sudo systemctl start ympd.service
remove --mpdpass "$MPD_PASSWORD"
from ExecStart
in ympd.service
then sudo reboot