If you want to play your MP3s, display Pictures, and view videos, on your Smart TV or any other DLNA device, a minidlna server will need to be installed.

IN A LINUX CLIENT computer, from a Terminal window, SSH into the headless enosServer and become root.

# pacman -Syu minidlna
# vi /etc/minidlna.conf

In the second line, make sure port is set to 8200
port=8200

You can tell minidlna what directories on enosServer it will share.
Scroll to the section that begins with # set this to the directory you want scanned.
There are directions and examples given. Here is how I set up my directories.

media_dir=A,/server/MP3
media_dir=A,/server/Ogg
media_dir=P,/server/Pictures
media_dir=V,/server/Movies

The A, indicates the following directory will contain Audio. P, = Pictures V, = Videos
which are the three media formats that minidlna supports.

In my case the directory /server/MP3 and all sub-directories contains my MP3 Audio.
The directory /server/Ogg and all sub-directories contains my Ogg Audio.
The directory /server/Pictures and all sub-directories contains my Pictures (images).
The directory /server/Movies and all sub-directories contains my MP4 videos.

All directories specified must exist on the enosServer Data drive. Adjust the paths to whatever you set up for your media.

(Right under this section is the Friendly Name section. I uncommented and changed it to:
friendly_name=EndeavourOS DLNA server

Save and close minidlna.conf

Add required groups to pshare

# gpasswd -a minidlna pshare
# gpasswd -a minidlna users
# groups minidlna

minidlna users pshare
# systemctl enable minidlna.service (enable systemd to start minidlna at boot up)

Setup the server firewall.
When the Client computer issues a request, it does so on port 8200 with TCP protocol.
The Server computer responds on port 1900 with UDP protocol.
We need to open port 8200 on the enosServer firewall

# ufw allow from 192.168.0.0/24 to any port 8200
# systemctl reboot

In a Linux client computer, if there is a firewall installed, we need to open port 1900.
Using gufw:

Interface: can be “any” or use pull down to select your specific Interface
From: IP address of enosServer, adjust as necessary.

If you have another firewall app, such as firewalld open port 1900 to let in your server IP address.

Using a Smart TV, Windows MediaPlayer, VLC, or other DLNA enabled device on your LAN, see if it will recognize the EndeavourOS DLNA Server.

To use DLNA with VLC, if the Playlist column is not visible on the left side, click on the “View” tab and click “Playlist”. Scroll down to “Universal Plug’n’Play” and click. EndeavourOS DLNA Server should be listed.

For audio, I know mp3, ogg, flac, and wma are supported, as long as the DLNA client supports those formats. VLC on a PC supports all four. My SMART TV, not so much.

For Pictures (images), jpeg and png are supported, not sure about any others

For Video, mp4 is supported, not sure about any others.

These are the major formats. Experiment around and see what else is supported.
You can also select and view your MP4 movies on VLC.

Lastly, you can set up your vacation pictures in a folder on enosServer. Then have a slide show on your Smart TV in the family room and bore your friends to death.

Connect with us:

Homeserver 6 – Install and setup a miniDLNA media server

  • by