<div dir="ltr">I installed miniDLNA on an Ubuntu server a year or so ago, before I started using the Synology box for streaming my movies.  It was as simple an install as Khalid implies.  In fact, I just dug through my notes and found the install instructions:<div>
<br></div><div><div><ul style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium;margin-left:0.2902in;direction:ltr;margin-top:0in;margin-bottom:0in"><li style="list-style:none;display:inline"><p style="margin:0pt 0pt 3pt;line-height:15pt;font-family:Arial;font-size:12pt;color:rgb(51,51,51)">
<span style="font-weight:bold">Setup MiniDLNA on Ubuntu Server</span></p><p style="margin:0in;font-family:Arial;font-size:12pt"> </p><p style="margin:0in;font-family:Arial;font-size:12pt">Set up the necessary shares first.</p>
<p style="margin:0in;font-family:Arial;font-size:12pt"> </p><p style="margin:0in;font-family:Arial;font-size:12pt">Then...</p><p style="margin:0in;font-family:Arial;font-size:12pt"> </p><p style="margin:0in;font-family:Arial;font-size:12pt">
sudo apt-get update</p><p style="margin:0in;font-family:Arial;font-size:12pt">sudo apt-get upgrade</p><p style="margin:0in;font-family:Arial;font-size:12pt">sudo apt-get install minidlna</p><p style="margin:0in;font-family:Arial;font-size:12pt">
 </p><p style="margin:0in;font-family:Calibri;font-size:11pt">Then configure minidlna.conf file. Below is my new minidlna.conf file:</p><p style="margin:0in;font-family:Calibri;font-size:11pt"># port for HTTP (descriptions, SOAP, media transfer) traffic</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">port=8200</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># network interfaces to serve, comma delimited.</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"># network_interface=eth0</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># set this to the directory you want scanned.</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"># * if have multiple directories, you can have multiple media_dir= lines</p><p style="margin:0in;font-family:Calibri;font-size:11pt"># * if you want to restrict a media_dir to a specific content type, you</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"># can prepend the type, followed by a comma, to the directory:</p><p style="margin:0in;font-family:Calibri;font-size:11pt"># + "A" for audio (eg. media_dir=A,/home/jmaggard/Music)</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"># + "V" for video (eg. media_dir=V,/home/jmaggard/Videos)</p><p style="margin:0in;font-family:Calibri;font-size:11pt"># + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">media_dir=V,/home/user/media/Movies</p><p style="margin:0in;font-family:Calibri;font-size:11pt">media_dir=P,/home/user/media/Photos</p><p style="margin:0in;font-family:Calibri;font-size:11pt">
media_dir=A,/home/user/media/Music</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># set this if you want to customize the name that shows up on your clients</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">friendly_name=My-MiniDLNA</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">db_dir=/home/user/.minidlna</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># set this if you would like to specify the directory where you want MiniDLNA to store its log file</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">log_dir=/var/log</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># set this to change the verbosity of the information that is logged</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"># each section can use a different level: off, fatal, error, warn, info, or debug</p><p style="margin:0in;font-family:Calibri;font-size:11pt">log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=fatal</p>
<p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># this should be a list of file names to check for when searching for album art</p><p style="margin:0in;font-family:Calibri;font-size:11pt">
# note: names should be delimited with a forward slash ("/")</p><p style="margin:0in;font-family:Calibri;font-size:11pt">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</p>
<p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># set this to no to disable inotify monitoring to automatically discover new files</p><p style="margin:0in;font-family:Calibri;font-size:11pt">
# note: the default is yes</p><p style="margin:0in;font-family:Calibri;font-size:11pt">inotify=yes</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt">
# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO</p><p style="margin:0in;font-family:Calibri;font-size:11pt">enable_tivo=no</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt">
 </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># set this to strictly adhere to DLNA standards.</p><p style="margin:0in;font-family:Calibri;font-size:11pt"># * This will allow server-side downscaling of very large JPEG images,</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"># which may hurt JPEG serving performance on (at least) Sony DLNA products.</p><p style="margin:0in;font-family:Calibri;font-size:11pt">strict_dlna=no</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt">
 </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># default presentation url is http address on port 80</p><p style="margin:0in;font-family:Calibri;font-size:11pt">#presentation_url=<a href="http://www.mylan/index.php">http://www.mylan/index.php</a></p>
<p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># notify interval in seconds. default is 895 seconds.</p><p style="margin:0in;font-family:Calibri;font-size:11pt">
notify_interval=895</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># serial and model number the daemon will report to clients</p><p style="margin:0in;font-family:Calibri;font-size:11pt">
# in its XML description</p><p style="margin:0in;font-family:Calibri;font-size:11pt">serial=12345678</p><p style="margin:0in;font-family:Calibri;font-size:11pt">model_number=1</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt">
 </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># specify the path to the MiniSSDPd socket</p><p style="margin:0in;font-family:Calibri;font-size:11pt"># minissdpdsocket=/var/run/minissdpd.sock</p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt">
 </p><p style="margin:0in;font-family:Calibri;font-size:11pt"># use different container as root of the tree</p><p style="margin:0in;font-family:Calibri;font-size:11pt"># possible values:</p><p style="margin:0in;font-family:Calibri;font-size:11pt">
# + "." - use standard container (this is the default)</p><p style="margin:0in;font-family:Calibri;font-size:11pt"># + "B" - "Browse Directory"</p><p style="margin:0in;font-family:Calibri;font-size:11pt">
# + "M" - "Music"</p><p style="margin:0in;font-family:Calibri;font-size:11pt"># + "V" - "Video"</p><p style="margin:0in;font-family:Calibri;font-size:11pt"># + "P" - "Pictures"</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"># if you specify "B" and client device is audio-only then "Music/Folders" will be used as root</p><p style="margin:0in;font-family:Calibri;font-size:11pt">
# root_container=.</p><p style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"><span style="font-weight:bold">Addendum</span></p><p style="margin:0in;font-family:Calibri;font-size:11pt">
 </p><p style="margin:0in;font-family:Calibri;font-size:11pt">If the file list is not being updated correctly then try deleting the minidlna cache directory (in sample configuration it's /var/cache/minidlna) with a rm -rf /var/cache/minidlna/*.</p>
<p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:9pt;color:rgb(89,89,89)">Pasted from <<a href="http://sourceforge.net/projects/minidlna/forums/forum/879957/topic/5007110">http://sourceforge.net/projects/minidlna/forums/forum/879957/topic/5007110</a>></p>
<p style="margin:0in;font-family:Calibri;font-size:11pt"> </p><p style="margin:0in;font-family:Calibri;font-size:11pt"><span style="font-weight:bold">To Autostart MiniDLNA</span></p><p style="margin:0in;font-family:Calibri;font-size:11pt">
 </p><p style="margin:0in;font-family:Calibri"><a href="http://ubuntuforums.org/showthread.php?t=1616685&page=2"><span lang="en-CA" style="font-size:12.75pt">Start minidlna at boot time</span></a><span lang="en-US" style="font-size:11pt"> (...half way down)</span></p>
<ul style="margin-left:0in;direction:ltr;margin-top:0in;margin-bottom:0in" type="disc"><li style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-family:Calibri;font-size:12.75pt">To auto start minidlna at server boot :</span></li>
</ul><ul style="margin-left:0in;direction:ltr;margin-top:0in;margin-bottom:0in" type="disc"><li style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-family:Calibri;font-size:12.75pt">sudo cp minidlna.init.d.script /etc/init.d/minidlna</span></li>
<li style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-family:Calibri;font-size:12.75pt">sudo chmod +x /etc/init.d/minidlna</span></li><li style="margin-top:0px;margin-bottom:0px;vertical-align:middle">
<span style="font-family:Calibri;font-size:12.75pt">sudo update-rc.d minidlna defaults</span></li></ul><ul style="margin-left:0in;direction:ltr;margin-top:0in;margin-bottom:0in" type="disc"><li style="margin-top:0px;margin-bottom:0px;vertical-align:middle">
<span style="font-family:Calibri;font-size:12.75pt">Some users had to make that last line into the following below to make it work. For me it worked as above :</span></li></ul><ul style="margin-left:0in;direction:ltr;margin-top:0in;margin-bottom:0in" type="disc">
<li style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-family:Calibri;font-size:12.75pt">sudo update-rc.d minidlna defaults 98 2</span></li></ul><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt">
 </p><p style="margin:0in;font-family:Calibri;font-size:9pt;color:rgb(89,89,89)">Pasted from <<a href="http://w.rkdrm.com/index.php?title=MiniDLNA">http://w.rkdrm.com/index.php?title=MiniDLNA</a>></p><p lang="en-US" style="margin:0in;font-family:Calibri;font-size:11pt">
 </p><p style="margin:0in;font-family:Calibri;font-size:11pt"> </p></li></ul></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 13 June 2014 21:09, Khalid Baheyeldin <span dir="ltr"><<a href="mailto:kb@2bits.com" target="_blank">kb@2bits.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On Fri, Jun 13, 2014 at 8:52 PM, unsolicited <span dir="ltr"><<a href="mailto:unsolicited@swiz.ca" target="_blank">unsolicited@swiz.ca</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Not just how are you running Linux on them, but how are you interacting with them in your Linux environment?<br>
<br>
UPnP/DLNA is coming to mind, given recent threads.</blockquote><div><br></div><div>There is a package called minidlna that implements the DLNA server on pretty much any Linux distro. It does not have a user interface. Just a config file and you are done.<br>

<br>It is in Ubuntu/Debian, and I have even seen it in the repository for OpenWRT. So if it runs in OpenWRT, it would run on RaspBerry Pi as well.<br><br></div><div>I am sure that XBMC and its derivatives have DLNA as well, and there are variants of XBMC that run on Raspberry Pi.<span class="HOEnZb"><font color="#888888"><br>

</font></span></div></div><span class="HOEnZb"><font color="#888888">-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>
Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>For every complex problem, there is an answer that is clear, simple, and wrong." -- H.L. Mencken<br>
</font></span></div></div>
<br>_______________________________________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
<br></blockquote></div><br></div></div>