How to copy files and directories between Linux hosts with scp

In this how to we will go over scp copy command and how it can be used to securely copy files between Linux hosts. SCP uses SSH for data transfer and also uses it for authentication. By default SCP works on port 22 which is default ssh port. For security reasons it is recommended to…

Basic NTP Configuration on CentOS 6

It is very important to have proper time set on your VPS system. There are many reasons for this. One of them is security, all log entries must have proper time stamp for successful troubleshooting, also some networking applications will not work properly with time not set properly. On Linux time synchronization is done with…

Ubuntu 12.04 and Tomcat 7 SSL implementation

Apache Tomcat is open source servlet container developed by Apache. Tomcat implements the Java Servlet and the JavaServer Pages(JSP) specifications, and provides a JAVA HTTP web server environment for Java code yo run. In this blog we will show you host how to quickly install Tomcat 7 on Ebuntu 12.04 vm or server and deploy…

Expand KVM based image with lvm partition

Lets take a quick look at how to expand kvm raw image with lvm partition running CentOS7 guest. We will need to download gparted for this to re-size image. It cam be downloaded from here. We will be expanding our image by 10G.

Changing Permissions and Ownership on Linux filesystem

Managing Linux permission can be tricky at times. Although it is possible to manage permission from GUI interface on most of Linux distributions, in this article we will go over basic CLI permission and ownership management of files and directories. Key commands that can help you manage the permissions and ownership of a file are…

Add directory to PATH variable CentOS and Red Hat

When we running a command in Linux, logically we should type the full path to that command. For example, since the pwd command is in the /bin directory, we should actually type the /bin/pwd command to list files in the current directory. With the benefit of the PATH, an environment variable, that’s not required. The…

Using ACLs (Access Control Lists) with Linux filesystem

This article was written specifically for Red Hat and CentOS but concept will be the same for other Linux distributions. In this article we will go over ACLs for Linux and how they can be used to control access to files and directory’s on Linux file system. ACLs start with ownership and permissions. ACL on…

How to setup Master Slave DNS with Bind and CentOS 6.x

In this how to we will look into setting up two name DNS servers master and slave using Bind and CentOS 6.5. We will setup primary zone labzone.local on dns1.local server and slave zone labzone.local on dns2.local server. We assume our DNS information is public and will not setup chrooted environment although for additional security…

Using rcp on Linux system to copy files

RCP – Remote Copy Protocol Is used to copy files between two Unix/Linux systems. We do not recommend using this utility since it is unsecured and sends data over network without encryption.

Linux shell basics

In this quick tutorial we will look at few different Linux shells , main shell configuration files and few quick tricks that will help you when working with shell commands.