User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:linux:install:centos7 [2014/12/29 17:30]
howto:linux:install:centos7 [2017/06/05 07:30] (current)
milkmansson Add later version of Java Instructions.
Line 1: Line 1:
-This was tested on CentOS 7.+**2014-12-29** 
 +This was tested on CentOS 7 with Serviio 1.41.
 ==== Prerequisites ==== ==== Prerequisites ====
-1. Java<code>yum install java-1.7.0-openjdk</code> +**1.** SELinux is disabled 
-2. ffmpeg<code>yum -y install**2.** Install Java (Serviio version 1.5 and later requires minimum Java 8): 
 +<code>yum install java-1.7.0-openjdk</code> 
 +Some repo's do not have a late enough Java version available In these cases, downloading Java manually will be required.  In this case please follow this recipe: 
 +**2a.** Go to Oracle Java 8 JRE Downloads Page ( and download the appropriate version.  You will need to accept the t's and c's, after that the URL can be copied using your browser. 
 +**2b.** Use wget to download the package.  Example instructions follow, your URL may be different. 
 +cd ~ 
 +sudo yum localinstall jre-8u131-linux-x64.rpm 
 +**2c.** Assuming all goes well, delete the RPM when done: 
 +rm ~/jre-8u131-linux-x64.rpm 
 +**2d.**  If you install the openJDK and find it doesn't work, you may need to remove it to allow instructions 2a thru c to work.  I did this by using YUM to search for installed packages, finding the jre package, and then issuing sudo yum remove (package) to get rid of it.  Uninstalling the "java-1.7.0-openjdk" on its own was not enough. 
 +**3.** Install necessary repositories for ffmpeg
 +<code>yum -y install
 yum -y install yum -y install
-yum -y install +yum -y install</code> 
-yum install ffmpeg</code>+**4.** Install ffmpeg: 
 +<code>yum install ffmpeg</code>
 ==== Install/Extract Serviio ==== ==== Install/Extract Serviio ====
 Always check for the latest version first. Always check for the latest version first.
Line 22: Line 43:
 <code>touch /lib/systemd/system/serviio.service</code> <code>touch /lib/systemd/system/serviio.service</code>
-File /lib/systemd/system/serviio.service needs the following content:+File /lib/systemd/system/serviio.service requires the following content:
 <code>[Unit] <code>[Unit]
 Description=Serviio Server Daemon Description=Serviio Server Daemon
Line 34: Line 55:
 [Install] [Install]</code></code>
-Enable Serviio Service on Linux startup +Enable Serviio Service on Linux startup: 
-<code>systemctl enable serviio</code> +<code>systemctl daemon-reload 
-Start Serviio Service+systemctl enable serviio</code> 
 +Start Serviio Service:
 <code>systemctl start serviio</code> <code>systemctl start serviio</code>
 ==== Firewall issues ==== ==== Firewall issues ====
-1. Register Serviio as a configurable firewall package +**1.** Register Serviio as a configurable firewall package 
-Create firewall configuration file for Serviio+Create firewall configuration file / etc/ firewalld/services/serviio.xml  (Sorry for the blanks in the path above, but unfortunately this wiki says 'access denied' when trying to code subdirs of etc without blanks) 
- +File requires the following content
-to be continued...+<code><?xml version="1.0" encoding="utf-8"?> 
 +<service version="1.0"> 
 + <short>serviio</short> 
 + <description>Serviio Server</description> 
 + <port port="8895" protocol="udp"/> 
 + <port port="8895" protocol="tcp"/> 
 + <port port="1900" protocol="udp"/> 
 + <port port="1900" protocol="tcp"/> 
 + <port port="23423" protocol="udp"/> 
 + <port port="23423" protocol="tcp"/> 
 + <port port="23424" protocol="udp"/> 
 + <port port="23424" protocol="tcp"/> 
 +**2.** Open Firewall for Serviio: 
 +<code>systemctl stop firewalld 
 +systemctl start firewalld 
 +firewall-cmd --permanent --zone=public --add-service=serviio 
 +firewall-cmd --reload</code>
howto/linux/install/centos7.1419874252.txt.gz · Last modified: 2014/12/29 17:30 by operator