Rygel

Setup using an init script
THIS SETUP IS UNSUPPORTED BY GENTOO, DO NOT REPORT BUGS OR COMPLAIN TO THE MAINTAINER IF THINGS DO NOT WORK

Setup Rygel upnp/dlna media server
For this howto we can not (yet) use the tracker and dbus interface. The reason is that we start rygel as a daemon with an init script. This is means we do not have a dbus user session and thus can not use tracker and have to rely on the media export plugin's ability to scan the directories.

This howto is split over the following sections:
 * USE flags and merging rygel
 * create user and group
 * copy/create the files
 * The init script + config file
 * Modify the config file

Emerge rygel
Rygel uses gstreamer so please do check and the individual media-plugins/gst-plugin-* packages for aditional video/audio format support.

There are a couple of interesting useflags you will want to check.

[1] Enabling the tracker USE flag brings in most of X and GNOME. [2] We have no dbus session so no way to connect to tracker.

Now emerge the package

copy files
Copy the 2 files to the respective folders and you should be able to start the server.

Modify config file
If started with the init script you will want to modify the uri option. Add the directories you like it to search for media.

Setup using shell-session
shell-session is a script created by eva and is available from github. It is supposed to create a dbus session for rygel under a regular user and from /home/ and then start /etc/xdg/autostart (which has en entry for rygel). I tried this and it seems to not work very well for me. At this point I can't really recommend this but if someone has more success please update this wiki page.