- Hack Your Life! - http://www.hackourlife.com -

Install DLNA Server On Ubuntu File Server

While there are a host of DLNA / UPNP servers out there with a host of features such as on-the-fly transcoding to formats that client devices can handle, I was looking for a simple and easy to use DLNA server which I can use to feed content to my Smart TV or my Android Smart Phone / Tab or any other smart devices out there. Since these days we depend so much on smart devices I gather that we as human beings are becoming less and less smart 😉

The reason for “light weight” DLNA server was dictated by the fact that I wanted it to run on a single board computer (Beagleboard) which I had used to create my own NAS / File Server / Cloud storage [1] which runs headless Ubuntu Server.

It seems that most people are using uShare [2] or Rygel [3] or PS3 Media Server [4] etc.  but I personally like MiniDLNA (aka ReadyDLNA) [5] better, due to its ease of installation and configuration and it goes easy on the Single Board Computer.

Installation on Ubuntu is breezy:

sudo apt-get install minidlna

Post installation, configuration can be done by editing the following file:

nano /etc/minidlna.conf

Edit the file to add your media directories, at the end it would have the uncommented lines which might look like this

$ grep -o “^[a-z].*” /etc/minidlna.conf
port=8200
media_dir=V,/home/user/media/Movies
media_dir=A,/home/user/media/Music
media_dir=P,/home/user/media/Pictures
friendly_name=Shrot DLNA
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
inotify=yes
enable_tivo=no
strict_dlna=no
notify_interval=900
serial=12345678
model_number=1

Now just force-reload MiniDLNA (force-reload rescans the folders) using the following command

sudo /etc/init.d/minidlna force-reload

and that should be it!  The server now shows up on my Galaxy Tab 2 and I can play any media using VLC or any other suitable media player.

2013-04-01 21.50.35 [6]