How to Install Go on CentOS 7

Install Go on CentOS 7

In this tutorial we are going to learn how to install Go on CentOS 7. We will also install and configure its prerequisites. Go also understand as Golang, is an open source programming language developed by Google. Many popular programs, including Grafana, Docker and Kubernetes, are written in Go.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Go on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing Go on CentOS 7.

First, download the Go binary you can use either wget or curl:

wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz

Now extract the downloaded archive and install it to the desired location on your system:

sudo tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz

Then add it to your path:

export PATH=$PATH:/usr/local/go/bin

Save the file, and load the new PATH environment variable into the current shell session:

source ~/.bash_profile

At this step, you have successfully installed and configured go language on your system. First, use the following command to check Go version:

go version

Step 3. Test the Installation.

To test whether Go is installed, we will set up a workspace and build a simple “Hello world” program:

mkdir ~/go
mkdir -p ~/go/src/hello

And in that directory create a file named hello.go:

### ~/go/src/hello/hello.go
package main

import "fmt"

func main() {
    fmt.Printf("Hello, World\n")
}

Next, build the file switch to the ~/go/src/hello directory and run go build:

cd ~/go/src/hello
go build

Then, run the executable by simply executing the command bellow:

./hello

Result:

Hello, World

Congratulation’s! You have successfully install Go on your CentOS 7 server. Thanks for using this tutorial for installing Go language on CentOS 7 system.

How to Install Gimp on CentOS 7

Install Gimp on CentOS 7

In this tutorial we are going to learn how to install Gimp on CentOS 7. We will also install and configure its prerequisites. GIMP is a free and open source complex image editor instrument. GIMP is an Alternate or substitute of Photoshop tool such as laptops with Linux. Using GIMP we can edit the photographs, produce own drawings and enhance and decrease Photograph dimensions and caliber. GIMP can be Regarded as professional-level Editing tool.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Gimp on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing GIMP on CentOS 7.

As Gimp is available in default repo you can install it as follows:

yum install gimp

Step 3. Assessing GIMP.

You can search Gimp using GNOME search box and launch. Alternatively, you can also start gimp using the command:

gimp

Congratulation’s! You have successfully install Gimp on your CentOS 7 server. Thanks for using this tutorial for installing Gimp image editor tool on CentOS 7 system.

How to Install Rocket.Chat on CentOS 7

Install Rocket.Chat on CentOS 7

In this tutorial we are going to learn how to install Rocket.Chat on CentOS 7. We will also install and configure its prerequisites. Rocket.Chat is a complete team communication platform, a self-hosted Slack alternative. It is built with Meteor and provides various features including helpdesk chat, video conferencing, file sharing, voice messages, API, and more.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Rocket.Chat on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing MongoDB.

We will install MongoDB using yum from the official MongoDB repositories. Open your editor of choice and create the following repository file:

nano /etc/yum.repos.d/mongodb-org.repo

Then, add the following lines:

[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc

Install MongoDB using the following commands:

yum install mongodb-org-server mongodb-org mongodb-org-mongos mongodb-org-shell mongodb-org-tools

Once the installation is completed, enable and start the MongoDB service:

sudo systemctl start mongod
sudo systemctl enable mongod

Step 3. Installing node.js and npm

To install Node.js with NPM or Node Package Manager, run the following command:

sudo yum install -y nodejs npm
sudo npm install -g inherits n
sudo n 8.9.3

Check the node.js version:

node --version

Step 4. Installing GraphicsMagick.

Install GraphicsMagick using the following command:

yum install GraphicsMagick

Step 5. Installing Rocket.Chat on CentOS 7.

First, we download the latest stable version of Rocket.Chat:

cd /opt
curl -L https://releases.rocket.chat/latest/download -o rocket.chat.tar
tar -xvf rocket.chat.tar
mkdir -p /var/www/html/rocket.chat
cd bundle
mv * .[^.]* /var/www/html/rocket.chat/
cd /var/www/html/rocket.chat/programs/server
npm install
cd ../../
export ROOT_URL=http://your-server_IP:3000/
export MONGO_URL=mongodb://localhost:27017/rocketchat
export PORT=3000

Run the following command to test the installation:

node main.js

Now the application must be accessible on port 3000. You can check by going to the following link using your favorite web browser:

http://yourdomain.com:3000

Step 6. Creating Systemd Service.

Now we will need to create a Systemd service so that it can be started and stopped as service Rocket.Chat:

nano /usr/lib/systemd/system/rocketchat.service

Add the following lines:

[Unit]
  Description=The Rocket.Chat server
  After=network.target remote-fs.target nss-lookup.target nginx.target mongod.target
  [Service]
  ExecStart=/usr/local/bin/node /var/www/html/rocket.chat/main.js
  StandardOutput=syslog
  StandardError=syslog
  SyslogIdentifier=rocketchat
  User=root
  Environment=MONGO_URL=mongodb://localhost:27017/rocketchat ROOT_URL=http://your-domain.com:3000/ PORT=3000
  [Install]
  WantedBy=multi-user.target

You can now start the application using the following command:

systemctl start rocketchat
systemctl enable rocketchat
systemctl status rocketchat

Step 7. Configuring Apache as Reverse Proxy.

We can configure Apache as reverse proxy so it can handle and pass the requests to Rocket.Chat and hide the port number in the URL:

nano etc/httpd/conf/httpd.conf

Then, add the following virtual host at the end:

<VirtualHost *:80>
ServerName your-domain.com
DocumentRoot /var/www/html/rocket.chat
ServerAlias www.your-domain.com

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://your-server_IP:3000/
ProxyPassReverse / http://your-server_IP:3000/
<Location />
Order allow,deny
Allow from all
</Location>
ErrorLog /var/log/httpd/rocket.chat-error_log
CustomLog /var/log/httpd/rocket.chat-access_log common
</VirtualHost>

Once done, you will have to restart your Apache server so that the changes made can take effect:

systemctl restart httpd

Step 8. Accessing Rocket.Chat.

Open your browser and type: http://example.com, assuming that installation is successful, you should see something like this:

Install Rocket.Chat on CentOS 7

Congratulation’s! You have successfully install Rocket.Chat on your CentOS 7 server. Thanks for using this tutorial for installing Rocket.Chat on CentOS 7 system.

How to Install Adobe Flash Player on CentOS 7

Install Adobe Flash Player on CentOS 7

In this tutorial we are going to learn how to install Adobe Flash Player on CentOS 7. We will also install and configure its prerequisites. Adobe Flash player is a plugin that’s incorporated with your browser also enables an individual to stream or watch videos e.g. on sites like YouTube. Flash isn’t required in modern browsers like Google Chrome and has been confronted out and substituted.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Adobe Flash Player on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing Adobe Flash Player on CentOS 7.

First we need to include Adobe’s repository your system:

yum -y install http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm

Confirm that Adobe repository:

### yum repolist | grep -i adobe
adobe-linux-x86_64      Adobe Systems Incorporated                            2

After you add the repositor to yum you need to run the install command to now install the flash-plugin:

yum install flash-plugin

Verify, the newly installed Flash Plugin on your favorite web browser and enjoy watching streaming multimedia files.

Congratulation’s! You have successfully install Adobe Flash Player on your CentOS 7 server. Thanks for using this tutorial for installing Adobe Flash Player on CentOS 7 system.

How to Install Cockpit on CentOS 7

Install Cockpit on CentOS 7

In this tutorial we are going to learn how to install Cockpit on CentOS 7. We will also install and configure its prerequisites. Cockpit is a free, web-based server manager for Linux operating systems. With Cockpit, a system admin can perform tasks such as managing storage, Users, containers, network configuration, inspecting logs and so on.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Cockpit Features

  1. Manage multiple Cockpit machines from a single Cockpit session
  2. Create and manage Docker containers
  3. Create and manage KVM, oVirt Virtual Machines
  4. Modify the network settings
  5. Manage user accounts
  6. Web-based shell in a terminal
  7. View system performance in a graph.
  8. Collect system configuration and diagnostic information with the use of sosreport.

Install Cockpit on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing Cockpit on CentOS 7.

You can install cockpit packages using yum command:

yum install cockpit cockpit-dashboard

Once installed, you can start the service using systemcl command once service is started it will start listening on port 9090:

systemctl start cockpit
systemctl enable cockpit

Step 3. Configure Firewall for Cockpit.

Finally, let’s make sure the firewall is open:

sudo firewall-cmd --add-service=cockpit
​sudo firewall-cmd --add-service=cockpit --permanent
​sudo firewall-cmd --reload

Step 3. Access to Cockpit.

Cockpit deafault uses port 9090 for its web interface, therefore we can reach it by launching our favorite web browser and typing localhost:9090 in the address bar:

https://ip-add-ress:9090

You may be prompted with a security warning about the SSL certificate of the site as it is self-signed, but you can ignore the warning and proceed to login area.

Congratulation’s! You have successfully install Cockpit on your CentOS 7 server. Thanks for using this tutorial for installing Cockpit on CentOS 7 system.

How to Install Apache Subversion (SVN) on CentOS 7

Install Apache Subversion (SVN) on CentOS 7

In this tutorial we are going to learn how to install Apache Subversion (SVN) on CentOS 7. We will also install and configure its prerequisites. Subversion is a product of Apache Software Foundation. It helps you keep track of a collection of files and folders. Any time you change, add or delete a file or folder that you manage with Subversion, you commit these changes to your Subversion repository, which creates a new revision in your repository reflecting these changes. You can always go back, look at and get the contents of previous revisions.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Apache Subversion (SVN) on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing Apache web server.

Install Apache server for accessing SVN server using HTTP URLs:

yum install httpd httpd-tools

Step 3. Installing Apache Subversion (SVN) on CentOS 7.

Now install latest available Subversion package using yum command line package manager utility:

yum install subversion subversion-tools mod_dav_svn

Let’s use the following command to verify the version of svn client:

svn --version

Step 4. Configure Subversion.

First, create repositories as per the requirements. In my case, i am creating /svn as the base and will create the repository in it:

mkdir /svn
svnadmin create /svn/testrepo

Change the permission of the repository:

chown -R apache:apache /svn/testrepo/

Next, configure virtual host in Apache:

nano /etc/httpd/conf.d/svn.conf

Place the following content:

<location /svn>
DAV svn
SVNParentPath /svn/
AuthType Basic
AuthName “Authorization Realm”
AuthUserFile /etc/subversion/svn.users
Require valid-user
</location>

Then, create additional users, use following commands:

htpasswd -cm /etc/subversion/svn.users ramona

Restart the apache server:

systemctl reload httpd.service

Step 5. Access Apache Subversion.

Use HTTP URLs to access your repository in the browser. It will prompt for authentication. Use login credentials created in above:

http://your-ip-address/svn/testrepo

Congratulation’s! You have successfully install Apache Subversion (SVN) on your CentOS 7 server. Thanks for using this tutorial for installing Apache Subversion on CentOS 7 system.

How to Install Ionic Framework on CentOS 7

Install Ionic Framework on CentOS 7

In this tutorial we are going to learn how to install Ionic Framework on CentOS 7. We will also install and configure its prerequisites. The Ionic Framework is framework of frameworks. It depends on many software. You must install this software to create a hybrid mobile application.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Ionic Framework on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing Node.js.

First, install latest Node.js on CentOS 7:

curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash -
yum install nodejs

Step 3. Installing Cordova.

Follow below command will install Cordova on your CentOS 7:

npm install -g cordova

Step 4. Installing Ionic Framework.

After installing Cordova, use the below command to install Ionic Framework:

npm install -g ionic

To verify the ionic installation:

ionic -v

Step 4. Create Ionic Application.

Now, You need to create a new Cordova project on your computer using the following command:

ionic start HelloRamona blank

Now use one of the following commands to enable iOS or Android platform. iOS platform will work on MacOS only:

ionic platform add ios
ionic platform add android

Congratulation’s! You have successfully install Ionic Framework on your CentOS 7 server. Thanks for using this tutorial for installing Ionic Framework on CentOS 7 system.

How to Install Apache Cordova on CentOS 7

Install Apache Cordova on CentOS 7

In this tutorial we are going to learn how to install Apache Cordova on CentOS 7. We will also install and configure its prerequisites. Apache Cordova is an open-source mobile development framework. It allows you to use standard web technologies such as HTML5, CSS3, and JavaScript for cross-platform development, avoiding each mobile platform native development language. Apache Cordova command-line requires Node.js to run and available on NPM.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Apache Cordova on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Install dependencies.

In order to install Cordova, you need to install Node.js and NPM on your system:

sudo yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash -

Step 3. Installing Apache Cordova on CentOS 7.

Install Cordova with NPM:

sudo npm install -g cordova

Once successful installation of Cordova on your system, use the following command to check Cordova version:

cordova --version

Step 4. Create Application with Cordova.

Example create an application with name myapp:

cordova create myapp

Now add the required platform in your application:

cordova platform add ios
cordova platform add android

Step 5. Build Cordova Application.

First, make sure that the system fulfills all the requirements for your build environment:

cordova requirements

On all requirements completed successfully run the build command to build your application:

cordova build         ## Build all added platforms 
cordova build android ## Build for specific platform

Congratulation’s! You have successfully install Cordova on your CentOS 7 server. Thanks for using this tutorial for installing Apache Cordova on CentOS 7 system.