User Tools

Site Tools


howto:linux:install:centos7

Differences

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
Next revision Both sides next revision
howto:linux:install:centos7 [2014/12/29 16:49]
operator
howto:linux:install:centos7 [2015/01/19 14:25]
zip
Line 1: Line 1:
 +**2014-12-29**
 This was tested on CentOS 7. This was tested on CentOS 7.
  
 ==== Prerequisites ==== ==== Prerequisites ====
-1. Java<code>yum install java-1.7.0-openjdk</code> +**1.** SELinux is disabled 
-2. ffmpeg<code>yum -y install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm+**2.** Install Java: FIXME Java 8 required 
 +<code>yum install java-1.7.0-openjdk</code> 
 +**3.** Install necessary repositories for ffmpeg
 +<code>yum -y install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
 yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
-yum -y install http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm +yum -y install http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm</code> 
-yum install ffmpeg</code>+**4.** Install ffmpeg: 
 +<code>yum install ffmpeg</code>
 ==== Install/Extract Serviio ==== ==== Install/Extract Serviio ====
 Always check http://www.serviio.org/download for the latest version first. Always check http://www.serviio.org/download for the latest version first.
Line 12: Line 17:
 tar -C /opt -zxvf serviio-1.4.1.2-linux.tar.gz tar -C /opt -zxvf serviio-1.4.1.2-linux.tar.gz
 mv /opt/serviio-1.4.1.2 /opt/serviio</code> mv /opt/serviio-1.4.1.2 /opt/serviio</code>
 +==== Create Serviio's user ====
 +<code>useradd -d /opt/serviio -r serviio
 +chown -R serviio:serviio /opt/serviio
 +passwd serviio
 +//enter a secure password you just have to remember for one login//</code>
 +After the password for the user serviio is set, please logon and logoff with this user via console or ssh. If you won't, user serviio won't have any access to directories you want to share.
 +==== Create Service called serviio ====
 +Create systemd service file:
 +<code>touch /lib/systemd/system/serviio.service</code>
 +
 +File /lib/systemd/system/serviio.service requires the following content:
 +<code>[Unit]
 +Description=Serviio Server Daemon
 +After=syslog.target network.target
 +
 +[Service]
 +User=serviio
 +Type=simple
 +ExecStart=/opt/serviio/bin/serviio.sh
 +
 +[Install]
 +WantedBy=multi-user.target</code>
 +Enable Serviio Service on Linux startup:
 +<code>systemctl daemon-reload
 +systemctl enable serviio</code>
 +Start Serviio Service:
 +<code>systemctl start serviio</code>
 +==== Firewall issues ====
 +**1.** Register Serviio as a configurable firewall package
 +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:
 +<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"/>
 +</service></code>
 +**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.txt · Last modified: 2017/06/05 07:30 by milkmansson