<?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>What&#039;s up with Hatim &#187; ubuntu</title>
	<atom:link href="http://hatimonline.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://hatimonline.com</link>
	<description>Life, musings, rants of a Pakistani software engineer living in Europe.</description>
	<lastBuildDate>Wed, 14 Jul 2010 22:41:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=5478</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 10.04 Beta 2 and lengthy&#160;install</title>
		<link>http://hatimonline.com/2010/04/19/ubuntu-10-04-beta-2-and-lengthy-install/</link>
		<comments>http://hatimonline.com/2010/04/19/ubuntu-10-04-beta-2-and-lengthy-install/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 05:50:12 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://hatimonline.com/?p=573</guid>
		<description><![CDATA[Thanks to this bug I have not been able to install Windows 7 and any linux in a straight forward way. I decided to do it the hard way instead. I first backed up my Windows 7 installation (oh yes, I purged all my Linux installs a few weeks ago, I had to , don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/416499">this</a> bug I have not been able to install Windows 7 and any linux in a straight forward way. I decided to do it the hard way instead. I first backed up my Windows 7 installation (oh yes, I purged all my Linux installs a few weeks ago, I had to , don&#8217;t ask, but I planned on coming back with Ubuntu 10.04). i used the latest version of trusty <a href="http://www.clonezilla.org/">CloneZilla</a> for this. After backing up of Windows I installed Ubuntu 10.04 on a logical partition and then later tried to restore the Windows partitions only to find out that I had screwed up the partitions. What i did was that during Linux installation process I created the partitions from scratch (as I could not see any thing, see the bug i mentioned)</p>
<p>The problem might have some thing to do with the fact that when we create partitions in Linux, they dont share boundries, but when Windows makes partitions, they do share some sort of boundaries. I am not entirely sure if it does cause some error, but it surely is not the same. Here is a dump from my fsdisk﻿</p>
<pre class="java" name="code"> Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13       21401   171798528    7  HPFS/NTFS
/dev/sda3           21401       38913   140666720+   5  Extended
/dev/sda5           21401       22185     6291456   82  Linux swap / Solaris
/dev/sda6   *       22185       35239   104857600   83  Linux</pre>
<p>If you notice, you will see that there are overlaps between Start and End cylinder, this is what Windows does to the drive, This is not the same in Linux.</p>
<p>Any who, after failing to recover windows from the already installed partition, I recovered my Windows installation and was able to get windows working back again (thanks to recovering the complete disk) and then I only recovered partitions for my linux machine. Infact this failed too first time as I didn&#8217;t pay attention and let it rewrite the MBR, so third time was the charm with recovering the whole disk of windows (from before i started installing Linux) and recovering the Linux partition from my recent install. Overall it took me a good part of a weekend to get every thing working. Now I just hope that they can resolve this bug soon. I am convinced that it is caused by Windows 7 (I have not had problems like this in a decade since I have used Linux/Windows)</p>
<p>As for Ubuntu 10.04, like usual there are so many new things and it&#8217;s gotten slicker. I did have one problem with the system. It seemed to install the Nvidia driver during the install process but could not activate them (even though it said they were active and not in use). A quick <a href="http://ubuntuforums.org/showpost.php?p=9121126&amp;postcount=18">look</a> in the forums suggested purging and re-installing the Nvidia drivers. Other than that, I am getting used to the windows controls on the top left instead of the top right, but thats a minor adjustment <img src='http://hatimonline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I hope I wont get the urge to tinker more in the next 6 months till next Ubuntu release.</p>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2010/04/19/ubuntu-10-04-beta-2-and-lengthy-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx + PHP-FPM, long recipe for a&#160;tuneup</title>
		<link>http://hatimonline.com/2010/03/14/nginx-php-fpm-long-recipe-for-a-tuneup/</link>
		<comments>http://hatimonline.com/2010/03/14/nginx-php-fpm-long-recipe-for-a-tuneup/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 17:31:10 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php-fpm]]></category>
		<category><![CDATA[tcServer]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hatimonline.com/?p=501</guid>
		<description><![CDATA[My new blog engine looked and felt all fine except for being an extreme resource hog. I have barely 1 GB of RAM on my virtual server from HostEurope, which is more than enough if you just want to run one under-subscribed site. But I also happen to run Spring&#8217;s new TC server for my [...]]]></description>
			<content:encoded><![CDATA[<p>My new blog engine looked and felt all fine except for being an extreme resource hog. I have barely 1 GB of RAM on my virtual server from HostEurope, which is more than enough if you just want to run one under-subscribed site. But I also happen to run Spring&#8217;s new <a href="http://www.springsource.com/products/tcserver">TC server</a> for my own projects (one of which I should be unveiling by the end of this month). So I decided to explore on how to make the whole blog lean. The process was not easy. First I am on Ubuntu LTS so only the most stable software is available for tunning. So this means I had to compile lots of things by hand. Second there is no complete instruction set for doing so on Hardy (which will be ousted soon by new LTS version). But <a href="http://php-fpm.org/download/">some</a> <a href="http://interfacelab.com/nginx-php-fpm-apc-awesome/">instructions</a> are still worth mentioning. I might be tempted to write my own complete DIY nginx,wordpress on php-fpm entry after the new LTS is released.</p>
<p>I decided to go with <a href="http://wiki.nginx.org/Main">Nginx</a> and <a href="http://php-fpm.org/">PHP-FPM</a> solution for running Wordpress (and then later I can also put in <a href="http://www.modrails.com/">Passenger</a> for my RoR applications). Nginx is very lean Webserver which is changing the whole landscape of LAMP to LEMP (it&#8217;s pronounced as engine-x). I had been using it previously as well but it&#8217;s a moving target and has progressed a lot since I last dove into configuration files. There are various resources on the internet addressing this kind of migration but none of them complete. In order to handle redirects as 301 and not as 302 I used <a href="http://wordpress.org/extend/plugins/nginx-compatibility/">this</a> plugin, and this post was <a href="http://ocaoimh.ie/wordpress-nginx-wp-super-cache/comment-page-1/#comment-673465">extremely</a> helpful in getting the permalinks working properly.</p>
<p>I also got to <a href="http://wiki.vpslink.com/Low_memory_MySQL_/_Apache_configurations">optimize</a> my MySQL for memory use but I think there is still room for improvement.</p>
<p>Initial tests with a blank TC server and a running blog on stock Apache and Mysql would reat away all the available RAM. Now I have been able to shave off about 100 MB (which is not bad). I will see if running standard Tomcat works as it uses less memory than TCServer (from the looks of it)</p>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2010/03/14/nginx-php-fpm-long-recipe-for-a-tuneup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving to Ubuntu 9.10 64&#160;bit</title>
		<link>http://hatimonline.com/2010/01/20/moving-to-ubuntu-9-10-64-bit/</link>
		<comments>http://hatimonline.com/2010/01/20/moving-to-ubuntu-9-10-64-bit/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 15:03:00 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[spotify]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">urn:uuid:67d3372f-bc5d-4a10-a391-b887f1c5f348</guid>
		<description><![CDATA[For the past few months, I had been trying out Windows 7 exclusively on my laptop. After the intial good impression, I started noticing the cracks. The system would become super slow after a day or two, which is typical of a windows system doing alot of computing. I am still not sure what is [...]]]></description>
			<content:encoded><![CDATA[<p>For the past few months, I had been trying out Windows 7 exclusively on my laptop. After the intial good impression, I started noticing the cracks. The system would become super slow after a day or two, which is typical of a windows system doing alot of computing. I am still not sure what is the actual reason but it takes ages to fire up simple applications.</p>
<p>Since Google decided to put Chrome for linux in beta and it has some <a href="http://linux.slashdot.org/story/09/12/29/1938231/slashdot.sourceforge.net">mixed reviews</a> (compared to Windows version) I decided to go over back to linux (that was actually in December, but writing about it now) but this time on 64 bit. Working with 64 bit has been problematic for me in the past as one would need to figure out lots of things. Fortunately lots of the issues from my previous experience with 64 bit ubuntu have been now resolved.</p>
<p>The first problem I ran into was bad performance of <a href="http://www.spotify.com/en/">Spotify</a> sound under Wine. This was easily solved by moving to wine-1.2 instead of wine. Another problem that I encountered was crashes of browser  when I started an Adobe Air application after I started the browser. This is also solved by first starting the Adobe Air app and then starting the browser.</p>
<p>I also used Adobe&#8217;s 64 bit <a href="http://labs.adobe.com/technologies/flashplayer10/64bit.html">pre-release</a> version of flash which solves alot of issues of dancing around 32 bit libraries on 64 bit system. I have actually forgotten about lot&#8217;s of issues I fixed during the move, for which I need to put a note to sel: blog when its happening, not weeks later.</p>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2010/01/20/moving-to-ubuntu-9-10-64-bit/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Linode or&#160;not?</title>
		<link>http://hatimonline.com/2009/10/18/linode-or-not/</link>
		<comments>http://hatimonline.com/2009/10/18/linode-or-not/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 19:41:00 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">urn:uuid:eba30eb0-c955-45a6-b85c-5f956d23f5e9</guid>
		<description><![CDATA[For the past one year, I have not done much development on my linode machine. When in Pakistan I needed to have a machine which could act as my IRC client as well as my blog engine, email server and a back up drop box. I have been using Linode for over a year now [...]]]></description>
			<content:encoded><![CDATA[<p>For the past one year, I have not done much development on my linode machine. When in Pakistan I needed to have a machine which could act as my IRC client as well as my blog engine, email server and a back up drop box. I have been using Linode for over a year now and I am pretty happy with their service. But the problem is that I am under utilizing this service. I can probably get a cheaper or even free service to do all my hosting.</p>
<p>My base line would be some thing which would cost me less than 0.027 US$ per hour. Amazons elastic cloud services might be the way to go as I would like to play around with those services. Renting a dedicated server is probably out of my reach at the moment and will not be needed for my minimal footprint activities. However there are certain benifits of using a mid size provider such as linode (a hint would be that big provider&#8217;s IP segments are some times blocked by digital TV aggragators&#8230;.enough said).</p>
<p>The reasons for moving away from linode would be mere change. I have not been keeping up with server technology for some time now and I don&#8217;t necessarily get a chance to play with new things at work. I might as well just try out Amazon AWS for a month and just check it out if its even viable and if it&#8217;s not, I always have a realiable VPS to come back to. In any case I would stroing recommend Linode to any one looking for a VPS.</p>
<p><strong>Edit: </strong>I have looked up the cost of using Amazon AWS cloud, it costs almost double for the smallest instances, but at the same time offers double the power in terms of memory. After looking into my schedule I have decided to not tinker with my current setup till the next LTS of ubuntu comes out, after which I plan to stick with a production server for the whole lenght of LTS and it also turns out that by the time next LTS comes out I would need to update my system any way.</p>
<p><strong>(30th Dec)Edit:</strong> I have piad one more month of dues to Linode. I am on the lookout for a better VPS. If my finances permit I would prefer to go for cloud system (or atleast a bigger VPS for my Java needs).</p>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2009/10/18/linode-or-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chalmers Mail account access from&#160;Ubuntu(Evolution)</title>
		<link>http://hatimonline.com/2009/09/16/chalmers-mail-account-access-from-ubuntu-evolution/</link>
		<comments>http://hatimonline.com/2009/09/16/chalmers-mail-account-access-from-ubuntu-evolution/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 21:55:00 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[chalmers]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">urn:uuid:23e96e01-86f7-425a-96ef-4642448f897f</guid>
		<description><![CDATA[My desktop was getting really messy, so I decided to do a fresh install of Ubuntu. After a fresher install of 32 bit ubuntu on my shiny 64 bit system I decided to consolidate all my email accounts on one box. The problem was that there were no straight instructions on how to get IMAP [...]]]></description>
			<content:encoded><![CDATA[<p>My desktop was getting really messy, so I decided to do a fresh install of Ubuntu. After a fresher install of 32 bit ubuntu on my shiny 64 bit system I decided to consolidate all my email accounts on one box. The problem was that there were no straight instructions on how to get IMAP and SMTP working for student.chalmers.se accouts since their move to outlook.com</p>
<p>Personally I don&#8217;t mind MS Exchange based email servers as long as they are configured to run in some what standard mode. To my surprise I could actually get email out of the system, thanks to a <a href="http://viacesi.spaces.live.com/blog/cns!9D03D39F14D43B0C!230.entry">French blogger</a>.</p>
<p>I wonder if I can do the same for hotmail (well it&#8217;s already being forwarded to my gmail account <img src='http://hatimonline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2009/09/16/chalmers-mail-account-access-from-ubuntu-evolution/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.04,  The best Ubuntu release till date (and my&#160;customizations)</title>
		<link>http://hatimonline.com/2009/05/04/ubuntu-9-04-the-best-ubuntu-release-till-date-and-my-customizations/</link>
		<comments>http://hatimonline.com/2009/05/04/ubuntu-9-04-the-best-ubuntu-release-till-date-and-my-customizations/#comments</comments>
		<pubDate>Mon, 04 May 2009 01:58:00 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">urn:uuid:55e677fb-4508-405e-8c43-402ce9a0061c</guid>
		<description><![CDATA[Ubuntu has been my primary GNU/Linux distribution of choice for&#160; past two years. I have to admit that&#160; early on (around 2005) I was skeptical with all the hype and thought that this was&#160; yet another lame attempt to rip off Debian. But one of the reasons which attracted me to Ubuntu was their free [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ubuntu.com">Ubuntu</a> has been my primary GNU/Linux distribution of choice for&nbsp; past two years. I have to admit that&nbsp; early on (around 2005) I was skeptical with all the hype and thought that this was&nbsp; yet another lame attempt to rip off <a href="http://debian.org">Debian</a>. But one of the reasons which attracted me to Ubuntu was their free <a href="http://shipit.ubuntu.com">CD shipment</a> program (I used to to order lots of them and then would distribute them among my friends, colleagues at my college). After I moved into the work environment it became apparent to me that if you wanted an out of the box distribution&nbsp; Ubuntu was the best choice. Since I only wanted to focus on my programming skills (and not learning about Linux inside out as I had began with <a href="http://gentoo.org">Gentoo</a>) I permanently shifted to Ubuntu and never looked back.</p>
<p>But the last distribution was not so much fun for me and I now know the primary reason for it. I have had a 64 bit machine since April 2008 and I was using 64 bit Ubuntu (with work around for 32 bit apps and plug ins). The performance of firefox was unbearable. As soon as the current release of Ubuntu became available (which was around April 23, 2009) I downloaded an ISO image so I could do a plain install (primarily to resize the partition size and to get a new partition on the newly shipped <a href="http://en.wikipedia.org/wiki/Ext4">ext4</a> filesystem). I didn&#8217;t realize at first but I installed the 32 bit distribution by chance (which was a blessing in disguise). The first I realized that it was a 32 bit system was when I tried to install <a href="http://www.virtualbox.org/">VirtualBox</a> from a deb file (I could have sworn that I had burnt the 64 bit CD, but it was installed).</p>
<p>The first thing which I did was to update drivers for Nvidia GPU (which was painless, since a popup automatically gives you that option). Then I went on to install <a href="http://rubyonrails.org/">RubyOnRails</a> following my <a href="http://hatimonline.com/2008/12/15/updatig-my-linode-to-latest-ubuntu-8-10">own blog entry</a>. After that I tinkered a bit with Firefox to check for performance. In my experience firefox with it&#8217;s stack of plug-ins performs much better in native 32 bit than in 64 bit wrapping mode. I could not only run <a href="http://bbc.com/urdu">BBC.com/urdu</a> radio, but also had better&nbsp; performance of flash and other plug-ins.</p>
<p>There are various incremental improvements in latest Ubuntu. Faster booting time bing one and seemingly cleaner/faster UI is another. There are many nice new UI themes to choose from. One small new feature which I found was the automatic logout (once you press logout, you don&#8217;t have to confirm it, it&nbsp; can logout automatically in 60 seconds if you choose to not confirm).</p>
<p><a href="http://www.flickr.com/photos/hatim/3481900518/"><img src="http://farm4.static.flickr.com/3359/3481900518_d6bd982c3e.jpg?v=0" alt="Ubutntu 9.04 logout dialog." /></a></p>
<p>Another nice feature is the Ubuntu Janitor (which keeps track of packages and files installed from outside of repository, ie possible junk). In my case Janitor was able to detect that I had installed VirtualBox. (Later it also found Adobe Air run time and some AdobeAir applications which I had installed)</p>
<p><a href="http://www.flickr.com/photos/hatim/3481088881/"><img src="http://farm4.static.flickr.com/3297/3481088881_875ae701af.jpg?v=0" alt="Ubuntu Janitor" /></a></p>
<p>Installing fonts is super easy. Just make a new folder .fonts and put your TTF files there. Following are some screen shots of urdu websites utilizing some of the installed fonts on my system.</p>
<p><a href="http://www.flickr.com/photos/hatim/3481900610/"><img src="http://farm4.static.flickr.com/3612/3481900610_f01dee064a.jpg?v=0" alt="BBCUrdu font " /></a></p>
<p><a href="http://www.flickr.com/photos/hatim/3481089337/"><img src="http://farm4.static.flickr.com/3352/3481089337_75ef38e503.jpg?v=0" alt="Alvi Nastaliq Font" /></a></p>
<p>I followed the guide of <a href="http://www.medibuntu.org/">medibuntu</a> to install repositories and enable win32 codecs for streaming content as well to easily install other non-free software (you can&#8217;t live with them if you have non geek family and friends). I also installed sun-java6 plugin to make <a href="http://javafx.com/">JavaFX</a> work nice and <a href="http://www.videolan.org/vlc/">VLC</a> with mozilla plugin as my primary media player and <a href="http://www.adobe.com/products/air/">Adobe Air</a> run time. </p>
<p>Last but not least I installed <a href="http://www.screenlets.org/index.php/Home">screnlets</a>, compiz config manager and <a href="http://do.davebsd.com/">GnomeDo</a> to make my desktop work like a charm (I didn&#8217;t find any of the other software from Lifehackers&#8217;s top 10 Jaunty download list to be of much use) </p>
<p>As for hickups I did experience a bit of sound starvation (clicking in sound) when using plain Alsa drivers. After looking around and trying around some configurations I used this <a href="http://xbmc.org/forum/showpost.php?s=4000b6ade11130a50c6721e41d1a245b&amp;p=260593&amp;postcount=45">tip</a> and now I am running the Pulse sound server without any problem.</p>
<p>Call it a charm of a clean install, magic of ext4, or simplicity of coming back to 32 bit system, for me this is Ubuntu&#8217;s best release to date. </p>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2009/05/04/ubuntu-9-04-the-best-ubuntu-release-till-date-and-my-customizations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
