Initial Settings after installing the CentOS 7

1) To change the hostname permanently, edit the following file: sudo vi /etc/hostname Here you can simply put the name of your system (in my case, I have assigned it CentOS-7): After that, edit the hosts file: sudo vi /etc/hosts Here add the same name, that you have added in the /etc/hostname file, after 127.0.0.1: After reboot, it will display… Continue reading Initial Settings after installing the CentOS 7

How to Install the latest LEMP Stack on CentOS 6.5

In this tutorial,we’ll learn that how we can install the latest LEMP (Nginx, MySQL & PHP) Stack and it’s initial configuration on CentOS 6.5, because Base and EPEL repo are containing really old version of LEMP Stack. Please add the required repos by using the following commands: sudo rpm –import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6 sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm… Continue reading How to Install the latest LEMP Stack on CentOS 6.5

Site-to-Site VPN between AWS VPC and Customer Site using Linux

In this tutorial, we will use the previous scenario on AWS side for the creation of site-to-site vpn between AWS VPC and Local site. On Amazon side, we’ll use Ubuntu 14.04 LTS, which will act as gateway for private subnet(s) plus the vpn gateway, while on the Local site, we’ll use the CentOS 6.5, which will perform… Continue reading Site-to-Site VPN between AWS VPC and Customer Site using Linux

Install Boost 1.55.0 version on CentOS

Issue the following commands in the shell (don’t type $; that represents the shell’s prompt): $ cd path/to/boost_1_55_0 $ ./bootstrap.sh –help Select your configuration options and invoke ./bootstrap.sh again without the –help option. Unless you have write permission in your system’s /usr/local/ directory, you’ll probably want to at least use $ ./bootstrap.sh –prefix=path/to/installation/prefix to install somewhere else. Also, consider using the –show-libraries and –with-libraries=library-name-list options to… Continue reading Install Boost 1.55.0 version on CentOS

Install qmake on CentOS

CentOS 6.4 cd /etc/yum.repos.d nano qk.repo # Place this in a file in your /etc/yum.repos.d/ directory with a qt.repo extension [epel-qt48] name=Software Collection for Qt 4.8 baseurl=http://repos.fedorapeople.org/repos/sic/qt48/epel-$releasever/$basearch/ enabled=1 skip_if_unavailable=1 gpgcheck=0 [epel-qt48-source] name=Software Collection for Qt 4.8 – Source baseurl=http://repos.fedorapeople.org/repos/sic/qt48/epel-$releasever/SRPMS enabled=0 skip_if_unavailable=1 gpgcheck=0 yum install qt48-qt-webkit-devel ln -s /opt/rh/qt48/root/usr/include/QtCore/qconfig-64.h /opt/rh/qt48/root/usr/include/QtCore/qconfig-x86_64.h source /opt/rh/qt48/enable export PATH=/opt/rh/qt48/root/usr/lib64/qt4/bin/${PATH:+:${PATH}}

How To Install Tomcat 7.0.52 Server on CentOS & RedHat 5/6

Apache Tomcat is an opensource webserver product of Apache Foundation like Apache HTTP server. It is used to deploying Java Servlet and JSP applications. To deploy any application in Tomcat we can simply create a war file and deploy them. For more details about you can visit apache official site http://tomcat.apache.org/ . This article will… Continue reading How To Install Tomcat 7.0.52 Server on CentOS & RedHat 5/6

How to Resize the Root Partition in Linux on Amazon EC2

Check the Root Partition size before resize: df -h The current root partition size is ~8 GB. After that, stop your instance: sudo poweroff Go to Volumes on the left-hand EC2 navigation control panel.Right-click on the volume you want to resize and select Create Snapshot. Note: Make sure you also check the availability zone. Fill out the… Continue reading How to Resize the Root Partition in Linux on Amazon EC2

OpenVPN server on CentOS 6.4 behind NAT

This tutorial describes that how to configure the OpenVPN Server in CentOS 6.4 and clients in Windows XP/7. I am taking the scenario of SOHO network, which is protected by Firewall, we’ll implement the OpenVPN on internal CentOS 6.4 server to access the internal SOHO network (Server and PCs) through the internet from anywhere securely. Before… Continue reading OpenVPN server on CentOS 6.4 behind NAT