How To Install IOPing on CentOS 7

IOPing on CentOS 7

IOPing lets you to benchmark the storage performance is to measure the latency of individual requests. IOPing is a simple tool that does just that. It runs I/O requests to the storage device to benchmark the time to reply. The results display disk latency in the same way ping –test measures network latency.

Table of Contents

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

Step 2. Installing IOPing.

Step 3. Usage IOPing.

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 IOPing on CentOS 7 server.
Install IOPing on CentOS 7

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

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

Step 2. Installing IOPing.

First, create and navigate to the directory where ioping will be installed:

cd ~
mkdir ioping
cd ioping

Download the installation file using wget. We will be using version 0.8 from their Google Code repository:

wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ioping/ioping-0.8.tar.gz
tar -xzvf ioping-0.8.tar.gz

Enter the directory and compile ioping:

cd ioping-0.8
make ioping

Step 3. Usage IOPing.

Ioping has a list of built-in commands. Run ioping without any arguments to show the list:

ioping

To show sequential latency, enter the following command:

ioping -R /dev/sda

To determine the latency of the entire drive, run this command:

ioping -c 10 /

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

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.