Quick Start: Serviio Setup On Ubuntu 16.04

Serviio is a free media server. It allows you to stream your media files (music, video or images) to renderer devices (e.g. a TV set, Bluray player, games console or mobile phone) on your connected home network.

More information can be found at the Serviio home page

You will need root privileges to install this software:

sudo -H bash

 

Install prerequisite software:

apt-get install default-jre
apt-get install ffmpeg dcraw

Configure system for download and installation:

useradd --system --uid 998 --user-group --shell /bin/false --home-dir /opt/serviio serviio
cd /tmp

Get the latest Serviio software:

from the Serviio site: http://serviio.org/download and install:

wget http://download.serviio.org/releases/serviio-1.9.2-linux.tar.gz
cd /opt
tar xvzf /tmp/serviio-1.9.2-linux.tar.gz
ln -s ./serviio-1.9.2 serviio
chown -R root:root serviio-1.9.2
cd serviio
mkdir log
chown -R serviio:serviio library log

Create the systemd configuration file...

echo "
[Unit]
Description=Serviio Media Server
After=syslog.target local-fs.target network.target

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

[Install]
WantedBy=multi-user.target
" > /lib/systemd/system/serviio.service

 

... and install the startup configuration:

systemctl daemon-reload
systemctl enable serviio.service
systemctl start serviio.service