10 useful Linux Commands

10 useful Linux Commands Linux servers are nothing without commands. Commands makes Linux more powerful. The user inputs a command to linux machine through a shell program called terminal and it shows the output of it. Linux commands helps the server admin to troubleshoot issues in a faster and easier way. Here we are going … Read more

Configure SSH Key based authentication from Linux and Windows system

Configure SSh Key based authentication from Linux and Windows-system

Secure Shell (SSH)

Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. When working with a Linux server, chances are, you will spend most of your time in a terminal session connected to your server through SSH. There are different ways to login into the server using ssh and here I am discussing about the ssh key based authentication.

Read more

Removing and adding files to existing tar archive

Removing and Adding Files to Existing Tar Archive

If you are looking to remove or adding files to existing tar archive, here are some useful steps we recommend for implementing the changes. 1) How to remove a single file from tar file We need to create a tar file, for that first we need to touch some files # touch  textfile{1..4}.txt Now we … Read more

Different types of RAID

RAID is short for Redundant Array of Independent Disks

RAID is a technology that is used to increase the performance and/or reliability of data storage. It combines multiple physical disk drive components into a single logical unit. Here we are discussing the the different types of RAID

Data in RAID is distributed across the drives in one of several ways, referred to as RAID levels, depending on the required level of redundancy and performance. The different schemas, or data distribution layouts, are named by the word RAID followed by a number

Different types of RAID Levels

  • RAID 0 – striping
  • RAID 1 – mirroring
  • RAID 5 – striping with parity
  • RAID 6 – striping with double parity
  • RAID 10 – combining mirroring and striping

 

Budget Server Management Plans at $30

 

Read more

Different Ways of File transfer to a remote server using ssh protocol

Different Ways of File transfer to a remote server using ssh protocol.

Scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh.

Using scp from destination server

scp root@source_server:/path/to/file /path/here/
scp -P 2222 root@source_server:/path/to/file /path/here/ #with ssh port 2222
scp -r root@source_server:/path/to/directory/ /path/here/ #copy entire directory

Using scp from source server

Read more

Output alignment problem for ‘df’ command

Sometimes we need to get the output of df command in an arranged manner to use the output in some scripting or not. You can use the following command to view the output in properly formatted form.

df -Ph

   -P, --portability use the POSIX output format
   -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)

You can check the following screenshots for more details.

Read more

cPanel/WHM Successful logins

For getting the successful cPanel/WHM logins, using the following commands. For getting the successful cPanel logins. cat /usr/local/cpanel/logs/session_log | grep “myuser” | grep “NEW .*app=cpaneld” # “myuser” is cPanel username xx.xx.xx.xx [09/11/2015:13:17:40 -0000] NEW myuser:bOMyuserz8hKvThis1XUgnISnh4AWMMXSampleKgHE3lString1JpnOSiK5a45t3 address=122.165.84.98,app=cpaneld,creator=myuser,method=handle_form_login,path=form,possessed=0 For gettign successful WHM logins cat /usr/local/cpanel/logs/session_log | grep “root” | grep “NEW .*app=whostmgrd” # Use required WHM user … Read more

Setup IM client for Kayako Live Chat

Here I am writing a short guide to setup IM client for Kayako live chat, as I feel the instructions in their website is little confusing. Setting up IM ( XMPP ) live chat client is very helpful for people, whom are using Linux as there is no official Live Cht client for Linux yet. … Read more

pnp4nagios Installation and Configuration

Installation —————- PNP is an addon for the Nagios Network Monitoring System. PNP provides easy to use, easy to configure RRDTools based performance charts feeded by the performance data output of the Nagios Plugins. To install this, 1. Download the latest version of pnp4nagios source from http://sourceforge.net/projects/pnp4nagios/ 2. Untar it and cd into the extracted … Read more