====== openSuse 15.6 Installation Guide ======
Based on [[http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,40/func,view/id,25951/|Clear Foundation's Howto]]
==== Prerequisites ====
* Update your system zypper up
* Make sure you install rmpfusion packages free and non-free from: http://rpmfusion.org/Configuration/ Just click on Fedora x (your release) and install via Software manager.
* Next up, check your java is installed by running zypper install java-21-openjdk
(newest release at time of writing this page)
* Then install ffmpeg with zypper install ffmpeg
**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