Thursday, June 3, 2010

Linux Log files and their purpose

Common Linux log filenames and purpose

/var/log/message: General message and system related stuff
/var/log/auth.log: Authenication logs
/var/log/kern.log: Kernel logs
/var/log/cron.log: Crond logs (cron job)
/var/log/maillog: Mail server logs
/var/log/qmail/ : Qmail log directory (more files inside this directory)
/var/log/httpd/: Apache access and error logs directory
/var/log/lighttpd: Lighttpd access and error logs directory
/var/log/boot.log : System boot log
/var/log/mysqld.log: MySQL database server log file
/var/log/secure: Authentication log
/var/log/utmp or /var/log/wtmp : Login records file
/var/log/yum.log: Yum log files

Daemon(Linux Term) or Services(Windows Term) to do the logging are syslogd and klogd. They intercepts the kernel level messages and logs them to the appropriate files.

Configuration of syslogd is available at /etc/syslogd.conf

Testing with Valgrind

A small note to quick start with valgrind

Testing of an application with Valgrind takes enormous time to get that completed. But there are valuable information that are being printed when we have the possibilities for memory leaks.

To quick start the application under the valgrind, use the following syntax:

valgrind --leak-check=yes application arg1, arg2, ..

Saturday, March 13, 2010

பன்னிரண்டு ஜோதிர்லிங்கங்கள்

பன்னிரண்டு ஜோதிர்லிங்கங்களாவன
1. "சோமநாதம்" - குஜராத்திலும்,
2. வைத்தியநாதம்,
3. பீமசங்கரம்,
4. நாகேசம்,
5. த்ரயம்பகம்,
6. குஸ்மேசம் முறையே - மகாராஷ்டிரத்திலும்,
7. ஸ்ரீசைலம் - ஆந்திராவிலும்,
8. ஓங்காரம்,
9. உஜ்ஜையினி முறையே - மத்தியப் பிரதேசத்திலும்,
10. விச்வேசம் (வாரணாசி),
11. கேதாரம் முறையே - உத்திரப் பிரதேசத்திலும்,
12. இராமேசுவரம் - தமிழ்நாட்டிலும் உள்ளன.

Friday, March 5, 2010

Never Worry how many people Dislike you

A man hated his wife's cat and he decided to get rid of it. He drove 20 blocks away from home and dropped the cat there. The cat was already walking up the driveway when he approached his home.

The next day, he decided to drop the cat 40 blocks away but the same thing happened.. He kept increasing the number of blocks but the cat kept coming home before him.

At last he decided to drive a few miles away, turn right, then left, past the bridge, then right again and another right and so on until he reached what he thought was a perfect spot and dropped the cat there.

An hour later.... The man calls his wife at home and asked her, "Jen is the cat there?" "Yes, why do you ask?" answered the wife.

Frustrated the man said," Put that damn cat on the phone, I am lost and I need directions to reach home!!!

Moral:

"How much ever we dislike somebody, someday we will need their assistance. So never worry how many people dislike you... "

The Treasure of Today

The way this day goes, begins with you. The way this day
Goes, begins right now.

Your attitude can make today a great one. Your actions can
Make this day an effective and fulfilling time.

It all begins right now, with how you choose to see it. It
All begins right where you are, with what you choose to do.

There is enormous power in your hands right now. You have
The power to put meaning, fulfillment and value in this day.

Feel the power of your most beautiful purpose, and get
Yourself going. Make some steady progress, and keep it up.

The treasure of today is here to be unlocked by who you are
And what you do. Now, make that treasure yours.

Tuesday, February 16, 2010

How to copy SVN repository from one machine to another?

How to copy SVN repository from one machine to another?

SVN repository can be moved from one machine to another without considering the change in version numbers. The following are the steps to do that.

1. Dump the whole repository.

a. Check the latest revision in the SVN

Command: svnlook youngest REPOS_PATH

Example: svnlook youngest /opt/UNICODESVNREPOS

b. Dump the repository until the latest revision.

Command: svnadmin dump REPOS_PATH > DUMP_TEXT_FILE

Example: svnadmin dump /opt/UNICODESVNREPOS > UNICODESVNREPOS_dump.txt

2. Load the dumped repository to the new repository.

a. Create a new repository.

Command: svnadmin create [Options] REPOS_PATH

Example: svnadmin create --fs-type fsfs UNICODESVNREPOS

b. Load the repository with the dump.

Command: svnadmin load REPOS_PATH <>

Example: svnadmin load UNICODESVNREPOS <>

This is a simple way to do the processing at the whole repository level. Processing with each projects in the repository is also possible. An additional command is required to do this process and that specific command is “svndumpfilter”.

References:

http://svnbook.red-bean.com/en/1.4/index.html

http://svnbook.red-bean.com/en/1.4/svn.reposadmin.maint.html

Monday, February 1, 2010

A note on Navapashana

Navapashana idol, made by Siddhar Bogar, is the speciality of the temple that belonged to the ninth century.
According to legend, Siddhar Bogar, in consultation with Sage Agasthiya, blended nine kinds of herbs - Veeram, Pooram, Rasam, Jathilingam, Kandagam, Gauri Pasanam, Vellai Pasanam, Mridharsingh, Silasat – to create the main deity. He started doing abishekam with milk, rose water, curd and tender coconut. This tradition has been followed since then.