Hello my dear Linux Yogi’s,
in today’s illustration I am going to show you how you can set up a DLNA Server with Ubuntu and server Videos, Music and Pictures to your DLNA capable devices on your network.
Let’s get started.
MiniDLNA is a Service which offers your media to DLNA devices to stream it to your TV or Streaming apps. MiniDLNA is a very lightweight server and doesn’t require many resources. Let’s make sure before we start with MiniDLNA that your server is up2date.
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade
this should take care of it. The next command will install minidlna.
sudo apt-get install minidlna
Next let’s create a few directories to organize our media content with the following commands:
sudo mkdir -p /srv/DLNA/Music sudo mkdir -p /srv/DLNA/Pictures sudo mkdir -p /srv/DLNA/Videos
and now copy your Music, Pictures and Videos into those directories. In the next step we need to make a few adjustments to the minidlna configuration file. Use your favorite editor and edit /etc/minidlna.conf and adjust the following options (you may need to un-comment the one or the other):
network_interface=eth0 media_dir=A, /srv/DLNA/Music media_dir=P, /srv/DLNA/Pictures media_dir=V, /srv/DLNA/Videos friendly_name=My_Media_Server db_dir=/var/cache/minidlna log_dir=/var/log inotify=yes
In order to apply our configuration changes we need to restart our minidlna service:
sudo service minidlna restart
this now will kick off the minidlna service to crawl through the set directories and index everything and may take some time depending on your amount of media you placed in the those three directories.
Now you can you your DLNA enabled DVD-Player and you should see the DLNA Server “My_Media_Server”
I hope you liked this article. Please subscribe or register with my blog or forum. If you like me to write about something use my contact form and drop me a line.
Unitl next time, Namaste my friends!