miniDLNA on Ubuntu 8.04

Description

I wanted my Sharp 70 inch TV to show some of my content stored on my OpenFiler NAS.  So many of the other NAS devices are DLNA capable, so why not my own.   I started out with MediaTomb, and fought for two days - and thought I was good, but even though I could play movies and other video content, the pictures I was seeking still didn't work.  On a whim I tried miniDLNA and in under an hour - it was all working.  So I'm sticking with miniDLNA on my Sockso server.

Process/Implementation

Its only a few steps actually, and isn't too bad.  This really is way easy.

  • Step 1 is to get the files.  Head on over to SourceForge and grab the miniDLNA staticly compiled 1.0.22 version : http://sourceforge.net/projects/mini...ar.gz/download
  • To keep things clean and easy, extract into /opt as the default config shows things that way. 
cd /usr/local
gunzip -d -c minidlna_1.0.22_static.tar.gz | tar -xvf -
mv usr/sbin/minidlna sbin/
  • Config file change number 1 - modify the /usr/local/etc/minidlna.conf file, add these changes to scan specific directories :
media_dir=P,/full/path/to/pictures
media_dir=V,/full/path/to/tivoshows
media_dir=V,/full/path/to/othervideo
media_dir=V,/full/path/to/camcordercontent
  • Config file change number 2 - modify the /usr/local/etc/minidlna.conf file again.  To have it set a proper name for view in the TV, set the "friendly name" : 
friendly_name=vmSockso miniDLNA
  • Config file change number 3 - modify the /usr/local/etc/minidlna.conf file again.  This time, I'm setting the location for my db -- but note that this requires you to first create this directory, which does not exist by default : 
db_dir=/usr/local/miniDLNA
  • Config file change number 4 - modify the /usr/local/etc/minidlna.conf file again.  This time, I'm setting the location for my log file : 
log_dir=/var/log
  • Config file change number 5 - modify the /usr/local/etc/minidlna.conf file again.  This time, I'm setting the tivo option, so that this appears in my "Now Playing" list as searchable/transferrable content on the Tivo's : 
enable_tivo=yes
  • Final config looks like this : 
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200

# network interfaces to serve, comma delimited
#network_interface=eth0

# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
#   can prepend the type, followed by a comma, to the directory:
#   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
#   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
#   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
media_dir=P,/full/path/to/pictures
media_dir=V,/full/path/to/tivoshows
media_dir=V,/full/path/to/othervideo
media_dir=V,/full/path/to/camcordercontent

# set this if you want to customize the name that shows up on your clients
friendly_name=vmSockso miniDLNA

# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
db_dir=/var/cache/minidlna

# set this if you would like to specify the directory where you want MiniDLNA to store its log file
log_dir=/var/log

# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes

# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=yes

# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
#   which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no

# default presentation url is http address on port 80
#presentation_url=http://vmSockso:50500/index.php

# notify interval in seconds. default is 895 seconds.
notify_interval=900

# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1

# specify the path to the MiniSSDPd socket
#minissdpdsocket=/var/run/minissdpd.sock

# use different container as root of the tree
# possible values:
#   + "." - use standard container (this is the default)
#   + "B" - "Browse Directory"
#   + "M" - "Music"
#   + "V" - "Video"
#   + "P" - "Pictures"
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=.
  • Add the multicast route, and set the interface accordingly : 
route add -net 239.0.0.0 netmask 255.0.0.0 eth0
ifconfig eth0 allmulti multicast
  • And then finally, to start it up, from anywhere just run
/usr/local/sbin/minidlna  -f /usr/local/etc/minidlna.conf
  • This will log info to the /var/log/minidlna.log file.  Note that this can also be started with debug, rescan, and other options.  here are a few: 
    • To start it up in debug its : /usr/local/sbin/minidlna -d -f /usr/local/etc/minidlna.conf
    • To start it up and have it rescan/rebuild, its : /usr/local/sbin/minidlna -R -f /usr/local/etc/minidlna.conf

 

Tag page
You must login to post a comment.