With FreeNAS 8.2.0 support for minidlna as a plugin has been added. Unfortunately the settings are limited, so you can only define a media path via the GUI. However, with a few changes in the minidlna.conf it is very easy to define folders for videos, pictures and movies. In the following I assume that the plugin jail has been installed and configured successfully and that the minidlna-PBI is loaded.
Hint: the media path (here /music) must be created as mountpoint in the jail, this is also controlled by the plugin configuration. If you press "Browse" in this menu, you get into the directory tree of the host and not of the jail. The paths are relative to the jail, if the jail is stored in "/mnt/pool/jail/Jail", "/Music" corresponds to "/mnt/pool/jail/Jail/Music". This directory must be created and mounted on the actual data directory.
Since you can only specify one path via the GUI (see screenshot), you have to edit the minidlna.conf. The easiest way to do this is via an SSH connection. The directory path is composed as follows (where jail is the name of the jail directory and jail is the name of the jail itself)
With "nano -w minidlna.conf" you can open the configuration data for editing and set the settings accordingly:
media_dir=A, /Music media_dir=V, /Videos media_dir=P, /Pictures port=8200 inotify=yes enable_tivo=no strict_dlna=no notify_interval=895 friendly_name=ArthurDLNA
Since FreeNAS overwrites the changes to minidlna.conf with the settings from the GUI, the file must be read-only. This must be removed each time you want to edit the file again:
~# chmod 444 minidlna.conf (write protection active) ~# chmod 644 minidlna.conf (write protection disabled)
With these changes, minidlna will also use data from the additional directories - making it much more convenient as a DLNA server than with the standard setting options offered by FreeNAS. As DLNA player you can use for example the Playstation 3 or a Apple TV2 with XMBC. If you are looking for a more powerful and flexible solution, you can contact my first example compilation for a HTPC Get inspiration.