How to Install ReadyMedia on Ubuntu Server
ReadyMedia, formerly known as MiniDLNA, is a popular open-source media server that allows users to stream videos, music, and other media files to compatible devices. In this tutorial, we will guide you through the process of installing ReadyMedia on an Ubuntu Server.
Prerequisites
Before proceeding with the installation, you must have the following:
- A server running the latest version of Ubuntu Server
- A terminal with sudo privileges
Step 1: Install ReadyMedia
- Update the package list and upgrade all installed packages.
sudo apt update
sudo apt upgrade -y
- Install ReadyMedia by running the following command:
sudo apt install minidlna
Step 2: Configure ReadyMedia
- Stop the ReadyMedia service by running the following command:
sudo systemctl stop minidlna
- Open the ReadyMedia configuration file located at
/etc/minidlna.confusing your favorite text editor. In this tutorial, we will use nano.
sudo nano /etc/minidlna.conf
- Update the following options in the configuration file:
media_dir: This option specifies the directory where your media files are stored. By default, it is set to/var/lib/minidlnawhich is not ideal. For example, if you have your media files in/media/<username>/media, you would update this option as follows:
media_dir=/media/<username>/media
db_dir: This option specifies the directory where ReadyMedia stores its database. By default, it is set to/var/lib/minidlna, which is also not ideal. Therefore, you should change this to a different directory that is not the same as themedia_dir. For example:
db_dir=/var/lib/minidlna/db
friendly_name: This option specifies the name of your ReadyMedia server that will be shown on client devices. Change it to something that is easy to remember. For example:
friendly_name=My ReadyMedia Server
inotify=yes: This option enables (or disables) watching for changes in your media directory. It is recommended to enable this option so that ReadyMedia automatically updates its database as you add or remove media files.
Save and close the configuration file by pressing
Ctrl+Ofollowed byCtrl+X.Verify the configuration file for syntax errors by running:
sudo minidlna -f /etc/minidlna.conf -R
- Start the ReadyMedia service by running the following command:
sudo systemctl start minidlna
- Check the status of ReadyMedia to ensure that it is running properly by running the following command:
sudo systemctl status minidlna
If the service is running without any problems, you should see a message that says Active: active (running).
Step 3: Add Media Files
Copy your media files to the directory that you specified in the
media_diroption in the configuration file.The media files will be automatically detected by ReadyMedia within a few seconds, and you should be able to see them on your client devices.
Conclusion
Congratulations! You have successfully installed and configured ReadyMedia on your Ubuntu Server. Now you can start streaming your favorite media files to compatible devices.