root@myserver:/mediaserver/config#

Step 8: Configure MiniDLNA

Now that we have a mounted media folder, let’s configure MiniDLNA so it knows where to look for your movies and music.

1. Open the configuration file in the terminal:

user@homeserver:~$ sudo nano /etc/minidlna.conf

What does this command mean?

This file contains all the settings used by the MiniDLNA media server. We will change only two lines.

2. Find and update this line:

media_dir=/var/lib/minidlna

Replace it with:

media_dir=/mnt/usbdrive/media

This tells MiniDLNA to scan the folder we created on your USB drive for media files.

3. Set a friendly name (optional but recommended):

Find the line that looks like:

#friendly_name=

Uncomment it (remove the #) and set your desired name:

friendly_name=HomeMedia

This name will appear on smart TVs or media apps when they detect your DLNA server.

4. Save and close the file:

Ctrl + O → Enter → Ctrl + X

These are nano shortcuts:

5. Restart MiniDLNA to apply changes:

user@homeserver:~$ sudo systemctl restart minidlna

Explanation:

6. Access your media server:

Now MiniDLNA is running and scanning your media folder. You can view its status in a web browser:

http://your-server-ip:8200

Replace your-server-ip with your actual IP address (e.g. 192.168.0.100).

This page shows what files were indexed and current status.

Most smart TVs, phones, and media apps like VLC player will automatically detect your DLNA server and show your files.