<?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>The Path to Zen &#187; Ubuntu</title>
	<atom:link href="http://www.digizenstudio.com/blog/categories/lamp/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digizenstudio.com/blog</link>
	<description>Jing Xue's Weblog</description>
	<lastBuildDate>Tue, 01 Jun 2010 01:40:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to fix an inaccessible ec2 instance after upgrading to Ubuntu 10.04</title>
		<link>http://www.digizenstudio.com/blog/2010/05/31/how-to-fix-an-inaccessible-ec2-instance-after-upgrading-to-ubuntu-10-04/</link>
		<comments>http://www.digizenstudio.com/blog/2010/05/31/how-to-fix-an-inaccessible-ec2-instance-after-upgrading-to-ubuntu-10-04/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 01:38:30 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[cloud ubuntu]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/?p=244</guid>
		<description><![CDATA[I&#8217;ve been hosting this server on an EC2 instance since New Year. Over the long weekend I decided to upgrade it to Ubuntu 10.04. When all the upgrade is done and the instance is restarted, I find myself locked out of the server &#8211; can&#8217;t ssh, can&#8217;t even ping.  The instance actually fails to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been hosting this server on an EC2 instance since New Year. Over the long weekend I decided to upgrade it to Ubuntu 10.04. When all the upgrade is done and the instance is restarted, I find myself locked out of the server &#8211; can&#8217;t ssh, can&#8217;t even ping.  The instance actually fails to boot up (I found out about that by attaching the root volume to another instance and examining the logs).  So it&#8217;s clearly a mismatching kernel issue &#8211; the instance still boots with the 9.10 stock kernel, which wouldn&#8217;t work when the rest of the system has been upgraded to 10.04.</p>
<p>I fixed the problem by following Eric Hammond&#8217;s article on how to <a href="http://alestic.com/2010/05/ec2-move-ebs-boot-instance">Move a Running EBS Boot Instance to New Hardware on Amazon EC2</a>. His original article was for scenarios where the instances become inaccessible due to power failures, but the methodology worked out in my case just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2010/05/31/how-to-fix-an-inaccessible-ec2-instance-after-upgrading-to-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hardy to Intrepid</title>
		<link>http://www.digizenstudio.com/blog/2008/11/02/hardy-to-intrepid/</link>
		<comments>http://www.digizenstudio.com/blog/2008/11/02/hardy-to-intrepid/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 23:11:14 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/?p=178</guid>
		<description><![CDATA[I was planning on giving it a week before upgrading my desktop to the new Ubuntu 8.10 Intrepid Ibex, but couldn&#8217;t find better things to do on the mild sunny classic Virginian Saturday afternoon than hunching over a computer in the darkest corner of a basement&#8230; 
Anyway, the online upgrade wasn&#8217;t as slow as I [...]]]></description>
			<content:encoded><![CDATA[<p>I was planning on giving it a week before upgrading my desktop to the new Ubuntu 8.10 Intrepid Ibex, but couldn&#8217;t find better things to do on the mild sunny classic Virginian Saturday afternoon than hunching over a computer in the darkest corner of a basement&#8230; <span id="more-178"></span></p>
<p>Anyway, the online upgrade wasn&#8217;t as slow as I thought &#8211; took about 3 hours to download about 1GB data and set up everything.  Did run into a couple of minor surprises:</p>
<p>The computer booted up fine&#8230; without any functioning dns! NetworkManager apparently decided that it was OK to silently overwrite all the changes I made in <code>/etc/resolv.conf</code>.  I have had <a href="http://www.digizenstudio.com/blog/2007/04/25/ubuntu-network-manager-feisty-fowl-up/" rel="_blank">some history with the Network Manager</a> before, and so was not hesitant to disable it with sudo update-rc.d -f NetworkManager remove<code>.</p>
<p>My Logitech Marble Mouse seemed to run into some issue and wouldn't let me scroll by holding down the left small button. I had to revert to xorg.conf following the workaround mentioned in  <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/261995" rel="_blank">this HAL bug</a>.</p>
<p>The only real annoyance was that kde4 stopped honoring </code><code>~/.kde4/Autostart</code>, and when restoring a previously saved session wouldn&#8217;t restore anything on the system tray either.  So none of the utility programs I&#8217;m used to &#8211; klipper, kbiff, etc. &#8211; were automatically started any more. It was annoying because I had to restart X over and over to troubleshoot.  Finally I spotted the Autostart item in System Settings, which seems to be using <code>~/.config/autostart</code> (I guess that&#8217;s part of the freedesktop.org standards?), and works fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2008/11/02/hardy-to-intrepid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.04 Upgrade Goes Well, Not Without Issues</title>
		<link>http://www.digizenstudio.com/blog/2008/05/03/ubuntu-804-upgrade-goes-well-not-without-issues/</link>
		<comments>http://www.digizenstudio.com/blog/2008/05/03/ubuntu-804-upgrade-goes-well-not-without-issues/#comments</comments>
		<pubDate>Sat, 03 May 2008 13:46:17 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2008/05/03/ubuntu-804-upgrade-goes-well-not-without-issues/</guid>
		<description><![CDATA[Upgraded from 7.10 to 8.04 last week. The Upgrade went quite smooth, especially considering I have been running a mixed kde 4/kde 3 setup, with the kde 4 pulled directly from the kde.org repo.

A few issues I ran into so far, most of which I suspect have more or less to do with the new [...]]]></description>
			<content:encoded><![CDATA[<p>Upgraded from 7.10 to 8.04 last week. The Upgrade went quite smooth, especially considering I have been running a mixed kde 4/kde 3 setup, with the kde 4 pulled directly from the kde.org repo.<br />
<span id="more-157"></span><br />
A few issues I ran into so far, most of which I suspect have more or less to do with the new 2.6.24 kernel:</p>
<ol>
<li>The sound system in kde 4 appeared to have stopped working. It simply refuses to recognize the onboard sound card. Sound works fine in kde 3, or in kde 4 but through other packages &#8211; for instance, amarok and the flash video player can play sound without any problems.</li>
<li>The Logitech Marble Mouse would arbitrarily stop responding out of blue, and won&#8217;t come back without rebooting. Good thing I have two mouses plugged in (the other Logitech with higher precision for games <img src='http://www.digizenstudio.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</li>
<li>Firefox 3 Beta 5 crashed the X server once. I&#8217;ll have to wait and see if this is recurring. So far Firefox has been quite stable otherwise.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2008/05/03/ubuntu-804-upgrade-goes-well-not-without-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dual-booters, beware the XP installer.</title>
		<link>http://www.digizenstudio.com/blog/2007/11/05/dual-booters-beware-the-xp-installer/</link>
		<comments>http://www.digizenstudio.com/blog/2007/11/05/dual-booters-beware-the-xp-installer/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 02:51:51 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2007/11/05/dual-booters-beware-the-xp-installer/</guid>
		<description><![CDATA[About this time last year, I decided to switch to Linux. I lived happily ever after in (K)Ubuntu, with my original Windows still kept around (one word: games). So after upgrading my workhorse desktop at home a couple of weeks back, I had the opportunity to reinstall both OS&#8217;s in a dual-boot setup. The experience [...]]]></description>
			<content:encoded><![CDATA[<p>About this time last year, I decided to <a href="http://www.digizenstudio.com/blog/2006/11/11/my-ubuntu-experience-pilot/" rel="_blank">switch to Linux</a>. I lived happily ever after in (K)Ubuntu, with my original Windows still kept around (one word: <em>games</em>). So after upgrading my workhorse desktop at home a couple of weeks back, I had the opportunity to reinstall both OS&#8217;s in a dual-boot setup. The experience from the two setup processes was unbelievably radically different.<span id="more-152"></span></p>
<p>Let me list the hardware upgrade first so you know what the &#8220;players&#8221; had to deal with:</p>
<ol>
<li>Replaced P4 3.0 GHz with Core 2 Quad Q6600,</li>
<li>Bumped RAM to 4G,</li>
<li>Replaced an Asus P4 motherboard with Abit IP35Pro.</li>
<li>Replaced nvidia 6800GT with 8600GTS.</li>
<li>Added a new SATA hard drive. Kept the IDE hard drive around.</li>
</ol>
<p>I actually expected to spend a lot of time on installing and configuring Gutsy, after all, it&#8217;s still linux, right?  Well, not really.  The only hiccup I had was when trying to boot up from the live dvd for the first time, the kernel (2.6.22) got confused by my new SATA drive,  and would take very long to boot.  It took 1 minute to find the answer by google: add &#8216;irqpoll&#8217; to the boot options.</p>
<p>And it just cruised from there:</p>
<ol>
<li>Boot into the live dvd desktop, run installer, copy files, reboot into the new installation.</li>
<li>The &#8220;restricted driver manager&#8221; automatically prompts if I would like to enable the proprietary nvidia driver. Yes, I would. Reboot.</li>
<li>Run <code>nvidia-settings</code> to set up the dual monitors. Copy the config fragments for the logitech marble mouse and natural keyboard into <code>/etc/X11/xorg.conf</code>. Restart X server.</li>
</ol>
<p>And that&#8217;s it. I was able to pick up whatever it was that I was working on before the upgrade as soon as I had the home dir copied over from the backup machine.</p>
<p>It wasn&#8217;t like that on the WinXP side. Not at all.</p>
<p>I booted into the XP installation CD. The installer apparently got confused by the combination of the IDE and SATA drives, but it didn&#8217;t say anything, instead went straight to the screen where it showed a list of two partitions, each from&#8230; wait&#8230; the same drive number with exactly the same id and bus numbers?  And none of the actual, existing partitions on either drives were shown?</p>
<p>I then pressed Enter on one of the drives and got to the next screen where it warned that it was about to format the partition and &#8220;all data will be lost&#8221;. So naturally I decided to abort <em>right then and there</em>, and boot back into linux to make sure I&#8217;ve got everything backed up.  Well, what do you know, all data <strong>were</strong> lost already by then, because, apparently, the XP installer had already wiped out the partition table.</p>
<p>In hindsight, and to be fair, I probably did something real stupid there by pressing that Enter key, after having seen the confused partition/drive list.  But, hey, you are supposed to tell people before you wipe out their partition table, right?</p>
<p>So I had to go through the whole exercise again, except this time I installed XP first, and then Kubuntu. Even it worked this time, I still had to spent way more time in the XP part than I did in Kubuntu. To begin with, it took 40 minutes or so to see the initial XP desktop, and then another 6-7 reboots to install all the service packs, security patches, etc.</p>
<p>Now, before somebody screams &#8220;fanboy!&#8221; I&#8217;ll admit that it&#8217;s not exactly fair to directly compare Kubuntu 7.10 with the original Windows XP.  After all, the latter was first released in 2001. But then, I will also argue that, as a paying customer of a retail Windows XP license, I have never received so much as an offer from Microsoft to replace the original installation CD with one that can handle my rather not so very unique SATA+IDE configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2007/11/05/dual-booters-beware-the-xp-installer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Watch out when you move /var in Ubuntu</title>
		<link>http://www.digizenstudio.com/blog/2007/06/14/watch-out-when-you-move-var-in-ubuntu/</link>
		<comments>http://www.digizenstudio.com/blog/2007/06/14/watch-out-when-you-move-var-in-ubuntu/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 00:20:59 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2007/06/14/watch-out-when-you-move-var-in-ubuntu/</guid>
		<description><![CDATA[When I was installing my Ubuntu, there was this part where an experienced admin would spend some time devising a plan for which part of file system should be mounted from which partition.  I decided to skip it and kept everything except /home on one single partition &#8211; just to keep it simple.  [...]]]></description>
			<content:encoded><![CDATA[<p>When I was installing my Ubuntu, there was this part where an experienced admin would spend some time devising a plan for which part of file system should be mounted from which partition.  I decided to skip it and kept everything except /home on one single partition &#8211; just to keep it simple.  Well, at an unfortunate moment during the past weekend, it suddenly hit me that I should stop being such a noob, and &#8220;make things proper&#8221;.<span id="more-138"></span></p>
<p>So I fired up gparted and broke a fat32 partition into a few ext3 ones. Reboot&#8230; enter single user mode&#8230; move /opt, /tmp, and /var into their respective parition&#8230; edit /etc/fstab&#8230; reboot.  Voila!  <code>df</code> confirms exactly what I had planned for, except&#8230;</p>
<p>Except the networking is completely down &#8211; &#8220;completely&#8221; as in &#8220;even the loopback 127.0.0.1 interface isn&#8217;t up&#8221;.</p>
<p>Rebooting with &#8220;nosplash&#8221; showed some peculiar messages:</p>
<blockquote><p>
Mount point &#8220;/var/run&#8221; does not exist. Skip mounting.<br />
Mount point &#8220;/var/lock&#8221; does not exist. Skip mounting.<br />
(and later)<br />
/var/run/network does not exist&#8230;
</p></blockquote>
<p>After a bit googling, I ran into <a href="http://utcc.utoronto.ca/~cks/space/blog/linux/UbuntuVarRun" rel="_blank">Chris Siebenmann&#8217;s wiki page</a> on how Ubuntu requires /var/run to stay on the root file system even though /var is relocated to somewhere else. Among his comments, I found this particular sentence amusingly depressing (well at the moment it was just &#8220;depressing&#8221;):</p>
<blockquote><p>
If you started out without a separate /var filesystem and now want to move to one, apparently your life just sucks.
</p></blockquote>
<p>Eventually I fixed the problem by entering the single user mode, umounting /var, and manually creating /var/run and /var/lock in the root file system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2007/06/14/watch-out-when-you-move-var-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Ubuntu Network Manager &#8211; Feisty&#8230; Fowl-up?</title>
		<link>http://www.digizenstudio.com/blog/2007/04/25/ubuntu-network-manager-feisty-fowl-up/</link>
		<comments>http://www.digizenstudio.com/blog/2007/04/25/ubuntu-network-manager-feisty-fowl-up/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 04:58:25 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2007/04/25/ubuntu-network-manager-feisty-fowl-up/</guid>
		<description><![CDATA[I couldn&#8217;t wait until the Feisty release, and upgraded to the beta a couple of weeks before the release date. Everything else went through quite well, except for the new Network Manager.
My network card has its own certain eccentricity that requires a little special setting before running. Somehow that doesn&#8217;t get along with the Network [...]]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t wait until the Feisty release, and upgraded to the beta a couple of weeks before the release date. Everything else went through quite well, except for the new Network Manager.<span id="more-134"></span></p>
<p>My network card has <a href="http://www.digizenstudio.com/blog/2006/11/16/my-ubuntu-experience-networking/" rel="_blank">its own certain eccentricity</a> that requires a little special setting before running. Somehow that doesn&#8217;t get along with the Network Manager, which insists on starting off the whole networking business by turning off the card first. In the beginning I thought this was because of the beta, and I just had to wait until the release and there&#8217;d be some sort of &#8220;patch&#8221;. Alas, three days past the golden date, I suddenly realized there weren&#8217;t any cavalries coming over the top of the hill <img src='http://www.digizenstudio.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . In the end, I had to completely uninstall the Network Manager, and go back to the good old ifup/ifdown rc scripts.</p>
<p>I wouldn&#8217;t have written this to whine about the NM if that were the only incident. As I&#8217;m getting myself quite comfortable with Ubuntu, I decided to completely switch another older computer from XP to Ubuntu. I tried Debian Etch first, but the repositories proved to be too far behind &#8211; even the testing. So I went ahead and installed Feisty, only to find that the Network Manager seemed to have determined to play  some game with me around every corner.</p>
<p>The problem with this second computer is that it&#8217;s got a dlink wireless card that&#8217;s no longer used (ever since I moved it to close to the router enough for a wired connection). The NM insists on hooking up both wired and wireless networks. Even after I completely commented out the wireless interface in /etc/network/interfaces, it still somehow managed to figure out there is a wireless interface to work with. Not that I didn&#8217;t appreciate it trying to do its job, but it really got to the point of being over-zealous, if you ask me. <img src='http://www.digizenstudio.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   So again I had to uninstall the NM, and stick to the good old networking scripts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2007/04/25/ubuntu-network-manager-feisty-fowl-up/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Build Subversion 1.4.3 in Ubuntu Edgy</title>
		<link>http://www.digizenstudio.com/blog/2007/02/11/build-subversion-143-in-ubuntu-edgy/</link>
		<comments>http://www.digizenstudio.com/blog/2007/02/11/build-subversion-143-in-ubuntu-edgy/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 00:49:56 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2007/02/11/build-subversion-143-in-ubuntu-edgy/</guid>
		<description><![CDATA[You'd (I did) think now that we have all figured out how to build 1.4.2 in Edgy, building 1.4.3 should be just some rather boringly repeated procedure. Nope.
For the APR and APR-UTIL packages required by subversion, there are libapr0, libapr1.0, and libapr1 and their corresponding libaprutil* in Synaptic. Despite that the libapr0 description says that [...]]]></description>
			<content:encoded><![CDATA[<p>You'd (I did) think now that we have all figured out <a href="http://www.digizenstudio.com/blog/2007/01/06/build-subversion-142-in-ubuntu-edgy/">how to build 1.4.2 in Edgy</a>, building 1.4.3 should be just some rather boringly repeated procedure. Nope.</p>
<p>For the APR and APR-UTIL packages required by subversion, there are libapr0, libapr1.0, and libapr1 and their corresponding libaprutil* in Synaptic. Despite that the libapr0 description says that it is "currently used by Apache2, Subversion...", or that 1.4.2 was happily built with libapr1.0, you want to get <strong>libapr1/libapr1-dev/libaprutil1/libaprutil1-dev</strong>, and use this configure line: (I don't care much about accessing through webdav)</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">./configure --with-ssl --with-apr=/usr/bin/apr-config --with-apr-util=/usr/bin/apu-config </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2007/02/11/build-subversion-143-in-ubuntu-edgy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Build Subversion 1.4.2 in Ubuntu Edgy</title>
		<link>http://www.digizenstudio.com/blog/2007/01/06/build-subversion-142-in-ubuntu-edgy/</link>
		<comments>http://www.digizenstudio.com/blog/2007/01/06/build-subversion-142-in-ubuntu-edgy/#comments</comments>
		<pubDate>Sun, 07 Jan 2007 04:54:40 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2007/01/06/build-subversion-142-in-ubuntu-edgy/</guid>
		<description><![CDATA[The standard Ubuntu repository has only 1.3.2. Higepon's tips worked very well. In addition to the packages listed, I had to also install 'expat-dev'.
]]></description>
			<content:encoded><![CDATA[<p>The standard Ubuntu repository has only 1.3.2. <a href="http://higepon.blogspot.com/2006/12/install-subversion-142-to-ubuntu-edgy.html" rel="_blank">Higepon's tips</a> worked very well. In addition to the packages listed, I had to also install 'expat-dev'.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2007/01/06/build-subversion-142-in-ubuntu-edgy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Ubuntu Experience: Email</title>
		<link>http://www.digizenstudio.com/blog/2007/01/01/my-ubuntu-experience-email/</link>
		<comments>http://www.digizenstudio.com/blog/2007/01/01/my-ubuntu-experience-email/#comments</comments>
		<pubDate>Mon, 01 Jan 2007 17:36:59 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2007/01/01/my-ubuntu-experience-email/</guid>
		<description><![CDATA[Oddly, in this age of GUI, I'm seriously thinking about using mutt to handle emails.  I tried both Evolution and Thunderbird. Neither turned out satisfactory at handling the multiple IMAP accounts I have. The Linux version of Thunderbird is particularly slow - compared to the Windows version.
Offlineimap works surprisingly fast. Now I can use [...]]]></description>
			<content:encoded><![CDATA[<p>Oddly, in this age of GUI, I'm seriously thinking about using mutt to handle emails.  I tried both Evolution and Thunderbird. Neither turned out satisfactory at handling the multiple IMAP accounts I have. The Linux version of Thunderbird is particularly slow - compared to the Windows version.<span id="more-122"></span></p>
<p><a href="http://software.complete.org/offlineimap/" rel="_blank">Offlineimap</a> works surprisingly fast. Now I can use mutt to view all of my IMAP accounts without having to switch back and forth.</p>
<p>This here talks about <a href="http://wiki.redwall-firewall.com/index.php/Implementing_Upstream_SMTP_Authentication_for_Postfix" rel="_blank">how to set up postfix to relay to my ISP's SMTP server</a>.</p>
<p>One thing bothered me for a couple of days was all the emails sent through mutt, replayed by postfix to my ISP, had 'jingxue@<em>my-internal-host-name</em>' in the Return-Path header, which makes no sense on the Internet. I finally figured out setting 'use_envelope_from' would fix it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2007/01/01/my-ubuntu-experience-email/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Ubuntu Experience: I Broke It!</title>
		<link>http://www.digizenstudio.com/blog/2006/11/18/my-ubuntu-experience-i-broke-it/</link>
		<comments>http://www.digizenstudio.com/blog/2006/11/18/my-ubuntu-experience-i-broke-it/#comments</comments>
		<pubDate>Sat, 18 Nov 2006 23:04:16 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2006/11/18/my-ubuntu-experience-i-broke-it/</guid>
		<description><![CDATA[So after getting myself comfortable enough in the new Ubuntu home, I thought it was time to expand it - quite literally - I wanted to carve a new partition out of what was now one big 66GB NTFS partition, and to move /home to there so that it would be kept separately from the [...]]]></description>
			<content:encoded><![CDATA[<p>So after getting myself comfortable enough in the new Ubuntu home, I thought it was time to expand it - quite literally - I wanted to carve a new partition out of what was now one big 66GB NTFS partition, and to move /home to there so that it would be kept separately from the rest of the system.<span id="more-119"></span></p>
<p>So I backed up everything on drive E:, the big NTFS partition, fired up the disk manager in Windows XP (if I were recording a chess game, this would be where I'd put "?? very bad move"), deleted the logical drive and the extended partition holding it, created a new extended partition holding a FAT32 drive of 22GB, which I intended to be used for sharing files between the OS's. Everything looked fine, the new FAT32 drive automatically got assigned the same E: drive letter, so everything should keep working in Windows once I restored all the files. All cool. Rebooting into Ubuntu to create the ext3 partition for the new /home...</p>
<blockquote><p>
Grub stage 1.5<br />
Grub<br />
Error 17
</p></blockquote>
<p>OK... how did I manage to break Grub after having merely deleted a data partition in Windows?  Reboot from the Ubuntu Live CD... start gparted... Well, apparently since I used the Windows disk manager to manipulate the partitions, the device nodes for the Linux partitions had not been preserved. The / used to be on /dev/hdb4, and the swap on /dev/hdb5. Now since /dev/hdb2 and /dev/hdb3 were deleted in Windows and the new partition and logic drive were named /dev/hdb2 and (surprise) /dev/hdb5, the new / and swap had become /dev/hdb3 and /dev/hdb4, respectively.</p>
<p>So, looked like grub time. First mount /dev/hdb3 onto the in-memory file system (remember I booted from Live CD), open up menu.lst and adjusted what used to be (hd0,3) to (hd0.2), and /dev/hdb4 to /devhdb3. Then enter grub command line:</p>
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showPlainTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">find /boot/grub/stage1&nbsp; &lt;em&gt;just to confirm - returned <span style="color:#006600; font-weight:bold;">&#40;</span>hd0,<span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span> as I expected&lt;/em&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">root <span style="color:#006600; font-weight:bold;">&#40;</span>hd0,<span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">setup <span style="color:#006600; font-weight:bold;">&#40;</span>hd0<span style="color:#006600; font-weight:bold;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Reboot. Yep, back in the game.  This time redid the partitioning with gparted, and then moved /home over successfully.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2006/11/18/my-ubuntu-experience-i-broke-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Ubuntu Experience: Networking</title>
		<link>http://www.digizenstudio.com/blog/2006/11/16/my-ubuntu-experience-networking/</link>
		<comments>http://www.digizenstudio.com/blog/2006/11/16/my-ubuntu-experience-networking/#comments</comments>
		<pubDate>Thu, 16 Nov 2006 05:26:00 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2006/11/16/my-ubuntu-experience-networking/</guid>
		<description><![CDATA[The Marvell Yukon Gigabit onboard NIC coming with my ASUS motherboard had some problem hooking up with the DLink router. You would think, when both devices are 100baseT by default, the auto link speed negotiation ought to have been a mere formality. But, everytime after the system just boot up, it would take anywhere between [...]]]></description>
			<content:encoded><![CDATA[<p>The Marvell Yukon Gigabit onboard NIC coming with my ASUS motherboard had some problem hooking up with the DLink router. You would think, when both devices are 100baseT by default, the auto link speed negotiation ought to have been a mere formality. But, everytime after the system just boot up, it would take anywhere between 5 seconds to 30 minues for the two to shake hands and achieve a viable link. The visible symptom is the DHCP requests kept getting ignored, and in turn no IP can be obtained from the router for the system.</p>
<p>In Windows, I had to go to the driver configuration, disable the "auto sensing", and explicitly set the NIC to 100baseT. In Ubuntu, this is done by adding the following script to /etc/network/if-pre-up.d:</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#!/bin/sh</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ETHTOOL=/usr/sbin/ethtool</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">if <span style="color:#006600; font-weight:bold;">&#91;</span> ! -x $ETHTOOL <span style="color:#006600; font-weight:bold;">&#93;</span>; then</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; exit <span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fi</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">if <span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#CC0000;">"$IFACE"</span> = <span style="color:#CC0000;">"eth0"</span> <span style="color:#006600; font-weight:bold;">&#93;</span>; then</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; echo disabling $IFACE auto negotiation</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; $ETHTOOL -s $IFACE autoneg off</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fi </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Everytime when the network interfaces are initialized, this script (along with everything else in that if-pre-up.d directory) is executed before dhcpclient is involved.</p>
<p>Update:<br />
Use <code>sudo ifdown -a</code> to bring down all interfaces, and <code>sudo ifup -a</code> to bring them back up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2006/11/16/my-ubuntu-experience-networking/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Ubuntu Experience: Java</title>
		<link>http://www.digizenstudio.com/blog/2006/11/15/my-ubuntu-experience-java/</link>
		<comments>http://www.digizenstudio.com/blog/2006/11/15/my-ubuntu-experience-java/#comments</comments>
		<pubDate>Wed, 15 Nov 2006 06:58:46 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2006/11/15/my-ubuntu-experience-java/</guid>
		<description><![CDATA[I'll catch up later the couple of "episodes" which I'm skipping over and jumping to the Java set up part.  Ubuntu comes with gcj and other GNU-based java facilities, which mostly are still only equivalent to JDK 1.4.x.  So they needed to get chucked right away, and replaced with the Sun JDK 5. [...]]]></description>
			<content:encoded><![CDATA[<p>I'll catch up later the couple of "episodes" which I'm skipping over and jumping to the Java set up part.  Ubuntu comes with gcj and other GNU-based java facilities, which mostly are still only equivalent to JDK 1.4.x.  So they needed to get chucked right away, and replaced with the Sun JDK 5. It's pretty straightforward to install JDK 5, Eclipse, and the rest of the arsenal I work with on the daily basis. The only part involving manual setting was when enabling the Java Plugin and Web Start in Firefox.  Here's <a href="http://java.sun.com/j2se/1.5.0/manual_install_linux.html" rel="_blank">The Plugin Portion of it</a>.<span id="more-117"></span></p>
<p>The highlight of this would-have-been-mundane process was Web Start, according to the JDK installation notes, it's supposed to get set up automatically by the installer, which is kind of true, as I could see all the relevant entries being added properly into /etc/mailcap and /etc/mime.types.  Yet, when I tried to Web Start an application, Firefox always downloads it and offers to handle it by downloading it again and offering to handle it by downloading it again and offering to handle it... <img src='http://www.digizenstudio.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   And the Preferences->Content->File Types->Manage thingy drove me crazy because there didn't seem to be any way to add a new type.</p>
<p>The trick, I finally figured out, is to open up a File Browser, right click on a JNLP file, choose "Properties", then the "Open With" tab, and add the path to javaws in there, and make it the default open application.</p>
<p><strong>Update:</strong><br />
To make the Sun JDK an alternative in the <a href="http://www.debian-administration.org/articles/91">Debian alternatives system</a>, simply do (assuming JDK 1.6 installation path <code>/opt/jdk1.6/bin/java</code>):</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showPlainTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo update-alternatives --install /usr/bin/java java /opt/jdk1.<span style="color:#800000;color:#800000;">6</span>/bin/java <span style="color:#800000;color:#800000;">60</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
This makes <code>/usr/bin/java</code> link to the JDK 1.6 version. This works system-wide, compared to simply adding <code>/opt/jdk1.6/bin</code> to <code>$PATH</code>. Also you can have other versions JDK 1.5 added, and then use update-alternatives to easily switch back and forth between the two.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2006/11/15/my-ubuntu-experience-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Ubuntu Experience: Installation</title>
		<link>http://www.digizenstudio.com/blog/2006/11/11/my-ubuntu-experience-installation/</link>
		<comments>http://www.digizenstudio.com/blog/2006/11/11/my-ubuntu-experience-installation/#comments</comments>
		<pubDate>Sun, 12 Nov 2006 00:40:53 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2006/11/11/my-ubuntu-experience-installation/</guid>
		<description><![CDATA[Prev: Pilot
Installing Ubuntu 6.1 ("Edgy Eft") was smooth. I have 3 NTFS partitions on the harddrive. One of them was deleted to make room for Ubuntu. It's about 24GB. Made 2 partitions - 2GB for swap, and the rest for /. I know it'd be better to have things like /var and /home in separate [...]]]></description>
			<content:encoded><![CDATA[<p><a href="../my-ubuntu-experience-pilot/">Prev: Pilot</a></p>
<p>Installing Ubuntu 6.1 ("Edgy Eft") was smooth. I have 3 NTFS partitions on the harddrive. One of them was deleted to make room for Ubuntu. It's about 24GB. Made 2 partitions - 2GB for swap, and the rest for /. I know it'd be better to have things like /var and /home in separate partitions, but there can only be up to 4 patitions on one harddrive, so that's that.</p>
<p>As for the other two NTFS partitions, the installer discovered them and offered to mount them to the linux file system. The default root mount point for them was a little strange to be called "/media". So I changed them to, well, /win/c, and /win/e. Later on I'm planning on converting E: to FAT32 or FAT32+ext3, so the duo can safely share files.  For now, though, the first thing after booting into my new Ubuntu installation was changing /etc/fstab, and replacing the "defaults" in options for those two mount points to "ro". That makes them read-only.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2006/11/11/my-ubuntu-experience-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Ubuntu Experience: Pilot</title>
		<link>http://www.digizenstudio.com/blog/2006/11/11/my-ubuntu-experience-pilot/</link>
		<comments>http://www.digizenstudio.com/blog/2006/11/11/my-ubuntu-experience-pilot/#comments</comments>
		<pubDate>Sat, 11 Nov 2006 17:52:59 +0000</pubDate>
		<dc:creator>Jing Xue</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2006/11/11/my-ubuntu-experience-pilot/</guid>
		<description><![CDATA[I have decided to gradually migrate my main work environment to Linux, and only keep Windows for gaming and other MS proprietary things. It's something I have been wanting to do for the past decade, I would give it a try about every two years and see that Linux wasn't "quite there yet", and give [...]]]></description>
			<content:encoded><![CDATA[<p>I have decided to gradually migrate my main work environment to Linux, and only keep Windows for gaming and other MS proprietary things. It's something I have been wanting to do for the past decade, I would give it a try about every two years and see that Linux wasn't "quite there yet", and give up. The dedicated server I rent for digiZen (i.e. the one serving you all this babbling of mine right now) has been running Fedora Core for over a year. I've been happy both using and maintaining it. On the other hand, none of the Linux distros (including a home-made one starting with me building from the kernel source) had been satisfactory and up to par as a day-to-day desktop environment.</p>
<p>Well, about a couple months ago, the "Genuine Windows" update notification popup finally got on my nerve, to the point of "ok, it's that time again."  After playing around a Ubuntu installed in VMWare, I got confident enough to take it one step further into the typical dual-boot setup.  A couple of nights later, I am happy to report that I'm working in an environment capable of supporting about 90% of my daily tasks. And I'm pretty confident that, with more googling and tweaking, and the great wine as the last resort, I'll be pushing that number to very close to 100%.</p>
<p>That's not to say, everything went as smooth as I would have liked it. I'm starting this series to keep some notes on the pitfalls and (usually unpleasant) surprises.</p>
<p><a href="../my-ubuntu-experience-installation/">Next: Installation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.digizenstudio.com/blog/2006/11/11/my-ubuntu-experience-pilot/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

