<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Linux Manju</title>
	<atom:link href="http://linuxmanju.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://linuxmanju.com/blog</link>
	<description>Not For the Faint Hearted</description>
	<pubDate>Tue, 18 May 2010 10:37:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Intel ( 945 ) Graphics Card and Slow Compiz performance</title>
		<link>http://linuxmanju.com/blog/?p=53</link>
		<comments>http://linuxmanju.com/blog/?p=53#comments</comments>
		<pubDate>Tue, 18 May 2010 10:37:49 +0000</pubDate>
		<dc:creator>linuxmanju</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Compiz slow]]></category>

		<category><![CDATA[Intel 945]]></category>

		<category><![CDATA[slow Graphics In Intel]]></category>

		<category><![CDATA[Xorg slow Intel]]></category>

		<guid isPermaLink="false">http://linuxmanju.com/blog/?p=53</guid>
		<description><![CDATA[Compiz historically hates Intel Graphic Cards, if you happen to be one of those ( Un ) Fortunate Intel Graphic card owners, And facing very slow performance.. Here is a trick which worked for me..
Rename the Original compiz binary ( normally in /usr/bin/compiz )
mv /usr/bin/compiz /usr/bin/compiz.orig
Create a shell script with the below contents and save [...]]]></description>
			<content:encoded><![CDATA[<p>Compiz historically hates Intel Graphic Cards, if you happen to be one of those ( Un ) Fortunate Intel Graphic card owners, And facing very slow performance.. Here is a trick which worked for me..</p>
<p>Rename the Original compiz binary ( normally in /usr/bin/compiz )</p>
<p>mv /usr/bin/compiz /usr/bin/compiz.orig</p>
<p>Create a shell script with the below contents and save the file as /usr/bin/compiz</p>
<p>vi /usr/bin/compiz    and Add these lines&#8230;</p>
<p>#!/bin/bash</p>
<p>ARGS=$@</p>
<p>## Below command in a single line.</p>
<p>LIBGL_ALWAYS_INDIRECT=1 INTEL_BATCH=1 /usr/bin/compiz.orig &#8211;replace &#8211;indirect-rendering -sm-disable ccp $ARGS &amp;</p>
<div>Once saved.. Set an execuatble bit and restart Xorg</div>
<div>chmod +x /usr/bin/compiz</div>
]]></content:encoded>
			<wfw:commentRss>http://linuxmanju.com/blog/?feed=rss2&amp;p=53</wfw:commentRss>
		</item>
		<item>
		<title>A Killer Combo ( Alfresco and Liferay )</title>
		<link>http://linuxmanju.com/blog/?p=46</link>
		<comments>http://linuxmanju.com/blog/?p=46#comments</comments>
		<pubDate>Wed, 02 Dec 2009 19:14:33 +0000</pubDate>
		<dc:creator>linuxmanju</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://linuxmanju.com/blog/?p=46</guid>
		<description><![CDATA[I am not sure.. If I could publish the how to because of my company policy ( Need to check ), But if anyone interested in exploring options, Liferay is an amazing Portal and Alfresco is a feature rich Document Management System. Integrate Both Liferay and Alferesco together, Its the best Killer combination ever.. A [...]]]></description>
			<content:encoded><![CDATA[<p>I am not sure.. If I could publish the how to because of my company policy ( Need to check ), But if anyone interested in exploring options, Liferay is an amazing Portal and Alfresco is a feature rich Document Management System. Integrate Both Liferay and Alferesco together, Its the best Killer combination ever.. A true Share Point killer.</p>
<p>But the Pain Point is.. Its not an easy Integration.. Requires many Aspirins to get it working.</p>
<p>If anyone need help on setting it up, Mail me.. If Free.. I may be able to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxmanju.com/blog/?feed=rss2&amp;p=46</wfw:commentRss>
		</item>
		<item>
		<title>A linuxhater/ Windows Lover  blog :)</title>
		<link>http://linuxmanju.com/blog/?p=44</link>
		<comments>http://linuxmanju.com/blog/?p=44#comments</comments>
		<pubDate>Wed, 02 Dec 2009 19:10:32 +0000</pubDate>
		<dc:creator>linuxmanju</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://linuxmanju.com/blog/?p=44</guid>
		<description><![CDATA[This is my first ( Or may be second next to First hello world line :P)., With my busy schedule I took out time to write this out of Frustration/ Disgust/ Agony.. etc..
As I was googling for some content, I came across this Linux hater&#8217;s blog, Which In my opinion sounds like a stupid guy [...]]]></description>
			<content:encoded><![CDATA[<p>This is my first ( Or may be second next to First hello world line :P)., With my busy schedule I took out time to write this out of Frustration/ Disgust/ Agony.. etc..</p>
<p>As I was googling for some content, I came across this Linux hater&#8217;s blog, Which In my opinion sounds like a stupid guy crying foul  for his own stupidity. All the while the point he was trying  ( I said trying as anyone with little Logic would find the flaws ) to make is why he does not like Linux as much as Windows. Here are some tips for the sadistic people who are or wanna be linuxhater blog kinds..</p>
<p>a) If you LOVE Windows name your blog or site as Windows Lovers blog, Dont name it as linuxhaters blog just for the publicity&#8217;s sake.</p>
<p>b)  If YOU dont know how to make things work, Its YOUR own fault.. ( For a remark on Opensource developer did not do a good work on this and that.. I am sure you are not even close to their competency.. Even if it does not work , Atleast they did something, What have you done in life??.. If you are that smart go fix it  or develop one on your own <img src='http://linuxmanju.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )</p>
<p>c)  Copy pasted from the Author&#8217;s site on update manager does not honor http_proxy&#8230;   &#8221;They try to do something that doesn&#8217;t respect http_proxy and has to time-out before progressing. What year is this? really guys?&#8221;</p>
<p>My comments:- Man you are sooooo very disgusting.. You use proxy which is not transparent (1980s Style ) and dare to ask the stupid question  what year is this .. You make me laugh my a** out.</p>
<p>d) Never use Linux Like windows.. Both are good at their place ( Really .. I mean it <img src='http://linuxmanju.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )..</p>
<p>e) I have updated my Ubuntu 100 times sofar.. without any issues .. ( May be a small hickups here and there , which are easily fixed ). Compare that to a Windows driver update which killed almost 250 PCs in one of the companies I worked for.</p>
<p>In author&#8217;s understandable Language.. If you like Windows, Not Linux.. thats your Fu*** problem, When Millions of people around the world are using Linux, and if you say you cant, That proves who is THE Fu*** Retard.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxmanju.com/blog/?feed=rss2&amp;p=44</wfw:commentRss>
		</item>
		<item>
		<title>Tomcat Name Based Virtual Hosting How to</title>
		<link>http://linuxmanju.com/blog/?p=41</link>
		<comments>http://linuxmanju.com/blog/?p=41#comments</comments>
		<pubDate>Wed, 18 Nov 2009 19:43:55 +0000</pubDate>
		<dc:creator>linuxmanju</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Confluence]]></category>

		<category><![CDATA[Jira]]></category>

		<category><![CDATA[Nambe Based Virtual Hosting]]></category>

		<category><![CDATA[Tomcat]]></category>

		<category><![CDATA[Virtual Hosting]]></category>

		<guid isPermaLink="false">http://linuxmanju.com/blog/?p=41</guid>
		<description><![CDATA[Confluence :- A feature rich Wiki/ Document Management system from atlassian
Jira:- An Excellent Bug/ Issue Tracking system.
Challenge is to run Both with a single instance of tomcat

Tomcat 	Name Based Virtual Hosting How to ( For Yellow.ec2.example.com Jira 	along with Confluence )
Intended Audience:- Sysadmin
Goal:- Is to achive Confluence and Jira parallelly in the same 	system
Pre-Requisites:- Tomcat, [...]]]></description>
			<content:encoded><![CDATA[<p>Confluence :- A feature rich Wiki/ Document Management system from atlassian</p>
<p>Jira:- An Excellent Bug/ Issue Tracking system.</p>
<p>Challenge is to run Both with a single instance of tomcat</p>
<div id="content">
<p><script type="text/javascript"><!--
      var show = document.getElementById('show');
      var hide = document.getElementById('hide');
      var versionComment = document.getElementById('versionComment');</p>
<p>      function showComment(){
        show.style.display = 'none';
        hide.style.display = 'inline';
        versionComment.style.display = 'block';
      }</p>
<p>      function hideComment(){
        show.style.display = 'inline';
        hide.style.display = 'none';
        versionComment.style.display = 'none';
      } 
// --></script><strong>Tomcat 	Name Based Virtual Hosting How to ( For Yellow.ec2.example.com Jira 	along with Confluence )</strong></p>
<p>Intended Audience:- Sysadmin</p>
<p>Goal:- Is to achive Confluence and Jira parallelly in the same 	system</p>
<p>Pre-Requisites:- Tomcat, Apache with Mod_jk, DNS entry for 1) 	support.example.com 2) CNAME/IN for docs.example.com, Latest Stable 	Build of Confluence and Jira .</p>
<p><strong>Aproaches and Challenges:-</strong></p>
<p>There are two different approaches one can take for this.</p>
<p>a) Run  Two tomcat instances one each for Jira and 	Confluence ( Built in Tomcat with the applications ) in two 	different ports, Add proxy pass or configure Mod_jk Redirection with 	Name Based Virtual Host setup in Apache</p>
<p>Drawback of the above setup:-</p>
<p>Server Overhead as there would be two tomcat instances, Separate 	Rewrite rules for each Container No system wide defaults.</p>
<p>b) Second approach would be to configure one of the Tomcat 	instance ( Either Jira or Confluence ) to serve both the Containers 	( Jeera as well as Confluence )</p>
<p>The second approach is better as compared to the first one as a) 	No additonal system over head ( 1 Tomcat Insatnce per server ) 2) 	Single System wide configuration of Apache/ Mod_jk.</p>
<p>For this document we will go with the second approach.</p>
<p>Server Setup:- Install Ubuntu Jaunty, Install Java, Create user 	jira, Configure JAVA_HOME pointing to JDK installation root path ( 	For eg.. /usr/local/java ) in .bashrc</p>
<p>Download Jira and Confluence from Atlassian, Untar it in /mnt/ebs</p>
<p>tar zxvf jira*.tgz -C /mnt/ebs</p>
<p>tar zxvf confluence*.tar.tgz -C /mnt/ebs</p>
<p>Configure jira and mod_jk in apache su - jira ( Will be covered 	in a different Document )</p>
<p>Run the jira and test the setup.</p>
<p>Create a Directory for confluence data</p>
<p>mkdir -p /mnt/ebs/confluencedata</p>
<p>Change ownership to user jira</p>
<p>chown -R jira  /mnt/ebs/{confluence*,jira*}</p>
<p>Configure Confluence:-</p>
<p>Open 	/mnt/ebs/confluence*/confluence/WEB-INF/classes/confluence-init.properties</p>
<p>Add a line which reads like below</p>
<p><strong>Configure Name Based Virtual Containers in Tomcat:-</strong></p>
<p>open /mnt/ebs/jira*/conf/server.xml</p>
<p>Locate the line which reads</p>
<p>&lt;engine name=&#8221;Catalina&#8221; defaultHost=&#8221;localhost&#8221; 	&gt;</p>
<p>Change it to</p>
<p>&lt;engine name=&#8221;Catalina&#8221; 	defaultHost=&#8221;support.example.com&#8221;&gt;</p>
<p>Locate the line which reads</p>
<p>&lt;host name=&#8221;localhost&#8221; appbase=&#8221;webapps&#8221; 	unpackWARs=&#8221;true&#8221; autoDeploy=&#8221;true&#8221;&gt;</p>
<p>Change it to</p>
<p>&lt;host name=&#8221;support.example.com&#8221; appbase=&#8221;webapps&#8221; 	unpackWARs=&#8221;true&#8221; autoDeploy=&#8221;False&#8221;&gt;</p>
<p>Go to the end of &lt;/Host&gt; and insert the below lines for 	Confluence setup</p>
<p>&lt;Host name=&#8221;docs.example.com&#8221; debug=&#8221;0&#8243; 	appBase=&#8221;/mnt/ebs/confluence-3.0.2-std/webapps&#8221; 	unpackWARs=&#8221;true&#8221; autoDeploy=&#8221;False&#8221;&gt;</p>
<p>&lt;Context 	path=&#8221;/mnt/ebs/confluence-3.0.2-std/confluence&#8221; debug=&#8221;1&#8243; 	 &gt;</p>
<p>&lt;Manager 	pathname=&#8221; &#8221; &gt;</p>
<p>&lt;/Context&gt;</p>
<p>&lt;/Host&gt;</p>
<p>Add additional hostnames in /mnt/ebs/www/conf/000-default ( 	Optional .. Speeds up performance by eliminating Reverse Lookup for 	each new request)</p>
<p>Restart tomcat..</p>
<p>su - jira -C  &#8220;./ $HOME/.bashrc &amp;&amp; 	/mnt/ebs/jira*/bin/startup.sh</p>
<p>If all is well you should be able to access Jira on 	<a href="http://support.praxeva.com/">http://support.example.com</a> and Confluence at <a href="http://docs.praxeva.com/">http://docs.example.com</a></div>
<p style="margin-bottom: 0cm;">
]]></content:encoded>
			<wfw:commentRss>http://linuxmanju.com/blog/?feed=rss2&amp;p=41</wfw:commentRss>
		</item>
		<item>
		<title>An Example link Failover Script ( MPLS to OpenVPN ) With Mail Alerts</title>
		<link>http://linuxmanju.com/blog/?p=36</link>
		<comments>http://linuxmanju.com/blog/?p=36#comments</comments>
		<pubDate>Mon, 24 Aug 2009 14:17:39 +0000</pubDate>
		<dc:creator>linuxmanju</dc:creator>
		
		<category><![CDATA[FreeBSD]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Change Over]]></category>

		<category><![CDATA[Link Failover]]></category>

		<category><![CDATA[OpenVPN]]></category>

		<guid isPermaLink="false">http://linuxmanju.com/blog/?p=36</guid>
		<description><![CDATA[Objective:-
To monitor the Link and Change over to alternate link if the link goes down. If it comes back up, Revert the link back.
This Document Assumes. 1) You have a working MPLS/VPN setup,
#!/usr/bin/perl -w
#
#############
########### Written By Manjunath #####
######## http://linuxmanju.com
use Net::SMTP;
my $IFCNF=&#8221;/sbin/ifconfig&#8221;;
my $OVPN=&#8221;/usr/local/sbin/openvpn&#8221;;
my $SWALL=&#8221;/sbin/shorewall&#8221;;
####### Change this to your gateway to monitor ##
my $GW=&#8221;10.1.28.105&#8243;;
###### Change my.mailserver.com to [...]]]></description>
			<content:encoded><![CDATA[<p>Objective:-</p>
<p>To monitor the Link and Change over to alternate link if the link goes down. If it comes back up, Revert the link back.</p>
<p>This Document Assumes. 1) You have a working MPLS/VPN setup,</p>
<p>#!/usr/bin/perl -w<br />
#<br />
#############<br />
########### Written By Manjunath #####<br />
######## http://linuxmanju.com<br />
use Net::SMTP;</p>
<p>my $IFCNF=&#8221;/sbin/ifconfig&#8221;;<br />
my $OVPN=&#8221;/usr/local/sbin/openvpn&#8221;;<br />
my $SWALL=&#8221;/sbin/shorewall&#8221;;</p>
<p>####### Change this to your gateway to monitor ##</p>
<p>my $GW=&#8221;10.1.28.105&#8243;;</p>
<p>###### Change my.mailserver.com to the Email Server IP ###<br />
my $smtp = Net::SMTP-&gt;new(&#8217;my.mailserver.com&#8217;,Timeout =&gt; 30);</p>
<p>######## Change username and password to the SMTP AUth Username and Password<br />
$smtp-&gt;auth ( &#8216;username&#8217;, &#8216;password&#8217; ) or die &#8220;Could not authenticate $!&#8221;;</p>
<p>############# Change From Address and To address below.<br />
$smtp-&gt;mail(&#8217;alert@mydomain.com&#8217;);<br />
$smtp-&gt;to(&#8217;linux-report@mydomain.com&#8217;);<br />
$smtp-&gt;data();<br />
$smtp-&gt;datasend(&#8217;From: pondi-alert@mydomain.com&#8217;);<br />
$smtp-&gt;datasend(&#8221;\n&#8221;);<br />
$smtp-&gt;datasend(&#8217;To: manjunathkp@mydomain.com&#8217;);<br />
$smtp-&gt;datasend(&#8221;\n&#8221;);</p>
<p>sub mplscheck {<br />
if ( system(&#8221;ping -c4 $GW  &gt; /dev/null&#8221;) != 0) {<br />
if ( ! -e &#8220;/var/lock/mpls.lck&#8221; ) {<br />
system(&#8217;logger -p info &#8220;Mpls Link is down&#8221;&#8216;);<br />
system(&#8221;$IFCNF eth2 down&#8221;);<br />
sleep 4;<br />
system(&#8221;$IFCNF eth2 up&#8221;);<br />
system(&#8221;$OVPN &#8211;config /etc/openvpn/openvpn.conf &#8211;daemon&#8221;);<br />
system(&#8221;$SWALL restart /etc/shorewall.ovpn&#8221;);<br />
$smtp-&gt;datasend(&#8217;Subject: MPLS link Down..&#8217;);<br />
$smtp-&gt;datasend(&#8221;\n \n&#8221;);<br />
$smtp-&gt;datasend(&#8221;\n \n MPLS link is Down in Pondichery.. Unable to reach the gateway..&#8221;);<br />
$smtp-&gt;dataend();<br />
open LCK, &#8220;&gt;/var/lock/mpls.lck&#8221; ;<br />
close LCK;<br />
}<br />
}<br />
elsif ( -e &#8220;/var/lock/mpls.lck&#8221; )  {<br />
system(&#8217;logger -p info &#8220;Mpls Came back Up&#8221;&#8216;);<br />
system(&#8221;/bin/kill -SIGTERM openvpn&#8221;);<br />
system(&#8217;/etc/scripts/connections.sh&#8217;);<br />
unlink(&#8221;/var/lock/mpls.lck&#8221;);<br />
$smtp-&gt;datasend(&#8217;Subject: MPLS link Came Back up..&#8217;);<br />
$smtp-&gt;datasend(&#8221;\n \n&#8221;);<br />
$smtp-&gt;datasend(&#8221;\n \n MPLS link Came back up.. Able to reach the gateway..&#8221;);<br />
}<br />
}</p>
<p>mplscheck();<br />
$smtp-&gt;quit;<br />
Copy the script to /usr/bin and chmod +x /usr/bin/myscript.pl</p>
<p>Put the above script in the crontab for every 5 minutes ( Or less/more ) For eg..</p>
<p>*/5 * * * * /usr/bin/myscript.pl</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxmanju.com/blog/?feed=rss2&amp;p=36</wfw:commentRss>
		</item>
		<item>
		<title>Enlightenment DR 17 Install on Debian</title>
		<link>http://linuxmanju.com/blog/?p=31</link>
		<comments>http://linuxmanju.com/blog/?p=31#comments</comments>
		<pubDate>Mon, 09 Feb 2009 08:15:46 +0000</pubDate>
		<dc:creator>linuxmanju</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[DR 17]]></category>

		<category><![CDATA[E17]]></category>

		<category><![CDATA[E17 install]]></category>

		<category><![CDATA[Enlightenment]]></category>

		<guid isPermaLink="false">http://linuxmanju.com/blog/?p=31</guid>
		<description><![CDATA[Download Reasye17.sh from http://exchange.enlightenment.org/application/show/124
The script started showing errors on the first run.. As the package names changed ( I am using Debian Sid 64bit )
As a workaround&#8230;
Modify the below packages&#8230;
sed -i &#8217;s/libjpeg-dev/libjpeg62-dev/g&#8217; Reasye17.sh
sed -i &#8217;s/libfontconfig-dev/libfontconfig1-dev/g&#8217; Reasye17.sh
Once done  become root and run Reasye17.sh
sh Reasye17.sh
Select Debian as the OS&#8230;
Grab a coffee till it finishes  
This [...]]]></description>
			<content:encoded><![CDATA[<p>Download Reasye17.sh from http://exchange.enlightenment.org/application/show/124</p>
<p>The script started showing errors on the first run.. As the package names changed ( I am using Debian Sid 64bit )</p>
<p>As a workaround&#8230;</p>
<p>Modify the below packages&#8230;</p>
<p>sed -i &#8217;s/libjpeg-dev/libjpeg62-dev/g&#8217; Reasye17.sh</p>
<p>sed -i &#8217;s/libfontconfig-dev/libfontconfig1-dev/g&#8217; Reasye17.sh<br />
Once done  become root and run Reasye17.sh</p>
<p>sh Reasye17.sh</p>
<p>Select Debian as the OS&#8230;</p>
<p>Grab a coffee till it finishes <img src='http://linuxmanju.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This is what How my desktop looks like now..</p>
<p><a href="http://linuxmanju.com/blog/wp-content/uploads/2009/02/e17.jpg"><img class="alignnone size-medium wp-image-34" title="e17" src="http://linuxmanju.com/blog/wp-content/uploads/2009/02/e17-300x187.jpg" alt="" width="300" height="187" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxmanju.com/blog/?feed=rss2&amp;p=31</wfw:commentRss>
		</item>
		<item>
		<title>Apache http to https redirection</title>
		<link>http://linuxmanju.com/blog/?p=14</link>
		<comments>http://linuxmanju.com/blog/?p=14#comments</comments>
		<pubDate>Mon, 09 Feb 2009 08:05:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[FreeBSD]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Apache]]></category>

		<category><![CDATA[apache2]]></category>

		<category><![CDATA[http to https]]></category>

		<category><![CDATA[redirect]]></category>

		<category><![CDATA[redirection]]></category>

		<guid isPermaLink="false">http://linuxmanju.com/blog/?p=14</guid>
		<description><![CDATA[I wanted to force all users to use https://mymailserver.com instead of http://mymailserver.com.
Open apache config file (   httpd.conf or apache2.conf  or sites-enabled/000-default  ?? )
Add these lines
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}$1 [R,L]
/etc/init.d/apache2 restart
]]></description>
			<content:encoded><![CDATA[<p>I wanted to force all users to use https://mymailserver.com instead of http://mymailserver.com.</p>
<p>Open apache config file (   httpd.conf or apache2.conf  or sites-enabled/000-default  ?? )</p>
<p>Add these lines</p>
<p>RewriteCond %{HTTPS} !=on<br />
RewriteRule ^(.*) https://%{SERVER_NAME}$1 [R,L]</p>
<p>/etc/init.d/apache2 restart</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxmanju.com/blog/?feed=rss2&amp;p=14</wfw:commentRss>
		</item>
		<item>
		<title>Firefox 3 ( 64 bit ) Flash player</title>
		<link>http://linuxmanju.com/blog/?p=27</link>
		<comments>http://linuxmanju.com/blog/?p=27#comments</comments>
		<pubDate>Sun, 18 Jan 2009 07:57:45 +0000</pubDate>
		<dc:creator>linuxmanju</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Adobe flash player]]></category>

		<category><![CDATA[Firefox 3]]></category>

		<category><![CDATA[Flash Player]]></category>

		<category><![CDATA[flashplayer 64 bit]]></category>

		<guid isPermaLink="false">http://linuxmanju.com/blog/?p=27</guid>
		<description><![CDATA[1) Download the 64bit flash player from..
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz
2) mkdir $HOME/.mozilla/plugins
3) tar zxvf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gx -C $HOME/.mozilla/plugins
4) pkill -9 firefox
]]></description>
			<content:encoded><![CDATA[<p>1) Download the 64bit flash player from..</p>
<p>wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz</p>
<p>2) mkdir $HOME/.mozilla/plugins</p>
<p>3) tar zxvf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gx -C $HOME/.mozilla/plugins</p>
<p>4) pkill -9 firefox</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxmanju.com/blog/?feed=rss2&amp;p=27</wfw:commentRss>
		</item>
		<item>
		<title>High Availibility of Web Server Using UCarp</title>
		<link>http://linuxmanju.com/blog/?p=19</link>
		<comments>http://linuxmanju.com/blog/?p=19#comments</comments>
		<pubDate>Fri, 16 Jan 2009 13:11:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Cluster]]></category>

		<category><![CDATA[HA]]></category>

		<category><![CDATA[High Availibility]]></category>

		<category><![CDATA[Ucarp]]></category>

		<category><![CDATA[Webserver]]></category>

		<guid isPermaLink="false">http://linuxmanju.com/blog/?p=19</guid>
		<description><![CDATA[Easy way to to achieve 99.99999  with uCarp.
Example Setup:-
1) Server1 &#8212; IP Address 192.168.0.10
2) Server2 &#8212; IP Address 192.168.0.100
Floating IP:-  192.168.0.200 ( This is the Virtual IP Which will be owned by the master server )
Service provided:- Webserver ( My production env has three instances of Bugzilla and Wiki Pages. All bugzilla and Wiki&#8217;s are [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Easy way to to achieve 99.99999  with uCarp.</strong></em></p>
<p>Example Setup:-</p>
<p>1) Server1 &#8212; IP Address 192.168.0.10</p>
<p>2) Server2 &#8212; IP Address 192.168.0.100</p>
<p>Floating IP:-  192.168.0.200 ( This is the Virtual IP Which will be owned by the master server )</p>
<p>Service provided:- Webserver ( My production env has three instances of Bugzilla and Wiki Pages. All bugzilla and Wiki&#8217;s are configured to use a Centralized Mysql Database host with different DBs ).</p>
<p style="text-align: center;"><a href="http://linuxmanju.com/blog/wp-content/uploads/2009/01/ha.jpg"><img class="size-medium wp-image-20 aligncenter" title="ha" src="http://linuxmanju.com/blog/wp-content/uploads/2009/01/ha-289x300.jpg" alt="" width="289" height="300" /></a></p>
<p>Step By Step:-</p>
<p>1) Login to Server1 and copy all /var/www to server2 /var/www</p>
<p>scp -rp /var/www root@server2-IP:/var/www</p>
<p>2) Make sure that the pages ( Web pages are accessible from server 1 and server 2&#8217;s ip http://server1 http://server2</p>
<p>3) Download ucarp from http://download.pureftpd.org/pub/ucarp/ ( Go with the latest version ) on both the servers</p>
<p>Both Servers:-</p>
<p>wget http://download.pureftpd.org/pub/ucarp/ucarp-1.5.tar.gz</p>
<p>tar zxvf ucarp-1.5.tar.gz</p>
<p>cd ucarp-1.5.</p>
<p>./configure &amp;&amp; make &amp;&amp; make install-strip</p>
<p>4) Once installed on both the servers ucarp should be available in /usr/local/sbin/ucarp</p>
<p>On Server 1 and Server2 Create two  files Called vp-up.sh and vp-down.sh with the following contents</p>
<p><em><strong>vi /etc/vp-up.sh</strong></em></p>
<p>#!/bin/bash</p>
<p>### Add Floating IP</p>
<p>/sbin/ip addr add 192.168.0.200/24 dev eth0</p>
<p>#### My Switch / gateway is not smart does not flush the arp cache. So send a broadcast<br />
/sbin/arping -c 5 -i eth2 -S 192.168.0.200 192.168.0.1<br />
/sbin/arping -c 5 -i eth2 -S 192.168.0.200 192.168.0.14<br />
echo &#8220;WebServer not reachable&#8221; | /usr/bin/mail -s &#8220;Master webserver down&#8221; server-admin@xxx.com</p>
<p><em><strong>vi /etc/vip-down.sh</strong></em></p>
<p>#!/bin/bash<br />
/sbin/ip addr del 192.168.0.200/24 dev eth0<br />
echo &#8220;Changing Roles of the Web server&#8221; | /usr/bin/mail -s &#8220;Changing role Reverting to Backup State..&#8221; server-admin@xxx.com</p>
<p>Put both Files in /etc/vip-up.sh and /etc/vip-down.sh in both the servers ( Feel free to modify the script according to your requirement.</p>
<p>chmod +x /etc/vip-*.sh</p>
<p><em><strong>Ucarp Magic:-</strong></em></p>
<p>In the master server:-</p>
<p>Run:-</p>
<p>/usr/local/sbin/ucarp -v 42 -P -p somepasswd -a 192.168.0.200 -s 192.168.0.10 &#8211;upscript=/etc/vip-up.sh &#8211;downscript=/etc/vip-down.sh &amp;</p>
<p>In the Secondary Server:-</p>
<p>/usr/local/sbin/ucarp -v 42  -b 2 -k 1 -p somepwasswd -a 192.168.0.200 -s 192.168.0.100 &#8211;upscript=/etc/vip-up.sh &#8211;downscript=/etc/vip-down.sh &amp;</p>
<p>( The difference between both is the -s &lt; IP ADDR &gt; and in the second server -b2 -k1 and no -P Which means advertisement frequency is 2 seconds and Skew is 1 Second Which is higher than the master&#8217;s default 1Sec. This will force Master to own the virtual IP whenever its online ).</p>
<p>Test:-</p>
<p>Open UP http://192.168.0.200 ( Or do a continuous ping )</p>
<p>Bring the master down. The Slave will automatically server the request. Bring back the master up. It will take over again. The HA is ready..</p>
<p>Note:- If your web server has alot of dynamic data.. please make sure to sync the server1:/var/www and server2:/var/www periodically</p>
<p>In case of a problem Please mail me to manjunath&lt;at&gt; linuxmanju.com</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxmanju.com/blog/?feed=rss2&amp;p=19</wfw:commentRss>
		</item>
		<item>
		<title>rsh password less  login in Ubuntu</title>
		<link>http://linuxmanju.com/blog/?p=16</link>
		<comments>http://linuxmanju.com/blog/?p=16#comments</comments>
		<pubDate>Tue, 11 Nov 2008 07:11:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[password less]]></category>

		<category><![CDATA[remote shell]]></category>

		<category><![CDATA[rsh]]></category>

		<guid isPermaLink="false">http://linuxmanju.com/blog/?p=16</guid>
		<description><![CDATA[rsh-server in Ubuntu does not honor + + ( Allow everyone from every host ) in /etc/hosts.equiv and buggy.
Here is a workaround for the same.

vi /etc/hosts.equiv and make sure to add these lines ( If its not there create a file )
# /etc/hosts.equiv: list&#160; of&#160; hosts&#160; and&#160; users&#160; that are granted &#8220;trusted&#8221; r#&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; command access [...]]]></description>
			<content:encoded><![CDATA[<p>rsh-server in Ubuntu does not honor + + ( Allow everyone from every host ) in /etc/hosts.equiv and buggy.</p>
<p>Here is a workaround for the same.</p>
<p></p>
<p>vi /etc/hosts.equiv and make sure to add these lines ( If its not there create a file )</p>
<p># /etc/hosts.equiv: list&nbsp; of&nbsp; hosts&nbsp; and&nbsp; users&nbsp; that are granted &#8220;trusted&#8221; r<br />#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command access to your system .<br />#<br />+ +</p>
<p>apt-get install rsh-redone-server</p>
<p>&nbsp;( You might have to remove rsh-server )</p>
<p>Once done.. you should be able to rlogin and rsh the host without a password.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxmanju.com/blog/?feed=rss2&amp;p=16</wfw:commentRss>
		</item>
	</channel>
</rss>
