Posted on

Rygel DLNA/UPnP Media Server on Fedora 27

Tux

Here’s a short guide to install and configure Rygel on Fedora 27.

Install Required Software

This should be enough to be able to run the server later.

sudo dnf install rygel tumbler gupnp-av

Configure Rygel

What you want to do here is most likely not share all of your account’s media folders, which is the default setting for Rygel. My idea is to first create a folder in ~/Videos called shared-videos and so on for ~/Music and ~/Pictures if desired.

Run this under the user you intend to run Rygel under. In most cases this will be your own account. On a computer with many accounts, make sure you use an account that’s going to have access to the media files you want to share.

rygel-preferences

Remove any default directories you don’t want to share and add any directories you do want to. In my case it was the ones I created for this purpose.

Set up Rygel as a Service

You could just run Rygel from the command line whenever you want to share your files but more likely, you’ll always want your shared files available when the computer is turned on. As root, create a file named /etc/systemd/system/rygel.service and paste this into it:

[Unit]
Description=Rygel DLNA server
After=syslog.target

[Service]
User=rygel
Group=rygel
ExecStart=/usr/bin/rygel
# ExecStart=/usr/bin/wrap-dbus /usr/bin/rygel

[Install]
WantedBy=multi-user.target

Edit the User and Group lines to match the user and group you used when configuring Rygel. Most likely these are both your login name.

Run this command to make the service start each time your computer boots:

sudo systemctl enable rygel

Run this command to start the service immediately (the previous one only makes it start on next boot):

sudo systemctl start rygel

Test the Server

Fire up VLC on a phone connected to the same WiFi network and check if you can see your stuff under Local Network in the main menu. You should be able to view any media you’ve placed in your shared folders. There’s lots of DLNA clients but VLC runs on almost everything so if you want to watch movies on any of your devices from your server, I suggest installing it.

Didn’t Work?

Contact me if you run into errors or this tutorial doesn’t work for you. I wasn’t able to test each step completely as I had a bunch of this already set up on my machine when I wrote this.