Kurinchi Blogger Scribbles …


Archive for the ‘Linux Server’ Category

Jul 15
2009

How to display the history of commands executed by the user?

Last updated: July 15th, 2009

Linux: History command

Each bash sessions stores the history of commands executed in .bash_history file which in turn in stored under each user’s home directory

usr100@dev01:/tmp/user$ ls
07-14.txt a.txt b.txt d.txt

usr100@dev01:/tmp/user$ cat ~/.bash_history
clear
su root
rm -i d.txt
ls -ltr
touch c.txt

Jul 14
2009

Nagios: Temporary failure in name resolution

Last updated: July 14th, 2009

Troubleshooting the above warning message in Nagios:

i) If you can specify the IP address of the host with its port number try specifying it that way instead of the host name

ii) Check the the time that is set for the http check parameter and based on it try setting the -w (warning message) parameter (sample setting: command_line /usr/lib/nagios/plugins/check_http -H mywebsite.com -t 60 -w 55)

Jul 11
2009

How to find the environment settings in Linux?

Last updated: July 15th, 2009

The following command will give you the environment settings in Linux

$ env

This is equivalent of PATH in windows.

May 08
2009

How to set Tomcat to run on port 80?

Last updated: May 6th, 2009

Setting Tomcat to work on port 80 instead of port 8080

There may be instances when you want Tomcat to run on port 80 and not on port 8080 which is the default port allocated to it on installation.

If Apache is installed in the machine, then you need to stop the apache server (if this were to be for a temporary cause) and if you need it permanently then you should disable apache on start up.
(more…)

May 07
2009

How to configure Tomcat in Ubuntu?

Last updated: May 6th, 2009

Configuring Tomcat in Ubuntu with Apache server running on it

Login with the root account. Check if java is already installed on the machine. If not, first install java on ubuntu.

Web get the apache-tomcat tar file from the below location
(more…)

May 01
2009

HTTP Keep Alive

Last updated: April 30th, 2009

HTTP (Hyper Text Transfer Protocol) does not maintain a state. For every request that is made to the server, the server sends a response back. When a request is being made, a NEW socket connection is opened on the server from which the response is sent back. (more…)

Apr 17
2009

SELinux – Security Enhanced Linux

Last updated: April 16th, 2009

How to find the status of SELinux?
$ cat /selinux/enforce

The above command will print 0 or 1 which means,
0 – permissive mode
1 – enforcing mode (more…)

Apr 09
2009

Subversion SVN: Project organization

Last updated: April 10th, 2009

Subversion Project Organization: Intro

When organizing the repository structure for maintaining the code base, system admins adopt two basic formats for Project organization in subversion. This depends on the needs of the project and it can be varied over a period of time, depending on the scope defined for the code base. Subversion is very flexible in handling these changes and is easier to maintain than most other products in the market. (more…)

Apr 07
2009

Nagios nrpe host server and client on CentOS, Ubuntu

Last updated: May 25th, 2009

Configuring server host to respond to nagios host (monitor remote services) – CentOS

Download nagios plugin and nagios-nrpe plugin in the server host (client that talks with nagios host) from nagios website. The files comes as .tar files and you need to configure them for their use. Move the files to /usr/src (more…)

Mar 30
2009

Install ActiveState Perl on Ubuntu

Last updated: March 30th, 2009

Install Perl from ActiveState on Ubuntu machine

I prefer ActiveState download for a beginner to have a Perl installation with compiled libraries for immediate execution of various Perl programs. You can grab a copy based on your OS from

http://www.activestate.com/activeperl/downloads/

Download the x86 .deb file for easy installation of ActivePerl on Ubuntu. (more…)


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict