This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
howto:linux:install:centos7 [2014/12/29 16:49] operator |
howto:linux:install:centos7 [2017/06/05 07:30] 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< | + | **1.** SELinux is disabled |
- | 2. ffmpeg< | + | **2.** Install |
+ | < | ||
+ | Some repo's do not have a late enough Java version available. In these cases, downloading Java manually will be required. | ||
+ | |||
+ | **2a.** Go to Oracle Java 8 JRE Downloads Page (http:// | ||
+ | **2b.** Use wget to download the package. | ||
+ | < | ||
+ | cd ~ | ||
+ | wget http:// | ||
+ | sudo yum localinstall jre-8u131-linux-x64.rpm | ||
+ | </ | ||
+ | **2c.** Assuming all goes well, delete the RPM when done: | ||
+ | < | ||
+ | rm ~/ | ||
+ | </ | ||
+ | **2d.** | ||
+ | |||
+ | |||
+ | **3.** Install necessary repositories for ffmpeg: | ||
+ | < | ||
yum -y install http:// | yum -y install http:// | ||
- | yum -y install http:// | + | yum -y install http:// |
- | yum install ffmpeg</ | + | **4.** Install ffmpeg: |
+ | < | ||
==== Install/ | ==== Install/ | ||
Always check http:// | Always check http:// | ||
Line 12: | Line 33: | ||
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 / | mv / | ||
+ | ==== Create Serviio' | ||
+ | < | ||
+ | chown -R serviio: | ||
+ | passwd serviio | ||
+ | //enter a secure password you just have to remember for one login//</ | ||
+ | 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: | ||
+ | < | ||
+ | |||
+ | File / | ||
+ | < | ||
+ | Description=Serviio Server Daemon | ||
+ | After=syslog.target network.target | ||
+ | |||
+ | [Service] | ||
+ | User=serviio | ||
+ | Type=simple | ||
+ | ExecStart=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target</ | ||
+ | Enable Serviio Service on Linux startup: | ||
+ | < | ||
+ | systemctl enable serviio</ | ||
+ | Start Serviio Service: | ||
+ | < | ||
+ | ==== Firewall issues ==== | ||
+ | **1.** Register Serviio as a configurable firewall package | ||
+ | Create firewall configuration file / etc/ firewalld/ | ||
+ | File requires the following content: | ||
+ | < | ||
+ | <service version=" | ||
+ | < | ||
+ | < | ||
+ | <port port=" | ||
+ | <port port=" | ||
+ | <port port=" | ||
+ | <port port=" | ||
+ | <port port=" | ||
+ | <port port=" | ||
+ | <port port=" | ||
+ | <port port=" | ||
+ | </ | ||
+ | **2.** Open Firewall for Serviio: | ||
+ | < | ||
+ | systemctl start firewalld | ||
+ | firewall-cmd --permanent --zone=public --add-service=serviio | ||
+ | firewall-cmd --reload</ |