User Tools

Site Tools


This is an old revision of the document!

This guide assumes you have installed Ubuntu 15.04 and need a new Serviio install.
The new Serviio 1.5.2 requires Java 8. The old Serviio 1.4 required Java 7

Ubuntu 15.04 adds back ffmpeg, so there is no need for an extra PPA. Install required software if not already installed:

sudo apt-get install ffmpeg
sudo apt-get install dcraw

Install Java 8. You can tell which, if any, versions are installed via:

dpkg --get-selections | grep jre

You may see openjdk-7-jre. If you see both openjdk-7-jre and openjdk-8-jre, check which is the default version via:

java -version

If openjdk-8-jre is installed and “java -version” yields “1.8.0_xx”, you are done. If Java is not installed or only Java 7, run:

sudo apt-get install openjdk-8-jre

If both Java 7 and 8 are installed, you may have to adjust the default via update-java-alternatives or edit scripts to specify the full path, e.g., /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java.

There are various ways to install Serviio, but this installs it in /opt and runs it as user serviio. The useradd option -r creates a system account and does not create a home directory. This will result in warnings in serviio.log, but there seems to be no ill effect. The first line logs in as root to make a few things easier:

sudo -H bash
useradd -r -s /bin/false serviio
mkdir -p /opt
cd /opt
tar zxvf serviio-1.5.2-linux.tar.gz
rm serviio-1.5.2-linux.tar.gz
ln -s serviio-1.5.2 serviio
chown -R root:root serviio-1.5.2
cd serviio-1.5.2
mkdir log
chown -R serviio:serviio library log

Use your favorite text editor and create /lib/systemd/system/serviio.service with:

Description=Serviio Media Server

ExecStop=/opt/serviio/bin/ -stop


Lastly, start serviio and have it run automatically at boot via:

systemctl daemon-reload
systemctl enable serviio
systemctl start serviio
howto/linux/install/ubuntu15-04.1430602037.txt.gz · Last modified: 2015/05/02 21:27 by drbob