<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-96283653617011583</id><updated>2009-06-10T09:50:05.098-04:00</updated><title type='text'>Linux for Enterprises</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-5542915371020339965</id><published>2009-01-22T14:43:00.005-05:00</published><updated>2009-01-22T15:10:43.137-05:00</updated><title type='text'>Nagios Plugin to check file age on remote machine</title><content type='html'>You have to have a user account on the remote machine with ssh public and private key setup so that nagios user can login with our a password. The time is in seconds.&lt;br /&gt;&lt;br /&gt;Nagios Command definition is as follows&lt;br /&gt;&lt;div style="overflow: scroll; width: 425px;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;define command{&lt;br /&gt;        command_name    check_remote_fileage&lt;br /&gt;        command_line    $USER1$/check_remote_fileage -H user@$HOSTADDRESS$ -f $ARG1$ -w $ARG2$ -c $ARG3$&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Script&lt;br /&gt;&lt;div style="overflow: scroll; width: 425px;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;if (( $# &lt; 8 )); then&lt;br /&gt;        echo "Usage: $0 -H hostname -f remote file path -w warn -c crit"&lt;br /&gt;        exit 3&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;while getopts "H:f:w:c:" OPT; do&lt;br /&gt;        case "$OPT" in&lt;br /&gt;        H)      HOST=$OPTARG&lt;br /&gt;                ;;&lt;br /&gt;        f)      File=$OPTARG&lt;br /&gt;                ;;&lt;br /&gt;        w)      w=$OPTARG&lt;br /&gt;                ;;&lt;br /&gt;        c)      c=$OPTARG&lt;br /&gt;                ;;&lt;br /&gt;        \?)     echo "Error"&lt;br /&gt;                exit 3;&lt;br /&gt;                ;;&lt;br /&gt;        esac&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;CURRTIME=$(ssh $HOST "perl -e 'print time;'")&lt;br /&gt;FILETIME=$(ssh $HOST  "perl -e 'printf "%d\n", ((stat(shift))[9]);' $File")&lt;br /&gt;let "DIFFTIME = CURRTIME - FILETIME"&lt;br /&gt;if (( $DIFFTIME &gt;= $w &amp;&amp; $DIFFTIME &lt; $c)) ; then&lt;br /&gt;        echo "WARNING: $File is $DIFFTIME sec old (threshold w= $w) "&lt;br /&gt;        exit 1&lt;br /&gt;elif (( $DIFFTIME &gt;= $c)) ;then&lt;br /&gt;        echo "CRITICAL: $File is $DIFFTIME sec old (threshold c= $c) "&lt;br /&gt;        exit 2;&lt;br /&gt;else&lt;br /&gt;        echo "OK: $File is with in threshold $w / $c "&lt;br /&gt;        exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-5542915371020339965?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/5542915371020339965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=5542915371020339965' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/5542915371020339965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/5542915371020339965'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2009/01/nagios-script-to-check-file-age-on.html' title='Nagios Plugin to check file age on remote machine'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-4699202927115675755</id><published>2008-09-05T11:27:00.002-04:00</published><updated>2008-09-05T11:38:51.851-04:00</updated><title type='text'>NetBackup Activity Monitor</title><content type='html'>At my work during project Go Live! sessions I am often asked for the status of the scheduled backup which end early in the morning on weekends. I hate to wake up early on weekends so this is a nice little thing I do to achieve the task while I am sleeping. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I found neat little perl script which uses the following two tools from netbackup to give a nicely formatted output in email. The tools are &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;bpdbjobs&lt;/span&gt; which lists the list of jobs performed and &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;bperror&lt;/span&gt; which gives you the status of the job. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://linuxshellaccount.blogspot.com/2007/12/netbackup-activity-report-script.html"&gt;Click here&lt;/a&gt; for the original post and script. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now once you have the script which sends an email, all I have to do is set an &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;at &lt;/span&gt;job to execute the script at the time the user wants the status of the backup. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-4699202927115675755?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/4699202927115675755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=4699202927115675755' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/4699202927115675755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/4699202927115675755'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/09/netbackup-activity-monitor.html' title='NetBackup Activity Monitor'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-8792756389289205884</id><published>2008-09-05T11:15:00.002-04:00</published><updated>2008-09-05T11:23:35.300-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google browser'/><category scheme='http://www.blogger.com/atom/ns#' term='Chrome'/><title type='text'>Google Chrome Froze</title><content type='html'>After using Google chrome [BETA] for couple of days, the much hyped sandboxing failed today for me. While browsing a site with flash plugin, the browser froze, it was unresponsive. Their feature of being able to close bad tabs failed as I was not able to get the Task manager from the browser itself. I opened up Task manager to see bunch of chrome.exe processes. I assumed the one which takes up the maximum memory to be the actual browser itself and the rest as tabs and started killing each one of them until the browser is responsive again, but by that time I have lost all the other tabs I was browsing.&lt;div&gt;This could have happened as plugins themselves are run as separate process. A small widget or a program which runs outside of the browser that works the same way as the task manager for google chrome would be useful in this scenario as you could just fire up the second program to identify and kill the troubling process, just a thought.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-8792756389289205884?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/8792756389289205884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=8792756389289205884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/8792756389289205884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/8792756389289205884'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/09/google-chrome-froze.html' title='Google Chrome Froze'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-3504483698225255737</id><published>2008-07-21T10:55:00.001-04:00</published><updated>2008-07-21T11:18:00.048-04:00</updated><title type='text'>IE bug or feature?</title><content type='html'>I have recently noticed the following behavior testing IE. Here is an explanation on what is happening&lt;br /&gt;&lt;br /&gt;Steps&lt;br /&gt;1. Start IE and look at the task manager to see how much memory is being used.&lt;br /&gt;(Observation): iexplore.exe starts with some memory &lt;span style="font-weight: bold;"&gt;X&lt;/span&gt; MB.&lt;br /&gt;2. Start a new window by clicking File--&gt;New Window check the memory.&lt;br /&gt;(Observation): The iexplore.exe process increases by 2-3 MB in memory usage total X+2MB&lt;br /&gt;3. Now Start IE by double clicking the shortcut or the iexplore.exe directly.&lt;br /&gt;(Observation): You will find a new iexplore.exe process running with  &lt;span style="font-weight: bold;"&gt;X &lt;/span&gt;MB&lt;br /&gt;4. Repeat step 3 multiple times.&lt;br /&gt;(Observation): New iexplore.exe processes start with &lt;span style="font-weight: bold;"&gt;X&lt;/span&gt; MB of memory.&lt;br /&gt;&lt;br /&gt;Now for the Bug or Feature discussion.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Advantages&lt;/span&gt;&lt;br /&gt;Lets look at what we can achieve with this behavior.&lt;br /&gt;When started using step 3 above each iexplore.exe has its own session. So you can have multiple sessions from a server with different useraccounts.&lt;br /&gt;Ex: You can login as different users and check / complete your tasks in google.com all simultaneosly.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Disadvantages&lt;/span&gt;&lt;br /&gt;Every time you start iexplore.exe the starting memory usage (&lt;span style="font-weight: bold;"&gt;X&lt;/span&gt; MB) is close to 10x more than opening a new window using step 2. Image why the computer is all slow all of a sudden if you are browing online.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Conclusion&lt;br /&gt;&lt;/span&gt;Using firefox  you share a session always across multiple browser windows does not depend on how you open a new browser window/tab. Now its upto you to decide whether this is a feature that MS gives its users or is it a bug they have been ignoring to fix. &lt;span style="font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-3504483698225255737?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/3504483698225255737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=3504483698225255737' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/3504483698225255737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/3504483698225255737'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/07/ie-bug-or-feature.html' title='IE bug or feature?'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-5808653391231228532</id><published>2008-07-08T15:54:00.000-04:00</published><updated>2008-07-08T15:59:37.992-04:00</updated><title type='text'>Windows LPR on Unix</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Solaris&lt;/span&gt;&lt;br /&gt;From your Solaris system, do this (assumes printer IP is 192.168.1.99):&lt;br /&gt;&lt;br /&gt;# lpadmin -p hp3200m -s 192.168.1.99 -I any&lt;br /&gt;&lt;br /&gt;Type the following to set the default printer (assuming the printer is hp3200m):&lt;br /&gt;&lt;br /&gt;# lpadmin -d hp3200m&lt;br /&gt;&lt;br /&gt;You need to be sure that print services are started (/usr/lib/lpsched or the equivalent command using Service Management Facility [SMF] in the Solaris 10 OS).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sun.com/bigadmin/features/techtips/lpd_print_solaris.html"&gt;BigAdmin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Linux&lt;/span&gt;&lt;br /&gt;#lpadmin -p LinuxPrinterName -E -v lpd://IP_ADDRESS/WindowsPrinterName&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-5808653391231228532?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/5808653391231228532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=5808653391231228532' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/5808653391231228532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/5808653391231228532'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/07/windows-lpr-on-unix.html' title='Windows LPR on Unix'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-1257339788325225877</id><published>2008-07-02T16:30:00.002-04:00</published><updated>2008-07-02T16:36:10.184-04:00</updated><title type='text'>AT related</title><content type='html'>Users can schedule jobs to be run at a future time using the at command and the usage is simple refer "man at". Now once the job is scheduled you can look at the jobs in the at queue using at -l or atq commands.&lt;br /&gt;&lt;br /&gt;Once you get the queue to see what is present in the at job look in /var/spool/cron/atjobs/&lt; job name&amp;gt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-1257339788325225877?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/1257339788325225877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=1257339788325225877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/1257339788325225877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/1257339788325225877'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/07/at-related.html' title='AT related'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-381688716684937593</id><published>2008-06-26T10:11:00.000-04:00</published><updated>2008-06-26T10:12:27.556-04:00</updated><title type='text'>Install openoffice from yum</title><content type='html'>&lt;blockquote&gt;# yum groupinstall "Office/Productivity"&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-381688716684937593?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/381688716684937593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=381688716684937593' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/381688716684937593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/381688716684937593'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/06/install-openoffice-from-yum.html' title='Install openoffice from yum'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-5076774784353103932</id><published>2008-06-25T16:41:00.001-04:00</published><updated>2008-06-25T16:46:17.980-04:00</updated><title type='text'>Media Wiki email problems</title><content type='html'>I have moved my media wiki from one server to another and suddenly the email feature stopped working. After a lot of searching I found out that email for Media Wiki needs php-pear-Mail which can be easily installed by&lt;br /&gt;&lt;br /&gt;# yum install php-pear-Mail&lt;br /&gt;&lt;br /&gt;after that add the following to LocalSettings.php&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;# Sending e-mails (requires php-pear-Mail)&lt;br /&gt;$wgSMTP = array&lt;br /&gt;  'host'     =&gt; "localhost",&lt;br /&gt;  'IDhost'   =&gt; "localhost",&lt;br /&gt;  'port'     =&gt; 25,&lt;br /&gt;);&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://shrubbery.mynetgear.net/wiki/InstallingMediawiki#Getting_email_to_work"&gt;Source&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-5076774784353103932?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/5076774784353103932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=5076774784353103932' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/5076774784353103932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/5076774784353103932'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/06/media-wiki-email-problems.html' title='Media Wiki email problems'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-2127773023895617328</id><published>2008-06-18T09:53:00.000-04:00</published><updated>2008-06-18T09:55:19.817-04:00</updated><title type='text'>Remote desktop to Windows from Linux</title><content type='html'>First install rdesktop&lt;br /&gt;&lt;br /&gt;#yum install rdesktop&lt;br /&gt;&lt;br /&gt;To connect use&lt;br /&gt;$ rdesktop windows_server&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.rdesktop.org/"&gt;More info on rdesktop&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-2127773023895617328?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/2127773023895617328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=2127773023895617328' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/2127773023895617328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/2127773023895617328'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/06/remote-desktop-to-windows-from-linux.html' title='Remote desktop to Windows from Linux'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-6976401043832020869</id><published>2008-06-17T17:55:00.000-04:00</published><updated>2008-06-17T17:56:43.114-04:00</updated><title type='text'>VPN to windows from Linux</title><content type='html'>&lt;span style="font-family:verdana, arial, helvetica, sans-serif;color:#000000;"&gt;Use PPTP client.&lt;br /&gt;PPTP Client is a Linux, FreeBSD, NetBSD and OpenBSD client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP.  Allows connection to a PPTP based Virtual Private Network (VPN).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://pptpclient.sourceforge.net/"&gt;Link&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-6976401043832020869?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/6976401043832020869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=6976401043832020869' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/6976401043832020869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/6976401043832020869'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/06/vpn-to-windows-from-linux.html' title='VPN to windows from Linux'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-1786322189868909002</id><published>2008-06-17T11:40:00.000-04:00</published><updated>2008-06-17T11:41:05.432-04:00</updated><title type='text'>Moving a Certificate from Apache to a Windows IIS Server.</title><content type='html'>1.) Back up your certificate:&lt;br /&gt;&lt;p&gt;To import your certificate to Windows, you will first need to combine your primary certificate, Intermediate (CA) Certificate, and your private key file into a .pfx type backup file. To do this, use the following command:&lt;/p&gt; &lt;blockquote&gt;openssl pkcs12 -export -out DigiCertBackup.pfx -inkey your_private_key_file.txt -in your_domain_name.crt -certfile DigiCertCA.crt &lt;/blockquote&gt; &lt;p&gt;This creates a backup of your primary certificate called DigiCertBackup.pfx.  Copy this file to your IIS Server. &lt;/p&gt; 2.) Import the .pfx file to your Windows server&lt;br /&gt;Once you have copied the .pfx file to your Windows server, follow the instructions for importing your .pfx file  to Windows IIS server&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.digicert.com/wildcard-export-import.htm"&gt;Source&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-1786322189868909002?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/1786322189868909002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=1786322189868909002' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/1786322189868909002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/1786322189868909002'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/06/moving-certificate-from-apache-to.html' title='Moving a Certificate from Apache to a Windows IIS Server.'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-5984000951769335314</id><published>2008-06-11T16:44:00.000-04:00</published><updated>2008-06-11T17:02:21.735-04:00</updated><title type='text'>Nagios for network and service monitoring</title><content type='html'>&lt;pre&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;Introduction&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;Nagios is a open source service and network monitoring program.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;Installation&lt;/span&gt;&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;Install the following rpms &lt;/span&gt;&lt;/p&gt; &lt;pre&gt;&lt;span style="font-size:100%;"&gt;nagios-2.9-1.el5.rf.i386.rpm&lt;br /&gt;nagios-plugins-1.4.9-1.el5.rf.i386.rpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;Configuration&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;Add users nagios to cgi.cfg for the following attributes &lt;/span&gt;&lt;/p&gt; &lt;pre&gt;&lt;span style="font-size:100%;"&gt;authorized_for_system_information=nagios&lt;br /&gt;authorized_for_configuration_information=nagios&lt;br /&gt;authorized_for_all_services=nagios&lt;br /&gt;authorized_for_all_hosts=nagios&lt;br /&gt;authorized_for_all_service_commands=nagios&lt;br /&gt;authorized_for_all_host_commands=nagios&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;Web user setup&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;Add nagios to /path/to/nagios.htpasswd Add the following to /etc/httpd/conf.d/nagios  &lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;&lt;directory&gt;&lt;br /&gt;Options ExecCGI&lt;br /&gt;AllowOverride None&lt;br /&gt;order allow,deny&lt;br /&gt;Allow from all&lt;br /&gt; AuthName "Nagios Access"&lt;br /&gt; AuthType Basic&lt;br /&gt; AuthUserFile /path/to/nagios.htpasswd&lt;br /&gt; Require valid-user&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;&lt;br /&gt;Alias /nagios/ /usr/share/nagios/&lt;br /&gt;&lt;directory&gt;&lt;br /&gt;Options None&lt;br /&gt;AllowOverride None&lt;br /&gt;order allow,deny&lt;br /&gt;Allow from all&lt;br /&gt; AuthType Basic&lt;br /&gt; AuthName "Nagios Access"&lt;br /&gt; AuthUserFile /path/to/nagios.htpasswd&lt;br /&gt; Require valid-user&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt; &lt;pre&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;Add Hosts and Services to /etc/nagios/localhost.cgi Follow the example configuration&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;Any questions or problems put them in the comments, I will try to help&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-5984000951769335314?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/5984000951769335314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=5984000951769335314' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/5984000951769335314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/5984000951769335314'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/06/nagios-for-network-and-service.html' title='Nagios for network and service monitoring'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-6718653980233990766</id><published>2008-06-03T15:51:00.000-04:00</published><updated>2008-06-11T16:41:29.187-04:00</updated><title type='text'>Create your own SSL certificate</title><content type='html'>Here is a quick document on creating SSLs of your own.&lt;br /&gt;List of steps summarized just in case the original site goes down&lt;br /&gt;&lt;br /&gt;&lt;span class="code"&gt;$ openssl genrsa -des3 -rand file1:file2:file3:file4:file5 -out server.key 1024&lt;br /&gt;To create a key  file1-file5 are random compressed files.&lt;br /&gt;&lt;/span&gt;&lt;span class="code"&gt;&lt;br /&gt;$ openssl rsa -in server.key -out server.pem&lt;br /&gt;To delete the password from the key&lt;br /&gt;&lt;/span&gt;&lt;span class="code"&gt;&lt;br /&gt;$ openssl req -new -key server.key -out server.csr&lt;br /&gt;To create a certificate signing request&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt; &lt;span class="code"&gt; $ openssl x509 -req -days 60 -in server.csr -signkey server.key -out server.crt&lt;br /&gt;To create a self signed certificate.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span class="code"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://slacksite.com/apache/certificate.php"&gt;SSL Certificate&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-6718653980233990766?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/6718653980233990766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=6718653980233990766' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/6718653980233990766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/6718653980233990766'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/06/create-your-own-ssl-certificate.html' title='Create your own SSL certificate'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-4827149118657446059</id><published>2008-05-14T16:10:00.000-04:00</published><updated>2008-05-14T16:12:08.697-04:00</updated><title type='text'>Short Tutorial on screen</title><content type='html'>If you are like me using Putty or any ssh client to connect to many servers and are looking for a cleaner approach use screen window manager.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.rackaid.com/resources/linux-tutorials/general-tutorials/linux-screen.cfm"&gt;Screen Tutorial&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-4827149118657446059?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/4827149118657446059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=4827149118657446059' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/4827149118657446059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/4827149118657446059'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/05/short-tutorial-on-screen.html' title='Short Tutorial on screen'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-4395858494066658021</id><published>2008-05-14T16:06:00.000-04:00</published><updated>2008-05-14T16:13:01.019-04:00</updated><title type='text'>Gathering System Information</title><content type='html'>For Solaris &lt;br /&gt;Refer : &lt;a href="http://www.brandonhutchinson.com/Gathering_Solaris_system_statistics.html"&gt;Short  Notes&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Important commands to remember.&lt;br /&gt;/usr/sbin/psrinfo -pv&lt;br /&gt;To get physical processor information&lt;br /&gt;/usr/sbin/prtconf&lt;br /&gt;System Configuration&lt;br /&gt;&lt;br /&gt;Linux&lt;br /&gt;CPU Info&lt;br /&gt;look in /proc/cpuinfo&lt;br /&gt;or search for Physical Processor ID"&lt;br /&gt;&lt;br /&gt;System architecture could be obtained by using &lt;br /&gt;$uname -a&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-4395858494066658021?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/4395858494066658021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=4395858494066658021' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/4395858494066658021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/4395858494066658021'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/05/gathering-system-information.html' title='Gathering System Information'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-4286021067943474354</id><published>2008-04-07T11:05:00.000-04:00</published><updated>2008-04-07T11:15:48.433-04:00</updated><title type='text'>Force user to change password on login Linux</title><content type='html'>To force a user to change his password at login use&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#chage -d 0 username&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;It is the same as &lt;span style="font-family:courier new;"&gt;passwd -t&lt;/span&gt; username in solaris.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-4286021067943474354?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/4286021067943474354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=4286021067943474354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/4286021067943474354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/4286021067943474354'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/04/force-user-to-change-password-on-login.html' title='Force user to change password on login Linux'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-3682617027504765052</id><published>2008-04-01T12:25:00.000-04:00</published><updated>2008-04-01T12:28:00.237-04:00</updated><title type='text'>How to find whether Solaris is 32 or 64 bit</title><content type='html'>Had to search for this today and found that&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# isainfo -vk &lt;/span&gt;&lt;br /&gt;will give you what you are looking for. The same information a linux machine can be obtained by the following command&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$ uname -m&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-3682617027504765052?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/3682617027504765052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=3682617027504765052' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/3682617027504765052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/3682617027504765052'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/04/how-to-find-whether-solaris-is-32-or-64.html' title='How to find whether Solaris is 32 or 64 bit'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-98182602940186048</id><published>2008-03-18T10:22:00.001-04:00</published><updated>2008-09-19T14:11:09.211-04:00</updated><title type='text'>Automate Apache Tomcat Clusters</title><content type='html'>The following script is a handy tool which I use to install an apache instance with mod_jk module and several tomcat instances which are used as a loadbalancing setup. After executing this script all you have to do is start the individual servers and everything should work.&lt;br /&gt;&lt;br /&gt;The code&lt;br /&gt;&lt;div style="overflow: scroll; width: 425px; height: 400px;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;################################################################################&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# This script is to automate a typical apache tomcat loadbalanced setup&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Author: Tharun Kumar Allu&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Email : tharun_DOT_allu_AT_gmail.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;################################################################################&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Setup all the variables properly&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Change the source to your choice before executing the script&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# The only requirement in this script is they have to be tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# if you have other formats then change the basename directive below to reflect&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# that&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;APACHE_SOURCE="http://apache.seekmeup.com/httpd/httpd-2.2.8.tar.gz"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;TOMCAT_BINARY="http://www.uniontransit.com/apache/tomcat/tomcat-6/v6.0.16/bin/apache-tomcat-6.0.16.tar.gz"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;MODJK_SOURCE="http://www.apache.org/dist/tomcat/tomcat-connectors/jk/source/jk-1.2.26/tomcat-connectors-1.2.26-src.tar.gz"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Number of Tomcat clusters that you want to be installed&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;NUM_CLUSTERS=2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Apache parameters to ./configure script enable more modules you might require&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# here&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;APACHE_CONFIG=" --enable-so --enable-jk"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Path where all the applications are installed  if this path is not accessable&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# by the user executing this script then prefix su - to 'make install' for&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# apache and mod_jk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;INSTALL_PREFIX="/path/to/your/install/directory"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Set the prefix of the ports that are used by Tomcat here for example port 8080&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# is changed to 12080 for cluster 0 and 13080 and so on for the other clusters&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;TC_PORT_PREFIX_ORIG=12&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;################################################################################&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;OLD_PWD=`pwd`&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mkdir temp$$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd temp$$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;wget $APACHE_SOURCE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;wget $TOMCAT_BINARY&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;wget $MODJK_SOURCE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;tar zxvf `basename $APACHE_SOURCE` &gt;/dev/null&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd `basename $APACHE_SOURCE .tar.gz`&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;./configure --prefix=$INSTALL_PREFIX/apache/ $APACHE_CONFIG&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# prefix su - to the following command if current user does not have write&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# access to $INSTALL_PREFIX&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd ..&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;pwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Installing tomcat clusters and changing server.xml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;TC_PORT_PREFIX=$TC_PORT_PREFIX_ORIG&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;for ((i=0;i&lt;$NUM_CLUSTERS;i++));do         tar zxvf `basename $TOMCAT_BINARY` &gt;/dev/null&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       mv `basename $TOMCAT_BINARY .tar.gz` $INSTALL_PREFIX/tomcat-cluster-$i&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       mv $INSTALL_PREFIX/tomcat-cluster-$i/conf/server.xml $INSTALL_PREFIX/tomcat-cluster-$i/conf/server.xml.orig&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       cat $INSTALL_PREFIX/tomcat-cluster-$i/conf/server.xml.orig | sed s/"Engine name=\"Catalina\""/"Engine name=\"Catalina\" jvmRoute=\"cluster-"$i"\""/ | sed s/8005/"$TC_PORT_PREFIX"005/ | sed s/8080/"$TC_PORT_PREFIX"080/ | sed s/8009/"$TC_PORT_PREFIX"009/ &gt;$INSTALL_PREFIX/tomcat-cluster-$i/conf/server.xml&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       TC_PORT_PREFIX=`expr $TC_PORT_PREFIX + 1`;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Compiling and installing mod_jk.so&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;tar zxvf `basename $MODJK_SOURCE`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd `basename $MODJK_SOURCE .tar.gz`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd native&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;./configure --with-apxs=$INSTALL_PREFIX/apache/bin/apxs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# prefix su - to the following command if current user does not have write&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# access to $INSTALL_PREFIX&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd $OLD_PWD&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;rm -rf temp$$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;touch $INSTALL_PREFIX/apache/conf/workers.properties&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# Adding JK related entries to apache httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "JkWorkersFile \"conf/workers.properties\"" &gt;&gt; $INSTALL_PREFIX/apache/conf/httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "JkLogFile \"logs/mod_jk.log\"" &gt;&gt;$INSTALL_PREFIX/apache/conf/httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "JkLogLevel info" &gt;&gt;$INSTALL_PREFIX/apache/conf/httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "JkMount /jkstatus* jkstatus" &gt;&gt; $INSTALL_PREFIX/apache/conf/httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#Building the loadbalancer worker.properties file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "worker.list=loadbalancer,jkstatus" &gt;&gt; $INSTALL_PREFIX/apache/conf/workers.properties&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;TC_PORT_PREFIX=$TC_PORT_PREFIX_ORIG&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;for ((i=0;i&lt;$NUM_CLUSTERS;i++));do         echo "worker.type=ajp13" &gt;&gt; $INSTALL_PREFIX/apache/conf/workers.properties&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       TEMP_X=`hostname`;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       HOST=`host $TEMP_X  | awk '{print $4}'`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       echo "worker.cluster-$i.host=$HOST" &gt;&gt; $INSTALL_PREFIX/apache/conf/workers.properties&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       echo "worker.cluster-$i.port=$TC_PORT_PREFIX"009 &gt;&gt; $INSTALL_PREFIX/apache/conf/workers.properties&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       echo "worker.cluster-$i.lbfactor=1" &gt;&gt;  $INSTALL_PREFIX/apache/conf/workers.properties&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       BALANCED_WORKERS=$BALANCED_WORKERS,cluster-$i&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       TC_PORT_PREFIX=`expr $TC_PORT_PREFIX + 1`;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "worker.loadbalancer.balance_workers=$BALANCED_WORKERS" &gt;&gt; $INSTALL_PREFIX/apache/conf/workers.properties&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "worker.jkstatus.type=status" &gt;&gt; $INSTALL_PREFIX/apache/conf/workers.properties&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mv $INSTALL_PREFIX/apache/conf/httpd.conf $INSTALL_PREFIX/apache/conf/httpd.conf.orig&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sed s/"Listen 80"/"Listen 80\n\n\nLoadModule modules\/mod_jk.so\n"/ $INSTALL_PREFIX/apache/conf/httpd.conf.orig &gt; $INSTALL_PREFIX/apache/conf/httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-98182602940186048?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/98182602940186048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=98182602940186048' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/98182602940186048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/98182602940186048'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/03/automate-apache-tomcat-clusters.html' title='Automate Apache Tomcat Clusters'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-3587955446888946411</id><published>2008-03-13T15:57:00.000-04:00</published><updated>2008-03-18T10:51:43.096-04:00</updated><title type='text'>Paging  / monitoring service using Perl</title><content type='html'>Here I have written a small perl program which is used to read a configuration file where you can specify different types of services to be monitored and send out an email / page (email to mobile number).&lt;br /&gt;&lt;br /&gt;This is pager.conf example&lt;br /&gt;&lt;div style="overflow: scroll; width: 425px; height: 210px;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;# This configuration file is used to setup paging for individual applications&lt;br /&gt;# each filed is separated by one tab only.&lt;br /&gt;# FIELD1 is server name&lt;br /&gt;# FIELD2 is list of comma separated processes&lt;br /&gt;# FIELD3 is type of process db - database proc - process mlog - message log&lt;br /&gt;# FIELD4 is email address of the pager can be comma separated for multiple&lt;br /&gt;# recipients.&lt;br /&gt;#=============================================&lt;br /&gt;# server        processes       type    email&lt;br /&gt;#=============================================&lt;br /&gt;server1    db    user@domail.com&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;Here is the actual perl program&lt;br /&gt;&lt;div style="overflow: scroll; width: 425px; height: 400px;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;$CONF="/path/to/pager.conf";&lt;br /&gt;open(F,"&lt;$CONF") or die "Cannot open $CONF\n";&lt;br /&gt;&lt;br /&gt;# Setting up default email.&lt;br /&gt;$to=="user\@domain.com";&lt;br /&gt;$from="pager\@server.com";&lt;br /&gt;$subject="Paging default";&lt;br /&gt;$out = "Default message!";&lt;br /&gt;&lt;br /&gt;$line= &amp;lt F&amp;gt;&lt;br /&gt;while($line)&lt;br /&gt;{&lt;br /&gt;        chomp($line);&lt;br /&gt;# Ignore Comments&lt;br /&gt;        if($line =~ m/^#/)&lt;br /&gt;        {&lt;br /&gt;                $line= &amp;lt F&amp;gt;&lt;br /&gt;                next;&lt;br /&gt;        }&lt;br /&gt;#Ignore Empty lines&lt;br /&gt;        if($line =~ m/^(\s)*$/)&lt;br /&gt;        {&lt;br /&gt;                $line= &amp;lt F&amp;gt;&lt;br /&gt;                next;&lt;br /&gt;        }&lt;br /&gt;# Get server proc type and email information from config file&lt;br /&gt;        ($server,$proc,$type,$email)=split(/\t/,$line);&lt;br /&gt;        @proclist=split(/,/,$proc);&lt;br /&gt;        #print "Server=$server\nproc=$proc\ntype=$type\nemail=$email\n";&lt;br /&gt;        foreach $i (@proclist)&lt;br /&gt;        {&lt;br /&gt;# if it is a database check whether its up or not send out email alerts if it is down&lt;br /&gt;                if($type eq "db")&lt;br /&gt;                {&lt;br /&gt;                        $ret=system("Your Database related checking script/ command");&lt;br /&gt;                        #print "return = $ret\n";&lt;br /&gt;                        if( $ret != 0 )&lt;br /&gt;                        {&lt;br /&gt;                                $to=$email;&lt;br /&gt;                                $subject="$server $i $type is down";&lt;br /&gt;                                $out="Paging service Info:\n$server $i $type is down.\nsincerely,\nPager\n";&lt;br /&gt;                                email_alert();&lt;br /&gt;                        }&lt;br /&gt;                }&lt;br /&gt;                elsif($type eq "proc")&lt;br /&gt;                {&lt;br /&gt;# if it is a process check whether its running or not send out email alerts if it is down&lt;br /&gt;                        $ret=system("Your process related script / command");&lt;br /&gt;                        #print "return = $ret\n";&lt;br /&gt;                        if( $ret != 0 )&lt;br /&gt;                        {&lt;br /&gt;                                $to=$email;&lt;br /&gt;                                $subject="$server $i $type is down";&lt;br /&gt;                                $out="Paging service Info:\n$server $i $type is down.\nsincerely,\nPager\n";&lt;br /&gt;                                email_alert();&lt;br /&gt;                        }&lt;br /&gt;                }&lt;br /&gt;                elsif($type eq "mlog")&lt;br /&gt;                {&lt;br /&gt;                        $ret=system("Your log search script / command");&lt;br /&gt;                        #print "return = $ret\n";&lt;br /&gt;                        if( $ret == 0 )&lt;br /&gt;                        {&lt;br /&gt;                                $to=$email;&lt;br /&gt;                                $subject="$server $i has error";&lt;br /&gt;                                $out="Paging service Info:\nOn $server $i log has error in it.\nsincerely,\nPager\n";&lt;br /&gt;                                email_alert();&lt;br /&gt;                        }&lt;br /&gt;                }&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;        $line= &amp;lt F&amp;gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#Function that sends email look at the configuration for default email at the top of the script&lt;br /&gt;&lt;br /&gt;sub email_alert&lt;br /&gt;{&lt;br /&gt;        #print "entered email\n";&lt;br /&gt;        #print "$to\n$from\n$subject\n$out\n";&lt;br /&gt;        # send email using UNIX/Linux sendmail&lt;br /&gt;        open(MAIL, "|/usr/sbin/sendmail -t");&lt;br /&gt;&lt;br /&gt;        ## Mail Header&lt;br /&gt;        print MAIL "To: $to\n";&lt;br /&gt;        print MAIL "From: $from\n";&lt;br /&gt;        print MAIL "Subject: $subject\n";&lt;br /&gt;&lt;br /&gt;        ## Mail Body&lt;br /&gt;        print MAIL $out;&lt;br /&gt;        close(MAIL);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;This script could give you a starting point to add more services. Once it is done run it as a cron job every x amount of time where x is your interval at which your want to test for these services. On my side I test them every 5 minutes. with a cron entry .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-3587955446888946411?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/3587955446888946411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=3587955446888946411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/3587955446888946411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/3587955446888946411'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/03/paging-monitoring-service-using-perl.html' title='Paging  / monitoring service using Perl'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-4521756741411387490</id><published>2008-03-10T14:51:00.000-04:00</published><updated>2008-03-18T10:57:18.381-04:00</updated><title type='text'>SSH with no password</title><content type='html'>This is a very handy setting I use to login to various machines with out actually entering the password every time.&lt;br /&gt;I have used this to setup user accounts on different servers so that I can monitor processes, disk space, etc.&lt;br /&gt;lets first do the actual no password setup.&lt;br /&gt;&lt;br /&gt;On Server 1&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;$ ssh-keygen -t dsa&lt;br /&gt;&lt;/span&gt;Do not enter any password for key as this will defeat the whole purpose of not typing a password.&lt;span style=";font-family:courier new;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;this creates id_dsa and id_dsa.pub files in ~/.ssh which are private and public keys respectively.&lt;br /&gt;On Server 2&lt;br /&gt;copy id_dsa.pub from Server 1 to Server 2&lt;br /&gt;append the contents of id_dsa.pub to ~/.ssh/authorized_keys2&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ cat id_dsa.pub &gt;&gt; ~/.ssh/authorized_keys2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now ssh from Server 1 for that user to Server 2 does not require a password.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-4521756741411387490?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/4521756741411387490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=4521756741411387490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/4521756741411387490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/4521756741411387490'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/03/ssh-with-no-password.html' title='SSH with no password'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-8616993909707111514</id><published>2008-03-10T11:52:00.001-04:00</published><updated>2008-03-18T10:56:04.026-04:00</updated><title type='text'>Moving mediawiki to a different server</title><content type='html'>&lt;ul&gt;&lt;li&gt;make a dump of the database  &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;ex:&lt;br /&gt;&lt;code&gt;mysqldump --port=2081 --socket=mysql.sock --user=root&lt;br /&gt;--password=yourpasswd --databases wikidb --single-transaction&lt;br /&gt;--flush-logs | bzip2 -c &gt; backup.bz2 &lt;/code&gt; &lt;/p&gt; &lt;ul&gt;&lt;li&gt;make a archive of the web folder of wiki &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;ex: &lt;code&gt;tar jcvf web.backup.tbz wiki/ &lt;/code&gt; &lt;/p&gt; &lt;ul&gt;&lt;li&gt;On the new server install mysql, php , php-mysql, httpd &lt;/li&gt;&lt;li&gt;create a database and user in mysql. &lt;/li&gt;&lt;li&gt;change LocalSettings.php to point to new database &lt;/li&gt;&lt;li&gt;start/restart httpd &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-8616993909707111514?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/8616993909707111514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=8616993909707111514' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/8616993909707111514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/8616993909707111514'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/03/moving-mediawiki-to-different-server.html' title='Moving mediawiki to a different server'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-5341031033598061993</id><published>2008-03-10T11:42:00.000-04:00</published><updated>2008-03-18T10:53:29.705-04:00</updated><title type='text'>Apache with ssl on Solaris</title><content type='html'>&lt;div style="overflow: scroll; width: 425px;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;You have to install openssl if it is not already installed.&lt;br /&gt;$ ./configure --prefix=/path/to/apache/ --enable-so --enable-jk --enable-ssl --with-ssl=/path/to/openssl/&lt;br /&gt;$ make&lt;br /&gt;# make install&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-5341031033598061993?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/5341031033598061993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=5341031033598061993' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/5341031033598061993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/5341031033598061993'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/03/apache-with-ssl-on-solaris.html' title='Apache with ssl on Solaris'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-7251867258011121495</id><published>2008-03-10T11:34:00.000-04:00</published><updated>2008-03-10T11:41:10.524-04:00</updated><title type='text'>HTTP setup for accessing subversion</title><content type='html'>Install modules mod_dav_svn.so mod_authz_svn.so&lt;br /&gt;and make the following change in your httpd.conf&lt;br /&gt;&lt;pre&gt;&lt;location subversion=""&gt;&lt;br /&gt;      DAV svn&lt;br /&gt;      SVNPath /path/to/svn&lt;br /&gt;      AuthType Basic&lt;br /&gt;      AuthName "Your Subversion"&lt;br /&gt;      AuthUserFile /path/to/htpasswd&lt;br /&gt;      Require valid-user&lt;br /&gt;&lt;/location&gt;&lt;/pre&gt;Note: For further security you can have this location accessible only through SSL by using virtual host directive.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-7251867258011121495?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/7251867258011121495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=7251867258011121495' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/7251867258011121495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/7251867258011121495'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/03/http-setup-for-accessing-subversion.html' title='HTTP setup for accessing subversion'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-8930574732203408117</id><published>2008-03-10T11:33:00.000-04:00</published><updated>2008-03-18T10:55:14.801-04:00</updated><title type='text'>How to move subversion (SVN)</title><content type='html'>&lt;ul&gt;&lt;li&gt;on old server &lt;code&gt;svnadmin dump /repo/path &gt; repo.dmp&lt;/code&gt; &lt;/li&gt;&lt;li&gt;on new server &lt;code&gt;&lt;br /&gt;svnadmin create /repo/path &lt;/code&gt;  and &lt;code&gt;svnadmin load /repo/path &lt; repo.dmp&lt;br /&gt;&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-8930574732203408117?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/8930574732203408117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=8930574732203408117' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/8930574732203408117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/8930574732203408117'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/03/how-to-move-subversion-svn.html' title='How to move subversion (SVN)'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-96283653617011583.post-6261442667208510439</id><published>2008-03-10T11:29:00.001-04:00</published><updated>2008-03-10T11:32:10.543-04:00</updated><title type='text'>Long Due</title><content type='html'>This is something which has been long due. I have been using linux from a long time and wanted to post my difficulties and achievements in a blog but did not get an opportunity to do so. Now that I have been working with Linux in an Enterprise level, I though I will put some of my ideas implementations etc so that others can easily pickup.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/96283653617011583-6261442667208510439?l=redhatlinuxworld.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redhatlinuxworld.blogspot.com/feeds/6261442667208510439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=96283653617011583&amp;postID=6261442667208510439' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/6261442667208510439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/96283653617011583/posts/default/6261442667208510439'/><link rel='alternate' type='text/html' href='http://redhatlinuxworld.blogspot.com/2008/03/long-due.html' title='Long Due'/><author><name>Tharun</name><uri>http://www.blogger.com/profile/16229889219097060929</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08389409648807633993'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>