Home » HTPC » Install MiniDLNA on Ubuntu

Install MiniDLNA on Ubuntu

There is an updated post describing installation of MiniDLNA on Ubuntu Server (12.04 LTS Precise Pangolin).

DLNA allows you to play home network media on all compatible devices over the network. A DLNA server is a streaming video server that can stream content to other networked media players. MiniDLNA is a media server for Ubuntu and other Linux operating systems. In this post, I will discuss how to install MiniDLNA on Ubuntu server.

I recently purchased the LG 42″ LED TV and LG Bluray Player, basically to stream movies from my Ubuntu Lucid Lynx 10.04 Home Server.

I found that I could not manually connect to SAMBA shares on my Linux server and was figuring out other ways to stream media to my TV/Player (Update: I can now connect to my SAMBA shares. Please see end of the post). It could have been a one big investment gone bad if I were not able to play media from my server. Thankfully, I found some options: tvmobili and minidlna. I even considered Amahi Home Server which allowed one click installation of media servers such as UShare and MiniDLNA.

Find a list of best rated dlna servers here.

Upon reading more I decided to try MiniDLNA and Ubuntu and I am glad I did. Setting up MiniDLNA DLNA server on my Ubuntu Server was extremely easy. So here is how it goes:

Download and Install MiniDLNA

Download MiniDLNA from here: http://sourceforge.net/projects/minidlna/files/

Extract the files:

tar -zxvf filename.tar.gz

This results in two files: /usr/sbin/minidlna and /etc/minidlna.conf. CD to the respective directories and move the files as follows:

sudo mv minidlna /usr/sbin/
sudo mv minidlna.conf /etc/minidlna.conf

Configure MiniDLNA

Configure /etc/minidlna.conf file. Below is my minidlna.conf file:

# port for HTTP (descriptions, SOAP, media transfer) traffic. 

# network interface to bind to (this is the only interface that will serve files). You could comment the following line to enable all interfaces.

# 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)

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

# 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 ("/")

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

# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO. I don't use TiVo. so I disabled it.

# default presentation url is http address on port 80

# notify interval in seconds. default is 895 seconds. This I believe is the rate at which the folder cache is refreshed. I set it to scan every 5 min.

# serial and model number the daemon will report to clients
# in its XML description

Make sure to allow incoming connection on port 8200 on the server.

Get 20% OFF with IPVanish VPN:

♦   Hide your browsing and streaming activity: No logs and no tracking
♦   Access geo-restricted content from anywhere
♦   Encrypt and anonymize: Kodi, Plex, Downloads, Personal Info
♦   Windows, Mac, Linux, Android, iOS, Router, and more.
♦   Money back guarantee - Sign Up Now

About the author


Anand is a self-learned computer enthusiast, a part-time blogger, and a Food Scientist by career. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, Smart Home Automation, and related HOW-TOs on htpcbeginner.com and smarthomebeginner.com.