How To Install Plex Media Server on CentOS 7 Step by Step

Plex Media Server on CentOS 7

Plex is a free piece of software that allows you to organize your movies, TV shows, music and photos in one beautiful interface and stream those media files on your PC, tablet, phone, TV, Roku, etc on the network or over the Internet. In this tutorial we will learn how To Install Plex Media Server 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 installation Plex on a CentOS 7 server.

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

Go to the Plex Downloads page and copy the installation link for CentOS. Use wget to download the installer via the copied link:

wget https://downloads.plex.tv/plex-media-server/1.14.1.5488-cc260c476/plexmediaserver-1.14.1.5488-cc260c476.x86_64.rpm
sudo yum install plexmediaserver*.rpm

Then, start Plex Media Server and enable it to start on boot time by running the following command:

sudo systemctl enable plexmediaserver.service
sudo systemctl start plexmediaserver.service

Step 3. Configure Plex.

Now, open a web browser and type the following address. Change the IP address with your CentOS 7 IP address:

http://[your-server-ip-address]:32400/web/

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

How To Install Wine on CentOS 7 Step by Step

Install Wine on CentOS 7

Wine is a free and open source application allows users to run Windows applications in a Linux environment. Nowadays, Wine is a must-have tool for Linux users who don’t want to let go of Windows native applications especially gamers. In this tutorial we will learn how To Install Wine 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 installation Wine on a CentOS 7 server.

Install Wine 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 Dependency Packages.

We need to install ‘Development Tools‘ with some core development tools such as gcc, flex, bison, debuggers etc:

yum groupinstall 'Development Tools'
yum install libX11-devel freetype-devel zlib-devel libxcb-devel libxslt-devel libgcrypt-devel libxml2-devel gnutls-devel libpng-devel libjpeg-turbo-devel libtiff-devel gstreamer-devel dbus-devel fontconfig-devel

Step 3. Installing Wine on CentOS 7.

First, download wine source code. Use below commands to download it:

cd /tmp
wget  https://dl.winehq.org/wine/source/4.0/wine-4.0.tar.xz
tar -xvf wine-4.0.tar.xz -C /tmp/

Then, Configure wine using one of the following commands based on your system architecture:

### 32-bit Systems ###
cd wine-4.0/
./configure
make
make install

### 64-bit Systems ###
cd wine-4.0/
./configure –enable-win64
make
make install

Check the wine version:

wine --version

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

How To Install OpenCV on CentOS 7 Step by Step

Install OpenCV on CentOS 7

OpenCV (Open Source Computer Vision Library) is an open source computer vision library with bindings for C++, Python, and Java and supports all major operating systems. It can take advantage of multi-core processing and features GPU acceleration for real-time operation. OpenCV can be deployed on various platforms, including Windows, Linux, Android, iOS, etc. In this tutorial we will learn how to Install OpenCV on CentOS 7 Step by Step.

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 installation OpenCV on a CentOS 7 server.
Install OpenCV 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 dependencies for OpenCV.

Use the following commands to install all required dependencies for compiling OpenCV:

yum groupinstall "Development Tools"
yum install cmake gcc gtk2-devel numpy pkconfig

Step 3. Installing OpenCV on CentOS 7.

First, Download and unarchive OpenCV archive as below:

wget https://github.com/opencv/opencv/archive/3.3.0.zip
unzip 3.3.0.zip

Next, compile and install OpenCV:

cd opencv-3.3.0
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=DEBUG -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
make install

Then, configure required variables:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/
echo '/usr/local/lib/' >> /etc/ld.so.conf.d/opencv.conf
ldconfig

To test your OpenCV installation, you can download extra test data from the OpenCV extra repository:

cd
git clone https://github.com/opencv/opencv_extra.git
export OPENCV_TEST_DATA_PATH=/root/opencv_extra/testcinta

In the cmake build directory, you will find several test executables named in the same kind of format opencv_test_*. Run any one you are interested in to perform a test. Example below:

cd /root/opencv-3.3.0/build/bin
ls
./opencv_test_cinta

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

How To Install WebStorm on CentOS 7 Step by Step

Install WebStorm on CentOS 7

WebStorm is a smart and featured IDE for JavaScript developed by JetBrains. It also gives aid for Typescript, and CSS etc.. You can Extend WebStorm attributes. By using WebStorm Plugins it is also possible to get support for frameworks like Node.js, Angularjs etc.. We could use WebStorm for other programming languages such as HTML, SQL, CSS and much more. In this tutorial we will learn how To Install WebStorm 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 installation WebStorm on a CentOS 7 server.

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

First, we will download WebStorm using official WebStorm download page using wget command:

sudo wget https://download-cf.jetbrains.com/webide/WebStorm-2018.3.2.tar.gz
tar -xvf WebStorm-2018.3.2.tar.gz
cd WebStorm-2018.3.2

Now to run WebStorm like normal programs you should create symbolic link using the following command:

sudo ln -s ./WebStorm-2018.3.2/bin/webstorm.sh /usr/bin/webstorm

You can launch WebStorm using following command:

webstorm

Finally step, You will get the following output after accepting the license and importing settings for setting up the initial configuration:

webstorm-initial-configuration

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

How To Configure Firewall on CentOS 7 Step by Step

Configure Firewall on CentOS 7

FirewallD is a complete firewall solution that manages the system’s iptables rules and provides a D-Bus interface for operating on them. Starting with CentOS 7, FirewallD replaces iptables as the default firewall management tool. In this tutorial we will learn how to Configure Firewall 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, configure Firewall on CentOS 7 server.

Configure Firewall 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 FirewallD on CentOS 7.

Firewalld is installed by default on CentOS 7, but if it is not installed on your system, you can execute the following command for its installation:

sudo yum install firewalld

After you install firewalld, you can enable the service and reboot your server. Keep in mind that enabling firewalld will cause the service to start up at boot:

sudo systemctl start firewalld
sudo systemctl enable firewal
sudo reboot

We can verify that the service is running and reachable by typing:

sudo firewall-cmd --state

Step 3. Setup and configuration of FirewallD on CentOS 7.

FirewallD uses services and zones instead of iptables rules and chains. By default the following zones are available:
drop – Drop all incoming network packets with no reply, only outgoing network connections are available.
block – Reject all incoming network packets with an icmp-host-prohibited message, only outgoing network connections are available.
public – Only selected incoming connections are accepted, for use in public areas
external For external networks with masquerading is enabled, only selected incoming connections are accepted.
dmz – DMZ demilitarized zone, publicly-accessible with limited access to the internal network, only selected incoming connections are accepted.
work – For computers in your home area, only selected incoming connections are accepted.
home – For computers in your home area, only selected incoming connections are accepted.
internal -For computers in your internal network, only selected incoming connections are accepted.
trusted – All network connections are accepted.

To list all available zones run:

firewall-cmd --get-zones
work drop internal external trusted home dmz public block

To list the default zone:

firewall-cmd --get-default-zone
public

To change the default zone:

firewall-cmd --set-default-zone=dmz
firewall-cmd --get-default-zone
dmz

Example, here is how you can configure your VPS firewall with FirewallD if you were running a web server, SSH on port 8888 and mail server.

First we will set the default zone to dmz.
firewall-cmd --set-default-zone=dmz
firewall-cmd --get-default-zone
dmz

To add permanent service rules for HTTP and HTTPS to the dmz zone, run:

firewall-cmd --zone=dmz --add-service=http --permanent
firewall-cmd --zone=dmz --add-service=https --permanent

Since the SSH port is changed to 7022, we will remove the ssh service (port 22) and open port 8888

firewall-cmd --remove-service=ssh --permanent 
firewall-cmd --add-port=8888/tcp --permanent

To implement the changes we need to reload the firewall with:

firewall-cmd --reload

Finally, you can list the rules with:

### firewall-cmd --list-all
 dmz
 target: default
 icmp-block-inversion: no
 interfaces:
 sources:
 services: http https imap imaps pop3 pop3s smtp smtps
 ports: 7022/tcp
 protocols:
 masquerade: no
 forward-ports:
 sourceports:
 icmp-blocks:
 rich rules:

Congratulation’s! You have successfully configure Firewall. Thanks for using this tutorial for installing firewalld on CentOS 7 system. For additional help or useful information, we recommend you to check the official firewalld website.

How To Install Gradle on CentOS 7 Step by Step

Install Gradle on CentOS 7

Gradle is a free and open source build automation toolset based on the concepts of Apache Ant and Apache Maven. Gradle provides a platform to support the entire development lifecycle of a software project. In this tutorial we will learn How To Install Gradle on CentOS 7 Step by Step.

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.

Install Gradle 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 OpenJDK.

Gradle requires Java Development Kit (JDK) 7 or higher in order to work. In this tutorial we will be installing JDK 8. Run the following command to install JDK 8 on your server:

sudo yum install java-1.8.0-openjdk-devel

Verify the Java version by running the following command:

java -version

Step 3. Installing Gradle on CentOS.

Run the commands below to download Gradle, At the time of this writing, the version is 5.1:

wget https://services.gradle.org/distributions/gradle-5.1-bin.zip -P /tmp

Now unzip downloaded zip file using following command:

sudo unzip -d /opt/gradle /tmp/gradle-5.1.zip

Step 4. Setup environment variables.

PATH Environment variable should include Gradle directory. So we should create gradle.sh file inside /etc/profile.d/ directory. To create file run following command:

sudo nano /etc/profile.d/gradle.sh

Now paste following code inside above file:

export GRADLE_HOME=/opt/gradle/gradle-5.1
export PATH=${GRADLE_HOME}/bin:${PATH}

Then, make script file executable using following command:

sudo chmod +x /etc/profile.d/gradle.sh

Load the environment variables using following command:

source /etc/profile.d/gradle.sh

Step 5. Verify the Gradle installation.

You can run the following command to check if the Gradle install was successful:

gradle -v

You should see the following output:

Welcome to Gradle 5.1!

Here are the highlights of this release:
 - Kotlin DSL 1.0
 - Task timeouts
 - Dependency alignment aka BOM support
 - Interactive `gradle init`

For more details see https://docs.gradle.org/5.1/release-notes.html

------------------------------------------------------------
Gradle 5.1
------------------------------------------------------------

Build time:   2018-12-16 11:48:43 UTC
Revision:     e0824aec8a0f5462fc5fd9872664dbc7fc6e5abf

Kotlin DSL:   1.0.4
Kotlin:       1.3.10
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on January 29 2019
JVM:          1.8.0_181 (Oracle Corporation 25.181-b13)
OS:           Linux 4.15.0-36-generic amd64

Congratulation’s! You have successfully install Gradle. Thanks for using this tutorial for installing Gradle on CentOS 7 system. For additional help or useful information, we recommend you to check the official Gradle website.

How To Install PyCharm on CentOS 7 Step by Step

Install PyCharm on CentOS 7

PyCharm is an IDE for Python development and has been considered as one of the best Python IDE by the experts. The IDE comes with professional and community edition. The community edition is free of cost, but professional edition has more features. In this tutorial we will learn how To Install PyCharm 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 installation PyCharm on a CentOS 7 server.

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

Now we will download PyCharm using official PyCharm download page using wget command:

sudo wget https://download-cf.jetbrains.com/python/pycharm-professional-2018.3.2.tar.gz
tar -xvf pycharm-professional-2018.3.2.tar.gz
cd pycharm-professional-2018.3.2

Now to run PyCharm like normal programs you should create symbolic link using the following command:

sudo ln -s ./pycharm-community-2018.3.2/bin/pycharm.sh /usr/bin/pycharm

Step 3. Start PyCharm.

You can launch PyCharm using following command:

pycharm

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