<?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>Shekhar Govindarajan's Blog</title>
	<atom:link href="http://www.shekhargovindarajan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shekhargovindarajan.com</link>
	<description>My Notepad on the Web</description>
	<lastBuildDate>Fri, 18 May 2012 05:58:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com/" />
			<item>
		<title>Solved: pfSense is not letting Tata Photon to talk to Tata Indicom Broadband</title>
		<link>http://www.shekhargovindarajan.com/tips-n-tricks/solved-pfsense-is-not-letting-tata-photon-to-talk-to-tata-indicom-broadband/?&#038;owa_medium=feed&#038;owa_sid=&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=solved-pfsense-is-not-letting-tata-photon-to-talk-to-tata-indicom-broadband</link>
		<comments>http://www.shekhargovindarajan.com/tips-n-tricks/solved-pfsense-is-not-letting-tata-photon-to-talk-to-tata-indicom-broadband/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 16:00:48 +0000</pubDate>
		<dc:creator>Shekhar</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>
		<category><![CDATA[bogon networks]]></category>
		<category><![CDATA[indicom]]></category>
		<category><![CDATA[pfsense]]></category>
		<category><![CDATA[photon]]></category>
		<category><![CDATA[tata]]></category>

		<guid isPermaLink="false">http://www.shekhargovindarajan.com/?p=2512</guid>
		<description><![CDATA[Recently I faced this strange issue at a client&#8217;s place. Users using Tata Photon USB modem were not able to browse the website and other services, hosted on a server sitting at my client&#8217;s office. The client is using a Tata Indicom Broadband connection at the office. The server is sitting behind a pfSense firewall. [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I faced this strange issue at a client&#8217;s place. Users using Tata Photon USB modem were not able to browse the website and other services, hosted on a server sitting at my client&#8217;s office. The client is using a Tata Indicom Broadband connection at the office. The server is sitting behind a <a href="http://www.pfsense.org/" target="_blank">pfSense firewall</a>.</p>
<p>To add to the confusion, users using Airtel broadband and Reliance USB modem were able to browse the website. It was easy to blame Tata for this but the culprit (well, more or less) was the pfSense firewall.<span id="more-2512"></span>After struggling with Tata customer support, blaming them for this peculiar issue, the IT team of my client started troubleshooting. As a useful input, I was told that if the Tata broadband line was directly connected to a laptop, users using Tata Photon USB were able to connect to the laptop. This led me to suspect pfSense <img src='http://www.shekhargovindarajan.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>To investigate this, what I did was as follows. I remote logged in to one of the user&#8217;s laptop who was using the Tata Photon USB modem. I ran a traceroute to the server.</p>
<p>The following image shows the output of the traceroute (tracert command running in a DOS terminal on Windows XP).</p>
<div id="attachment_2513" class="wp-caption alignleft" style="width: 310px"><a href="http://www.shekhargovindarajan.com/wp-content/uploads/2011/11/Traceroute-from-a-Tata-Photon-USB-to-a-Tata-Indicom-Broadband.jpg"><img class="size-medium wp-image-2513" title="Traceroute from a Tata Photon USB to Tata Indicom Broadband" src="http://www.shekhargovindarajan.com/wp-content/uploads/2011/11/Traceroute-from-a-Tata-Photon-USB-to-a-Tata-Indicom-Broadband-300x177.jpg" alt="Traceroute from a Tata Photon USB to Tata Indicom Broadband" width="300" height="177" /></a><p class="wp-caption-text">Traceroute from a Tata Photon USB to Tata Indicom Broadband</p></div>
<p>For security reasons, I have changed the actual hostname to abc.com and IP to 121.243.xxx.xxx in the above image.</p>
<p>Note the second last hop. It is a router (or whatever device) with an IP address 172.31.131.26! This seemed like a private IP address (more on this later).  This shows Tata is routing a connection, from a Tata Photon modem to a Tata Broadband, internally. So, for the pfSense firewall, the request is coming from a private IP (172.31.131.26 in this case).</p>
<p>With this finding in hand, I logged into the pfSense web interface and checked the firewall rules. But didn&#8217;t find anything suspicious or obstructing there.</p>
<p><strong>The Solution<br />
</strong>The solution was on the WAN page (Interfaces&gt;WAN). While browsing this page, I spotted two options on this page namely Block Private Networks and</p>
<div id="attachment_2521" class="wp-caption alignleft" style="width: 310px"><a href="http://www.shekhargovindarajan.com/wp-content/uploads/2011/11/pfsense-by-default-blocks-private-and-reserved-IP-addresses.png"><img class="size-medium wp-image-2521" title="pfSense by default blocks private and reserved IP addresses" src="http://www.shekhargovindarajan.com/wp-content/uploads/2011/11/pfsense-by-default-blocks-private-and-reserved-IP-addresses-300x168.png" alt="pfSense by default blocks private and reserved IP addresses" width="300" height="168" /></a><p class="wp-caption-text">pfSense by default blocks private and reserved IP addresses</p></div>
<p>Block Bogon Networks.</p>
<p>Both settings were hinting at something to do with private IPs and were checked (on) by default. What worked was unchecking Block Bogon Network. After reading up on Wikipedia, I found that the IP 172.31.x is a reserved IP  but not defined for private networks in the <a href="http://en.wikipedia.org/wiki/Private_network" target="_blank">RFC 1918</a>. This is the reason why unchecking Block Private Networks  did not work.</p>
<p>Bottom line: If Tata is not able to talk to Tata and you are using pfSense firewall, goto Interfaces&gt;WAN and uncheck Block Bogon Networks.</p>
<img src="http://www.shekhargovindarajan.com/?ak_action=api_record_view&id=2512&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shekhargovindarajan.com%2Ftips-n-tricks%2Fsolved-pfsense-is-not-letting-tata-photon-to-talk-to-tata-indicom-broadband%2F&amp;title=Solved%3A%20pfSense%20is%20not%20letting%20Tata%20Photon%20to%20talk%20to%20Tata%20Indicom%20Broadband" id="wpa2a_2"><img src="http://www.shekhargovindarajan.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shekhargovindarajan.com/tips-n-tricks/solved-pfsense-is-not-letting-tata-photon-to-talk-to-tata-indicom-broadband/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Windows Phone 7 Mango update on a non-rooted, non-developer-unlocked Dell Venue Pro (India)</title>
		<link>http://www.shekhargovindarajan.com/microsoft/install-windows-phone-7-mango-update-on-a-non-rooted-non-developer-unlocked-dell-venue-pro-india/?&#038;owa_medium=feed&#038;owa_sid=&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-windows-phone-7-mango-update-on-a-non-rooted-non-developer-unlocked-dell-venue-pro-india</link>
		<comments>http://www.shekhargovindarajan.com/microsoft/install-windows-phone-7-mango-update-on-a-non-rooted-non-developer-unlocked-dell-venue-pro-india/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 15:30:14 +0000</pubDate>
		<dc:creator>Shekhar</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[mango]]></category>
		<category><![CDATA[windows phone 7]]></category>

		<guid isPermaLink="false">http://www.shekhargovindarajan.com/?p=2331</guid>
		<description><![CDATA[Mango is the much awaited update for Windows Phone 7. The Mango update brings 500 new features, over the latest NoDo update. These features include multitasking, E-mail conversation view, Internet Explorer 9, Twittter and Linkedin integration and custom ringtones. As of now Mango is in beta. The beta update is available to those with a developer [...]]]></description>
			<content:encoded><![CDATA[<p>Mango is the much awaited update for Windows Phone 7. The Mango update brings 500 new features, over the latest NoDo update. These features include multitasking, E-mail conversation view, Internet Explorer 9, Twittter and Linkedin integration and custom ringtones.</p>
<p>As of now Mango is in beta. The beta update is available to those with a developer account and pretty much limited to certain countries which does not include India. But my Dell Venue Pro bought in India is powered by Mango Beta now! It was earlier running official NoDo update (OS version: 7.0.7390). Following is how I updated my Dell Venue Pro without rooting it, unlocking it and without a developer account.<span id="more-2331"></span></p>
<p>First, I must give all credit to the following two links and Google:</p>
<p>Link 1: <a href="http://windowsphonehacker.com/articles/get_the_mango_update_now._without_being_a_developer.-06-30-11">http://windowsphonehacker.com/articles/get_the_mango_update_now._without_being_a_developer.-06-30-11<br />
</a>Link 2: <a href="http://www.redmondpie.com/how-to-install-windows-phone-7-mango-beta-update-on-any-wp7-phone-even-if-youre-not-a-developer/">http://www.redmondpie.com/how-to-install-windows-phone-7-mango-beta-update-on-any-wp7-phone-even-if-youre-not-a-developer/</a></p>
<p>While I followed these links to get Mango Beta up and running on my phone, the installation experience was not exactly as documented. Hence, I share my experience in place. I updated my Windows Phone using my laptop running Windows 7 Ultimate 64bit. The version of Zune software on my laptop was 4.7.1404.0.</p>
<p><strong>Important note: Do not skip or say no to any question/prompt which asks you to backup your phone. More on this later.</strong></p>
<p>First, I downloaded and installed Windows Phone Support Tool. The download URLs for 64bit and 32bit versions are given in Link 1 (refer to point 2, under the section &#8220;Updating to Mango&#8221;). I downloaded and installed the 64bit version.</p>
<p>Next, I downloaded mangoforall_0.2.zip. The download URL to this file can be found in <a href="http://windowsphonehacker.com/articles/get_the_mango_update_now._without_being_a_developer.-06-30-11" target="_blank">Link 1</a> (refer to the third paragraph under the section titled &#8221;Updating to Mango&#8221;).  I extracted the zipped file. This produced a directory called takesonetomango with four files namely prov.cab, readme.txt, restore.bat and Update.bat. While I think it wasn&#8217;t required, I extracted prov.cab (using WinZip) which produced a file named DeviceProvisioning.cab.pkg in the directory takesonetomango.</p>
<p>Connected my Dell Venue Pro to my laptop via USB. Double clicked on Update.bat. It started backing up my phone and created a directory named PreMangoState in C:\. After backup, it launched Zune. Unlike the instructions (in the readme.txt file), Zune did not prompt for any available update <img src='http://www.shekhargovindarajan.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>I unplugged my phone, closed Zune, re-plugged my phone and double clicked on Update.bat. The Update.bat again started backing up. It prompted me whether to overwrite the files in C:\PreMangoState. I opted for All (overwrite all files). This time, the Update.bat did more than before. It rebooted my phone and my phone started updating! I felt moving closer to getting the Mango update.</p>
<p>After updating when my phone rebooted, I started checking my phone to spot any glimpse of Mango&#8217;s features, but found none. Then I checked the OS version (Settings&gt;about&gt;more information). Alas, the OS version remained the same as before (i.e. 7.0.7390).</p>
<p>I unplugged and replugged my phone. Zune launched. After a few seconds, my phone and Zune prompted me for an update! I started updating my phone via Zune. The update said something related to ISV (I did not note it down exactly due to all the anxiety). The phone rebooted and updated. After subsequent reboot, I again started checking for anything Mango-ish but was disappointed. Then I checked the OS version which was now updated to 7.0.7401.0. Some glimpse of progress!</p>
<p>I repeated the trick of unplugging and replugging the phone. And it worked!</p>
<div id="attachment_2344" class="wp-caption alignleft" style="width: 310px"><a href="http://www.shekhargovindarajan.com/wp-content/uploads/2011/07/mango1.png"><img class="size-medium wp-image-2344 " title="Mango ISV Beta (version 7661)" src="http://www.shekhargovindarajan.com/wp-content/uploads/2011/07/mango1-300x157.png" alt="Mango ISV Beta (version 7661)" width="300" height="157" /></a><p class="wp-caption-text">Mango ISV Beta (version 7661)</p></div>
<p>I was again prompted for an update and this time the update clearly said  &#8220;Welcome to the Windows Phone &#8221;Mango&#8221; ISV Beta!&#8221; and &#8220;Your phone will be updated to version 7661&#8243;.</p>
<p>I followed the onscreen instructions. Note that it took a long time for this update to complete. After the reboot, the phone was stuck at the Dell logo for a long time. The subsequent screen showing Windows Phone logo also stayed for a longer time. This screen also showed &#8220;Not for resale&#8221; message in red, at the bottom.</p>
<p>I waited patiently and was rewarded with a successful Mango Beta update. I could see conversation thread in Email and  spotted Twitter under Settings&gt;email+accounts&gt;add an account &#8211; though it said &#8220;coming soon&#8221; <img src='http://www.shekhargovindarajan.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> . The OS version showed as 7661.WP7_5_Trial(mojobld).20110607-1657.</p>
<p>The entire process, starting right from the beginning, with all the backups, updates and anxiety took about a hour. What I&#8217;m trying to convey is, be patient and don&#8217;t unplug the phone during an update or stuck screen. You will see the fruit!</p>
<p>While it seemed the deed is done, but there was more to it. When I unplugged the phone and replugged it (in the hope to get another update <img src='http://www.shekhargovindarajan.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ) , this time Zune prompted for an available update for Zune Software. But the update failed with an error message saying &#8220;can&#8217;t find the media for installation package &#8216;Zune WMDU Component&#8217;. It might be incomplete or corrupt&#8221;. I reinstalled Zune, it again prompted for an update and the same error showed up yet again.</p>
<p>That&#8217;s where <a href="http://www.redmondpie.com/how-to-install-windows-phone-7-mango-beta-update-on-any-wp7-phone-even-if-youre-not-a-developer/" target="_blank">Link 2</a> came handy. It suggested that I should download a beta version of Zune and provided the download URL (refer to the point 4 in the section &#8220;Here’s what you’ll need:&#8221; ). I disconnected the phone installed the beta version of Zune. Upon reconnecting the phone,  it started syncing again. With the Zune fixed, the first thing I did was to setup <a href="http://www.imdb.com/title/tt0285331/" target="_blank">24&#8242;s</a> CTU ringtone (custom ringtone) on my Mango powered Dell Venue Pro <img src='http://www.shekhargovindarajan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>In the beginning, I wrote a note saying not to say no to any backup prompts. The reason for this is as follows. A phone updated with Mango Beta as per the above method may fail to update to Mango final release (as and when it arrives). Hence, it is utmost important to preserve the backup in C:\PreMangoState. As per the instructions in the links, the phone can be restored back to it&#8217;s last official update by running restore.bat (found in mangoforall_0.2.zip). I will try this out soon and update this post about success/issues in the restoring.</p>
<p><strong>Update (July 21, 2011): </strong>I switched back to NoDo using restore.bat on 21st July. As I <a href="http://twitter.com/#!/shekharg/statuses/94051626624626688" target="_blank">tweeted</a> the steps to restore went a little haphazard. Hence I did not update this blog post. Nevertheless restore to NoDo works! I plan to again go back to Mango. Will update this blog post when I yet again switch back to NoDo with precise steps on restoring to NoDo.</p>
<p><strong>Update (July 28, 2011): </strong>I&#8217;m now running Mango build 7712 (7.10.7712.60) on my Dell Venue Pro. This gives me the missing Twitter and Linkedin integration! How did I install it? Well, as I mentioned above, I had restored back to NoDo. Today I tried going back to Mango following the same steps mentioned in this blog post. And voila! the last update that got installed was Mango build 7712 instead of 7661 <img src='http://www.shekhargovindarajan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>With reference to my comment:</p>
<p><strong>Update (September 28, 2011): </strong>With reference to the following comment:<em> </em></p>
<p><em>I’m back to NoDo (just to check if I can go back). Haven’t updated the blog post yet coz the downgrade steps went little haphazard for me. So I’m planning to again install Mango Beta, followed by a downgrade</em></p>
<p>and</p>
<p>the requirement to download Zune Beta</p>
<p><em>this time Zune prompted for an available update for Zune Software. But the update failed with an error message saying &#8220;can&#8217;t find the media for installation package &#8216;Zune WMDU Component&#8217;. It might be incomplete or corrupt&#8221;</em></p>
<p>I went back to Mango Beta. The good news is now Zune beta is no longer required. Zune will still prompt you for the update but will successfully update to version 4.8.2345.0 with which you will be able to sync your phone running Mango Beta. I found this a couple of weeks back. Sorry for the delayed sharing.  As of this writing I&#8217;m going back to NoDo hoping to get the official Mango update for my Dell Venue Pro. Will keep this post updated.</p>
<p><strong>Update (September 30, 2011): Guys! Here is an exciting news! </strong>The moment I connected my phone via USB, to downgrade to NoDo, Zune prompted me for an update and I could update to Mango Final (OS version: 7.10.7720.68). I was tweeting while my phone was updating! You can find those tweets archived <a href="http://www.shekhargovindarajan.com/2011/09/" target="_blank">here</a>.</p>
<p>Bottom line: my Dell Venue Pro running Mango Beta (OS version: 7.10.7712.60) got updated to Mango Final (OS version: 7.10.7720.68) without going back or downgrading to NoDo.</p>
<div id="attachment_2461" class="wp-caption alignleft" style="width: 310px"><a href="http://www.shekhargovindarajan.com/wp-content/uploads/2011/07/Prompt-to-update-to-Mango-Final.png"><img class="size-medium wp-image-2461" title="Prompt to update to Mango Final" src="http://www.shekhargovindarajan.com/wp-content/uploads/2011/07/Prompt-to-update-to-Mango-Final-300x170.png" alt="Prompt to update to Mango Final" width="300" height="170" /></a><p class="wp-caption-text">Prompt to update to Mango Final</p></div>
<div id="attachment_2462" class="wp-caption alignleft" style="width: 310px"><a href="http://www.shekhargovindarajan.com/wp-content/uploads/2011/07/Mango-Beta-Cleanup-Update.png"><img class="size-medium wp-image-2462" title="Mango Beta Cleanup Update" src="http://www.shekhargovindarajan.com/wp-content/uploads/2011/07/Mango-Beta-Cleanup-Update-300x147.png" alt="Mango Beta Cleanup Update" width="300" height="147" /></a><p class="wp-caption-text">Mango Beta Cleanup Update</p></div>
<img src="http://www.shekhargovindarajan.com/?ak_action=api_record_view&id=2331&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shekhargovindarajan.com%2Fmicrosoft%2Finstall-windows-phone-7-mango-update-on-a-non-rooted-non-developer-unlocked-dell-venue-pro-india%2F&amp;title=Install%20Windows%20Phone%207%20Mango%20update%20on%20a%20non-rooted%2C%20non-developer-unlocked%20Dell%20Venue%20Pro%20%28India%29" id="wpa2a_4"><img src="http://www.shekhargovindarajan.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shekhargovindarajan.com/microsoft/install-windows-phone-7-mango-update-on-a-non-rooted-non-developer-unlocked-dell-venue-pro-india/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Authenticate osTicket against Zimbra LDAP</title>
		<link>http://www.shekhargovindarajan.com/open-source/authenticate-osticket-against-zimbra-ldap/?&#038;owa_medium=feed&#038;owa_sid=&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=authenticate-osticket-against-zimbra-ldap</link>
		<comments>http://www.shekhargovindarajan.com/open-source/authenticate-osticket-against-zimbra-ldap/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 16:10:03 +0000</pubDate>
		<dc:creator>Shekhar</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[adldap]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[openldap]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://www.shekhargovindarajan.com/?p=2299</guid>
		<description><![CDATA[osTicket is a free online helpdesk/support ticket system. Zimbra Open Source Edition is a free groupware product which offers E-mail, Calendar, Tasks and Chat. Recently for a client I had setup these two products. Zimbra stores the E-mail users&#8217; credentials in its built-in LDAP server. Hence it made sense to authenticate the login of other [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://osticket.com/" target="_blank">osTicket</a> is a free online helpdesk/support ticket system. <a href="http://www.zimbra.com/" target="_blank">Zimbra</a> Open Source Edition is a free groupware product which offers E-mail, Calendar, Tasks and Chat. Recently for a client I had setup these two products.</p>
<p>Zimbra stores the E-mail users&#8217; credentials in its built-in LDAP server. Hence it made sense to authenticate the login of other services or products like osTicket against Zimbra&#8217;s LDAP.</p>
<p>Following is a short tutorial on how I achieved it.<span id="more-2299"></span>First and foremost, ensure that the usernames in Zimbra and the usernames of Staff members in osTickets are the same. Thankfully osTickets allows to edit usernames of the staff members. Most importantly, do rename or match the admin username in osTickets with a username in Zimbra.</p>
<p>Note that, you must create users under Staff members in osTickets. The users will not be created automatically through LDAP, as you may have seen with other LDAP integrations. Since osTickets mandates to setup a password for the staff members, type in any password. This password will not be used for login.</p>
<p>Authenticating osTicket with Zimbra&#8217;s LDAP is a matter of adding and modifying a few lines in a file. Thanks to adLDAP, an easy to use PHP library for LDAP. Download adLDAP 3.3.2 from <a href="http://prdownloads.sourceforge.net/adldap/adLDAP_3.3.2.zip?download" target="_blank">http://prdownloads.sourceforge.net/adldap/adLDAP_3.3.2.zip?download</a>. Unzip the zipped archive. Copy the resulting directory named adLDAP to &lt;osTicket-installation-dir&gt;/include/ directory.</p>
<p>Next, open the file named class.staff.php, found in &lt;osTicket-installation-dir&gt;/include, in a text editor. Add the following line towards the beginning of the file, just after &lt;?php</p>
<pre>include("adLDAP/adLDAP.php");</pre>
<p>Next, append the following to the end of the file:</p>
<pre>&lt;?php

function zimbraAuth($username,$password){
$options = array("domain_controllers"=&gt;array("&lt;zimbra-server-name-or-IP&gt;"),
          "ad_username"=&gt;"uid=admin",
          "ad_password"=&gt;""&lt;zimbra-password&gt;"",
          "account_suffix"=&gt;",ou=people,dc=domain,dc=com"
          );

$auth=false;

try{
  $ldap = new adLDAP($options);
  $auth = $ldap-&gt;authenticate("uid=$username",$password);
  }
catch(adLDAPException $e){
  $auth=false;
  }
return $auth;
}

?&gt;</pre>
<p>In the above code, replace &lt;zimbra-server-name-or-IP&gt; with the DNS name or IP address of the server running Zimbra. Replace &lt;zimbra-password&gt; with the password of Zimbra&#8217;s admin user. Set the account_prefix as per Zimbra&#8217;s domain name. For example, if Zimbra is setup for the domain abc.com, replace:</p>
<p>&#8220;account_suffix&#8221;=&gt;&#8221;,ou=people,dc=domain,dc=com&#8221;</p>
<p>with:</p>
<p>&#8220;account_suffix&#8221;=&gt;&#8221;,ou=people,dc=abc,dc=com&#8221;</p>
<p>Last, find the line which reads:</p>
<pre>return (strlen($this-&gt;passwd) &amp;&amp; strcmp($this-&gt;passwd, MD5($password))==0) ?(TRUE):(FALSE);</pre>
<p>Comment out the line, by prefixing //, as follows:</p>
<pre>//return (strlen($this-&gt;passwd) &amp;&amp; strcmp($this-&gt;passwd, MD5($password))==0) ?(TRUE):(FALSE);</pre>
<p>Add the following line just after the above mentioned line:</p>
<pre>return (strlen($this-&gt;passwd) &amp;&amp; zimbraAuth($this-&gt;username,$password))?(TRUE):(FALSE);</pre>
<p>Save the file. Now you should be able to login into osTicket&#8217;s control panel using Zimbra password for the corresponding osTicket user. While, this blog post is specific to authentication against Zimbra&#8217;s LDAP,  there is no stopping you from authenticating against any LDAP server like OpenLDAP or Microsoft Active Directory. All you have to do is to tinker the following lines as per your LDAP setup:</p>
<pre>$options = array("domain_controllers"=&gt;array("&lt;zimbra-server-name-or-IP&gt;"),
          "ad_username"=&gt;"uid=admin",
          "ad_password"=&gt;""&lt;zimbra-password&gt;"",
          "account_suffix"=&gt;",ou=people,dc=domain,dc=com"
          );</pre>
<img src="http://www.shekhargovindarajan.com/?ak_action=api_record_view&id=2299&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shekhargovindarajan.com%2Fopen-source%2Fauthenticate-osticket-against-zimbra-ldap%2F&amp;title=Authenticate%20osTicket%20against%20Zimbra%20LDAP" id="wpa2a_6"><img src="http://www.shekhargovindarajan.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shekhargovindarajan.com/open-source/authenticate-osticket-against-zimbra-ldap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tethering a Dell Venue Pro bought in India</title>
		<link>http://www.shekhargovindarajan.com/microsoft/tethering-a-dell-venue-pro-bought-in-india/?&#038;owa_medium=feed&#038;owa_sid=&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tethering-a-dell-venue-pro-bought-in-india</link>
		<comments>http://www.shekhargovindarajan.com/microsoft/tethering-a-dell-venue-pro-bought-in-india/#comments</comments>
		<pubDate>Mon, 09 May 2011 03:13:57 +0000</pubDate>
		<dc:creator>Shekhar</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[dell venue pro]]></category>
		<category><![CDATA[india]]></category>
		<category><![CDATA[modem]]></category>
		<category><![CDATA[tethering]]></category>

		<guid isPermaLink="false">http://www.shekhargovindarajan.com/?p=2194</guid>
		<description><![CDATA[Tethering allows the sharing of a mobile phone&#8217;s GPRS/EDGE/3G Internet connection with a PC, typically via USB or Bluetooth/WiFi. Nokia, Andorid and Windows Mobile (before Windows Phone 7) phones support tethering. Most service providers in India have data plans that allow tethering, enabling access to the Internet on laptops while on the move. In fact, tethering [...]]]></description>
			<content:encoded><![CDATA[<p>Tethering allows the sharing of a mobile phone&#8217;s GPRS/EDGE/3G Internet connection with a PC, typically via USB or Bluetooth/WiFi. Nokia, Andorid and Windows Mobile (before Windows Phone 7) phones support tethering. Most service providers in India have data plans that allow tethering, enabling access to the Internet on laptops while on the move.</p>
<p>In fact, tethering has often come to my rescue where most other ways to connect to the Internet have failed. I blame it on the lack of their availability and/or price. Hence I aptly demand tethering from every phone I own or use. But my latest  phone, a <a title="Dell Venue Pro" href="http://www.dell.com/in/p/mobile-venue-pro/pd?refid=mobile-venue-pro&amp;s=dhs&amp;cs=indhs1" target="_blank">Dell Venue Pro</a> (powered by Windows Phone 7), does not support tethering out of the box.</p>
<p>Googling reveals a hack which is repeated across the Web. But the hack never worked on my Dell Venue Pro.<span id="more-2194"></span> The issue was, the hack instructs switching to Composite mode via an option called Service Center. But on my phone I could not spot the Service Center. I suspect it could be that Dell chose to hide the Service Center option in its phones sold in India. Fortunately, I found a trick which reveals the Service Center.  Thanks to these couple of hacks, I now enjoy USB tethering with my Dell Venue Pro, on my laptop running Windows 7 64bit. Following is how I tethered my Dell Venue Pro bought in India.</p>
<ol>
<li>Follow the instructions found <a href="http://wmpoweruser.com/hackstethering-come-to-htc-wp7-handsets-htc-hub-comes-to-all-other-wp7-devices/" target="_blank">here (original link)</a> or <a href="http://forum.xda-developers.com/showthread.php?t=929468" target="_blank">here (better explained)</a>.</li>
<li>As explained above, if you don&#8217;t see the Service Center under EM, refer to <span style="text-decoration: underline;"><a href="http://forum.xda-developers.com/showthread.php?t=1025341" target="_blank">this interesting trick</a></span>.</li>
<li>Following are the Extra Initialization Command, for a few phone service providers in India, that I tried out. The dial-up number *99*# and a blank username and password worked for me for all these service providers.
<ul>
<li><strong>Vodafone:</strong><br />
AT+CGDCONT=1,&#8221;IP&#8221;,&#8221;portalnmms&#8221;<br />
or<br />
AT+CGDCONT=1,&#8221;IP&#8221;,&#8221;blackberry.net&#8221;</li>
<li><strong>Airtel:</strong><br />
AT+CGDCONT=1,&#8221;IP&#8221;,&#8221;airtelgprs.com&#8221;</li>
<li><strong>MTNL 3G:<br />
</strong>AT+CGDCONT=1,&#8221;IP&#8221;,&#8221;gprsmtnldel&#8221;<br />
<strong></strong></li>
</ul>
</li>
</ol>
<p>I have not included the entire step-by-step instructions to tether a Dell Venue Pro because I want to give full credit to the original websites that posted the much-needed hacks. Having said that, in case you have any queries you can always <a title="Comment" href="#respond">shoot a comment</a> at me <img src='http://www.shekhargovindarajan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Note: If you want to sync with Zune Software, you will have to turn off Composite mode and switch back to Zune mode. This can be done by going to the Service Center (as explained in the links above) and clicking on the Zune button.</p>
<p>Happy Tethering!!!</p>
<img src="http://www.shekhargovindarajan.com/?ak_action=api_record_view&id=2194&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shekhargovindarajan.com%2Fmicrosoft%2Ftethering-a-dell-venue-pro-bought-in-india%2F&amp;title=Tethering%20a%20Dell%20Venue%20Pro%20bought%20in%20India" id="wpa2a_8"><img src="http://www.shekhargovindarajan.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shekhargovindarajan.com/microsoft/tethering-a-dell-venue-pro-bought-in-india/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Solved: Extension filename.php not present</title>
		<link>http://www.shekhargovindarajan.com/tips-n-tricks/solved-extension-filename-php-not-present/?&#038;owa_medium=feed&#038;owa_sid=&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=solved-extension-filename-php-not-present</link>
		<comments>http://www.shekhargovindarajan.com/tips-n-tricks/solved-extension-filename-php-not-present/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 15:09:06 +0000</pubDate>
		<dc:creator>Shekhar</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>
		<category><![CDATA[dos2unix]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.shekhargovindarajan.com/?p=2098</guid>
		<description><![CDATA[The day was pleasant till I got an E-mail from a client with a PHP script file attached to it. I had to schedule the PHP script via Cron on a Linux server. For PHP scripts in Cron, I do not prefer writing the Cron job as: 1 30 * * * /usr/bin/php -q /opt/script.php [...]]]></description>
			<content:encoded><![CDATA[<p>The day was pleasant till I got an E-mail from a client with a PHP script file attached to it. I had to schedule the PHP script via Cron on a Linux server. For PHP scripts in Cron, I do not prefer writing the Cron job as:</p>
<pre>1  30  *  *  *  /usr/bin/php -q /opt/script.php</pre>
<p>Instead, I prefer a crisper line as:</p>
<pre>1  30  *  *  *  /opt/script.php</pre>
<p>The latter is obviously neater and readable. To prepare a PHP script to execute just by the filename, you need to do two things:</p>
<ol>
<li>Add a line to the path to the PHP interpreter at the top of the script. For example:
<pre>#!/usr/bin/php -q
&lt;?php
// PHP code
?&gt;</pre>
</li>
<li>Make the script executable as:
<pre>chmod + script.php</pre>
</li>
</ol>
<p>Before inserting it in Cron it is always a good idea to test the script by executing it manually as:</p>
<pre>/opt/script.php</pre>
<p>What always worked for me, failed on me this time with an error saying: Extension /opt/script.php not present. What will you do when you get an informative error (being sarcastic) like this? I too had no clue.<span id="more-2098"></span>I checked the path of the PHP interpreter, double checked the permissions and also found other PHP files to be working. The script worked when served via a Web Server (Apache). What added to the confusion was, the same script worked when executed as follows:</p>
<pre>/usr/bin/php -q /opt/script.php</pre>
<p>I could have wasted hours in troubleshooting this if it hadn&#8217;t clicked to my mind that the client who sent me this script uses Windows. This means, this script would have been written in one the Windows text editors. Going by experience, case insensitivity and newline characters is the root to most problems with script which are written in Windows and run on Linux. A quick check did not reveal any case related issue.</p>
<p>To fix the second possible problem, I used dos2unix &#8211; a handy commandline tool to convert Windows based text files into Linux files (more on this later).</p>
<pre>dos2unix /opt/script.php</pre>
<p>And voila! this fixed the problem. I was then able to execute the script as /opt/script.php and also scheduling it via Cron worked perfectly.</p>
<p>If you ask me, how exactly did Windows newline characters would have messed up the script to result into this cryptic error (Extension script.php not present), I don&#8217;t have an answer. But going by the above fix, it was definitely Windows newline characters which were causing the problem.</p>
<p>A note about Windows and Linux newline character: Windows uses \r\n as the new line or next line characters. \r is called the carriage return character and \n is called the line feed character. Whereas in Linux, \n (line feed) is the newline character. The command line tool called dos2unix replaces all the \r\n (carriage return and line feed pair) to \n (line feed) in a script or text file.</p>
<img src="http://www.shekhargovindarajan.com/?ak_action=api_record_view&id=2098&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shekhargovindarajan.com%2Ftips-n-tricks%2Fsolved-extension-filename-php-not-present%2F&amp;title=Solved%3A%20Extension%20filename.php%20not%20present" id="wpa2a_10"><img src="http://www.shekhargovindarajan.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shekhargovindarajan.com/tips-n-tricks/solved-extension-filename-php-not-present/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Solved: Unable to call toll free numbers in India using Windows Phone 7</title>
		<link>http://www.shekhargovindarajan.com/tips-n-tricks/solved-unable-to-call-toll-free-numbers-in-india-using-windows-phone-7/?&#038;owa_medium=feed&#038;owa_sid=&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=solved-unable-to-call-toll-free-numbers-in-india-using-windows-phone-7</link>
		<comments>http://www.shekhargovindarajan.com/tips-n-tricks/solved-unable-to-call-toll-free-numbers-in-india-using-windows-phone-7/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 08:08:33 +0000</pubDate>
		<dc:creator>Shekhar</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>
		<category><![CDATA[dell venue pro]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[windows phone 7]]></category>

		<guid isPermaLink="false">http://www.shekhargovindarajan.com/?p=2076</guid>
		<description><![CDATA[I recently purchased a Dell Venue Pro powered by Windows Phone 7. It has been about 10 days that I&#8217;m living with lack of apps, tethering, E-mail client with conversation view and a feature rich Twitter client. I&#8217;m hoping that most of these will be solved by future updates and upcoming apps. On the other [...]]]></description>
			<content:encoded><![CDATA[<p>I recently purchased a Dell Venue Pro powered by Windows Phone 7. It has been about 10 days that I&#8217;m living with lack of apps, tethering, E-mail client with conversation view and a feature rich Twitter client. I&#8217;m hoping that most of these will be solved by future updates and upcoming apps.</p>
<p>On the other hand, I&#8217;m at war with issues on the phone due to lack of my familiarity with a Windows Phone. After all, I had been using Android for almost two years. One issue that bothered me the most was, I could not dial toll free numbers in India using my Dell Venue Pro.<span id="more-2076"></span>For example, 1800-425-4026 is the toll free number for <a title="Dell India" href="http://dell.co.in/" target="_blank">Dell India</a>. When I dial this number on my Dell Venue Pro, a + (plus) is automatically prefixed to the number. Hence the number becomes +18004254026. On the phone dialer it shows up nicely formatted as +1 (800) 425-4026. This means it actually dials a U.S. number (+1 is the country code for United States). So forget toll free, I&#8217;m accidently dialing an international number for which I will be charged!</p>
<p>The crux of the matter is I was not able to dial any toll free numbers in India. What&#8217;s more, I&#8217;m was not able to call Dell using a Dell. For those who have seen the Hindi movie <a title="Karthik Calling Karthik" href="http://www.imdb.com/title/tt1373156/" target="_blank">Karthik calling Karthik</a>, the situation here was  &#8221;Karthik not able to call Karthik&#8221; <img src='http://www.shekhargovindarajan.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>So where did Dell screw up? Actually it is not Dell, it is Windows Phone 7. Seems the phone is tailored better for the U.S. customers than for Indian customers. But Dell must also not be forgiven. If they are launching a phone in India, they should have customized the bare bones for India. At the least they should have ensured that a Dell should be able to call Dell! After all, how would we call the toll free Dell support number(s) for any needed assistance for our phone.</p>
<p>Thankfully, the solution to the above is simple. The culprit is something called International Assist, found in the phone dialer&#8217;s settings. International Assist is defined as &#8220;Turning on this feature will help automatically correct some common mistakes while dialing internationally or dialing while abroad&#8221;. So it is the International Assist which decides that dialing a toll free number which starts with a 1 is a mistake and it corrects it by prefixing a +. And the worst part is, <strong>International Assist is turned &#8220;On&#8221; by default.</strong></p>
<p><strong>The Solution</strong><br />
To turn off International Assist, click on the Phone Tile or launch Phone from the list of applications. Tap on &#8220;&#8230;&#8221; on the bottom right. Select &#8220;call settings&#8221;. On Settings, turn off International Assist by tapping on the Toggle Switch. Now, you will be able to dial to toll free numbers in India and my Dell is able to call Dell <img src='http://www.shekhargovindarajan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<img src="http://www.shekhargovindarajan.com/?ak_action=api_record_view&id=2076&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shekhargovindarajan.com%2Ftips-n-tricks%2Fsolved-unable-to-call-toll-free-numbers-in-india-using-windows-phone-7%2F&amp;title=Solved%3A%20Unable%20to%20call%20toll%20free%20numbers%20in%20India%20using%20Windows%20Phone%207" id="wpa2a_12"><img src="http://www.shekhargovindarajan.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shekhargovindarajan.com/tips-n-tricks/solved-unable-to-call-toll-free-numbers-in-india-using-windows-phone-7/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Solved: Setting up D-LINK DWA-525 (RaLink Device 3060) Wireless Desktop PCI Adapter on Fedora 14 Linux</title>
		<link>http://www.shekhargovindarajan.com/tips-n-tricks/solved-setting-up-d-link-dwa-525-ralink-device-3060-wireless-desktop-pci-adapter-on-fedora-14-linux/?&#038;owa_medium=feed&#038;owa_sid=&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=solved-setting-up-d-link-dwa-525-ralink-device-3060-wireless-desktop-pci-adapter-on-fedora-14-linux</link>
		<comments>http://www.shekhargovindarajan.com/tips-n-tricks/solved-setting-up-d-link-dwa-525-ralink-device-3060-wireless-desktop-pci-adapter-on-fedora-14-linux/#comments</comments>
		<pubDate>Sat, 12 Feb 2011 06:06:52 +0000</pubDate>
		<dc:creator>Shekhar</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>
		<category><![CDATA[802.11n]]></category>
		<category><![CDATA[cnetworkmanager]]></category>
		<category><![CDATA[dlink]]></category>
		<category><![CDATA[dwa525]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ralink]]></category>

		<guid isPermaLink="false">http://www.shekhargovindarajan.com/?p=2014</guid>
		<description><![CDATA[My new &#8220;desktop grade server machine&#8221; at home has a 802.11n wireless PCI adapter namely D-LINK DWA-525 Wireless N 150 Desktop Adapter.  An adapter like this plugs into one of the PCI slots and connects to a wireless or Wi-Fi network. This helps to keep the machine anywhere in the house and not necessarily near [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2032" class="wp-caption alignleft" style="width: 310px"><a href="http://www.shekhargovindarajan.com/wp-content/uploads/2011/02/D-Link_DWA-525_Wireless_N_150_Desktop_Adapter1.jpg"><img class="size-medium wp-image-2032" title="D-Link DWA-525 Wireless N 150 Desktop Adapter" src="http://www.shekhargovindarajan.com/wp-content/uploads/2011/02/D-Link_DWA-525_Wireless_N_150_Desktop_Adapter1-300x225.jpg" alt="D-Link DWA-525 Wireless N 150 Desktop Adapter" width="300" height="225" /></a><p class="wp-caption-text">D-Link DWA-525 Wireless N 150 Desktop Adapter</p></div>
<p>My new &#8220;desktop grade server machine&#8221; at home has a 802.11n wireless PCI adapter namely <strong>D-LINK DWA-525 Wireless N 150 Desktop Adapter</strong>.  An adapter like this plugs into one of the PCI slots and connects to a wireless or Wi-Fi network. This helps to keep the machine anywhere in the house and not necessarily near a router or Ethernet port.</p>
<p>On my desktop, I did a minimal or base installation of Fedora 14 Linux. Fedora was not able to recognize the wireless adapter and hence could not connect to the Wi-Fi router at my home. But with some efforts, I was able to make the adapter work on Fedora 14. Additionally, I was also able to configure the wireless adapter from the command line. What follows is a crisp tutorial with the required steps to setup DIR-615 PCI adapter on Linux.</p>
<p><span id="more-2014"></span>The following steps worked on a fresh installation of Fedora 14. While the steps mentioned are specific to <a href="http://fedoraproject.org/get-fedora" target="_blank">Fedora 14</a> , they should work for other flavors of Linux with minor changes. For example, while the method of installing GCC (the C language compiler) may differ, installation of the drivers for the wireless adapter should work as mentioned.</p>
<p><strong>Identify your Wireless adapter </strong><br />
Besides checking out the box and the manual of the wireless adapter, there is another way to identify it. Issue the following command:</p>
<pre>lspci | grep RaLink</pre>
<p>If the output contains something as follows:</p>
<pre>Network controller: RaLink Device 3060</pre>
<p>then this blog post is for you <img src='http://www.shekhargovindarajan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  But the same steps may work for a few other models (as explained in the section <strong>Download the drivers</strong>).</p>
<p><strong>Install the prerequisites</strong><br />
You will need to install gcc (C compiler) and kernel sources. On Fedora, they can be installed as follows:</p>
<pre>yum install gcc
yum install kernel-devel-`uname -r`</pre>
<p><strong>Download the drivers</strong><br />
Browse to the URL <a href="http://www.ralinktech.com/support.php?s=2">http://www.ralinktech.com/support.php?s=2</a>. Click on the link labeled <strong>RT3062PCI/mPCI/CB/PCIe(RT3060/RT3062/RT3562/RT3592)</strong>.<strong> </strong>Note the label. Besides 3060, it contains other model numbers too. Hence if the lspci command (see above) gives a different (from 3060) number, this blog post may still work for you.</p>
<p>On the subsequent page, type in your name and e-mail and click on the Accept button. This will download a file named DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217.tgz. In my case, I downloaded the drivers on my laptop and uploaded it on my desktop machine via SSH. The following steps should be executed on the machine with the wireless PCI adapter. Login as root.</p>
<p><strong>Install the drivers</strong><br />
Extract the downloaded file as:</p>
<pre>tar -zxvf DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217.tgz</pre>
<p>This will produce a directory named DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217. Open the file named config.mk, found in the directory DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217/os/linux/, in a text editor and modify the line:</p>
<pre>HAS_WPA_SUPPLICANT=n</pre>
<p>to</p>
<pre>HAS_WPA_SUPPLICANT=y</pre>
<p>Also change the line which says:</p>
<pre>HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n</pre>
<p>to:</p>
<pre>HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y</pre>
<p>Save the file. Next, change (cd) to the directory DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217 and issue the following commands:</p>
<pre>make
make install</pre>
<p>Reboot and voila! The wireless adapter should start working. You should be able to connect to your WiFi router or access point using NetwokManager in GNOME or KDE. In my case, I connected via the command line utility of NetworkManager called cnetworkmanager (as explained in the next section)</p>
<p><strong>Connect to WiFi from the command line</strong><br />
My WiFi router is configured to use WPA or WPA2 authentication as shown in the screenshot below:</p>
<div id="attachment_2029" class="wp-caption alignleft" style="width: 310px"><a href="http://www.shekhargovindarajan.com/wp-content/uploads/2011/02/WPA_settings_on_D-Link-DIR-615_Wireless_N_Router.png"><img class="size-medium wp-image-2029" title="WPA settings on D-Link DIR-615 Wireless N Router" src="http://www.shekhargovindarajan.com/wp-content/uploads/2011/02/WPA_settings_on_D-Link-DIR-615_Wireless_N_Router-300x157.png" alt="WPA settings on D-Link DIR-615 Wireless N Router" width="300" height="157" /></a><p class="wp-caption-text">WPA settings on D-Link DIR-615 Wireless N Router</p></div>
<p>Install cnetworkmanager as:</p>
<pre>yum install cnetworkmanager</pre>
<p>To connect to a wireless router using WPA, append the following lines to the file named rc.local found in /etc directory:</p>
<pre>sleep 5
cnetworkmanager -C &lt;SSID&gt;  --wpa-pass="&lt;WPA-Password&gt;" &amp;</pre>
<p>In the second line, substitute &lt;SSID&gt; with the SSID of your wireless router. Substitute &#8220;&lt;WPA-Password&gt;&#8221; with the password that you have specified in your router for WPA/WPA authentication. For example:</p>
<pre>cnetworkmanager -C SHEKHAR --wpa-pass="secret123" &amp;</pre>
<p>Upon a reboot, the machine should automatically connect to your wireless router. That&#8217;s all folks!</p>
<img src="http://www.shekhargovindarajan.com/?ak_action=api_record_view&id=2014&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shekhargovindarajan.com%2Ftips-n-tricks%2Fsolved-setting-up-d-link-dwa-525-ralink-device-3060-wireless-desktop-pci-adapter-on-fedora-14-linux%2F&amp;title=Solved%3A%20Setting%20up%20D-LINK%20DWA-525%20%28RaLink%20Device%203060%29%20Wireless%20Desktop%20PCI%20Adapter%20on%20Fedora%2014%20Linux" id="wpa2a_14"><img src="http://www.shekhargovindarajan.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shekhargovindarajan.com/tips-n-tricks/solved-setting-up-d-link-dwa-525-ralink-device-3060-wireless-desktop-pci-adapter-on-fedora-14-linux/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Install Fedora 14 Linux without a monitor (headless), keyboard and CD/DVD</title>
		<link>http://www.shekhargovindarajan.com/tips-n-tricks/install-fedora-14-linux-without-a-monitor-headless-keyboard-and-cddvd/?&#038;owa_medium=feed&#038;owa_sid=&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-fedora-14-linux-without-a-monitor-headless-keyboard-and-cddvd</link>
		<comments>http://www.shekhargovindarajan.com/tips-n-tricks/install-fedora-14-linux-without-a-monitor-headless-keyboard-and-cddvd/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 09:02:48 +0000</pubDate>
		<dc:creator>Shekhar</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>
		<category><![CDATA[fedora 14]]></category>
		<category><![CDATA[headless]]></category>
		<category><![CDATA[network boot]]></category>
		<category><![CDATA[pxe]]></category>
		<category><![CDATA[pxeboot]]></category>
		<category><![CDATA[syslinux]]></category>
		<category><![CDATA[tftpboot]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://www.shekhargovindarajan.com/?p=1979</guid>
		<description><![CDATA[As I tweeted http://twitter.com/#!/shekharg/status/30986928094453760 sometime back, I bought a new desktop for my home. This desktop (my home server) is with 16GB of RAM and with no monitor. For the monitor, I thought of hooking it up to my TV via a VGA port (a.k.a. RGB port). The machine has a DVD writer and I also bought [...]]]></description>
			<content:encoded><![CDATA[<p>As I tweeted <a href="http://twitter.com/#!/shekharg/status/30986928094453760">http://twitter.com/#!/shekharg/status/30986928094453760</a> sometime back, I bought a new desktop for my home. This desktop (my home server) is with 16GB of RAM and with no monitor. For the monitor, I thought of hooking it up to my TV via a VGA port (a.k.a. RGB port). The machine has a DVD writer and I also bought a keyboard for Rs. 160.</p>
<p>I required the TV, keyboard and DVD drive only for the one time installation of the operating system. Post the installation, I access the machine only across the network &#8211; via SSH (Secure SHell) or a web browser.</p>
<p>But I decided against the easy way of installation using my TV and keyboard. Instead, I challenged myself to install <a href="http://fedoraproject.org/get-fedora" target="_blank">Fedora 14</a> without using a monitor, keyboard/mouse and DVD drive on the server.<span id="more-1979"></span></p>
<div id="attachment_2005" class="wp-caption alignleft" style="width: 310px"><a href="http://www.shekhargovindarajan.com/wp-content/uploads/2011/02/vncviewer-showing-Fedora-14-installation-across-the-Network.png"><img class="size-medium wp-image-2005 " title="vncviewer showing Fedora 14 installation across the network" src="http://www.shekhargovindarajan.com/wp-content/uploads/2011/02/vncviewer-showing-Fedora-14-installation-across-the-Network-300x168.png" alt="vncviewer showing Fedora 14 installation across the network" width="300" height="168" /></a><p class="wp-caption-text">vncviewer showing Fedora 14 installation across the network</p></div>
<p>In a nutshell, such an installation can be achieved via PXE boot (a.k.a. network boot) wherein the operating system is installed across the network. The installation media itself can reside on any other machine on the network. What&#8217;s more, you can even interact with the graphical interface of the installation on any networked machine.</p>
<p>Note that while most modern desktops and servers have network booting, at times, you may need to enable it from the BIOS. This requires a monitor and keyboard defeating the very fun. In my case, network booting was enabled by default.</p>
<p>At the end of this exercise, I have an up and running Fedora 14 machine installed and configured completely across the network. Following is a jot down of how did I carry out this kind of installation.</p>
<p>As said above, you will need another machine connected to your network or your router.  In my case, I configured my laptop running Fedora 13 to serve the installation of Fedora 14 on my home server.</p>
<p>The installation and configuration mentioned below are specific to Fedora 13. But most steps, especially the configuration should apply to other flavors of Linux. The overall steps are as follows:</p>
<ol>
<li>Configure the network (on the router and laptop).</li>
<li>Install the services on the laptop to:
<ul>
<li>Assign IP to the home server during the network boot</li>
<li>Serve the required files to the home server to boot and start the installation</li>
<li>Serve the packages to be installed</li>
<li>Interact with the graphical installer for disk partitioning, package selection etc.</li>
</ul>
</li>
<li>Configure the services</li>
<li>Start the services</li>
<li>Switch on the target machine/server</li>
<li>Wait for the graphical installer to popup on the laptop, follow the onscreen instructions and ta-da!</li>
</ol>
<p><strong>Configure the network</strong><br />
At home, I&#8217;m on a network with IP 192.168.0.x. This means, machines at my home will have IP addresses like 192.168.0.2, 192.168.0.3 and so on.</p>
<p>First and foremost step is to stop any DHCP service, which provides dynamic IPs to machine. This is because the laptop will act as the DHCP server (as explained later). In my case, a D-Link DIR-615 router (with IP 192.168.0.1) is serving dynamic IPs. I logged into the router using a web browser and disabled DHCP by unchecking Enable DHCP Server (found under Setup&gt;Network Settings).</p>
<p>Since DHCP is disabled, setup a static IP address for the laptop. This can be done via a Linux command line or console using the following command:</p>
<pre>ifconfig eth0 192.168.0.2</pre>
<p>To save yourself from added troubleshooting, disable any running Firewall and SELinux as follows:</p>
<pre>service iptables stop</pre>
<p>SELinux was already disabled on my laptop. For more on disabling SELinux refer to <a href="http://www.crypt.gen.nz/selinux/disable_selinux.html">http://www.crypt.gen.nz/selinux/disable_selinux.html</a></p>
<p><strong>Install the services</strong><br />
Install the required services as follows:</p>
<pre> yum install dhcp syslinux tftp-server httpd tigervnc</pre>
<p>dhcp is the DHCP server which will serve dynamic IP to the server during PXE boot. syslinux provides the files required for booting. tftp-server (TFTP Server) will serve the boot files (provided by syslinux) and the kernel for the server to boot and start the installation. httpd (Apache Web Server) provides the Fedora 14 packages to be installed. tigervnc (TigerVNC) will be used to display the graphical installer on the laptop.</p>
<p><strong>Configure the services: DHCP</strong><br />
To configure DHCP, open the file named dhcpd.conf found in the directory /etc/dhcp and modify it as follows:</p>
<pre>subnet 192.168.0.0 netmask 255.255.255.0{
 range 192.168.0.10 192.168.0.20;
}
allow bootp;
filename "pxelinux.0";</pre>
<p>Save the file.</p>
<p><strong>Configure the services: TFTP Server</strong><br />
In a text editor, open the file named tftp found in /etc/xinetd.d and change the line:</p>
<pre>server_args = -s /var/lib/tftpboot</pre>
<p>to:</p>
<pre>server_args = -s /var/lib/tftpboot -v -v -v</pre>
<p>Appending &#8220;-v -v -v&#8221; will provide more information about the TFTP Server in /var/log/messages file which useful for troubleshooting. Next, change the line:</p>
<pre>disable = yes</pre>
<p>to:</p>
<pre>disable = no</pre>
<p>After the above modifications, the tftp file will look as follows:</p>
<pre># default: off
# description: The tftp server serves files using the trivial file transfer \
#	protocol.  The tftp protocol is often used to boot diskless \
#	workstations, download configuration files to network-aware printers, \
#	and to start the installation process for some operating systems.
service tftp
{
	socket_type		= dgram
	protocol		= udp
	wait			= yes
	user			= root
	server			= /usr/sbin/in.tftpd
	server_args		= -s /var/lib/tftpboot -v -v -v
	disable			= no
	per_source		= 11
	cps			= 100 2
	flags			= IPv4
}</pre>
<p>Save the file.</p>
<p>Next, copy the files named chain.c32, mboot.c32, memdisk, menu.c32 and pxelinux.0 found in the directory /usr/share/syslinux/ to /var/lib/tftpboot directory:</p>
<pre>cd /usr/share/syslinux
cp chain.c32 mboot.c32 memdisk menu.c32 pxelinux.0 /var/lib/tftpboot</pre>
<p>Create a directory named pxelinux.cfg (yes, it is a directory with .cfg suffix) under /var/lib/tftpboot. Under the directory /var/lib/tftpboot/pxelinux.cfg, create a file named default with the following content:</p>
<pre>default Fedora 14
timeout 0

MENU TITLE PXE Menu

LABEL Fedora 14
        KERNEL images/fedora/14/vmlinuz
	APPEND initrd=images/fedora/14/initrd.img lang=en_US keymap=us vnc vncconnect=192.168.0.2 ip=dhcp method=http://192.168.0.2/fedora/14/</pre>
<p>Here the IP address 192.168.0.2 is the IP address of my laptop (as setup in the section <strong>Configure the network</strong>)</p>
<p>Create a directory tree images/fedora/14 under /var/lib/tftpboot:</p>
<pre>mkdir -p /var/lib/tftpboot/images/fedora/14</pre>
<p>We also need to copy two files from the Fedora 14 CD/DVD into this directory. This is explained in the next section.</p>
<p><strong>Configure the services: Apache Web Server</strong><br />
As explained above, Apache Web Server will serve the packages to be installed. For this, we will download and mount Fedora CD/DVD under the directory /var/www/html (the default document root of the web server). Create a directory tree named fedora/14 under /var/www/html as:</p>
<pre>mkdir -p /var/www/html/fedora/14</pre>
<p>Next, download Fedora 14 DVD or CD ISO from <a href="http://fedoraproject.org/en/get-fedora-all">http://fedoraproject.org/en/get-fedora-all</a>. I wanted to do only a base install of Fedora 14 on the server. For this only the first CD of Fedora is required. So I downloaded Fedora-14-x86_64-disc1.iso from <a href="http://fedora.glug-nith.org/linux/releases/14/Fedora/x86_64/iso/." target="_blank">here</a>.</p>
<p>Mount the downloaded DVD/CD ISO as:</p>
<pre>mount -t auto -o loop &lt;path-to-downloaded-iso&gt; /var/www/html/fedora/14</pre>
<p>In my case:</p>
<pre>mount -t auto -o loop /home/shekhar/Downloads/Fedora-14-x86_64-disc1.iso /var/www/html/fedora/14</pre>
<p>Copy the files named initrd.img and vmlinuz found in the directory /var/www/html/fedora/14/images/pxeboot to /var/lib/tftpboot/images/fedora/14.</p>
<p><strong>Start the services<br />
</strong>Next, open a Linux terminal or console window and start the services as follows:</p>
<pre>service dhcpd restart
service xinetd restart
service httpd restart
vncviewer --listen</pre>
<p>Connect the server to the network/router and switch it on. Within a minute you should be able to see the graphical installer on your machine (laptop in my case). Follow the onscreen instructions and you should end up with a successful Fedora 14 installation on the server.</p>
<p>Note that while we didn&#8217;t attach a monitor and keyboard for the installation, we didn&#8217;t even burn a CD/DVD! We let Apache serve the packages via the mounted ISO.  Plus, with <a href="http://fedoraproject.org/wiki/Anaconda/Kickstart" target="_blank">Kickstart</a> you can even have an unattended and automatic installation without interacting with the graphical installer.</p>
<p>PS: Once the installation is done, don&#8217;t forget to stop the DHCP server on your machine (service dhcpd stop) and start the DHCP service on your router.</p>
<img src="http://www.shekhargovindarajan.com/?ak_action=api_record_view&id=1979&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shekhargovindarajan.com%2Ftips-n-tricks%2Finstall-fedora-14-linux-without-a-monitor-headless-keyboard-and-cddvd%2F&amp;title=Install%20Fedora%2014%20Linux%20without%20a%20monitor%20%28headless%29%2C%20keyboard%20and%20CD%2FDVD" id="wpa2a_16"><img src="http://www.shekhargovindarajan.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shekhargovindarajan.com/tips-n-tricks/install-fedora-14-linux-without-a-monitor-headless-keyboard-and-cddvd/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Xbox Support in India: 3 Red Rings of death</title>
		<link>http://www.shekhargovindarajan.com/microsoft/xbox-support-in-india-3-red-rings-of-death/?&#038;owa_medium=feed&#038;owa_sid=&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xbox-support-in-india-3-red-rings-of-death</link>
		<comments>http://www.shekhargovindarajan.com/microsoft/xbox-support-in-india-3-red-rings-of-death/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 21:13:17 +0000</pubDate>
		<dc:creator>Shekhar</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[red rings]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[xbox]]></category>
		<category><![CDATA[xboxsupport]]></category>

		<guid isPermaLink="false">http://www.shekhargovindarajan.com/?p=1888</guid>
		<description><![CDATA[While it has been a few months, I did not want this experience gone untold. And hence this blog post. This blog post can serve as a guide to those in India experiencing issues (esp. the red rings issue) with their Microsoft Xbox. In my case, the issue sprung up on the night of 25th [...]]]></description>
			<content:encoded><![CDATA[<p>While it has been a few months, I did not want this experience gone untold. And hence this blog post. This blog post can serve as a guide to those in India experiencing issues (esp. the red rings issue) with their Microsoft Xbox.</p>
<p>In my case, the issue sprung up on the night of 25th October. I switched on my Xbox after a long time, updated it (as prompted) and started playing a game. After a few minutes of playing, Xbox hung, all of a sudden. I rebooted the console. This time it hung immediately during the welcome animation. I did not miss to notice 3 Red Lights flashing on the front of the XBox. Red means something wrong, 3 Reds mean something screwed up.<span id="more-1888"></span></p>
<div id="attachment_1890" class="wp-caption alignleft" style="width: 200px"><a href="http://www.shekhargovindarajan.com/wp-content/uploads/2010/11/threeredlight1.jpg"><img class="size-full wp-image-1890 " title="3 Flashing Red Lights Issue. Source: http://support.xbox.com" src="http://www.shekhargovindarajan.com/wp-content/uploads/2010/11/threeredlight1.jpg" alt="3 Flashing Red Lights Issue. Source: http://support.xbox.com" width="190" height="100" /></a><p class="wp-caption-text">3 Flashing Red Lights Issue. Source: http://support.xbox.com</p></div>
<p>The nightmare was short lived. Thanks to the excellent Xbox support service in India. By the end of the 6th day, I owned a replaced, brand new, console. Before getting into the interesting story of the entire support experience, following is my suggestion on what you should do if you are facing the 3 flashing red lights issue with your Xbox.</p>
<ol>
<li>Goto <a href="http://support.xbox.com/hi-in/pages/xbox-360/troubleshoot/flashinglights.aspx">http://support.xbox.com/hi-in/pages/xbox-360/troubleshoot/flashinglights.aspx</a>. Click on the Articles tab. Scroll down to the section <strong>Three flashing red lights</strong></li>
<li>Follow the steps mentioned before submitting a service request.</li>
<li>To register a service request, goto <a href="https://myservice.xbox.com/en-in/Pages/Welcome.aspx">https://myservice.xbox.com/en-in/Pages/Welcome.aspx</a> and click on Start a repair request. Follow the instructions which will result in an E-mail with a Service Request Number.</li>
<li>Call  the Xbox support (<a href="http://support.xbox.com/hi-in/pages/call-us.aspx">http://support.xbox.com/hi-in/pages/call-us.aspx</a>) immediately with the Service Request Number. After speaking to Xbox support, it may happen that you are assigned a new Service Request Number and the process of replacing your console speeds up.</li>
<li>The stated procedure is that the service center will courier you the replacement. But, when you get a call from the service center, ask them if you can pick up the console from the service center. If this works out, you may get your console exchanged in less in than 10 minutes &#8211; as it happened to me.</li>
</ol>
<p>Note that, you can avail the support only when your Xbox is not tampered or modded. Also the above mentioned suggestion and the following story is based out of my personal experience and may vary across locations &#8211; I stay in New Delhi, India.</p>
<p>What follows is the story of what I went through to get my Xbox console replaced for the 3 Red Rings of Death.</p>
<p><strong>Day 1: When my Xbox died </strong><br />
This was the night of 25th October. I switched on my Xbox after a long time, updated it (as prompted) and started playing a game. After a few minutes of playing, Xbox hung, all of a sudden. I rebooted the console. This time it hung immediately during the welcome animation. I could see 3 red lights flashing around the power button.</p>
<p>Googling around and reading information like <a href="http://en.wikipedia.org/wiki/Xbox_360_technical_problems" target="_blank">this</a> assured me that this is most likely a hardware problem. First, I went to the XBox support site and obediently followed the instructions like tightening up the power cables. This did not help. I did not have an alternate power outlet to try out the suggestion of changing the outlet.  My Xbox&#8217;s warranty had already expired. But googling around hinted that Microsoft offers a free replacement for 3 years for this specific issue of  3 red rings. So I clicked on &#8220;Start a repair request&#8221; and followed the onscreen instructions which prompted me to login using my Windows Live/Hotmail credentials and asked for my console&#8217;s serial number.</p>
<p>Once done, I received a detailed E-mail on the procedure to replace my console. The e-mail had my console number and a service request number. The E-mail also stated that &#8220;A service agent will come to your doorstep and exchange your non-working console for a working console&#8221; and &#8220;If you have not received a call from our service center after two days, please contact us by using the following contact information.&#8221; How cool it is. I was thrilled to read about this kind of quick and &#8220;at the doorstep&#8221; service. But things didn&#8217;t turn up as expected.</p>
<p><strong>Day 2, Day3: The Wait Period</strong><br />
As suggested in the E-mail, I waited for the next two days expecting a call from the service center. But did not receive any call.</p>
<p><strong>Day 4: 1 Month to Replace the Console?</strong><br />
I called the Xbox support at 1800-11-1100. After giving my service request number, the support person said that he will have to cancel this request and place a new request. Upon asking for the reason, he kind of implied that this kind of service (console getting replaced at doorstep) is no longer offered. I didn&#8217;t question him much on this. Once okayed, I got a new E-mail with a new service request number. But I was so heart broken to read the procedure mentioned in this E-mail. The E-mail instructed the following:</p>
<ol>
<li>Wait for the shipping box: A shipping box for your Xbox 360 console is being sent to you and should arrive in 5 to 6 business days. Once the box arrives, you can prepare your console for shipping.</li>
<li>Prepare your console for shipping: Only send us your console. Please remove the hard drive, accessories, and discs before packing your console for shipping.</li>
<li>Pack and ship us your console: After you send the console to us for repair, you will receive a console within 2-3 weeks.</li>
</ol>
<p>So if I add up the estimated time for the shipping box to arrive and the time taken to repair/replace the console, it was about a month. Also as said in step 3 above, Xbox service was hinting at a repair and not replacement.</p>
<p><strong>Day 5: Glimpse of a Better Service</strong><br />
The very next day, in the morning, I got a call from the Xbox support. I told the person on phone that I&#8217;m waiting for shipping box. He asked me if I could go to the service center with my Xbox. The service center was about 30 kilometers away from my place. I promptly agreed. And there came the surprise, the service center person told me that at the service center I will immediately get a new console, on the spot. I was eager to visit the service center the same day, but due to some work, I postponed it for the next day.</p>
<p><strong>Day 6: A Brand New Xbox</strong><br />
30th October 2010: I reached the service center at about 10:35 hrs and I was out from there by 1045 hrs, with a brand new console! Hail to Xbox support service!</p>
<p><strong> </strong></p>
<p><strong>DO NOT FORGET TO REMOVE THE HARD DRIVE</strong></p>
<div id="attachment_1958" class="wp-caption alignleft" style="width: 210px"><a href="http://www.shekhargovindarajan.com/wp-content/uploads/2011/01/HDseparating.jpg"><img class="size-full wp-image-1958 " title="Remove the Hard Disk before giving your Xbox for replacement. Source: http://support.microsoft.com" src="http://www.shekhargovindarajan.com/wp-content/uploads/2011/01/HDseparating.jpg" alt="Remove the Hard Disk before giving your Xbox for replacement. Source: http://support.microsoft.com" width="200" height="162" /></a><p class="wp-caption-text">Remove the Hard Disk before giving your Xbox for replacement. Source: http://support.microsoft.com</p></div>
<p>While this was clearly stated in the E-mail from Xbox support, I did not read the instructions properly. I did not remove the hard drive from my Xbox console before giving it for replacement. I plugged in the new console on the night of 31st October. The console  reported about &#8220;No storage devices found&#8221;. Here&#8217;s where Xbox support, this time on Twitter, came to help. After a hour long exchange of tweets with <a href="http://twitter.com/#!/xboxsupport/">@xboxsupport</a>, I realized my mistake.</p>
<p><span style="font-size: 13.2px;">The next day I called up the support center person. Despite being a Sunday, he took my call and assured me saying that he will remove the hard drive and I can collect it back from the service center. On Monday morning, I collected the hard drive back and the evening I plugged it back into the replaced console. Rock-n-Roll!</span></p>
<p><strong>Bottom line: </strong>Xbox support service in India rocks. Plus <a href="http://twitter.com/#!/xboxsupport" target="_blank">Xbox Support</a> is very active and helpful on Twitter.</p>
<img src="http://www.shekhargovindarajan.com/?ak_action=api_record_view&id=1888&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shekhargovindarajan.com%2Fmicrosoft%2Fxbox-support-in-india-3-red-rings-of-death%2F&amp;title=Xbox%20Support%20in%20India%3A%203%20Red%20Rings%20of%20death" id="wpa2a_18"><img src="http://www.shekhargovindarajan.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shekhargovindarajan.com/microsoft/xbox-support-in-india-3-red-rings-of-death/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Solved: Images load up partially when served by Apache Web Server</title>
		<link>http://www.shekhargovindarajan.com/tips-n-tricks/solved-images-load-up-partially-when-served-by-apache-web-server/?&#038;owa_medium=feed&#038;owa_sid=&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=solved-images-load-up-partially-when-served-by-apache-web-server</link>
		<comments>http://www.shekhargovindarajan.com/tips-n-tricks/solved-images-load-up-partially-when-served-by-apache-web-server/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 18:00:39 +0000</pubDate>
		<dc:creator>Shekhar</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[enablesendfile]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smb]]></category>

		<guid isPermaLink="false">http://www.shekhargovindarajan.com/?p=1647</guid>
		<description><![CDATA[This was a very strange issue which showed up at one of my client&#8217;s Web application. The application is hosted on a Apache Web server and serves JPEG images. These JPEG files reside on a different server and mounted via CIFS (loosely called Samba mount) on the Linux machine running the Web server. Now the [...]]]></description>
			<content:encoded><![CDATA[<p>This was a very strange issue which showed up at one of my client&#8217;s Web application. The application is hosted on a Apache Web server and serves JPEG images. These JPEG files reside on a different server and mounted via CIFS (loosely called Samba mount) on the Linux machine running the Web server.</p>
<p>Now the issue was, many JPEG images, especially the larger ones, loaded up only partially in a Web browser (both Internet Explorer and Firefox). What made them load fully was pressing CTRL+R or clicking on Refresh/Reload several times. Bandwidth wasn&#8217;t an issue here, since this problem occurred even when browsing the JPEGs from the local network.<span id="more-1647"></span></p>
<p>At first, I doubted that it could be an issue with the way the JPEGs are produced, something related to the progressive rendering et al. But then I came across an instance (too involved to explain it here) which proved me wrong.</p>
<p>Testing the case further, I found that the JPEGs load absolutely fine in the Web browser, when opened up via File&gt;Open &#8211; instead of hitting the Web Server. This made me turn my eyes onto the Apache Web server. Googling around and reading the comments in the Apache configuration file gave a few hints. With some hit-n-trial, the solution that worked for me is as follows:</p>
<ul>
<li>Login as root</li>
<li>Open the httpd.conf file (the configuration file of Apache Web server) in a text editor (like vi). On RedHat/Fedora/CentOS Linux, this file can be found in the directory /etc/httpd/conf</li>
<li>Append the following line to the end of the file:
<pre>EnableSendfile off
</pre>
</li>
<li>Save the file.</li>
<li>Reload or restart the web server. On a RedHat/Fedora/CentOS Linux the command &#8216;service httpd reload&#8217; can be used for the same.</li>
</ul>
<p>The EnableSendFile directive in Apache is documented as: &#8220;Control whether the sendfile kernel support is used to deliver files (assuming that the OS supports it). The default is on; turn this off if you serve from NFS-mounted filesystems.&#8221;</p>
<p>What caught my attention was &#8220;turn this off if you serve from NFS-mounted filesystems&#8221;. But, in my case, the JPEG files were mounted via CIFS and not NFS. But reading more about the EnableSendFile directive at <a href="http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile">http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile</a>, reveals the it affects even SMB (and hence CIFS) or any other network mounted files. Following is the snippet from the document:</p>
<p><em>With a network-mounted DocumentRoot (e.g., NFS or SMB), the kernel may be unable to serve the network file through its own cache.</em></p>
<p>Also, I guess, this solution is not specific to JPEG files. The above mentioned issue and the solution should be applicable to other file types too, which are served from a network mounted drive.</p>
<img src="http://www.shekhargovindarajan.com/?ak_action=api_record_view&id=1647&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shekhargovindarajan.com%2Ftips-n-tricks%2Fsolved-images-load-up-partially-when-served-by-apache-web-server%2F&amp;title=Solved%3A%20Images%20load%20up%20partially%20when%20served%20by%20Apache%20Web%20Server" id="wpa2a_20"><img src="http://www.shekhargovindarajan.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shekhargovindarajan.com/tips-n-tricks/solved-images-load-up-partially-when-served-by-apache-web-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

