How to disable directory listing in APACHE

October 11, 2010 mohancheema 1

One of the “must do’s” on setting a secure apache webserver environment is to disable directory listing. As a default Apache will be compiled with this option enabled, but its always a good idea to get rid of this setting unless its really necessary.

No Picture

SVN Hook to send email after commit

August 23, 2010 mohancheema 6

As SVN admin we are asked to send an email to release managers and testers for all the commits made to the repository so that release managers can update their release sheet and testers can do the testing. This is small post-commit hook for SVN which sends out an email to release manager and testers.

No Picture

SVN Hook to stop commits without comments

August 23, 2010 mohancheema 1

As SVN admin we need to make sure any commits made to the repository should have comments associated it with. The reason to have comments during commits is simple to know what has been fixed or what new has been added to the repository. Here is the simple shell script I have written to stop the commits if comments has not been added.

No Picture

Solaris Recursive GREP

July 6, 2010 mohancheema 0

Linux shells provide a recursive Grep function in the form of the -r switch.

However, in Solaris this function have to be replicated using the piped command as follows:

find . | xargs grep ‘pattern’

Or if your shell doesn’t has all the right paths set, then:

Shell One Liners

May 21, 2010 mohancheema 0

Renaming file name.old to – To test things first, insert ‘echo’ between ‘do mv’ (below).

$ for i in *.input; do mv $i ${i/name.old/}; done

Running application in loops on many input files

$ for i in *.input; do ./application $i; done

AWK One Liners

May 21, 2010 mohancheema 0

Simple AWK programs enclosed in single quotes can be typed and executed right at the Unix prompt. For example, the program

awk ‘BEGIN { FS = “:” } { print $1 | “sort” }’ /etc/passwd

This program prints a sorted list of the login names of all users.

No Picture

Advanced MRTG HowTo

April 28, 2010 mohancheema 4


In many cases using MRTG in a basic configuration to monitor the volume of network traffic to your server isn’t enough. You may also want to see graphs of CPU, disk, and memory usage. This chapter explains how to find the values you want to monitor in the SNMP MIB files and then how to use this information to configure MRTG.

No Picture

Linux SNMP and MRTG HowTo

April 28, 2010 mohancheema 1


You can monitor your system’s Web performance quite easily with graphical Linux tools. You’ll learn how to use several in this chapter, including MRTG, which is based on SNMP and monitors raw network traffic, and Webalizer, which tracks Web site hits.