Table of Contents

openSuse 15.6 Installation Guide

Based on Clear Foundation's Howto

Prerequisites

For ffmpeg on openSuse 15.6

zypper install ffmpeg

1.Download Serviio

wget http://download.serviio.org/releases/serviio-2.4-linux.tar.gz

2.Extract Serviio

tar -C /opt -zxvf serviio-2.4-linux.tar.gz
mv /opt/serviio-2.4 /opt/serviio

3.Create Serviio's user

useradd -d /opt/serviio -r serviio
chown -R serviio:serviio /opt/serviio

4 openSuse 15.6 - Systemd script

Create the systemd script /usr/lib/systemd/system/serviio.service with the following code: (If content library is available via nfs or cifs, add remote-fs.target in After=)

[Unit]
Description=Start the serviio DLNA server in headless mode
After=local-fs.target network.target

[Service]
Type=simple
User=root
ExecStart=/opt/serviio/bin/serviio.sh
ExecStop=/opt/serviio/bin/serviio.sh -stop
Restart=on-abort

[Install]
WantedBy=multi-user.target
I used user “root” to run serviio, I found that when adding disks etc. later on, or migrating disks from other distro's that serviio does not update the library, because of the file permissions. So this is what I did, there are more than one way to handle those permissions.

5. openSuse - Enable service

Reload systemd config to ensure changes are taken into account immediately

systemctl --system daemon-reload

Enable service

systemctl enable serviio.service

6.openSuse - Start Serviio

systemctl start serviio.service