<> [[https://sourceforge.net/projects/minidlna| MiniDLNA]] is server software with the aim of being fully compliant with [[http://en.wikipedia.org/wiki/Digital_Living_Network_Alliance|DLNA]]/[[http://en.wikipedia.org/wiki/Universal_Plug_and_Play|UPnP]] clients. The MiniDNLA daemon serves media files (music, pictures, and video) to clients on a network. Example clients include applications such as totem and xbmc, and devices such as portable media players, smartphones, and televisions. MiniDLNA is a simple, lightweight alternative to MediaTomb, but has fewer features. It does not have a web interface for administration and must be configured by editing a text file. = Installation = {{{ sudo apt-get install minidlna }}} = Configuration Globally (for all users) = The configuration file is `/etc/minidlna.conf` and these are the necessary descriptors: {{{ #network_interface=eth0 # Self-discovers if commented (good with NetworkManager) media_dir=A,/home/user/Music # Use A, P, and V to restrict media 'type' in directory media_dir=P,/home/user/Pictures media_dir=V,/home/user/Videos friendly_name=Laptop # Optional db_dir=/var/cache/minidlna # Needs to be un-commented log_dir=/var/log # Needs to be un-commented inotify=yes # 'no' for less resources, restart required for new media }}} Restart the daemon for changes to take effect: {{{ sudo service minidlna restart }}} To rebuild the database use: {{{ sudo service minidlna force-reload }}} = Configuration Locally (per user) = Disable the global daemon: {{{ sudo service minidlna stop sudo update-rc.d minidlna disable }}} Create the necessary local files and directories as regular user and edit the configuration: {{{ mkdir -p ~/.minidlna/cache cd ~/.minidlna cp /etc/minidlna.conf . $EDITOR minidlna.conf }}} Configure as you would globally above but these definitions need to be defined locally: {{{ db_dir=/home/$USER/.minidlna/cache log_dir=/home/$USER/.minidlna }}} To start the daemon locally: {{{ minidlna -f /home/$USER/.minidlna/minidlna.conf -P /home/$USER/.minidlna/minidlna.pid }}} In recent ubuntu versions, please replace minidlna with minidlnad. {{{ minidlnad -f /home/$USER/.minidlna/minidlna.conf -P /home/$USER/.minidlna/minidlna.pid }}} To stop the local daemon: {{{ xargs kill