How To Install GCC on CentOS 7 Step by Step

Install GCC on CentOS 7

GCC or GNU Compiler Collection is released by the Free Software Foundation and as the name suggests, it is very useful collection of programming compilers such as C, C++, Objective-C, Objective-C++, Fortran, Java, Go. GCC is an official compiler of the GNU operation system but also it is a standard compiler on many Unix operating systems such as Linux. In this tutorial we will learn How To Install GCC on CentOS 7 Step by Step.

Prerequisites

This tutorial 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 GCC Compiler on CentOS 7 server.

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

Method 1 Install GCC from repository:

GCC can be easily installed from the official CentOS repositories. Run the following command to install GCC:

yum -y install gcc

Once the installation, you can the version of GCC:

gcc --version

Method 2 Install GCC from source:

First, download the tarball of the GCC version you want to install:

wget http://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-7.3.0/gcc-7.3.0.tar.gz

Unpack the tar archive and change the current directory:

tar zxf gcc-7.3.0.tar.gz
cd gcc-7.3.0

Install bzip2 and run the ‘download_prerequisites’ script to download some prerequisites needed:

yum -y install bzip2
./contrib/download_prerequisites

Next, start configuring the GCC build environment:

./configure --disable-multilib --enable-languages=c,c++

Once it is completed, run the following command to compile the source code:

make -j 4
make install

You can check if GCC is properly installed:

gcc --version

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

How To Install Apache Tomcat on CentOS 7 Step by Step

Install Apache Tomcat on CentOS 7

Apache Tomcat is an open source web server and servlet container developed by the Apache Software Foundation. It implements the Java Servlet, JavaServer Pages (JSP), Java Unified Expression Language and Java WebSocket specifications from Sun Microsystems and provides a web server environment for Java code to run in. In this tutorial we will learn how to Install Apache Tomcat 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. I will show you through the step by step install Apache Tomcat on CentOS 7 server.

Install Apache Tomcat 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.

Apache Tomcat 9 requires Java 8 or newer to be installed on the server. Run the following command to install Java 8:

yum install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64

Once installed, You can also verify it, by issuing the following command:

java -version

Step 3. Install Apache Tomcat 9 on CentoS 7.

First, go to the official Apache Tomcat website and download the most recent version of the software to your server. At the moment the most recent release is version 9.0.7:

wget http://www.apache.org/dist/tomcat/tomcat-9/v9.0.7/bin/apache-tomcat-9.0.7.zip

Unpack the downloaded zip archive:

unzip apache-tomcat-9.0.7.zip -d /opt

Next, create a new directory named ‘apache-tomcat-9.0.7’. We will rename it to something simpler:

cd /opt
mv apache-tomcat-9.0.7/ tomcat

Then, run the following commands to set the CATALINA_HOME environment variable:

echo "export CATALINA_HOME='/opt/tomcat/'" >> ~/.bashrc
source ~/.bashrc

It is not recommended to run Apache Tomcat as user root, so add tomcat user and group:

useradd -r tomcat --shell /bin/false
chown -R tomcat:tomcat /opt/tomcat/

Now, Create the a systemd file with the following content:

### nano /etc/systemd/system/tomcat.service

[Unit]
Description=Apache Tomcat 9
After=syslog.target network.target[Service]
User=tomcat
Group=tomcat
Type=forking
Environment=CATALINA_PID=/opt/tomcat/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh
Restart=on-failure

[Install] WantedBy=multi-user.target

Save the file and run the following command to reload the systemd manager:

systemctl daemon-reload
systemctl start tomcat
systemctl enable tomcat

Step 4. Assessing Apache Tomcat 9.

Finally, open Tomcat from your browser, go to your IP or domain with the 8080 port (because Tomcat will always run on the 8080 port) as an example: http://IP_address:8080/manager/html using user ‘admin’ and password ‘PASSWORD’

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

How To Install Popcorn Time on CentOS 7 Step by Step

Install Popcorn Time on CentOS 7

Popcorn Time is an Open source free software BitTorrent client which includes integrated media player. Although other trackers can be added and used manually, popcorn time uses sequential downloading to stream video listed by torrent websites. The files can be searched by genres and categories. Popcorn time is an easy interface to use and has a clear modern look. In this tutorial we will learn how To Install Popcorn Time 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 Popcorn Time on a CentOS 7 server.

Install Popcorn Time on CentOS 7

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

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

Step 2. Installing Popcorn Time on CentOS 7.

First install some tools to be used for the Popcorn Time installation:

yum install wget xz

Next, use wget command to download the tarballs directly in your system’ s terminal:

### 32-bit ###
wget https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-32.tar.xz
tar -xvf Popcorn-Time-0.3.10-Linux32.tar.xz
cd Popcorn-Time/
chmod 755 Popcorn-Time
./Popcorn-Time

### 64-bit ###
https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-64.tar.xz
tar -xvf Popcorn-Time-0.3.10-Linux64.tar.xz
cd Popcorn-Time/
chmod 755 Popcorn-Time
./Popcorn-Time

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

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.