FAQ  •  Register  •  Login

Doubts about installing on Ubuntu Server 16.04

<<

carpler

Serviio newbie

Posts: 9

Joined: Fri Aug 25, 2017 8:14 am

Post Fri Aug 25, 2017 8:53 am

Doubts about installing on Ubuntu Server 16.04

Hi!
Although I've been using Serviio for several years, it's the first time I ask for help.
I changed my personal media center and installed on it Ubuntu Server 16.04.3 without graphical interface (it's a headless pc).
I'm not a linux expert, so I'm looking for the best instructions to install the last Serviio version on it.
I found several ways to do the job, but can not chose the one that is better.

First I found this page on Serviio's wiki. I don't know if this page is up to date: for example there are simpler ways to install java and ffmpeg and now there is a new version of Serviio (I do not know when 1.6.1 was coming up). No bad, the instructions to install Serviio are simple: download and extract!
Here is the first question: in which folder it is preferable to extract the program? I know that wget puts the file in the home by default...
I ask this also because in this older wiki page there are more complicated instructions to install Serviio (but is for Ubuntu 15.04: the 16.04 is so different?).
In this page is also suggested to create a new user and this is not necessary in the first page I linked.
I'm little bit confused...

Second question.
Assuming that Serviio is installed, what is the best way to start it automatically?
In this page there are instructions to create a script and to use upstart system.
A second way I found is on Getting started page and link to this page on the forum: it suggests to create a Daemon scripts (updated instruction to do this is on the last page of the thread).
What method is the best?

Thank you!
<<

rOOt@LX

User avatar

Serviio newbie

Posts: 12

Joined: Sat Aug 05, 2017 6:04 pm

Post Mon Aug 28, 2017 9:49 am

Re: Doubts about installing on Ubuntu Server 16.04

Install Java via ppa like this
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Install ffmpeg via ppa like this
https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-3

Install dcraw
sudo apt-get install dcraw

i prefer to install to /opt like this http://forum.serviio.org/viewtopic.php?f=5&t=23962
There are only 10 types of people in the world: Those who understand binary and those who don`t ....
<<

carpler

Serviio newbie

Posts: 9

Joined: Fri Aug 25, 2017 8:14 am

Post Mon Aug 28, 2017 5:57 pm

Re: Doubts about installing on Ubuntu Server 16.04

rOOt@LX wrote:Install Java via ppa like this
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Install ffmpeg via ppa like this
https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-3

Install dcraw
sudo apt-get install dcraw

i prefer to install to /opt like this http://forum.serviio.org/viewtopic.php?f=5&t=23962


Thank you for the answer!
Before you post here, I was able to install Serviio on my server!

I think that with Ubuntu 16.04 there is no need to add new repository.
For java this works for me:
  Code:
sudo apt-get install default-jre

and for ffmpeg:
  Code:
sudo apt-get install ffmpeg


For the directory where install serviio: I searched on the web and I opted for the folder /usr/local/bin/ (this before your post).
To start Serviio I used the Daemon script reported in this post with the modification in this post.
Nothing else, and all seems to work!

I read the post you linked. Two question for you:
1) Why prefer the /opt directory (if there is a reason)?
2) Why to ad a user to run Serviio?

Thank you!
<<

rOOt@LX

User avatar

Serviio newbie

Posts: 12

Joined: Sat Aug 05, 2017 6:04 pm

Post Tue Aug 29, 2017 8:11 am

Re: Doubts about installing on Ubuntu Server 16.04

By Design:
The / opt / (for optional) directory is a folder where all add-on programs that are not under a free license or are deliberately passed by the user to the package management are installed. But you can also use /usr/local/bin/. That makes no difference. A matter of taste :)

The default-jre package should work as well, you're right.
The background of the ffmpeg recommendation was that in this forum some problems were reported with the Ubuntu ffmpeg package
http://forum.serviio.org/viewtopic.php?f=5&t=23938

I created the user serviio, because i dont want to run serviio.service as root (with extended permissionss) for security reasons.
Serviio is now running under restricted permissions as a normal user, without the ability to impair important processes.


Regards
(Hope the Google-Translator does his job well)
There are only 10 types of people in the world: Those who understand binary and those who don`t ....

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 37 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.