Skip to content

Instantly share code, notes, and snippets.

@Profpatsch
Last active June 8, 2016 17:46
Show Gist options
  • Save Profpatsch/05d09037dd6893c910a03f12f95c0f8e to your computer and use it in GitHub Desktop.
Save Profpatsch/05d09037dd6893c910a03f12f95c0f8e to your computer and use it in GitHub Desktop.
WIP mopidy conf

Setting up mopidy for debian jessie

We wanted to get mopidy running with a web interface, a music database streamed via NFS, pulseaudio and an mpd server.

setup

nfs

First we mounted the already existing nfs share by adding it to /etc/fstab

mkdir -p /data
cat /etc/fstab

Of course it’s necessary to install nfs first

apt-get install nfs-common -y

and remount

mount -a

mopidy

With 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment