Home » HTPC » The Ultimate Guide to Compile and Install MiniDLNA on Ubuntu

The Ultimate Guide to Compile and Install MiniDLNA on Ubuntu

DLNA allows you to play home network media on all compatible devices over the network. In this post, I will explain how to compile and install MiniDLNA on Ubuntu (now ReadyMedia) from the Git repository. Previously, I wrote posts on how to install MiniDLNA on Ubuntu 10.04 by downloading the files and setup MiniDLNA on Ubuntu 12.04 using the PPA repository.Compile and Install MiniDLNA on Ubuntu While a bit lengthy, there are certain advantages to compiling the latest version from Git and so I decided to provide updated installation instructions. MiniDLNA is being developed quite actively developed with several good fixes and upgrades. Without further delay, let us see how to compile and install MiniDLNA on Ubuntu 12.04 from the Git repository. These instructions should work on releases 12.10 and 13.04 as well.

Once setup, you will be able to stream content (with subtitles) to any DLNA compatible devices. In my case the devices are: LG 42″ LED TV and LG Bluray Player.

Enjoy unlimited streaming of Movies and TV Shows on several devices, free 2-day shipping on orders, and free Kindle books for only $6.60 per month. Sign-up now to get a free 1-month trial.

Guide to Compiling from Source Code

We have made every attempt to make this guide newbie-friendly. Where ever possible we have provided pictures to guide you through the process. It would greatly help if you have a basic understanding of compiling packages from source on Ubuntu and we strongly recommend reading our 2-page beginner’s guide. Also as described in that guide, install the prerequisites for compiling packages using the command below:

sudo apt-get install autoconf g++ subversion linux-source linux-headers-`uname -r` build-essential tofrodos git-core subversion dos2unix make gcc automake cmake checkinstall git-core dpkg-dev fakeroot pbuilder dh-make debhelper devscripts patchutils quilt git-buildpackage pristine-tar git yasm checkinstall cvs mercurial

Why is this Method Better?

There are three other methods to install MiniDLNA on Ubuntu:

  1. Download the latest version from here and follow this guide.
  2. You can setup the PPA repository and follow this guide.
  3. MiniDLNA is available to Ubuntu official repositories. You can install it using easily using sudo apt-get install minidlna.

The first method requires that you download, extract, and replace files every time there is an update. The second method relies in the PPA being up-to-date for all releases. At the time of writing this guide, the PPA has been updated to only until 11.10 Oneiric. The third method installs whatever version is currently available in the official Ubuntu repository. While the latest version is 1.1.0 the Ubuntu repository currently has version 1.0.21, which several versions behind. So if you want the latest and the greatest you will have to wait. It takes about the same amount to compile and install MiniDLNA on Ubuntu compared to the method 1. But the advantage is that MiniDLNA is now custom-built to your system/OS environment and may be a bit more responsive. Furthermore, as explained later in this guide, it may be a bit more easier to install updates. So here it goes.

Install Prerquisites

MiniDLNA depends on several packages to compile successfully: libexif, libjpeg, libid3tag, libFLAC, libvorbis, libsqlite3, and libavformat (the ffmpeg libraries). Some of them may already be installed but the two that were missing in my test system were libexif and libid3tag and the command below installed the two. It probably also installed a few more unneeded packages (few extra MBs) but it is much easier to do it this way.

sudo apt-get install libexif* libid3tag*

How do you know which ones are needed in your case? When you run the configure script as described later, you will encounter errors if any of the above packages are missing. Retry configure after installing the missing package until all the errors go away.

Download MiniDLNA

First create a folder called .minidlna in your home directory:

mkdir ~/.minidlna

Note that the . in the beginning makes it a hidden folder. Then cd to the .minidlna folder and issue the following command to clone the latest MiniDLNA files from the Git repository:

git clone git://git.code.sf.net/p/minidlna/git minidlna-git

The output should look something like this:

Cloning into 'minidlna-git'...
remote: Counting objects: 3006, done.
remote: Compressing objects: 100% (888/888), done.
remote: Total 3006 (delta 2242), reused 2858 (delta 2111)
Receiving objects: 100% (3006/3006), 1.04 MiB | 846 KiB/s, done.
Resolving deltas: 100% (2242/2242), done.

A folder called minidlna-git should be downloaded to the .minidlna folder. These are the files that need to be compiled.

Continue to next page to fully install MiniDLNA on Ubuntu

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.

Join the other 110,000 followers