Minidlna

Minidlna is a dlna server with a small footprint, originally designed to run on consumer NAS devices. Installation is fairly simple.

For this setup we will use GlusterFS as the file store backend.

Software

Start by installing minidla

apt-get install minidlna

Filesystem

Configure your system as a GlusterFS client, so you have the following in your fstab.

/etc/glusterfs/video.vol /srv/video glusterfs defaults,_netdev,rw 0 0

Configuration

For configuration it is only needed to change the directory for the media files in /etc/minidlna.conf

media_dir=V,/srv/video

When minidlna starts, you will get the following in your log

monitor.c:218: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [6] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.

If you want to increase this