<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wp &#124; anoopdotnet</title>
	<atom:link href="http://wp.anoop.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.anoop.net</link>
	<description>yet another meaningless wordpress blog</description>
	<lastBuildDate>Sat, 19 May 2012 19:54:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
			<item>
		<title>Java CA Certs in Mac OS X Lion</title>
		<link>http://wp.anoop.net/2011/11/java-ca-certs-in-mac-os-x-lion/</link>
		<comments>http://wp.anoop.net/2011/11/java-ca-certs-in-mac-os-x-lion/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 00:21:04 +0000</pubDate>
		<dc:creator>Anoop</dc:creator>
				<category><![CDATA[Meaningless]]></category>

		<guid isPermaLink="false">http://wp.anoop.net/?p=10518</guid>
		<description><![CDATA[The cacerts file for Java on Mac OS X Lion (and maybe previous versions) is at /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security To see what certs are in the store, you can use this command keytool -list -keystore ./cacerts the password by default is &#8216;changeit&#8217; Unfortunately, the list is not much use because they&#8217;re all listed as &#8216;keychainrootca-##&#8217; where ## [...]]]></description>
			<content:encoded><![CDATA[<p>The cacerts file for Java on Mac OS X Lion (and maybe previous versions) is at</p>
<p>/System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security</p>
<p>To see what certs are in the store, you can use this command</p>
<p>keytool -list -keystore ./cacerts</p>
<p>the password by default is &#8216;changeit&#8217;</p>
<p>Unfortunately, the list is not much use because they&#8217;re all listed as &#8216;keychainrootca-##&#8217; where ## is a number from 1 &#8211; 109 (at the time of this post)</p>
<p>Hope this helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.anoop.net/2011/11/java-ca-certs-in-mac-os-x-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An open letter to the Chicago Police Department</title>
		<link>http://wp.anoop.net/2011/06/an-open-letter-to-the-chicago-police-department/</link>
		<comments>http://wp.anoop.net/2011/06/an-open-letter-to-the-chicago-police-department/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 20:36:16 +0000</pubDate>
		<dc:creator>Anoop</dc:creator>
				<category><![CDATA[Meaningless]]></category>
		<category><![CDATA[Chicago Police]]></category>
		<category><![CDATA[CPD]]></category>
		<category><![CDATA[flash mobs]]></category>
		<category><![CDATA[meaningless]]></category>
		<category><![CDATA[slash mobs]]></category>
		<category><![CDATA[smash and grab]]></category>
		<category><![CDATA[smash mobs]]></category>
		<category><![CDATA[sting operation]]></category>
		<category><![CDATA[texting]]></category>

		<guid isPermaLink="false">http://wp.anoop.net/?p=8972</guid>
		<description><![CDATA[Dear CPD, What the fuck are you guys up to? Get your shit together and start outthinking the &#8220;slash mobs&#8221;. If you don&#8217;t have any plans right now to tackle the situation, may I make a recommendation? Catch up to three people involved in a slash mobs Clone their phones and or get a court [...]]]></description>
			<content:encoded><![CDATA[<p>Dear CPD,</p>
<p>What the fuck are you guys up to? Get your shit together and start outthinking the &#8220;slash mobs&#8221;. If you don&#8217;t have any plans right now to tackle the situation, may I make a recommendation?</p>
<ol>
<li>Catch up to three people involved in a slash mobs</li>
<li>Clone their phones and or get a court order to monitor their phones. (you could even use private agencies for this. think outside the box)</li>
<li>Create and practice a generic sting operation and then practice it some more</li>
<li>Monitor messages on each of these phones from previously caught criminals</li>
<li>Await instruction/messages of next organized slash mob</li>
<li>When the next message arrives, put your sting operation into effect with innocent looking ipad/iphone users</li>
<li>Profit! AKA beat the living shit out of those fucking kids and teach them a god damn lesson!</li>
</ol>
<p>I hereby volunteer to help you put this plan together and even stand by innocently with a iphone/ipad (that you will need to provide).</p>
<p>Sincerely,</p>
<p>Anoop</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.anoop.net/2011/06/an-open-letter-to-the-chicago-police-department/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Man Powering Across Michigan &#8211; Needs&#8230;</title>
		<link>http://wp.anoop.net/2011/05/man-powering-across-michigan-needs/</link>
		<comments>http://wp.anoop.net/2011/05/man-powering-across-michigan-needs/#comments</comments>
		<pubDate>Thu, 19 May 2011 03:55:07 +0000</pubDate>
		<dc:creator>Anoop</dc:creator>
				<category><![CDATA[Meaningless]]></category>

		<guid isPermaLink="false">http://wp.anoop.net/?p=8252</guid>
		<description><![CDATA[MPAM 2011 is only a day away. On Friday, May 20th at 8am, we begin the ride to Detroit across the great state of Michigan. Here&#8217;s what i&#8217;m taking with me. My bike. Motobecane Vent Noir 2010 from Bikes Direct Helmet, shoes, gloves, multitool, spare inner tubes, patch kit, tire levers Camelbak M.U.L.E (3 L/100 [...]]]></description>
			<content:encoded><![CDATA[<p>MPAM 2011 is only a day away. On Friday, May 20th at 8am, we begin the ride to Detroit across the great state of Michigan.</p>
<p>Here&#8217;s what i&#8217;m taking with me.</p>
<ul>
<li>My bike. Motobecane Vent Noir 2010 from Bikes Direct</li>
<li>Helmet, shoes, gloves, multitool, spare inner tubes, patch kit, tire levers</li>
<li>Camelbak M.U.L.E (3 L/100 oz)</li>
<li>Sunscreen, toothbrush, toothpaste, deodorant (important), aleve</li>
<li>Bike computer, head/tail lights</li>
<li>Clif bars (6)</li>
<li>Energy gel packs (6)</li>
<li>Bike U Lock</li>
<li>Ipod/iphone + spare phone + charger + mobile charger</li>
<li>camera (because iphone sucks)</li>
<li>jeans, t-shirt, underwear</li>
<li>Wallet, keys, </li>
<li>blackberry playbook (really really optional)</li>
</ul>
<p>All my routes can be found at http://mapmyfitness.com/profile/anoopbhat</p>
<p>BONUS! If you want to track my progress live, go to http://mapmyfitness.com/profile/anoopbhat/live</p>
<p>Wish me luck</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.anoop.net/2011/05/man-powering-across-michigan-needs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating custom actions in Quicksilver</title>
		<link>http://wp.anoop.net/2011/04/creating-custom-actions-in-quicksilver/</link>
		<comments>http://wp.anoop.net/2011/04/creating-custom-actions-in-quicksilver/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 04:41:14 +0000</pubDate>
		<dc:creator>Anoop</dc:creator>
				<category><![CDATA[Geekdom]]></category>
		<category><![CDATA[Meaningless]]></category>
		<category><![CDATA[Technobabble]]></category>
		<category><![CDATA[custom actions]]></category>
		<category><![CDATA[quicksliver]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://wp.anoop.net/?p=7699</guid>
		<description><![CDATA[I recently wanted to setup a custom action in Quicksilver to do a simple task. Take any text I provide in the Object pane and write it to a file with a bit more around it. After trying to write something in applescript and quickly giving up, I found an article that would allow me [...]]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to setup a custom action in <a href="http://qsapp.com" target="_blank">Quicksilver</a> to do a simple task. Take any text I provide in the Object pane and write it to a file with a bit more around it.</p>
<p>After trying to write something in applescript and quickly giving up, I found an article that would allow me to write a custom action in Ruby.</p>
<p>Create a custom ruby script and put it into ~/Library/Application Support/Quicksilver/Actions (you may have to create the Actions directory)</p>
<p>This is what my script looks like. It&#8217;s &#8216;addTodo.rb&#8217; I used this as an opportunity to try and pick up some ruby too so please forgive any newbie faux pas. This script creates a CSV and appends to it so I can open it in Excel or something similar.</p>
<p><code><br /> #!/usr/bin/ruby<br /> # writes to a file with a date</code></p>
<p><code> </code></p>
<p><code>todo = ARGV[0]<br /> now = Time.now<br /> filename = "/Users/anoop/Documents/todos/todo.csv"</code></p>
<p><code> </code></p>
<p><code>if !File.exists?(filename) then<br /> filehandle = File.open(filename, "w")<br /> filehandle.puts "Week Number, Time of Update, Update"<br /> else<br /> filehandle = File.open(filename, "a")<br /></code><span style="font-family: monospace;">end</span></p>
<p><span style="font-family: monospace;"># format the date so that we have the week #, the current date and then the buffer<br />todobuff = now.strftime(&#8220;\&#8221;Week %U\&#8221;, \&#8221;%a %m/%d/%Y %H:%M:%S\&#8221;,&#8221;) +  &#8220;\&#8221;" +  todo + &#8220;\&#8221;"<br /></span><span style="font-family: monospace;">filehandle.puts todobuff<br /></span><span style="font-family: monospace;">filehandle.close</span></p>
<p>Save this file and restart Quicksilver (I had to restart it twice)</p>
<p>Activate Quicksilver, and type in</p>
<pre>.your item for the todo list</pre>
<p>In the action window, simply type search for &#8216;addTodo&#8217; and you should see your newly added action. Execute and then confirm that the script was executed successfully.</p>
<p><a href="http://wp.anoop.net/wp-content/uploads/2011/04/Screen-shot-2011-04-19-at-11.17.07-PM.png"><img class="size-full wp-image-7700 alignnone" title="Screen shot 2011-04-19 at 11.17.07 PM" src="http://wp.anoop.net/wp-content/uploads/2011/04/Screen-shot-2011-04-19-at-11.17.07-PM.png" alt="" width="396" height="247" /></a></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.anoop.net/2011/04/creating-custom-actions-in-quicksilver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing Eclipse/Flash Builder shortcut keys</title>
		<link>http://wp.anoop.net/2011/04/changing-eclipseflash-builder-shortcut-keys/</link>
		<comments>http://wp.anoop.net/2011/04/changing-eclipseflash-builder-shortcut-keys/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 05:21:06 +0000</pubDate>
		<dc:creator>Anoop</dc:creator>
				<category><![CDATA[Meaningless]]></category>

		<guid isPermaLink="false">http://wp.anoop.net/?p=7500</guid>
		<description><![CDATA[If you use something like Alfred or Quicksilver on your mac along with Flash Builder, then you might be annoyed by the key mappings in Flash Builder. I only recently realized that Flash Builder&#8217;s Content Assist also uses the same &#8216;ctrl&#8217; + &#8216;space&#8217; key combination to make things easier when writing applications. In order to [...]]]></description>
			<content:encoded><![CDATA[<p>If you use something like <a href="http://alfredapp.com/" target="_blank">Alfred</a> or <a href="http://http://www.blacktree.com/" target="_blank">Quicksilver</a> on your mac along with <a href="http://www.adobe.com/products/flashbuilder/" target="_blank">Flash Builder</a>, then you might be annoyed by the key mappings in Flash Builder.</p>
<p>I only recently realized that Flash Builder&#8217;s Content Assist also uses the same &#8216;ctrl&#8217; + &#8216;space&#8217; key combination to make things easier when writing applications.</p>
<p>In order to utilize it, I modified my Quicksilver shortcut but just couldn&#8217;t get the hang of it. The muscle memory is harder to let go of I suppose.</p>
<p>Finally, with a bit of free time, I found out where the short cuts are configured and changed them. If you&#8217;re like me, then you know how painful Eclipse preference navigation can be.</p>
<p>To change the shortcuts, do the following</p>
<pre>Preferences -&gt; General -&gt; Keys</pre>
<p>Search for &#8220;Content Assist&#8221; and you&#8217;ll be able to easily modify that shortcut.</p>
<p>I changed mine to &#8220;option&#8221; + &#8220;space&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.anoop.net/2011/04/changing-eclipseflash-builder-shortcut-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>my life as a biker: lessons learned by a newb</title>
		<link>http://wp.anoop.net/2011/04/my-life-as-a-biker-lessons-learned-by-a-newb/</link>
		<comments>http://wp.anoop.net/2011/04/my-life-as-a-biker-lessons-learned-by-a-newb/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 21:23:25 +0000</pubDate>
		<dc:creator>Anoop</dc:creator>
				<category><![CDATA[biking]]></category>
		<category><![CDATA[lessons learned]]></category>
		<category><![CDATA[Meaningless]]></category>
		<category><![CDATA[training]]></category>
		<category><![CDATA[newbie]]></category>
		<category><![CDATA[road bike]]></category>

		<guid isPermaLink="false">http://wp.anoop.net/?p=7462</guid>
		<description><![CDATA[I bought a motobecane vent noir recently and have started training for a rather long trip. Here are some things that you may have noticed You will feel the urge to flip off cabbies and will feel entitled to do so. Do it. You feel like you&#8217;re riding against the wind. Both fucking ways. You [...]]]></description>
			<content:encoded><![CDATA[<p>I bought a <a href="http://www.bikesdirect.com/products/motobecane/ventnoir_x.htm">motobecane vent noir</a> recently and have started training for a rather long trip. Here are some things that you may have noticed</p>
<ul>
<li>
<p>You will feel the urge to flip off cabbies and will feel entitled to do so. Do it.</p>
</li>
<li>
<p>You feel like you&#8217;re riding against the wind. Both fucking ways.</p>
</li>
<li>
<p>You will pass up many mountain bike riders, runners, walkers, and children. Damn right. Fuck them for being slow. Enjoy it. It&#8217;s the little things that count.</p>
</li>
<li>
<p>Experienced riders will smoke your ass. Women, children, old guys with shit loaded on their bikes, everybody. They have &#8220;endurance&#8221;. Faith is your only friend. And perseverance.</p>
</li>
<li>
<p>You WILL fall off your bike if you bought clipless pedals and have never used them. Fuck what everyone says and keep at it. It&#8217;s all about practice. I&#8217;m still learning.</p>
</li>
<li>
<p>Your neck will hurt like hell. Take a look at the seat position and maybe even the stem on your bike. Adjust that if needed</p>
</li>
</ul>
<p>If you want to see my workouts and routes, they&#8217;re all on mapmyfitness.com. [<a title="http://www.mapmyfitness.com/profile/anoopbhat/" href="http://www.mapmyfitness.com/profile/anoopbhat/" target="_blank">Link</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.anoop.net/2011/04/my-life-as-a-biker-lessons-learned-by-a-newb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring CentOS 5.5 to authenticate users against Windows 2008 R2 Active Directory</title>
		<link>http://wp.anoop.net/2011/01/configuring-centos-5-5-to-authenticate-users-against-windows-2008-r2-active-directory/</link>
		<comments>http://wp.anoop.net/2011/01/configuring-centos-5-5-to-authenticate-users-against-windows-2008-r2-active-directory/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 19:51:17 +0000</pubDate>
		<dc:creator>Anoop</dc:creator>
				<category><![CDATA[Geekdom]]></category>
		<category><![CDATA[Meaningless]]></category>
		<category><![CDATA[Technobabble]]></category>
		<category><![CDATA[2008 R2]]></category>
		<category><![CDATA[access.conf]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[authconfig]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PAM]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[winbind]]></category>

		<guid isPermaLink="false">http://wp.anoop.net/?p=5142</guid>
		<description><![CDATA[We do this on a daily basis and sometimes this can be a pretty daunting task. For that reason, I put this article together based on documentation I&#8217;ve written for work. Please let me know in the comments if you run into any issues. The benefit of using something like AD for authentication is that [...]]]></description>
			<content:encoded><![CDATA[<p>We do this on a daily basis and sometimes this can be a pretty daunting task. For that reason, I put this article together based on documentation I&#8217;ve written for work. Please let me know in the comments if you run into any issues.</p>
<p>The benefit of using something like AD for authentication is that users are less likely to share passwords with each other for one off generic accounts created on boxes as well as easier account management.</p>
<p>Start by installing samba3x packages for your respective architecture</p>
<p><code><br />
yum install samba3x-winbind.x86_64<br />
</code></p>
<p>This will install winbind and any other dependencies.</p>
<p>Next, verify your /etc/hosts and /etc/resolv.conf and make sure it&#8217;s correct. Hosts should not have something like </p>
<p><code><br />
127.0.0.1 FQDN_OF_HOST localhost.localdomain localhost<br />
</code></p>
<p>it should be</p>
<p><code><br />
127.0.0.1 localhost.localdomain localhost<br />
REAL.IP.OF.HOST FQDN_OF HOST HOSTNAME<br />
</code></p>
<p>Next, check the date and time and make sure that&#8217;s correct and extremely close to the time on the server. </p>
<p>Next, run this command to add the host to the domain, configure samba, etc.</p>
<p><code><br />
/usr/sbin/authconfig-tui \<br />
 --enablewinbind \<br />
 --enablewinbindauth \<br />
 --enablemkhomedir \<br />
 --enablepamaccess \<br />
 --enablelocauthorize \<br />
 --smbsecurity=ads \<br />
 --smbrealm=DOMAIN.EXTENSION \<br />
 --smbworkgroup=DOMAIN \<br />
 --smbservers=DOMAINCONTROLLER1.DOMAIN.EXT,DOMAINCONTROLLER2.DOMAIN.EXT<br />
 --winbindtemplatehomedir="/home/%U" \<br />
 --winbindtemplateshell="/bin/bash" \<br />
 --enablewinbindusedefaultdomain \<br />
 --kickstart \<br />
 --winbindjoin=ADMINISTRATORACCOUNTNAME<br />
</code></p>
<p>Provide your password for the account above and watch the error messages that appear. This command will also restart winbind for you.</p>
<p>Ensure that it&#8217;s still running with</p>
<p><code><br />
service winbind status<br />
</code></p>
<p>or look for errors in the log files. Possibly /var/log/messages or /var/log/samba/wb-DOMAIN.log</p>
<p>If that&#8217;s working, you should be able to login now over ssh</p>
<p><code><br />
ssh username@host<br />
</code></p>
<p>Access Controls</p>
<p>You can control which groups/users can login from /etc/security/access.conf. The &#8221; &#8211;enablepamaccess&#8221; instructed PAM to look at access.conf whenever anyone tries to login. Watch for spaces in the group/usernames. It doesn&#8217;t work as well</p>
<p><code><br />
+ : GROUP_NAME or USER_NAME : IPs or ttys or ALL<br />
- : ALL : ALL<br />
</code></p>
<p>+ says that a user can login.<br />
- says that a user cannot. The second line says deny everyone.</p>
<p>Sudo privileges</p>
<p>You can use the same group above to setup sudo privileges as well using &#8216;visudo&#8217; as root</p>
<p>NOTE: these instructions may differ a bit if you&#8217;re trying to login with an account in a subdomain.<br />
NOTE: You may or may not want to setup DNS for this host in AD prior to joining the domain. I recommend doing it prior to. Creating a computer account for it is not necessary prior to joining.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.anoop.net/2011/01/configuring-centos-5-5-to-authenticate-users-against-windows-2008-r2-active-directory/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>modify system keepalive times in linux</title>
		<link>http://wp.anoop.net/2010/11/modify-system-keepalive-times-in-linux/</link>
		<comments>http://wp.anoop.net/2010/11/modify-system-keepalive-times-in-linux/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 16:15:45 +0000</pubDate>
		<dc:creator>Anoop</dc:creator>
				<category><![CDATA[Meaningless]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[tcp]]></category>

		<guid isPermaLink="false">http://wp.anoop.net/?p=196</guid>
		<description><![CDATA[Because I always forget how. In any enterprise level application environment, you&#8217;ll find that your tiers are segregated by a firewall. In some cases, you may see this type of architecture FIREWALL -&#62; WEB -&#62; FIREWALL -&#62; APP -&#62; FIREWALL -&#62; DB or even FIREWALL -&#62; WEB -&#62; FIREWALL -&#62; APP/DB In both designs, which [...]]]></description>
			<content:encoded><![CDATA[<p>Because I always forget how.</p>
<p>In any enterprise level application environment, you&#8217;ll find that your tiers are segregated by a firewall.</p>
<p>In some cases, you may see this type of architecture</p>
<p>FIREWALL -&gt; WEB -&gt; FIREWALL -&gt; APP -&gt; FIREWALL -&gt; DB</p>
<p>or even</p>
<p>FIREWALL -&gt; WEB -&gt; FIREWALL -&gt; APP/DB</p>
<p>In both designs, which are somewhat similar, you may potentially run into keepalive issues.</p>
<p>Keepalives are essentially messages sent between two devices on a specified interval to verify the state of the connection between them. If a message is not acknowledged by the receiving device, then the transmitting device assumes the connection is down and then will find another way to route data until that connection is re-established (if it does which usually, it doesn&#8217;t)</p>
<p>Keepalives are essential in environments where you&#8217;re using connection pools. Web servers may sometimes use a connection pool to talk to an application server like tomcat or weblogic. Application servers frequently use database connection pools to ensure that the performance is optimal.</p>
<p>Most connection pools will have a keep alive setting so you should leverage that when you can. Some connection pools do not. Mod_weblogic for example doesn&#8217;t have it&#8217;s own keep alive value. It can be enabled or disabled but by default, it will use the system keepalive interval which on RHEL/CentOS systems is set to 7200 seconds (two hours).</p>
<p>To check your current system keepalive settings<br />
<code><br />
# sysctl -a | grep net.ipv4.tcp_keepalive<br />
net.ipv4.tcp_keepalive_intvl = 75<br />
net.ipv4.tcp_keepalive_probes = 9<br />
net.ipv4.tcp_keepalive_time = 7200<br />
</code></p>
<p><strong>net.ipv4.tcp_keepalive_intvl</strong> is the frequency by which keepalive messages are sent.<br />
<strong>net.ipv4.tcp_keepalive_probes</strong> tells your system how many unacknowledged keepalive messages should be ignored before considering the connection to be dead.<br />
<strong>net.ipv4.tcp_keepalive_time</strong> tells your system how long to wait before sending the first keepalive message after the last packet. This is the biggie!</p>
<p>I don&#8217;t understand why 7200 seconds was chosen as a number. In my environment here, the firewall can drop idle connections after one hour and sometimes even less depending on how big the connection table can get (I&#8217;m looking at you checkpoint).</p>
<p>So I normally trim these down so that the keepalive time is less and the number of probes is more. The interval is also reduced by a bit but that&#8217;s not really important. You would normally make these changes on the server that is initiating the connection. A webserver, or an application server. Sometimes a DB server but not always.</p>
<p>in /etc/sysctl.conf, add these lines (or modify them if they&#8217;re already there)</p>
<p><code><br />
net.ipv4.tcp_keepalive_intvl = 60<br />
net.ipv4.tcp_keepalive_probes = 20<br />
net.ipv4.tcp_keepalive_time = 300<br />
</code></p>
<p>To put these settings into effect, run </p>
<p><code><br />
sysctl -p /etc/sysctl.conf<br />
</code></p>
<p>and now retest with sysctl -a</p>
<p>Once set, you will need to restart your webserver or app server so it sees the new settings. This allows you to start with a fresh set of connections that you can actually monitor using netstat.</p>
<p>You should be able to corroborate on both ends of the connection, the ports, state and number of connections which tells you that things are A-OK!</p>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.anoop.net/2010/11/modify-system-keepalive-times-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My vim settings</title>
		<link>http://wp.anoop.net/2010/11/my-vim-settings/</link>
		<comments>http://wp.anoop.net/2010/11/my-vim-settings/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 15:44:36 +0000</pubDate>
		<dc:creator>Anoop</dc:creator>
				<category><![CDATA[Meaningless]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://wp.anoop.net/?p=2039</guid>
		<description><![CDATA[From time to time, I find some settings for vi on remote systems that really kind of freak me out. The one I found recently was &#8216;incsearch&#8217; so I decided to use this opportunity to note down the settings I use on a daily basis. Hope you find some of these useful. syntax on   [...]]]></description>
			<content:encoded><![CDATA[<p>From time to time, I find some settings for vi on remote systems that really kind of freak me out. The one I found recently was &#8216;incsearch&#8217; so I decided to use this opportunity to note down the settings I use on a daily basis. Hope you find some of these useful.</p>
<p><code><br />
syntax on  <br />
set hlsearch<br />
set incsearch<br />
set ruler<br />
set showmatch<br />
</code></p>
<p><strong>syntax on</strong> is pretty obvious. If you&#8217;re writing code, it&#8217;s pretty smart about highlighting the code so it&#8217;s easier to read. It can be odd at first but I find it really useful and after a while, it becomes second nature.</p>
<p><strong>set hlsearch</strong> highlights your search terms so they&#8217;re easy to see. I like this option a lot. not everyone does. </p>
<p><strong>set incsearch</strong> searches as you type. It&#8217;s new to me so I&#8217;m still getting used to it but I think I can already see some uses for it.</p>
<p><strong>set ruler</strong> shows you where your cursor is at all times. I like this option a lot if only to tell me what line number I&#8217;m on. <strong>set number</strong> will also do this but I also find it irritating because it also interferes with my copy/paste habits.</p>
<p><strong>set showmatch</strong> is really useful if you&#8217;re a coder. If you&#8217;ve got somewhat complicated conditional statements or loops, this feature will show you where brackets match so you can find missing brackets and close the proper blocks.</p>
<p>Hope these help. I&#8217;ll update these as I find more. </p>
]]></content:encoded>
			<wfw:commentRss>http://wp.anoop.net/2010/11/my-vim-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>repos not updating in spacewalk. taskomatic!</title>
		<link>http://wp.anoop.net/2010/11/repos-not-updating-in-spacewalk-taskomatic/</link>
		<comments>http://wp.anoop.net/2010/11/repos-not-updating-in-spacewalk-taskomatic/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 21:42:05 +0000</pubDate>
		<dc:creator>Anoop</dc:creator>
				<category><![CDATA[Geekdom]]></category>
		<category><![CDATA[Meaningless]]></category>
		<category><![CDATA[Technobabble]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[repos]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[rpms]]></category>
		<category><![CDATA[Spacewalk]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[taskomatic]]></category>

		<guid isPermaLink="false">http://wp.anoop.net/?p=1656</guid>
		<description><![CDATA[Spacewalk, it&#8217;s pretty damn awesome. Or at least, I think it is. It&#8217;s an open source linux systems management solution from Redhat (GPLv2). Once you get spacewalk up and running, you&#8217;ll be amazed by some of the things it does. It can push config files, packages, inventory systems, group them and allow you to work [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://spacewalk.redhat.com">Spacewalk</a>, it&#8217;s pretty damn awesome. Or at least, I think it is. It&#8217;s an open source linux systems management solution from Redhat (GPLv2).</p>
<p>Once you get spacewalk up and running, you&#8217;ll be amazed by some of the things it does. It can push config files, packages, inventory systems, group them and allow you to work exclusively with those groups in a very easy way. That&#8217;s only scratching the surface of what spacewalk is capable of.</p>
<p>I like it because I can setup custom channels where I can push custom software to each of my servers. From time to time though, I notice that the repos don&#8217;t really rebuild automatically. If you look at the &#8220;details&#8221; section of your channel, you&#8217;ll notice something like this</p>
<p><img src="http://wp.anoop.net/wp-content/uploads/2010/11/Screen-shot-2010-11-13-at-2.27.19-PM.png" alt="" width="568" height="110"></p>
<p>The times don&#8217;t match. It probably means that the taskomatic daemon is not running or is running but isn&#8217;t really pulling tasks from the database.</p>
<p>To verify, login to sqlplus and run this query<br />
<code><br />
sqlplus spacewalk/spacewalk@xe</p>
<p>SQL*Plus: Release 10.2.0.4.0 - Production on Sat Nov 13 14:14:00 2010</p>
<p>Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.</p>
<p>Connected to:<br />
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production</p>
<p>SQL&gt; select * from rhnTaskQueue;</p>
<p>ORG_ID TASK_NAME<br />
---------- ----------------------------------------------------------------<br />
TASK_DATA   PRIORITY EARLIEST<br />
---------- ---------- ---------<br />
1 update_errata_cache_by_channel<br />
143	    0 13-NOV-10</p>
<p>1 update_errata_cache_by_channel<br />
122	    0 12-NOV-10</p>
<p>1 update_errata_cache_by_channel<br />
208	    0 13-NOV-10</p>
<p>ORG_ID TASK_NAME<br />
---------- ----------------------------------------------------------------<br />
TASK_DATA   PRIORITY EARLIEST<br />
---------- ---------- ---------<br />
1 update_errata_cache_by_channel<br />
122	    0 13-NOV-10<br />
</code></p>
<p>Notice how some tasks are older? This table should almost always be empty or only have data for a small period of time as the name suggests.</p>
<p>Restarting taskomatic is as simple as</p>
<p><code><br />
[root@spacewalk init.d]# ./taskomatic stop<br />
Stopping RHN Taskomatic...<br />
Stopped RHN Taskomatic.<br />
[root@spacewalk init.d]# ./taskomatic start<br />
Starting RHN Taskomatic...<br />
</code></p>
<p>Wait about 10 minutes, because that&#8217;s the polling time for taskomatic, and then check the database again. There should be no rows</p>
<p><code><br />
SQL&gt; select * from rhnTaskQueue;</p>
<p>no rows selected<br />
SQL&gt;<br />
</code></p>
<p>Also check the spacewal UI and look for something like this</p>
<p><a href="http://wp.anoop.net/wp-content/uploads/2010/11/Screen-shot-2010-11-13-at-2.55.53-PM1.png"><img title="Screen shot 2010-11-13 at 2.55.53 PM" src="http://wp.anoop.net/wp-content/uploads/2010/11/Screen-shot-2010-11-13-at-2.55.53-PM1.png" alt="" width="566" height="107" /></a></p>
<p>or</p>
<p><a href="http://wp.anoop.net/wp-content/uploads/2010/11/Screen-shot-2010-11-13-at-3.35.53-PM.png"><img src="http://wp.anoop.net/wp-content/uploads/2010/11/Screen-shot-2010-11-13-at-3.35.53-PM.png" alt="" title="Screen shot 2010-11-13 at 3.35.53 PM" width="581" height="105" /></a></p>
<p>Spacewalk is still very much in its infancy but it shows great promise and there is a great community of people who are willing to help and are dedicated to making it a rich and feature full product. Spacewalk 1.1 was released recently and we haven&#8217;t had a chance to upgrade yet but I continue to see great things coming from spacewalk and that makes me happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.anoop.net/2010/11/repos-not-updating-in-spacewalk-taskomatic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

