root@myserver:/mediaserver/install#
Step 6: Install and Enable MiniDLNA
Let's install the MiniDLNA media server.
MiniDLNA allows you to stream movies, music, and photos to any DLNA-capable device in your home (like smart TVs, game consoles, or media players).
To install it, run the following command:
user@homeserver:~$ sudo apt install minidlna -y
- sudo — Run the command with administrator privileges.
- apt — The package manager for Ubuntu.
- install — Command to install a package.
- minidlna — The name of the software package.
- -y — Automatically say “yes” to all prompts (no need to confirm manually).
✅ This command will install the MiniDLNA server and its dependencies.
Check if MiniDLNA is running:
user@homeserver:~$ sudo systemctl status minidlna
- sudo — “Superuser do”. Runs the command with administrator rights.
- systemctl — Controls system services (start, stop, status, etc.)
- status — Requests the current state of the SSH service
- minidlna — The name of the software package.
This command shows the status of the MiniDLNA service.
- If everything is okay, you should see a line like:
Active: active (running)
.
- If it says
inactive
or failed
, something went wrong — but don’t worry, we’ll configure it soon.
Check if MiniDLNA will start after reboot:
user@homeserver:~$ sudo systemctl is-enabled minidlna
- sudo — “Superuser do”. Runs the command with administrator rights.
- systemctl — Controls system services (start, stop, status, etc.)
- is-enabled — Checks if a service is set to start automatically at boot.
- minidlna — The name of the software package.
This command checks if the service is enabled for automatic startup.
- If it prints
enabled
— ✅ great, it will launch every time your server starts.
- If it says
disabled
, you can fix it by running:
user@homeserver:~$ sudo systemctl enable minidlna
- sudo — “Superuser do”. Runs the command with administrator rights.
- systemctl — Controls system services (start, stop, status, etc.)
- enable — Sets a service to start automatically at boot.
- minidlna — The name of the software package.
MiniDLNA is now installed and running, but we haven’t told it *where* your media is yet.
Next, we will configure MiniDLNA to point to the folder on your USB drive where your movies and music are stored.
This involves editing a configuration file.