Media Server dlna
From Indie IT Wiki
INSTALLATION ON UBUNTU SERVER 14.04
sudo aptitude install minidlna
ADD MEDIA DIRECTORIES
Add the required directories (entries in bold are the modifications):
sudo nano /etc/minidlna.conf # If you want to restrict a media_dir to a specific content type, you can # prepend the directory name with a letter representing the type (A, P or V), # followed by a comma, as so: # * "A" for audio (eg. media_dir=A,/var/lib/minidlna/music) # * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures) # * "V" for video (eg. media_dir=V,/var/lib/minidlna/videos) #media_dir=/var/lib/minidlna media_dir=V,/home/samba/shared/Videos/TV media_dir=V,/home/samba/shared/Videos/Movies media_dir=A,/home/samba/shared/Music
SPECIFY USING YOUR OWN FILE STRUCTURE
Edit the “root_container” entry setting it to “B” (entries in bold are the modifications) if you want to use your own folder structure:
sudo nano /etc/minidlna.conf # Use a different container as the root of the directory tree presented to # clients. The possible values are: # * "." - standard container # * "B" - "Browse Directory" # * "M" - "Music" # * "P" - "Pictures" # * "V" - "Video" # If you specify "B" and the client device is audio-only then "Music/Folders" # will be used as root. #root_container=. root_container=B
SPECIFY THE NETWORK INTERFACE
This is the network interface that the server should listen for requests on (entries in bold are the modifications):
# Network interface(s) to bind to (e.g. eth0), comma delimited. # This option can be specified more than once. # network_interface= network_interface=eth0
SPECIFY THE PORT
If required open the following port on your server (in this example Uncomplicated FireWall is used):
sudo ufw allow from 192.168.0.0/24 to any port 8200 proto tcp
Restart minidlna:
sudo service minidlna restart
Test the MiniDLNA server is running by visiting in a web browser:
http://your.server.ip.address:8200
All being well you should see something similar to this:
ENABLE DATABASE DIRECTORY
sudo nano /etc/minidlna.conf # Path to the directory that should hold the database and album art cache. #db_dir=/var/cache/minidlna db_dir=/var/cache/minidlna
ENABLE LOG FILE DIRECTORY
sudo nano /etc/minidlna.conf # Path to the directory that should hold the log file. #log_dir=/var/log log_dir=/var/log
ENABLE FRIENDLY NAME
sudo nano /etc/minidlna.conf # Name that the DLNA server presents to clients. # Defaults to "hostname: username". #friendly_name= friendly_name=DLNA Server
RE-INDEX MEDIA
sudo service minidlna force-reload
Thanks to Ubuntu Thanks to leaseweb Labs.