Skip to content

Instantly share code, notes, and snippets.

@roastedmonk
Last active January 20, 2019 09:00
Show Gist options
  • Save roastedmonk/fe8df40ddabd571958386e2dbcf9b90f to your computer and use it in GitHub Desktop.
Save roastedmonk/fe8df40ddabd571958386e2dbcf9b90f to your computer and use it in GitHub Desktop.
Installing ympd on the Rasppberry Pi #rasppberry-pi

ympd on the Raspberry Pi

Install MPD first

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

Incorrect Password error :

remove --mpdpass "$MPD_PASSWORD" from ExecStart in ympd.service then sudo reboot

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