User Tools

Site Tools


howto:linux:install:ubuntu

Ubuntu Server Installation Guide

Based on bigfatostrich's Howto and Forum members contributions


Prerequisites

  • Java

You need Java version 8 or later. To find out what version you have type:

java -version

Confusingly you are looking for a version of 1.8 or later. If you don't have this then you will need to install it. There are more ways of installing Java on your system than I want to articulate here, but if you just want Serviio to work then the following is a good solution:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
  • FFmpeg
sudo apt-get install ffmpeg libavcodec-extra-53 libavformat-extra-53
FFmpeg is replaced by avconv
  • workaround for missing FFmpeg
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg
  • dcraw for digital pictures
sudo apt-get install dcraw

1.Download Serviio

Always check what the latest version is on the website, it is currently 1.6.1 and update accordingly
Here is link to serviio.org download page.
http://www.serviio.org/download

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

2.Extract Serviio

tar xvf serviio-1.6.1-linux.tar.gz

3.Ubuntu Server Startup Script (credit to forum member jonolafur)

Note for Ubuntu systems that use systemd not upstart (i.e. 15+) this forum item discusses the way to configure correctly: http://forum.serviio.org/viewtopic.php?f=5&t=4836

Create and save the following script in the directory /etc/init/ and call it serviio.conf

start on started networking
script
   /<path-to-serviio>/serviio.sh
end script

and replace <path-to-serviio> with the actual path to your serviio installation.

If any problems should arise with the system locales, a specific locale can be added to the script right before the path to serviio.

start on started networking
script
   LANG=da_DK.utf8 /<path-to-serviio>/serviio.sh
end script

The system specific locale can be found using the following command.

locale -a

This should yeild a list like this.

$ locale -a
C
C.UTF-8
da_DK.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8

Replace “LANG=da_DK.UTF8” in the script with the desired locale.

The upstart system now starts the serviio server as soon as all networking jobs have been started:

sudo /etc/init.d/networking restart

If you need it to start earlier or later, please check the excellent documentation on upstart for example here:

Upstart Cookbook

You can now get a list of all jobs registered with upstart by issuing:

initctl list

and you should get something like:

serviio start/running, process 1009

if it is already running, otherwise it says:

serviio stop/waiting

You can start and stop the job via:

sudo start serviio

and

sudo stop serviio

Fixing multicast on Linux hosts

On Linux hosts it could be that you need to set up multicast to let Serviio work correctly
To do this, add following line to /etc/network/interfaces:

Replace eth0 with the name of the network interface
up route add -net 239.0.0.0 netmask 255.0.0.0 dev eth0

Making Serviio's MediaBrowser accessible via the web

Instructions given are tested on an Ubuntu Server running Apache 2.4

Usually you go to http://localhost:23424/mediabrowser to access the MediaBrowser. It is possible to make something like http://www.your-example-domain.com/media. This is done with Apache's ProxyPass.

Enable proxy module

a2enmod proxy

Make a new Apache configuration file

nano /etc/apache2/sites-enabled/001-serviio.conf

Put this inside

<Location /media>
Require all granted
ProxyPass http://localhost:23424/mediabrowser
ProxyPassReverse http://localhost:23424/mediabrowser
</Location>

<Location /cds>
Require all granted
ProxyPass http://localhost:23424/cds
ProxyPassReverse http://localhost:23424/cds
</Location>

Enable the new configuration and reload your configuration

a2ensite 001-serviio
service apache reload

Setting up a password

Go to <ip-address of the server>:23423/console/ and use this console to set up a password.

howto/linux/install/ubuntu.txt · Last modified: 2016/11/10 15:37 by 7upman