Distroname and release: Debian Wheezy
MiniDLNA
MiniDLNA is DLNA/UPNP server, which is very easy to setup.Install
apt-get install minidlna
Configuration
Edit the file /etc/minidlna.conf# Name that the DLNA server presents to clients. friendly_name=MyMiniDLNA # Automatic discovery of new files in the media_dir directory. inotify=yes # Notify interval, in seconds. notify_interval=895 # Path to the directory that should hold the log file. log_dir=/var/log #Add directories, notes these changes requires rebuild of the database files. To do this media_dir=A,/mnt/music media_dir=P,/mnt/pictures media_dir=V,/mnt/vidoesRestart minidlna, and rebuild the database. For me it was required to move the database as well, since I got this error.
[2013/10/12 21:58:36] minidlna.c:926: warn: Creating new database... [2013/10/12 21:58:36] minidlna.c:132: error: bind(http): Address already in use [2013/10/12 21:58:36] minidlna.c:1004: fatal: Failed to open socket for HTTP. EXITING1) Remove the database file
2) Restart MiniDLNA, to load the new changes made.
3) Rebuild the database
rm /var/lib/minidlna/files.db /etc/init.d/minidlna restart minidlna -RConfigure IPTables, only, if this is enabled on the server.
Add to the two first lines of iptables INPUT chain.
iptables -I INPUT 1 -p udp -m udp --dport 1900 -m state --state NEW -j ACCEPT iptables -A INPUT 2 -p tcp -m tcp --dport 8200 -m state --state NEW -j ACCEPT
Caveats
MiniDLNA must be able to read the files, so I had to make the files world read-able! Ugly hack. Note the below makes then writeable, as well, which should not be needed.chmod 777 /mnt/music/ -R chmod 777 /mnt/pictures/ -R chmod 777 /mnt/videos/ -R