We wanted to get mopidy running with a web interface, a music database streamed via NFS, pulseaudio and an mpd server.
First we mounted the already existing nfs share by adding it to /etc/fstab
mkdir -p /data
cat /etc/fstabOf course it’s necessary to install nfs first
apt-get install nfs-common -yand remount
mount -aWith the data mounted, we can set up mopidy.
The web interface and mpd modules are enabled by default. So first let’s install it:
# add apt repository
apt-get install curl -y
curl https://apt.mopidy.com/mopidy.gpg | apt-key add - \
&& curl https://apt.mopidy.com/jessie.list > /etc/apt/sources.list.d/mopidy.list \
&& apt-get update \
&& apt-get install mopidy -y[core]
cache_dir = /data/music/.mopidy/cache
config_dir = /etc/mopidy
data_dir = /data/music/.mopidy
[logging]
config_file = /etc/mopidy/logging.conf
debug_file = /data/music/.mopidy/mopidy-debug.log
[local]
data_dir = /data/music/.mopidy
media_dir = /data/music/
[m3u]
playlists_dir = /data/music/playlists