Rygel is a GNOME-based media server application, that allows users to stream multimedia content such as music or video to other devices on their network, providing similar functionality as popular commercial media servers like Plex, Emby, or DLNA. In this tutorial, you'll learn how to install Rygel server on the latest Fedora Server using the command line.
Before diving into the installation steps, you need to ensure that your Fedora Server installation is up-to-date and all dependencies are met.
To update the system packages, run the following command:
sudo dnf upgrade --refresh
After upgrading the system, install the necessary packages for Rygel:
sudo dnf install rygel
Now that you have installed all the required dependencies, let's move on to the installation process.
Open your Terminal and run the following command:
sudo dnf install rygel
Once the installation process is complete, you can start Rygel service using the following command:
sudo systemctl start rygel.service
By default, the Rygel service is enabled to run at system startup. However, if you want to verify its status, you can do so by running the following command:
sudo systemctl status rygel.service
This will display the current status of the Rygel service.
Before you can begin streaming content with Rygel, you need to configure it according to your preferences. Here's how you can do it:
Edit the Rygel configuration file by running:
sudo nano /etc/rygel.conf
Uncomment the 'allow-upload' option and set it to 'yes' if you want to enable uploading of files to your media server:
[MediaExport]
...
# Set the allowed file upload size in bytes (0: unlimited).
# allow-upload-size=0
allow-upload=yes
By default, Rygel will use the first media directory located in the home directory of the user running the server. You can change the directory by updating the 'media-export-path' option:
[MediaExport]
...
# Path to the media directory. This can be absolue or relative to the
# user's home directory.
media-export-path=/other/path/to/media/directory
Once you have made the required changes, save the configuration file and restart the Rygel service:
sudo systemctl restart rygel.service
If you want to make Rygel accessible from other devices on your network, you need to open port 1900/UDP and 80/TCP in your firewall:
sudo firewall-cmd --add-port=1900/udp --add-port=80/tcp --permanent
sudo firewall-cmd --reload
Congratulations! You have successfully installed and configured Rygel on Fedora Server. You can now start streaming your favorite media content to other devices on your network.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!