Install DLNA on Linux Steps and Commands

The DLNA (Digital Living Network Alliance) is an association of electronics and computer manufacturers who have agreed to create a kind of compatible standard for all their systems. DLNA allows different devices within the same network to interconnect to share different content. The advantage it can offer is easy setup and versatility. This system can work on both Wi-Fi and Ethernet networks.

dlan server linux config

Here we propose a fully automated solution, which consists in using the software called MiniDLNA. It allows you to share a folder and make everything in it visible to computers on the network. This program works on Linux and is free. Before configuring the Linux DLNA server, we must make sure that our Wi-Fi network supports the DLNA service. Configuration of the DLNA service in the WiFi router D-LINK DIR-505 For this we will use the D-LINK DIR-505.

First we enter the configuration page of our router and enter the configuration UI of the router. Then we find the “Media Server” page on the left bar and click the “Enable DLNA Media Server” checkbox, then put the name of the media server to make it recognizable by DLNA streaming devices.

With these simple steps we have correctly configured the router for the DLNA network and now we can proceed to configure our Linux server

Run the following commands as root:

  1. apt-get -y install build-essential
  2. apt-get -y install libavutil-dev libavcodec-dev libavformat-dev libflac-dev
  3. apt-get -y install libvorbis-dev libid3tag0-dev libexif-dev
  4. apt-get -y install libjpeg62-dev libsqlite3-dev

So download the source code of miniDNLA, unzip and compile it:

./configure
make
make install
cp linux / minidlna.init.d.script /etc/init.d/minidlna
chmod 755 /etc/init.d/minidlna
update-rc.d minidlna defaults

Once installed, configure it by editing /etc/minidlna.conf

nano /etc/minidlna.conf

And to start it:

/etc/init.d/minidlna start

You can now enjoy the service installed on your personal router. Make a backup before applying these changes in case any problems occur.