<?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>Not all those who wander are lostgnu</title>
	<atom:link href="http://sood.net.in/journal/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://sood.net.in/journal</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 27 Oct 2009 18:40:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>uw imapd setup on OS X 10.6 (Snow Leopard)</title>
		<link>http://sood.net.in/journal/?p=26</link>
		<comments>http://sood.net.in/journal/?p=26#comments</comments>
		<pubDate>Tue, 27 Oct 2009 18:40:21 +0000</pubDate>
		<dc:creator>aaditya</dc:creator>
				<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://sood.net.in/journal/?p=26</guid>
		<description><![CDATA[
For demo purposes I needed a mail + IMAP server on my laptop. IMAP because there seems to be no way for Thunderbird to read from an mbox file (shocking!). Postfix comes default with OS X, so that was a no brainer.


However getting IMAP to work took some work. I&#8217;m detailing the steps here.


Get IMAP [...]]]></description>
			<content:encoded><![CDATA[<p>
For demo purposes I needed a mail + IMAP server on my laptop. IMAP because there seems to be no way for Thunderbird to read from an mbox file (shocking!). Postfix comes default with OS X, so that was a no brainer.
</p>
<p>
However getting IMAP to work took some work. I&#8217;m detailing the steps here.
</p>
<ol>
<li>Get IMAP source code from <a href="http://www.washington.edu/imap/">http://www.washington.edu/imap/</a> and untar somewhere. (I&#8217;m assuming you have full XCode development environment setup. If not, dig out your Install DVD and do so)</li>
<li>Edit the top level MAKEFILE and comment out this line:
<pre>
  EXTRACFLAGS="$(EXTRACFLAGS) -DMAC_OSX_KLUDGE=1"
</pre>
<p>Make sure the next line (which is <code>SPECIALS=</code> is not commented out)</li>
<li>Run <code>make oxp</code></li>
<li>Copy generated <code>imap/imapd</code> to <code>/usr/local/bin</code></li>
<li>Since 10.6 has no xinetd anymore, I had to write a launchd plist file. Create this file as <code>/Library/LaunchDaemons/com.uwimap.imap.plist</code>. Contents:
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
  &lt;dict&gt;
    &lt;key&gt;Disabled&lt;/key&gt;
    &lt;false/&gt;
    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;com.uwimap.imap&lt;/string&gt;
    &lt;key&gt;ProgramArguments&lt;/key&gt;
    &lt;array&gt;
      &lt;string&gt;/usr/local/bin/imapd&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;inetdCompatibility&lt;/key&gt;
    &lt;dict&gt;
      &lt;key&gt;Wait&lt;/key&gt;
      &lt;false/&gt;
    &lt;/dict&gt;
    &lt;key&gt;InitGroups&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;Sockets&lt;/key&gt;
    &lt;dict&gt;
      &lt;key&gt;Listeners&lt;/key&gt;
      &lt;dict&gt;
        &lt;key&gt;SockServiceName&lt;/key&gt;
        &lt;string&gt;imap&lt;/string&gt;
      &lt;/dict&gt;
    &lt;/dict&gt;
  &lt;/dict&gt;
&lt;/plist&gt;
</pre>
<p>The file should be owned by user root and group wheel.</li>
<li>Configure PAM support. I did this by this kludge:
<pre>sudo cp /etc/pam.d/ftpd /etc/pam.d/imap</pre>
</li>
<li>Ask launchd to load and start this service:
<pre>
  sudo launchctl load /Library/LaunchDaemons/com.uwimap.imap.plist
  sudo launchctl start com.uwimap.imap
</pre>
</li>
<li>Try telnetting to localhost 143 and 993 to see if imap is up</li>
</ol>
<p>This should create a functioning IMAP server. YMMV <img src='http://sood.net.in/journal/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sood.net.in/journal/?feed=rss2&amp;p=26</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>scortum setup (again)</title>
		<link>http://sood.net.in/journal/?p=17</link>
		<comments>http://sood.net.in/journal/?p=17#comments</comments>
		<pubDate>Mon, 12 Oct 2009 19:20:35 +0000</pubDate>
		<dc:creator>aaditya</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[hardware]]></category>

		<guid isPermaLink="false">http://sood.net.in/journal/?p=17</guid>
		<description><![CDATA[Last week, scortum&#8217;s hard disk died. And with it all our vms and data. Not a good thing.
So I bought two new 500 GB sata disks. Now we&#8217;re running RAID-1 with LVM on top of it.
I&#8217;m going to detail all the steps we took to actually get it running (for future reference).
Initially I had used [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, scortum&#8217;s hard disk died. And with it all our vms and data. Not a good thing.</p>
<p>So I bought two new 500 GB sata disks. Now we&#8217;re running RAID-1 with LVM on top of it.<br />
I&#8217;m going to detail all the steps we took to actually get it running (for future reference).</p>
<p>Initially I had used ubuntu 9.10 beta, but vmware server 2 gave me enough problems with it to blow up the install and go back to ubuntu 9.04.</p>
<p>With 9.04 getting the full disk on LVM2+RAID didn&#8217;t work at all. It would install, but then either lilo would not startup or the kernel would panic. So i moved /boot off to a separate partition and / and /home on LVM2+RAID. This way even if the disk dies, the data should be safe.</p>
<p>Steps:</p>
<ol>
<li>Setup Ubuntu 9.04 with <tt>/boot</tt> on <tt>/dev/sda1</tt>, <tt>/</tt> and <tt>/home</tt> on a LVM2+RAID-1.</li>
<li>Install approx.Update <tt>/etc/approx/approx.conf</tt> to
<pre>ubuntu http://in.archive.ubuntu.com/ubuntu
security http://security.ubuntu.com/ubuntu</pre>
</li>
<li>Create <tt>/etc/apt/sources.list.approx</tt> with following content:
<pre>deb http://scortum:9999/ubuntu/ jaunty main restricted
deb-src http://scortum:9999/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://scortum:9999/ubuntu/ jaunty-updates main restricted
deb-src http://scortum:9999/ubuntu/ jaunty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://scortum:9999/ubuntu/ jaunty universe
deb-src http://scortum:9999/ubuntu/ jaunty universe
deb http://scortum:9999/ubuntu/ jaunty-updates universe
deb-src http://scortum:9999/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://scortum:9999/ubuntu/ jaunty multiverse
deb-src http://scortum:9999/ubuntu/ jaunty multiverse
deb http://scortum:9999/ubuntu/ jaunty-updates multiverse
deb-src http://scortum:9999/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://scortum:9999/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://scortum:9999/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu jaunty partner
deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://scortum:9999/security jaunty-security main restricted
deb-src http://scortum:9999/security jaunty-security main restricted
deb http://scortum:9999/security jaunty-security universe
deb-src http://scortum:9999/security jaunty-security universe
deb http://scortum:9999/security jaunty-security multiverse
deb-src http://scortum:9999/security jaunty-security multiverse</pre>
</li>
<li>Move <tt>sources.list</tt> to <tt>sources.list.original</tt></li>
<li>Create a soft link from <tt>sources.list</tt> to <tt>sources.list.approx</tt></li>
<li><tt>sudo apt-get dist-upgrade</tt></li>
<li>Reboot (to get the new kernel)</li>
<li><tt>sudo apt-get install build-essential linux-headers-`uname -r` xinetd</tt></li>
<li>Download VMWare server 2 (I got 2.0.1-156745.x86_64)</li>
<li>The vmware-config.pl script needs to be patched for building vsock module. Download this <a href="http://taurinocerveza.com/scripts/vmware-config.pl">perl script</a> (From <a href="http://www.bauer-power.net/2009/03/how-to-install-vmware-server-2-on.html">http://www.bauer-power.net/2009/03/how-to-install-vmware-server-2-on.html</a></li>
<li>Run vmware-install.pl but say no to running vmware-config.pl . Then run this command:
<pre>
sudo patch /usr/bin/vmware-config.pl /path/to/downloaded/vmware-config.pl</pre>
</li>
<li>Now run vmware-config.pl</li>
</ol>
<p>(Will keep updating this post)</p>
]]></content:encoded>
			<wfw:commentRss>http://sood.net.in/journal/?feed=rss2&amp;p=17</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Hardware</title>
		<link>http://sood.net.in/journal/?p=10</link>
		<comments>http://sood.net.in/journal/?p=10#comments</comments>
		<pubDate>Fri, 12 Jun 2009 13:36:24 +0000</pubDate>
		<dc:creator>aaditya</dc:creator>
				<category><![CDATA[hardware]]></category>

		<guid isPermaLink="false">http://sood.net.in/journal/?p=10</guid>
		<description><![CDATA[Recently bought new stuff for our server (named scortum). One of our RAM chips stopped working, and nearly gave me a &#8216;eart &#8216;ttack.
So went out and bought some new stuff for it:

An APC UPS rated 2 kVA.
4 GB RAM
a DVD writer

The sweet (and unexpected) part was how the UPS came with a usb interface cable, [...]]]></description>
			<content:encoded><![CDATA[<p>Recently bought new stuff for our server (named scortum). One of our RAM chips stopped working, and nearly gave me a &#8216;eart &#8216;ttack.</p>
<p>So went out and bought some new stuff for it:</p>
<ul>
<li>An APC UPS rated 2 kVA.</li>
<li>4 GB RAM</li>
<li>a DVD writer</li>
</ul>
<p>The sweet (and unexpected) part was how the UPS came with a usb interface cable, and an <code>apt-get install apcupsd</code> later we have UPS integration into the system software. So the server can shutdown when the UPS is down to 15% or 5 minutes of capacity. </p>
<p>Gave the defective 2 GB RAM DIMM for replacement and should have it back in 10 days or so. Then we&#8217;ll run the full 8 GB the mobo supports. Here are the specs for scortum:</p>
<ul>
<li>Intel Core2 Quad CPU    Q6600@2.40GHz</li>
<li>6 GB RAM (as of now after the additional 4 GB)</li>
<li>500 GB 7200 rpm disk</li>
</ul>
<p>Scortum runs ubuntu 8.10 x64, with vmware server 2 on top of it. There are around 12 vms configured on it, with 3-4 running at a time. The big ones are the three RHEL4/5 images running Oracle 10G. There are smaller VMs running our bugdb, qa and staging servers (mainly ubuntu 9.04)</p>
<p>For performance reason we&#8217;ll probably move to ESXi on the host. The CPU performance is pretty good, but the disk is so-so, even though we have a 7200 rpm disk. ESXi is rumored to give vastly better I/O performance, but the range of hardware support is limited. We&#8217;ll see.</p>
<p>Another plan is to plonk in another 500 GB 7200 disk and either go for full disk mirror, or spread the write-happy VMs on them.</p>
]]></content:encoded>
			<wfw:commentRss>http://sood.net.in/journal/?feed=rss2&amp;p=10</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows xp license and IE</title>
		<link>http://sood.net.in/journal/?p=7</link>
		<comments>http://sood.net.in/journal/?p=7#comments</comments>
		<pubDate>Thu, 11 Jun 2009 13:29:04 +0000</pubDate>
		<dc:creator>aaditya</dc:creator>
				<category><![CDATA[IE]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://sood.net.in/journal/?p=7</guid>
		<description><![CDATA[Just bought off a windows/xp license off the web. Didn&#8217;t realize it was still available for purchase.
Somehow my windows validation key wasn&#8217;t working, under vmware fusion. And it has been ages since I booted up windows anyway. Was easier to just give in and buy a new one.
This is needed for testing Lambda against IE6. [...]]]></description>
			<content:encoded><![CDATA[<p>Just bought off a windows/xp license off the web. Didn&#8217;t realize it was still available for purchase.</p>
<p>Somehow my windows validation key wasn&#8217;t working, under vmware fusion. And it has been ages since I booted up windows anyway. Was easier to just give in and buy a new one.</p>
<p>This is needed for testing Lambda against IE6. On first glance most of the things work. I think mainly because we used <a href="http://developer.yahoo.com/yui/">YUI</a><a></a> js and <a href="http://developer.yahoo.com/yui/grids/">css</a>. And <a href="http://code.google.com/p/ie7-js">IE8-compat</a> library helps with other things.</p>
<p>On a (somewhat) unrelated note: IE6 sucks. EPIC FAIL.</p>
]]></content:encoded>
			<wfw:commentRss>http://sood.net.in/journal/?feed=rss2&amp;p=7</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>back in black</title>
		<link>http://sood.net.in/journal/?p=3</link>
		<comments>http://sood.net.in/journal/?p=3#comments</comments>
		<pubDate>Thu, 11 Jun 2009 06:20:39 +0000</pubDate>
		<dc:creator>aaditya</dc:creator>
				<category><![CDATA[announcement]]></category>

		<guid isPermaLink="false">http://sood.net.in/journal/?p=3</guid>
		<description><![CDATA[I&#8217;ve started blogging again. Lets see how it goes this time.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started blogging again. Lets see how it goes this time.</p>
]]></content:encoded>
			<wfw:commentRss>http://sood.net.in/journal/?feed=rss2&amp;p=3</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
