RHEL7: How to install the Minidlna service.

Share this link

Presentation of Minidlna

DLNA stands for Digital Living Network Alliance. It’s a set of guidelines, including Universal Plug and Play (UPnP), for media management,device discovery and control (see wikipedia).
You’ve got DLNA servers, machines able to share a content, and DLNA clients, devices displaying it like your TV for example.
Content can be photos, audio files or videos.

Minidlna is a simple but robust DLNA server. It doesn’t make any on-the-fly conversions but consumes very few resources.

Let’s assume that you’ve got a server running RHEL/CentOS 7 that you can connect through the network to your TV. Your TV is a DLNA client, your server will become a DLNA server and will sent content already available on its own disks.

DLNA Server Installation

Unfortunately, Minidlna isn’t available as a package.
However, binary files exist for x86_64.

Start by creating a temporary directory:

# mkdir minidlna

Then, download the binary files:

# wget http://netix.dl.sourceforge.net/project/minidlna/minidlna/1.1.4/minidlna-1.1.4_static.tar.gz

Extract the files:

# tar xvf minidlna-1.1.4_static.tar.gz
./etc/minidlna.conf
./usr/sbin/minidlnad
./usr/share/locale/it/LC_MESSAGES/minidlna.mo
./usr/share/locale/pl/LC_MESSAGES/minidlna.mo
./usr/share/locale/nb/LC_MESSAGES/minidlna.mo
./usr/share/locale/es/LC_MESSAGES/minidlna.mo
./usr/share/locale/nl/LC_MESSAGES/minidlna.mo
./usr/share/locale/ru/LC_MESSAGES/minidlna.mo
./usr/share/locale/sv/LC_MESSAGES/minidlna.mo
./usr/share/locale/ja/LC_MESSAGES/minidlna.mo
./usr/share/locale/de/LC_MESSAGES/minidlna.mo
./usr/share/locale/fr/LC_MESSAGES/minidlna.mo
./usr/share/locale/sl/LC_MESSAGES/minidlna.mo
./usr/share/locale/da/LC_MESSAGES/minidlna.mo

Move the minidlna.conf file into the /etc directory:

# mv etc/minidlna.conf /etc

Move the minidlnad binary file into the /sbin directory:

# mv usr/sbin/minidlnad /sbin

If you are OK with English messages, you can remove the newly created minidlna directory:

# \rm -r minidlna

To make management easier, paste the following lines into the /etc/systemd/system/minidlnad.service file:

[Unit]
Description=Minidlna Daemon
After=syslog.target network.target

[Service]
Type=forking
ExecStart=/sbin/minidlnad

[Install]
WantedBy=multi-user.target

Configuration Procedure

The main options to edit in the /etc/minidlna.conf file are:

  • network_interface=eth0 # the name of your network interface
  • media_dir=/opt/videos    # the directory where contents are stored
  • strict_dlna=yes               # useful for Sony TVs

Then, update your firewall configuration for 1900/udp and 8200/tcp:

# firewall-cmd --permanent --add-port=1900/udp
# firewall-cmd --permanent --add-port=8200/tcp
# firewall-cmd --reload

Finally, activate at boot and start the Minidlna service:

# systemctl enable minidlnad && systemctl start minidlnad

DLNA Client Procedure

If you want your PC to become a DLNA client, displaying content coming from a DLNA server, follow these instructions.

First, you need to install vlc.

Then, you have to open your firewall:

# firewall-cmd --permanent --add-port=1900/udp
success
# firewall-cmd --reload
success

Under a graphical interface, launch vlc and select view -> Playlist -> Local Network -> Universal Plug’n’Play.

You should see your DLNA server name at the top of the main window.

Enjoy!

Source: Inspired from Jeff Arnold’s blog.

(6 votes, average: 4.33 out of 5)
Loading...

Upcoming Events (Local Time)

There are no events.

Follow me on Twitter

Archives

vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |