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.

Posted on

Useful Linux Applications

Tux
Tux
Tux

Here’s a short list of applications I use on my Linux workstations and servers.

GIMP

Gnu Image Manipulation Program is a great editor for a variety of raster image formats.

VLC Media Player

VLC is a great player for a huge number of audio and video formats as well as UPnP/DLNA network streaming. The Windows version has some bugs with network stuff but it works great on Linux. I personally don’t like it as a music player but it is my default video player.

MySQL Workbench

I have been running MariaDB (a fork of MySQL) for quite some time now but I still use this to muck around with the databases. It gives a warning when connecting but I haven’t noticed any major compatibility issues.

Screen

Screen is simple program that you should invoke immediately every time you connect to a remote machine over SSH. If your connection dies, your running task will not be terminated and you can reconnect to it afterward. It also does a whole bunch of other cool things but that’s the main one.