Distroname and release: Debian Wheezy


MiniDLNA is DLNA/UPNP server, which is very easy to setup.


apt-get install minidlna


Edit the file /etc/minidlna.conf
# Name that the DLNA server presents to clients.

# Automatic discovery of new files in the media_dir directory.

# Notify interval, in seconds.

# Path to the directory that should hold the log file.

#Add directories, notes these changes requires rebuild of the database files. To do this
Restart 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. EXITING
1) 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 -R
Configure 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


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

Do not trust the authors words! POC, tests and experience is key

Copyright LinuxLasse.net 2009 - 2024 All Rights Reserved.

Valid HTML 4.01 Strict Valid CSS!