Pages

Tuesday, January 5, 2016

Trick to keep your ssh session active


Home

For a person working on a Unix based OS over a ssh connection, SSH session timeout can be a pain area. If person is using putty for connection Unix OS over ssh then session can become inactive if kept idle for a longer time. So person needs to keep session alive by execution of some command or reconnect session manually.

To get rid of this inactivity of ongoing session irrespective of its idle or not, putty has an option of “Sending null packets to keep session active” by setting some desired value you can keep your session active, below is the screenshot of putty configuration option.




Back To Top
Home

Monday, January 4, 2016

Capture current directory within a shell script

Home

There are various scenarios where you need to ensure that all supporting components of a shell script are written in the same directory where script has been placed.

In order to achieve that easy way it to initialize a variable at start of script with value as parent folder of the shell script. But hard-coding of it can be a pain area in later on stages.

So to make it dynamic below syntax can be utilized, this has been tested and used in various implementations worth a try.

#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

Enjoy !!


Back To Top
Home

Sunday, January 3, 2016

Installing RedHat 07

Home

Below sequence of images will get you basic idea of screens that you can expect during installation of RedHat 07

TODO

Back To Top
Home

Installing RedHat 06

Home

Below sequence of images will get you basic idea of screens that you can expect during installation of RedHat 06

TODO

Back To Top
Home