How To Install Red5 Media Server on CentOS 7

Red5 Media Server on CentOS 7

Red5 is an open source media server for live streaming solutions of all kinds. It is designed to be flexible with a simple plugin architecture that allows for customization of virtually any VOD and live streaming scenario.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Java.

Step 3. Installing Red5 Media Server.

Step 4. Accessing Red 5 installation.

 

Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step install Red5 Media Server on CentOS 7 server.
Install Red5 Media Server on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Installing Java.

You may skip this steps if you have already installed java on your system else use below link to install latest java version:

Install Java JDK 8 on CentOS 7

Step 3. Installing Red5 Media Server.

Use following commands to install red5:

wget https://github.com/Red5/red5-server/releases/download/v1.0.10-M4/red5-server-1.0.10-M4.tar.gz
tar xvf red5-server-1.0.10-M4.tar.gz
cd red5-server

After extracting downloaded archive, lets start Red5 using shell script red5.sh:

cd /opt/red5-server/
./red5.sh

Step 4. Accessing Red 5 installation.

Red5 demo pages and application can be accessed on port 5080 like http://your-server-ip:5080/

Congratulation’s! You have successfully installed Red5 on CentOS 7. Thanks for using this tutorial for installing Red5 Media Server on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Red5 Media Server web site.

How To Install PHP 5.6 on CentOS 7

PHP 5

PHP (recursive acronym for PHP: Hypertext Preprocessor) is an open source, popular general-purpose scripting language that is widely-used and best suited for developing websites and web-based applications. It is a server-side scripting language that can be embedded in HTML. By default Ubuntu 16.04 (Xenial) now comes with PHP 7.0. You can install PHP 5.6 in parallel and switch between them using the following instructions.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing PHP 5.6 on CentOS 7.

Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step install PHP 5.6 on CentOS 7 server.
Install PHP 5.6 on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Installing PHP 5.6 on CentOS 7.

First, you must add the Webtatic EL yum repository information corresponding to your CentOS version to yum:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Now, install PHP 5.6using the apt command:

yum install php56w php56w-opcache

if you want to use php-fpm, then install:

yum install php56w-fpm php56w-opcache

Verify the PHP version using the following command:

php -V

Congratulation’s! You have successfully installed PHP on CentOS 7. Thanks for using this tutorial for installing PHP 5.6 on CentOS 7 systems. For additional help or useful information, we recommend you to check the official PHP web site.

How To Install Apache CouchDB on CentOS 7

Apache CouchDB on CentOS 7

CouchDB is an open source project and NoSQL, document oriented database server. It has a document-oriented NoSQL database architecture and is implemented in the concurrency-oriented language Erlang; it uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Apache CouchDB.

Step 3. Configure firewall rules.

Step 4. Configure Fauxton Web GUI Administration Panel.

Step 7. Accessing Apache CouchDB

Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step install Apache CouchDB open source NoSQL database management system on CentOS 7 server.
Install Apache CouchDB on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum install epel-release
yum -y update

Step 2. Installing Apache CouchDB.

First, add the Apache repository:

### nano /etc/yum.repos.d/bintray-apache-couchdb-rpm.repo

[bintray--apache-couchdb-rpm]
name=bintray--apache-couchdb-rpm
baseurl=http://apache.bintray.com/couchdb-rpm/el$releasever/$basearch/
gpgcheck=0
repo_gpgcheck=0
enabled=1

Now run the following command to install CouchDB:

yum install couchdb

Next, run the following commands to start and enable CouchDB on boot:

systemctl start couchdb
systemctl enable couchdb

Step 3. Configure firewall rules.

sudo firewall-cmd --permanent --zone=public --add-port=5984/tcp
sudo firewall-cmd --reload

Step 4. Configure Fauxton Web GUI Administration Panel.

We are going to enable Fauxton by modifying the following file first:

nano /opt/couchdb/etc/default.ini

Go to the ‘[chttpd]’ line and change the bind_address value with your server’s IP address:

[chttpd]
; These settings affect the main, clustered port (5984 by default).
port = 5984
bind_address = 192.168.77.01

Restart CouchDB so the changes will take effect:

systemctl restart couchdb

Step 7. Accessing Apache CouchDB

Apache CouchDB will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://192.168.77.01:5984 and complete the required the steps to finish the installation.

Congratulation’s! You have successfully installed Apache CouchDB on CentOS 7. Thanks for using this tutorial for installing Apache CouchDB open source NoSQL database management on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Apache CouchDB web site.

How To Install Kanboard on CentOS 7

Kanboard on CentOS 7

Kanboard is a free and open source project management tool that uses the Kanban methodology. Kanboard focuses on minimalism and simplicity, it is mainly designed for small teams. It also helps you to manage your projects and visualize your workflow.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Install LEMP server.

Step 3. Installing Kanboard.

Step 4. Setup Firewall for Kanboard.

Step 5. Accessing Bolt Kanboard.

Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step install Kanboard open source project management tool on CentOS 7 server.
Install Kanboard on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Install LEMP server.

A CentOS 7 LEMP stack server is required. If you do not have LEMP installed, you can follow our guide here. Also install required PHP modules:

yum install php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel

Step 3. Installing Kanboard.

First, Download and unzip the latest version of Kanboard:

cd /var/www/html/
wget https://kanboard.net/kanboard-latest.zip
unzip kanboard-latest.zip

We will need to change some folders permissions:

chown -R apache:apache kanboard/data

Next, copy the included config.default.php to config.php and change the database information by using these commands:

cd /var/www/html/kanboard
mv config.default.php config.php

Create a configuration file named config.php using nano editor and enter the following contents into the file:

### nano /etc/config.php

// Database driver: sqlite, mysql or postgres (sqlite by default)
define('DB_DRIVER', 'mysql');

// Mysql/Postgres username
define('DB_USERNAME', 'kanboard');

// Mysql/Postgres password
define('DB_PASSWORD', 'kanboarduser_passwd');

// Mysql/Postgres hostname
define('DB_HOSTNAME', 'localhost');

// Mysql/Postgres database name
define('DB_NAME', 'kanboarduser');

Restart the Apache service by running the following command.:

systemctl restart httpd

Step 4. Setup Firewall for Kanboard.

Allow visitors access Kanboard on port 80:

firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --reload

Step 5. Accessing Bolt Kanboard.

Kanboard will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/kanboard or http://server-ip/kanboard.

Congratulation’s! You have successfully installed Kanboard on CentOS 7. Thanks for using this tutorial for installing Kanboard open source project management tool on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Kanboard web site.

How To Install Android Studio on CentOS 7

Android Studio on CentOS 7

Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA. On top of IntelliJ’s powerful code editor and developer tools, Android Studio offers even more features that enhance your productivity when building Android apps

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Java 8 on CentOS.

Step 3. Install Android Studio on CentOS.

Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step install Android Studio on CentOS 7 server.

Install Android Studio on CentOS 7

 

 

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Installing Java 8 on CentOS.

First you need to make sure that your CentOS is equipped with JAVA. For the installation you can download the latest version of Java:

rpm -ivh jdk-8u162-linux-x64.rpm

Once installed we need to set Java environment variables such as JAVA_HOME on CentOS 7:

export JAVA_HOME=/usr/java/jdk1.8.0_25/
export PATH=$PATH:$JAVA_HOME

Checking Installed java version:

### java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

Step 3. Install Android Studio on CentOS.

Next, install studio by downloading the ide file from Android site and unzipping the same:

unzip android-studio-ide-171.4443003-linux.zip

Move android-studio directory to /opt directory:

mv /tmp/android-studio/ /opt/

Then, create a symlink to the studio executable to quickly start it whenever you need it:

ln -s /opt/android-studio/bin/studio.sh /usr/local/bin/android-studio

Now launch the studio from a terminal:

studio

Congratulation’s! You have successfully installed Android Studio on CentOS 7. Thanks for using this tutorial for installing Android Studio on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Android Studio web site.

How To Install ELK Stack on CentOS 7

ELK Stack on CentOS 7

ELK stack is a popular, open source log management platform. It is used as a centralized management for storing, analyzing and viewing of logs. Centralized management makes it easier to study the logs & identify issues if any for any number of servers.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Java.

Step 3. Installing Elasticsearch.

Step 4. Installing Kibana.

Step 5. Configure ELK stack.

Step 6. Configure Logstash.

Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step install ELK Stack (Elasticsearch, Logstash and Kibana) on CentOS 7 server.
Install ELK Stack on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Installing Java.

You need a Java Runtime Environment (JRE) because Elasticsearch is written in Java programming language, you can install OpenJDK package that includes JRE:

yum install java-1.8.0-openjdk.x86_64

Verify the Java version:

[[email protected] ~]# java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)

Step 3. Installing Elasticsearch.

Elasticsearch can be installed with a package manager by adding Elastic’s package repository:

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.0.0.rpm

Then install the RPM package that you just downloaded:

rpm -ivh elasticsearch-5.0.0.rpm

Start and enable the service:

systemctl enable elasticsearch
systemctl start elasticsearch

Now run the following command from the terminal to check if the elasticsearch is working properly:

curl -X GET http://localhost:9200

You should get the following output:

{
"name" : "idroot.net",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "k27ZZFJPTaOtwg6_pyzEiw",
"version" : {
"number" : "5.5.0",
"build_hash" : "2cfe0df",
"build_date" : "2017-05-29T16:05:51.443Z",
"build_snapshot" : false,
"lucene_version" : "6.5.1"
},
"tagline" : "You Know, for Search"
}

Step 4. Installing Kibana.

Install Kibana is very simple, you can easily install it using an RPM package:

wget https://artifacts.elastic.co/downloads/kibana/kibana-5.5.0-x86_64.rpm

Now just execute the following command so you can start the Kibana service:

systemctl daemon-reload
systemctl start kibana

Kibana is now installed and working on our system. To check the web-page, open the web browser & go to the URL mentioned below (use the IP address for your ELK host):

http://localhost:5601

Step 5. Configure ELK stack.

First, we need to create an SSL certificate. This certificate will be used for securing communication between logstash & filebeat clients. Before creating a SSL certificate, we will make an entry of our server IP address in openssl.cnf:

nano /etc/ssl/openssl.cnf

Look for section with ‘subjectAltName’ & add your server IP to it:

subjectAltName = IP:10.20.30.100

Now change the directory to /etc/ssl and create SSL certificate:

cd /etc/ssl
openssl req -x509 -days 365 -batch -nodes -newkey rsa:2048 -keyout logstash-forwarder.key -out logstash_frwrd.crt

Step 6. Configure Logstash.

We will now create a configuration file for logstash under the folder ‘/etc/logstash/conf.d‘:

[[email protected] ~]# nano /etc/logstash/conf.d/logstash.conf

# input section
input {
 beats {
 port => 5044
 ssl => true
 ssl_certificate => "/etc/ssl/logstash_frwrd.crt"
 ssl_key => "/etc/ssl/logstash-forwarder.key"
 congestion_threshold => "40"
 }
}

Next section i.e. ‘filter section’ will parse the logs before sending them to elasticsearch:

# Filter section
filter {
if [type] == "syslog" {
 grok {
 match => { "message" => "%{SYSLOGLINE}" }
 }
 date {
match => [ "timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]

}
 }
}

Last section is ‘output section’ & it defines the location for the storage of logs:

# output section
output {
 elasticsearch {
 hosts => localhost
 index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
 }
stdout {
 codec => rubydebug
 }
}

Now save the file and exit. Now start the logstash service & enable it at boot time:

systemctl start logstash
systemctl enable logstash

Step 7. Installing Filebeat on Clients.

Now to be able to communicate with the ELK stack, Filebeat needs to installed on all the client machines:

### nano /etc/yum.repos.d/filebeat.repo
[beats]
name=Elastic Beats Repository
baseurl=https://packages.elastic.co/beats/yum/el/$basearch
enabled=1
gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch
gpgcheck=1

Now install filebeat using following command:

yum install filebeat

After the filebeat has been installed, copy the ssl certificate from the ELK stack server to ‘/etc/ssl’. Next we will make changes to filebeat configuration file to connect the client to ELK server:

nano /etc/filebeat/filebeat.yml

Make the following changes to file:

. . .
paths:
– /var/log/*.log
. . .

. . .
document_type: syslog
. . .

. . .
output:
logstash:
hosts: [“10.20.30.100:5044”]
tls:
certificate_authorities: [“/etc/ssl/logstash_frwrd.crt”]
. . .

Now start the service and enable it at boot time:

systemctl restart filebeat
systemctl enable filebeat

Configurations on both server end and client end are now complete. We can now login to the kibana web interface to look for analysed logs.

http://your-ip-address:5601/

Congratulation’s! You have successfully installed ELK Stack on CentOS 7. Thanks for using this tutorial for installing ELK Stack (Elasticsearch, Logstash and Kibana) on CentOS 7 systems. For additional help or useful information, we recommend you to check the official ELK Stack web site.

How To Install FreeIPA on CentOS 7

FreeIPA on CentOS 7

FreeIPA is an open source identity management system for Linux/Unix environments which provides centralized account management and authentication, like Microsoft Active Directory or LDAP.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing FreeIPA.

Step 3. Configuring FreeIPA.

Step 4. Configure firewall for FreeIPA.

Step 5. Accessing FreeIPA.

Prerequisites

FreeIPA has many components, including Kerberos, NTP, DNS, and Dogtag (a certificate system) in order to provide security on your CentOS 7 server. The full FreeIPA package essentially provides Linux systems with the abilities for centralized authentication, authorization and account information by storing data about users, groups, hosts and all the other objects that are needed to manage security for networks.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step install FreeIPA open source identity management system on CentOS 7 server.
Install FreeIPA on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Installing FreeIPA.

The first thing that we are going to do is to prepare the CentOS 7 server to run FreeIPA. In order to do this, we are going to set the IP address on the system, In our case the host IP is 192.168.1.2/24:

hostnamectl set-hostname ipa.wpcademy.com
echo "192.168.1.2 ipa.wpcademy.local ipa" >> /etc/hosts

Next, Install the package dependencies required for our setup with the following commands if they are not already installed:

yum install bind-dyndb-ldap ipa-server-dns sssd-client sssd-common sssd-common-pac sssd-ldap sssd-proxy python-sssdconfig authconfig authconfig-gtk

Then, install FreeIPA using following command:

yum install ipa-server -y

Step 3. Configuring FreeIPA.

The setup process for FreeIPA can take a long time to complete depending on the server specifications. Begin the setup process with the following command:

ipa-server-install --setup-dns

Here is how this configuration will look by running the previous command:

[[email protected] ~]# ipa-server-install --setup-dns

The log file for this installation can be found in /var/log/ipaserver-install.log
==============================================================================
This program will set up the IPA Server.

This includes:
* Configure a stand-alone CA (dogtag) for certificate management
* Configure the Network Time Daemon (ntpd)
* Create and configure an instance of Directory Server
* Create and configure a Kerberos Key Distribution Center (KDC)
* Configure Apache (httpd)
* Configure DNS (bind)

To accept the default shown in brackets, press the Enter key.

Enter the fully qualified domain name of the computer
on which you're setting up server software. Using the form
.
Example: master.example.com.


Server host name [ipa.wpcademy.local]: [ENTER]

Warning: skipping DNS resolution of host ipa.idroot.local
The domain name has been determined based on the host name.

Please confirm the domain name [wpcademy.local]:[ENTER]
The kerberos protocol requires a Realm name to be defined.
This is typically the domain name converted to uppercase.

Please provide a realm name [IDROOT.LOCAL]: [ENTER]
Certain directory server operations require an administrative user.
This user is referred to as the Directory Manager and has full access
to the Directory for system management tasks and will be added to the
instance of directory server created for IPA.
The password must be at least 8 characters long.

Directory Manager password: [ENTER PASSWORD]
Password (confirm): [ENTER PASSWORD]

 . . . . .

After the FreeIPA installation, authenticate to the Kerberos realm to ensure that the administrator is configured correctly:

kinit admin

Next, this we are going to use authconfig to guarantee that the user directories are created and enable sssd:

authconfig --enablemkhomedir --update
chkconfig sssd on

Step 4. Configure firewall for FreeIPA.

These commands are used to allow FreeIPA services in the case the the security daemon Firewalld is running on your system:

firewall-cmd --permanent --add-service={ntp,http,https,ldap,ldaps,kerberos,kpasswd,dns}
firewall-cmd --reload

Step 5. Accessing FreeIPA.

FreeIPA will be available on HTTP port 80 by default. Open your favorite browser and navigate to https://ipa.wpcademy.local/ and complete the required the steps to finish the installation.

Congratulation’s! You have successfully installed FreeIPA on CentOS 7. Thanks for using this tutorial for installing FreeIPA open source identity management on CentOS 7 systems. For additional help or useful information, we recommend you to check the official FreeIPA web site.