<?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>Mike&#039;s burogu</title>
	<atom:link href="http://blog.bsodmike.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bsodmike.com</link>
	<description>Caution: May contain nuts...</description>
	<lastBuildDate>Sun, 29 Aug 2010 19:00:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CyanogenMOD v6.0.0-RC3 ~ Froyo FRF91</title>
		<link>http://blog.bsodmike.com/2010/08/30/cyanogenmod-v6-0-0-rc3/</link>
		<comments>http://blog.bsodmike.com/2010/08/30/cyanogenmod-v6-0-0-rc3/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 18:56:36 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Gadgets and Tech]]></category>
		<category><![CDATA[CyanogenMod]]></category>
		<category><![CDATA[Google Nexus One]]></category>

		<guid isPermaLink="false">http://blog.bsodmike.com/?p=284</guid>
		<description><![CDATA[This is running extremely smoothly on my Nexus One.  Get it here.

]]></description>
			<content:encoded><![CDATA[<p>This is running extremely smoothly on my Nexus One.  Get it <a href="http://forum.xda-developers.com/showthread.php?p=7742712">here</a>.</p>
<p><img src="http://twitpic.com/show/full/2jfqwa/" width="900px"/></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bsodmike.com/2010/08/30/cyanogenmod-v6-0-0-rc3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Partagas Serie P No. 2 Pirámide Vitola</title>
		<link>http://blog.bsodmike.com/2010/08/25/partagas-serie-p-no-2-piramide-vitola/</link>
		<comments>http://blog.bsodmike.com/2010/08/25/partagas-serie-p-no-2-piramide-vitola/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 22:29:42 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Cuban Cigars]]></category>
		<category><![CDATA[Partagas]]></category>
		<category><![CDATA[Serie P No. 2]]></category>

		<guid isPermaLink="false">http://blog.bsodmike.com/?p=275</guid>
		<description><![CDATA[
A fellow aficionado recommend that I give the Partagas Serie D  No. 4 a try, however, I&#8217;ve yet to make the trip to the Sheraton to accomplish this.  Whilst walking back to my apartment I noticed there was a tobacconist in the mall next door&#8230;ended up walking out with pack of three (tubos) [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://twitpic.com/show/full/2humj8/" width="900px"/></p>
<p>A fellow aficionado recommend that I give the Partagas Serie D  No. 4 a try, however, I&#8217;ve yet to make the trip to the Sheraton to accomplish this.  Whilst walking back to my apartment I noticed there was a tobacconist in the mall next door&#8230;ended up walking out with pack of three (tubos) where they worked out to around £11 per stick.</p>
<p>I also managed to <i>finally</i> hunt down those sulphur free cigar matches; they carried two kinds of Davidoff matches.  Being fresh out of their humidity controlled kiosk, the burn was quick with decent draw.  I was instantly surprised how &#8217;smooth&#8217; this cigar was in comparison to the Montecristo 4, Petit Edmundo, and El Rey del Mundo Choix Supreme.</p>
<p>Another point to note is the 52 ring size of the Torpedo format ~ the thickest cigar I&#8217;ve tried to date; I couldn&#8217;t really imagine being able to enjoy anything larger.  This smoke lasted close to an hour and half; as it reached about 3 inches in length, the taste became far too bitter for my palette.</p>
<p>A highly recommended smoke, one that has made its way onto my &#8220;top five&#8221; list.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bsodmike.com/2010/08/25/partagas-serie-p-no-2-piramide-vitola/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just beautiful&#8230;</title>
		<link>http://blog.bsodmike.com/2010/08/14/just-beautiful/</link>
		<comments>http://blog.bsodmike.com/2010/08/14/just-beautiful/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 18:40:49 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.bsodmike.com/?p=273</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><center><object width="640" height="505"><param name="movie" value="http://www.youtube.com/v/7HJTvUgAbxA?fs=1&amp;hl=en_GB"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7HJTvUgAbxA?fs=1&amp;hl=en_GB" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="505"></embed></object></center></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bsodmike.com/2010/08/14/just-beautiful/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Sterling Silver Collection</title>
		<link>http://blog.bsodmike.com/2010/07/31/the-sterling-silver-collection/</link>
		<comments>http://blog.bsodmike.com/2010/07/31/the-sterling-silver-collection/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 20:23:44 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Fountain Pens, Ink and Paper]]></category>
		<category><![CDATA[Montblanc]]></category>
		<category><![CDATA[Writers Edition]]></category>

		<guid isPermaLink="false">http://blog.bsodmike.com/?p=261</guid>
		<description><![CDATA[I decided to give the sterling pieces a polish this morning.

Left to right: MB Charles Dickens WE with B nib, Montegrappa Extra 1930 Turtle Brown celluloid and Ebonite feeder with M nib, MB F. Scott Fitzgerald WE with BB nib,  MB LeGrand Solitaire Pin Stripe with B nib, MB Barley with B nib and [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to give the sterling pieces a polish this morning.</p>
<p><img src="http://farm5.static.flickr.com/4087/4843130521_1f1a7bce4f_b.jpg" alt="" /><br />
Left to right: MB Charles Dickens WE with B nib, Montegrappa Extra 1930 Turtle Brown celluloid and Ebonite feeder with M nib, MB F. Scott Fitzgerald WE with BB nib,  MB LeGrand Solitaire Pin Stripe with B nib, MB Barley with B nib and a 0.035ct G VVS2 channel set diamond in its Platinum/PT950 plated clip (not Rhodium plated).</p>
<p>Here&#8217;s a close up of the Montegrappa.  This brand is not that well known, and is quite similar to that of Patek Philippe in comparison.  One could compare Montblanc to Rolex in terms of popularity.</p>
<p>Montegrappa&#8217;s roots are quite Italian, as is its design.  The clip in particular is very similar to even some of the designs used by Visconti; the little roller is quite classically of Italian design.  It also features an authentic Ebonite feeder; this is not very common among modern FPs.  Of course, Richemont are the owners of the Montegrappa brand and as of late they are manufactured in the Montblanc ateliers in Germany.</p>
<p><img src="http://farm5.static.flickr.com/4089/4843745988_3828be9e09_b.jpg" alt="" /></p>
<p>I think I was one of the lucky few to pick up my MG when I did, before Richemont started to shift all their production over to MB, as there have been reports of low QC standards in their more recent models.  Thankfully, the Extra 1930 is the only MG model that ever caught my eye and my piece does not have the horrifying &#8216;Made in Germany&#8217; marking.</p>
<p>That&#8217;s as bad as Panerai&#8217;s faux history; invented for the Italian Frogmen aiding their skirmishes against allied vessels.  The part Panerai conveniently leave out is that those pieces had Rolex movements, and therefore all PAMs since with ETA movements &#8211; including their so-called in house movements &#8211; are just tributes to the real deal.</p>
<p>Personally, I cannot stand fakes; pretending to be the real deal is&#8230;well&#8230;just as fake!  I&#8217;d therefore take an in-house developed Rolex movement over anything ETA and the Swatch group has to offer&#8230;but I guess, I&#8217;ll reserve my ranting for a different post.</p>
<p>What I enjoy most of this sub-collection of mine, is that each nib writes quite differently.  One could say that each nib has its own &#8220;soul&#8221;, thanks to the way the nibs have been ground.  Some are rather stubbish B nibs &#8211; this is a particular trait of MB B nibs that always has me going back for more.  The BB nib on the Fitzgerald is silky smooth as the greater surface area allows for greater lubrication by the increased ink flow.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bsodmike.com/2010/07/31/the-sterling-silver-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure MySQL Installation in Ubuntu 10.04 LTS</title>
		<link>http://blog.bsodmike.com/2010/07/28/secure-mysql-installation-in-ubuntu-10-04-lts/</link>
		<comments>http://blog.bsodmike.com/2010/07/28/secure-mysql-installation-in-ubuntu-10-04-lts/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 10:20:27 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Linux and Mac]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bsodmike.com/?p=259</guid>
		<description><![CDATA[This step is quite easy to overlook,
After installing MySQL, it&#8217;s recommended that you run mysql_secure_installation, a program that helps secure MySQL. While running mysql_secure_installation, you will be presented with the opportunity to change the MySQL root password, remove anonymous user accounts, disable root logins outside of localhost, and remove test databases. It is recommended that [...]]]></description>
			<content:encoded><![CDATA[<p>This step is quite easy to overlook,</p>
<blockquote><p>After installing MySQL, it&#8217;s recommended that you run mysql_secure_installation, a program that helps secure MySQL. While running mysql_secure_installation, you will be presented with the opportunity to change the MySQL root password, remove anonymous user accounts, disable root logins outside of localhost, and remove test databases. It is recommended that you answer yes to these options. If you are prompted to reload the privilege tables, select yes.</p></blockquote>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Enter current password <span style="color: #000000; font-weight: bold;">for</span> root <span style="color: #7a0874; font-weight: bold;">&#40;</span>enter <span style="color: #000000; font-weight: bold;">for</span> none<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <br />
OK, successfully used password, moving on...<br />
<br />
Setting the root password ensures that nobody can log into the MySQL<br />
root user without the proper authorisation.<br />
<br />
You already have a root password <span style="color: #000000; font-weight: bold;">set</span>, so you can safely answer <span style="color: #ff0000;">'n'</span>.<br />
<br />
Change the root password? <span style="color: #7a0874; font-weight: bold;">&#91;</span>Y<span style="color: #000000; font-weight: bold;">/</span>n<span style="color: #7a0874; font-weight: bold;">&#93;</span> n<br />
&nbsp;... skipping.<br />
<br />
By default, a MySQL installation has an anonymous user, allowing anyone<br />
to log into MySQL without having to have a user account created <span style="color: #000000; font-weight: bold;">for</span><br />
them. &nbsp;This is intended only <span style="color: #000000; font-weight: bold;">for</span> testing, and to <span style="color: #c20cb9; font-weight: bold;">make</span> the installation<br />
go a bit smoother. &nbsp;You should remove them before moving into a<br />
production environment.<br />
<br />
Remove anonymous <span style="color: #c20cb9; font-weight: bold;">users</span>? <span style="color: #7a0874; font-weight: bold;">&#91;</span>Y<span style="color: #000000; font-weight: bold;">/</span>n<span style="color: #7a0874; font-weight: bold;">&#93;</span> y<br />
&nbsp;... Success<span style="color: #000000; font-weight: bold;">!</span><br />
<br />
Normally, root should only be allowed to connect from <span style="color: #ff0000;">'localhost'</span>. &nbsp;This<br />
ensures that someone cannot guess at the root password from the network.<br />
<br />
Disallow root <span style="color: #c20cb9; font-weight: bold;">login</span> remotely? <span style="color: #7a0874; font-weight: bold;">&#91;</span>Y<span style="color: #000000; font-weight: bold;">/</span>n<span style="color: #7a0874; font-weight: bold;">&#93;</span> y<br />
&nbsp;... Success<span style="color: #000000; font-weight: bold;">!</span><br />
<br />
By default, MySQL comes with a database named <span style="color: #ff0000;">'test'</span> that anyone can<br />
access. &nbsp;This is also intended only <span style="color: #000000; font-weight: bold;">for</span> testing, and should be removed<br />
before moving into a production environment.<br />
<br />
Remove <span style="color: #7a0874; font-weight: bold;">test</span> database and access to it? <span style="color: #7a0874; font-weight: bold;">&#91;</span>Y<span style="color: #000000; font-weight: bold;">/</span>n<span style="color: #7a0874; font-weight: bold;">&#93;</span> y<br />
&nbsp;- Dropping <span style="color: #7a0874; font-weight: bold;">test</span> database...<br />
ERROR <span style="color: #000000;">1008</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>HY000<span style="color: #7a0874; font-weight: bold;">&#41;</span> at line <span style="color: #000000;">1</span>: Can<span style="color: #ff0000;">'t drop database '</span><span style="color: #7a0874; font-weight: bold;">test</span><span style="color: #ff0000;">'; database doesn'</span>t exist<br />
&nbsp;... Failed<span style="color: #000000; font-weight: bold;">!</span> &nbsp;Not critical, keep moving...<br />
&nbsp;- Removing privileges on <span style="color: #7a0874; font-weight: bold;">test</span> database...<br />
&nbsp;... Success<span style="color: #000000; font-weight: bold;">!</span><br />
<br />
Reloading the privilege tables will ensure that all changes made so far<br />
will take effect immediately.<br />
<br />
Reload privilege tables now? <span style="color: #7a0874; font-weight: bold;">&#91;</span>Y<span style="color: #000000; font-weight: bold;">/</span>n<span style="color: #7a0874; font-weight: bold;">&#93;</span> y<br />
&nbsp;... Success<span style="color: #000000; font-weight: bold;">!</span><br />
<br />
Cleaning up...<br />
<br />
<br />
<br />
All <span style="color: #000000; font-weight: bold;">done</span><span style="color: #000000; font-weight: bold;">!</span> &nbsp;If you<span style="color: #ff0000;">'ve completed all of the above steps, your MySQL<br />
installation should now be secure.<br />
<br />
Thanks for using MySQL!</span></div></td></tr></tbody></table></div>
<p>Reference: <a href="http://library.linode.com/lamp-guides/ubuntu-9.10-karmic/#install_and_configure_mysql_database_server">Linode</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bsodmike.com/2010/07/28/secure-mysql-installation-in-ubuntu-10-04-lts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MoDaCo Custom ROM for Nexus One with Online Kitchen &#8211; Froyo FRF91</title>
		<link>http://blog.bsodmike.com/2010/07/11/modaco-custom-rom-for-nexus-one-with-online-kitchen-froyo-frf91/</link>
		<comments>http://blog.bsodmike.com/2010/07/11/modaco-custom-rom-for-nexus-one-with-online-kitchen-froyo-frf91/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 11:22:33 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Gadgets and Tech]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Froyo]]></category>
		<category><![CDATA[Google Nexus One]]></category>

		<guid isPermaLink="false">http://blog.bsodmike.com/?p=247</guid>
		<description><![CDATA[FRF91 is out for fellow N1 fans; click here to load up on the new ROM by @paulobrien
I&#8217;ve just flashed over r20; will grab r21 tomorrow.
]]></description>
			<content:encoded><![CDATA[<p>FRF91 is out for fellow N1 fans; <a href="http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/309718/02-jul-r21-modaco-custom-rom-for-nexus-one-with-online-kitchen-froyo-frf91/">click here</a> to load up on the new ROM by @<a href="http://twitter.com/paulobrien">paulobrien</a></p>
<p>I&#8217;ve just flashed over r20; will grab r21 tomorrow.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bsodmike.com/2010/07/11/modaco-custom-rom-for-nexus-one-with-online-kitchen-froyo-frf91/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Review: Montecristo Petit Edmundo (x10)</title>
		<link>http://blog.bsodmike.com/2010/06/12/review-montecristo-petit-edmundo-x10/</link>
		<comments>http://blog.bsodmike.com/2010/06/12/review-montecristo-petit-edmundo-x10/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 13:33:18 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Cuban Cigars]]></category>
		<category><![CDATA[Cuban]]></category>
		<category><![CDATA[Habanos]]></category>
		<category><![CDATA[Havana]]></category>
		<category><![CDATA[Montecristo]]></category>
		<category><![CDATA[Petit Edmundo]]></category>

		<guid isPermaLink="false">http://blog.bsodmike.com/?p=243</guid>
		<description><![CDATA[I decided to &#8216;christen&#8217; the box of ten Montecristo Petit Edmundo that I purchased in May.  Its presentation and packaging is the ubiquitous wooden box, marked with a manufacture date of March 09 on its bottom.


Over the years I have preferred a brief smoke in comparison to the long hauls I&#8217;ve experienced with the [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to &#8216;christen&#8217; the box of ten Montecristo Petit Edmundo that I purchased in May.  Its presentation and packaging is the ubiquitous wooden box, marked with a manufacture date of March 09 on its bottom.</p>
<p><img src="http://farm5.static.flickr.com/4039/4693309672_a48991bc1d_b.jpg" width="900px"></p>
<p><img src="http://farm5.static.flickr.com/4001/4693314752_ec5c839b8c_b.jpg" width="900px"></p>
<p>Over the years I have preferred a brief smoke in comparison to the long hauls I&#8217;ve experienced with the Trinidad Ingenios EL (Edicion Limitadas) 2007s in their Cervantes format of 165 mm and a ring of 42.  </p>
<p>It is due to this reason that I took a particular interest in the smaller formats and the Petit Edmundo in particular is a much nicer 110 mm with a ring of 52; in comparison, your garden variety MC No. 4&#8217;s Mareva format is 129 mm with a ring of 42 &#8211; the same thickness as the Trinidad earlier mentioned.  </p>
<p>Interestingly, one takes the ring size/64 to calculate the width, or the thickness, in inches. The Petit Edmundo works out at 0.66 inches and therefore is categorised as a thick gauge.  The <a href="http://blog.bsodmike.com/2010/02/21/review-el-rey-del-mundo-choix-supreme/">El Rey Del Mundo Choix Supreme</a> I reviewed in February was of the Hermoso No. 4 format at 127 mm with a ring of 48.</p>
<p><img src="http://farm5.static.flickr.com/4005/4692685115_67ffbff712_b.jpg" width="900px"></p>
<p>In terms of colour, this MC has a deep leathery tone, much deeper than that of the Choix Supreme or even the Por Larranaga Petit Corona; those were much milder smokes in comparison.  Even the Davidoff 2000&#8217;s (Machine made in Geneve) are darker then the MC Petit Edmundo, but that is a whole different affair and one simply could not even begin to compare the Davidoff&#8217;s with a decent cuban.</p>
<p>Unfortunately, my hunt for sulphur free cigar matches is one that has yet to come to a conclusion and I therefore resorted to regular matches.  I tend to avoid &#8220;lighters&#8221; as their fuel tend to be rather overbearing and do not want to ruin the experience as such.  This particular cigar lit quite easily and drew quite well; it seemed to have good construction of the filler.  Personally, burn and construction are my main concerns; the flavour &#8211; the raison d’être of cigar smoking &#8211; and experience tends to take care of itself if these are spot on.</p>
<p><img src="http://farm5.static.flickr.com/4023/4693298016_38bbb48570_b.jpg" width="900px"></p>
<p>I was able to quite easily discipline myself to an average draw per minute, whilst enjoying a coke of course, without the fear of it going out.  Yes, its burn was good as well.  On to the experience!  Considering the smaller form factor, yet thicker girth, this 30-minute nicotine powered roller coaster ride was the most fun during the initial 20 minutes.</p>
<p><img src="http://farm5.static.flickr.com/4033/4693301812_374bab5753_b.jpg" width="900px"></p>
<p>The beginning was extremely creamy to the point it had me wondering that this was going to be a rather mild smoke, with hints of cocoa.  ~5-10 minutes in and it felt like I had started to reach the sweet spot with leathery tones and hints of spice mixed in with the MC&#8217;s signature bitter-sweet undertones.  At around the 20 minute mark, the cigar was now in its stub form moment away from reaching the ring; it was evident that the fun had come to end.  The draw deteriorated at this point and even the burn struggled; I no longer cared to continue as the best of it was history.</p>
<p><img src="http://farm5.static.flickr.com/4041/4692670517_d3df8821c7_b.jpg" width="900px"></p>
<p>On the whole, I would say this was an enjoyable smoke, one that I definitely see myself indulging in from time to time.  Some Remy XO swirling in a cognac balloon would have definitely had the carriage coming of the tracks&#8230;one can only dream :)</p>
<p>Next review: the Siglo IV Tubos Cohiba. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bsodmike.com/2010/06/12/review-montecristo-petit-edmundo-x10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Ruby on Rails with Apache + Passenger (Mod_Rails) ~ Ubuntu Lucid Lynx 10.04</title>
		<link>http://blog.bsodmike.com/2010/06/05/howto-ruby-on-rails-with-apache-passenger-mod_rails-ubuntu-lucid-lynx-10-04/</link>
		<comments>http://blog.bsodmike.com/2010/06/05/howto-ruby-on-rails-with-apache-passenger-mod_rails-ubuntu-lucid-lynx-10-04/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 21:44:33 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Linux and Mac]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bsodmike.com/?p=238</guid>
		<description><![CDATA[To get up and running I followed (1) and had a basic RoR setup with Mongrel, but I really wanted to get Passenger setup as well.  This was of course a much more involved process.
I started off by following the very basic install guide on the dedicated page for Passenger.  However, Mozketo (2) [...]]]></description>
			<content:encoded><![CDATA[<p>To get up and running I followed (1) and had a basic RoR setup with Mongrel, but I really wanted to get Passenger setup as well.  This was of course a much more involved process.</p>
<p>I started off by following the <a href="http://www.modrails.com/install.html">very basic install guide</a> on the dedicated page for Passenger.  However, Mozketo (2) indicated that I needed to get a few more libs first.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>RoR<span style="color: #000000; font-weight: bold;">/</span>myapp<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>views<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">users</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2-prefork-dev libapr1-dev libaprutil1-dev<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #c20cb9; font-weight: bold;">sudo</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> password <span style="color: #000000; font-weight: bold;">for</span> administrator: <br />
Reading package lists... Done<br />
Building dependency <span style="color: #c20cb9; font-weight: bold;">tree</span> &nbsp; &nbsp; &nbsp; <br />
Reading state information... Done<br />
The following packages were automatically installed and are no longer required:<br />
&nbsp; linux-headers-2.6.32-<span style="color: #000000;">21</span> linux-headers-2.6.32-<span style="color: #000000;">21</span>-generic-pae<br />
Use <span style="color: #ff0000;">'apt-get autoremove'</span> to remove them.<br />
The following extra packages will be installed:<br />
&nbsp; comerr-dev krb5-multidev libdb4.8-dev libexpat1-dev libgssrpc4<br />
&nbsp; libkadm5clnt-mit7 libkadm5srv-mit7 libkdb5-4 libkrb5-dev libldap2-dev<br />
&nbsp; libmysqlclient-dev libpcre3-dev libpcrecpp0 libpq-dev libpq5 libssl-dev<br />
&nbsp; uuid-dev zlib1g-dev<br />
Suggested packages:<br />
&nbsp; krb5-doc db4.8-doc krb5-user postgresql-doc-8.4<br />
The following NEW packages will be installed:<br />
&nbsp; apache2-prefork-dev comerr-dev krb5-multidev libapr1-dev libaprutil1-dev<br />
&nbsp; libdb4.8-dev libexpat1-dev libgssrpc4 libkadm5clnt-mit7 libkadm5srv-mit7<br />
&nbsp; libkdb5-4 libkrb5-dev libldap2-dev libmysqlclient-dev libpcre3-dev<br />
&nbsp; libpcrecpp0 libpq-dev libpq5 libssl-dev uuid-dev zlib1g-dev<br />
0 upgraded, 21 newly installed, 0 to remove and 22 not upgraded.<br />
Need to get 9,968kB of archives.<br />
After this operation, 36.9MB of additional disk space will be used.<br />
Do you want to <span style="color: #7a0874; font-weight: bold;">continue</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Y<span style="color: #000000; font-weight: bold;">/</span>n<span style="color: #7a0874; font-weight: bold;">&#93;</span>? Y</div></td></tr></tbody></table></div>
<p>finally,</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>RoR<span style="color: #000000; font-weight: bold;">/</span>myapp<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>views<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">users</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> gems <span style="color: #c20cb9; font-weight: bold;">install</span> passenger</div></td></tr></tbody></table></div>
<p>The passenger installer was quite interactive,</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>RoR<span style="color: #000000; font-weight: bold;">/</span>myapp$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> passenger-install-apache2-module<br />
Welcome to the Phusion Passenger Apache <span style="color: #000000;">2</span> module installer, v2.2.13.<br />
<br />
This installer will guide you through the entire installation process. It<br />
shouldn<span style="color: #ff0000;">'t take more than 3 minutes in total.<br />
<br />
Here'</span>s what you can expect from the installation process:<br />
<br />
&nbsp;1. The Apache 2 module will be installed <span style="color: #000000; font-weight: bold;">for</span> you.<br />
&nbsp;2. You<span style="color: #ff0000;">'ll learn how to configure Apache.<br />
&nbsp;3. You'</span>ll learn how to deploy a Ruby on Rails application.<br />
<br />
Don<span style="color: #ff0000;">'t worry if anything goes wrong. This installer will advise you on how to<br />
solve any problems.<br />
<br />
Press Enter to continue, or Ctrl-C to abort.<br />
<br />
--------------------------------------------<br />
<br />
Checking for required software...<br />
<br />
&nbsp;* GNU C++ compiler... found at /usr/bin/g++<br />
&nbsp;* Ruby development headers... found<br />
&nbsp;* OpenSSL support for Ruby... found<br />
&nbsp;* RubyGems... found<br />
&nbsp;* Rake... found at /usr/bin/rake<br />
&nbsp;* rack... found<br />
&nbsp;* Apache 2... found at /usr/sbin/apache2<br />
&nbsp;* Apache 2 development headers... found at /usr/bin/apxs2<br />
&nbsp;* Apache Portable Runtime (APR) development headers... found at /usr/bin/apr-1-config<br />
&nbsp;* Apache Portable Runtime Utility (APU) development headers... found at /usr/bin/apu-1-config<br />
<br />
--------------------------------------------<br />
Compiling and installing Apache 2 module...<br />
cd /usr/lib/ruby/gems/1.8/gems/passenger-2.2.13<br />
.<br />
.<br />
.<br />
--------------------------------------------<br />
The Apache 2 module was successfully installed.<br />
<br />
Please edit your Apache configuration file, and add these lines:<br />
<br />
&nbsp; &nbsp;LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.13/ext/apache2/mod_passenger.so<br />
&nbsp; &nbsp;PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.13<br />
&nbsp; &nbsp;PassengerRuby /usr/bin/ruby1.8<br />
<br />
After you restart Apache, you are ready to deploy any number of Ruby on Rails<br />
applications on Apache, without any further Ruby on Rails-specific<br />
configuration!<br />
<br />
Press ENTER to continue.<br />
<br />
<br />
--------------------------------------------<br />
Deploying a Ruby on Rails application: an example<br />
<br />
Suppose you have a Rails application in /somewhere. Add a virtual host to your<br />
Apache configuration file and set its DocumentRoot to /somewhere/public:<br />
<br />
&nbsp; &nbsp;&lt;VirtualHost *:80&gt;<br />
&nbsp; &nbsp; &nbsp; ServerName www.yourhost.com<br />
&nbsp; &nbsp; &nbsp; DocumentRoot /somewhere/public &nbsp; &nbsp;# &lt;-- be sure to point to '</span>public<span style="color: #ff0000;">'!<br />
&nbsp; &nbsp; &nbsp; &lt;Directory /somewhere/public&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AllowOverride all &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# &lt;-- relax Apache security settings<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Options -MultiViews &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# &lt;-- MultiViews must be turned off<br />
&nbsp; &nbsp; &nbsp; &lt;/Directory&gt;<br />
&nbsp; &nbsp;&lt;/VirtualHost&gt;<br />
<br />
And that'</span>s it<span style="color: #000000; font-weight: bold;">!</span> You may also want to check the Users Guide <span style="color: #000000; font-weight: bold;">for</span> security and<br />
optimization tips, troubleshooting and other useful information:<br />
<br />
&nbsp; <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-2.2.13<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>Users guide Apache.html<br />
<br />
Enjoy Phusion Passenger, a product of Phusion <span style="color: #7a0874; font-weight: bold;">&#40;</span>www.phusion.nl<span style="color: #7a0874; font-weight: bold;">&#41;</span> :-<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
http:<span style="color: #000000; font-weight: bold;">//</span>www.modrails.com<span style="color: #000000; font-weight: bold;">/</span><br />
<br />
Phusion Passenger is a trademark of Hongli Lai <span style="color: #000000; font-weight: bold;">&amp;</span> Ninh Bui.</div></td></tr></tbody></table></div>
<p>At this stage I knew that these directives were rather dated as Apache2 handles things rather differently now, especially when it comes to virtual hosts and enabling mods.  Mozketo (2) details how to create the following two files &#8211; you will notice how the strings are the updated versions compared to those given on Mozketo&#8230;</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># /etc/apache2/mods-available/passenger.load</span><br />
<span style="color: #666666; font-style: italic;"># http://mozketo.com/phusion-passenger-on-ubuntu-9-10/</span><br />
<br />
LoadModule passenger_module <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-2.2.13<span style="color: #000000; font-weight: bold;">/</span>ext<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mod_passenger.so<br />
<br />
<span style="color: #666666; font-style: italic;"># /etc/apache2/mods-available/passenger.conf:</span><br />
<br />
<span style="color: #000000; font-weight: bold;">&lt;</span>IfModule passenger_module<span style="color: #000000; font-weight: bold;">&gt;</span><br />
&nbsp; &nbsp;PassengerRoot <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-2.2.13<br />
&nbsp; &nbsp;PassengerRuby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8<br />
<span style="color: #000000; font-weight: bold;">&lt;/</span>IfModule<span style="color: #000000; font-weight: bold;">&gt;</span></div></td></tr></tbody></table></div>
<p>I setup the virtual host as follows,</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># /etc/apache2/sites-available/webapps.local</span><br />
<span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&gt;</span><br />
&nbsp; &nbsp; &nbsp;ServerName webapps.local<br />
&nbsp; &nbsp; &nbsp;ServerAlias <span style="color: #000000; font-weight: bold;">*</span>.webapps.local<br />
&nbsp; &nbsp; &nbsp;DocumentRoot <span style="color: #ff0000;">&quot;/home/mike/Desktop/webapps/&quot;</span><br />
&nbsp; &nbsp; &nbsp;RailsEnv development<br />
&nbsp; &nbsp; &nbsp;RailsBaseURI <span style="color: #000000; font-weight: bold;">/</span>myapp<br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #ff0000;">&quot;/home/mike/Desktop/webapps/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; AllowOverride all<br />
&nbsp; &nbsp; &nbsp; &nbsp; Options <span style="color: #660033;">-MultiViews</span> <br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span><br />
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> a2ensite webapps.local<br />
<span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod rewrite<br />
<span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod passenger<br />
<span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</div></td></tr></tbody></table></div>
<p>To make development a bit easier I setup the following symlink,</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># sym link</span><br />
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> ~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>railapps<span style="color: #000000; font-weight: bold;">/</span>myapp<span style="color: #000000; font-weight: bold;">/</span>public ~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>webapps<span style="color: #000000; font-weight: bold;">/</span>myapp</div></td></tr></tbody></table></div>
<p>The hosts file on the server needed a bit of changes as well</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts<br />
<br />
<span style="color: #666666; font-style: italic;"># /etc/hosts</span><br />
127.0.0.1 &nbsp; localhost<br />
127.0.1.1 &nbsp; ubuntuServer<br />
127.0.0.1 &nbsp; webapps.local<br />
<br />
<span style="color: #666666; font-style: italic;"># The following lines are desirable for IPv6 capable hosts</span><br />
::<span style="color: #000000;">1</span> &nbsp; &nbsp; localhost ip6-localhost ip6-loopback<br />
fe00::<span style="color: #000000;">0</span> ip6-localnet<br />
ff00::<span style="color: #000000;">0</span> ip6-mcastprefix<br />
ff02::<span style="color: #000000;">1</span> ip6-allnodes<br />
ff02::<span style="color: #000000;">2</span> ip6-allrouters</div></td></tr></tbody></table></div>
<p>&#8230;and on my iMac as well,</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">@</span>iMac27:~$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts<br />
<span style="color: #666666; font-style: italic;">##</span><br />
<span style="color: #666666; font-style: italic;"># Host Database</span><br />
<span style="color: #666666; font-style: italic;">#</span><br />
<span style="color: #666666; font-style: italic;"># localhost is used to configure the loopback interface</span><br />
<span style="color: #666666; font-style: italic;"># when the system is booting. &nbsp;Do not change this entry.</span><br />
<span style="color: #666666; font-style: italic;">##</span><br />
127.0.0.1 &nbsp; &nbsp; &nbsp; localhost<br />
10.0.0.20 &nbsp; &nbsp; &nbsp; webapps.local<br />
<br />
255.255.255.255 broadcasthost<br />
::<span style="color: #000000;">1</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; localhost <br />
fe80::<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">%</span>lo0 localhost</div></td></tr></tbody></table></div>
<p>Here&#8217;s a snippet of an active rails app,</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>railapps<span style="color: #000000; font-weight: bold;">/</span>myapp$ <span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-f</span> log<span style="color: #000000; font-weight: bold;">/</span>development.log<br />
<span style="color: #666666; font-style: italic;"># ..</span><br />
Processing UsersController<span style="color: #666666; font-style: italic;">#index (for 172.16.7.113 at 2010-06-03 11:32:37) [GET]</span><br />
&nbsp; User Load <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.1ms<span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; SELECT <span style="color: #000000; font-weight: bold;">*</span> FROM <span style="color: #ff0000;">&quot;users&quot;</span> <br />
Rendering template within layouts<span style="color: #000000; font-weight: bold;">/</span>application<br />
Rendering users<span style="color: #000000; font-weight: bold;">/</span>index<br />
Completed <span style="color: #000000; font-weight: bold;">in</span> 29ms <span style="color: #7a0874; font-weight: bold;">&#40;</span>View: 16, DB: 1<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">|</span> 200 OK <span style="color: #7a0874; font-weight: bold;">&#91;</span>http:<span style="color: #000000; font-weight: bold;">//</span>webapps.local<span style="color: #000000; font-weight: bold;">/</span>myapp<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">users</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #666666; font-style: italic;"># ..</span></div></td></tr></tbody></table></div>
<p>To restart an app, one only needs to &#8216;touch&#8217; it&#8230;how cute!</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:~<span style="color: #000000; font-weight: bold;">/</span>Desktop$ <span style="color: #c20cb9; font-weight: bold;">touch</span> webapps<span style="color: #000000; font-weight: bold;">/</span>myapp<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>restart.txt</div></td></tr></tbody></table></div>
<h3>References</h3>
<p>(1) <a href="http://ubuntuforums.org/showthread.php?t=1459056&#038;page=1">[all variants] Install Ruby on Rails &#8211; Lucid Lynx</a><br />
(2) <a href="http://mozketo.com/phusion-passenger-on-ubuntu-9-10/">Phusion Passenger on Ubuntu 9.10</a><br />
(3) <a href="http://wiki.rubyonrails.org/getting-started/installation/linux?s[]=apache&#038;s[]=ruby&#038;s[]=rails">Installing Ruby on Rails on Debian/Ubuntu</a><br />
(4) <a href="http://davedupre.com/2009/03/23/replacing-mongrel-with-passenger-mod_rails/">Replacing Mongrel with Passenger (mod_rails)</a><br />
(5) <a href="http://wiki.rubyonrails.org/deployment/apache-passenger">Passenger</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bsodmike.com/2010/06/05/howto-ruby-on-rails-with-apache-passenger-mod_rails-ubuntu-lucid-lynx-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better VNC in Ubuntu 10.04 Lucid Lynx with x11vnc</title>
		<link>http://blog.bsodmike.com/2010/06/01/better-vnc-in-ubuntu-karmic-koala-with-x11vnc/</link>
		<comments>http://blog.bsodmike.com/2010/06/01/better-vnc-in-ubuntu-karmic-koala-with-x11vnc/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 13:04:33 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Linux and Mac]]></category>
		<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VNC]]></category>

		<guid isPermaLink="false">http://blog.bsodmike.com/?p=233</guid>
		<description><![CDATA[Been working with Ubuntu Lucid a bit over the past few days and am not a big fan of the Vino VNC &#8220;Remote Desktop&#8221;.  The problem is that it doesn&#8217;t persist when logged out.  To get around this I setup x11vnc as per the HOWTO referenced at the end of this post.
Running it [...]]]></description>
			<content:encoded><![CDATA[<p>Been working with Ubuntu Lucid a bit over the past few days and am not a big fan of the Vino VNC &#8220;Remote Desktop&#8221;.  The problem is that it doesn&#8217;t persist when logged out.  To get around this I setup x11vnc as per the HOWTO referenced at the end of this post.</p>
<p>Running it is quite simple, first ssh as follow:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">5900</span>:localhost:<span style="color: #000000;">5900</span> yourUserName<span style="color: #000000; font-weight: bold;">@</span>serverIP</div></td></tr></tbody></table></div>
<p>To bring up the login window for your &#8216;user&#8217; account, run the following as root:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root<span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:~<span style="color: #666666; font-style: italic;"># x11vnc -auth /home/someuser/.Xauthority -rfbauth ~/.vnc/passwd -display :0</span></div></td></tr></tbody></table></div>
<p>At this stage, simply connect with ChickenVNC.  VNC login password has been setup as per the referred guide and stored in the above mentioned location.  Remember, when running the above at root, you need to recreate the password in &#8216;/root/.vnc&#8217; &#8211; the root users home directory.</p>
<h3>VNC Tunneling via SSH</h3>
<p>In the very first ssh command, by using the &#8216;-L&#8217; flag we bind the a port on the server we SSH to with a port defined on our host &#8211; localhost.  This port has, for this example at least, chosen as 5900.  We also force X11 forwarding,</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-X</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">5900</span>:localhost:<span style="color: #000000;">5900</span> yourUserName<span style="color: #000000; font-weight: bold;">@</span>serverIP</div></td></tr></tbody></table></div>
<p>Ensure your <strong>/etc/ssh/ssh_config</strong> file is edited properly as well (<a href="http://mikewilliamson.wordpress.com/2006/08/16/x11-forwarding-over-ssh/">here</a>) &#038; (<a href="http://itg.chem.indiana.edu/inc/wiki/software/openssh/200.html">here</a>).</p>
<p>Achieve SSH tunnelling by using the &#8216;-localhost&#8217; flag as follows:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root<span style="color: #000000; font-weight: bold;">@</span>ubuntuServer:~<span style="color: #666666; font-style: italic;"># x11vnc -auth /home/someuser/.Xauthority -rfbauth ~/.vnc/passwd -localhost -display :0</span></div></td></tr></tbody></table></div>
<p>Now just connect ChickenVNC, or your VNC viewer of choice, to localhost:0 (with the chosen password if needed) to connect with SSH tunnelling!</p>
<h3>Reference:</h3>
<p>(1) <a href="http://ubuntuforums.org/showthread.php?t=45565">HOWTO: Share desktops with x11vnc instead of built-in Remote Desktop</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bsodmike.com/2010/06/01/better-vnc-in-ubuntu-karmic-koala-with-x11vnc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Patching CyanogenMOD v5.0.6 to Froyo FRF50</title>
		<link>http://blog.bsodmike.com/2010/05/25/patching-cyanogenmod-v5-0-6-to-froyo-frf50/</link>
		<comments>http://blog.bsodmike.com/2010/05/25/patching-cyanogenmod-v5-0-6-to-froyo-frf50/#comments</comments>
		<pubDate>Tue, 25 May 2010 05:11:55 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Gadgets and Tech]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[CyanogenMod]]></category>
		<category><![CDATA[Froyo FRF50]]></category>
		<category><![CDATA[Google Nexus One]]></category>

		<guid isPermaLink="false">http://blog.bsodmike.com/?p=230</guid>
		<description><![CDATA[Android 2.2 &#8220;Froyo&#8221; was announced officially announced on the 20th of May, less than a week back.
Just yesterday, I decided it was time that I looked into upgrading to Froyo and decided to first check with my mate Doug (@dougedey) and he directed me to this thread on MoDaCo.
Step one was to ensure the downloaded [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.engadget.com/2010/05/21/android-2-2-froyo-everything-you-ever-wanted-to-know/">Android 2.2 &#8220;Froyo&#8221;</a> was announced officially announced on the 20th of May, less than a week back.</p>
<p>Just yesterday, I decided it was time that I looked into upgrading to Froyo and decided to first check with my mate Doug (@dougedey) and he directed me to this <a href="http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/309286/24-may-frf50-froyo-pre-rooted-update-zip-no-radio-option-online-kitchen/">thread on MoDaCo.</a></p>
<p>Step one was to ensure the downloaded file&#8217;s hash matched that listed next in the thread:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bsodmike<span style="color: #000000; font-weight: bold;">@</span>iMac27:~<span style="color: #000000; font-weight: bold;">/</span>Desktop$ openssl md5 update-nexusone-FRF50-signed.zip<br />
MD5<span style="color: #7a0874; font-weight: bold;">&#40;</span>update-nexusone-FRF50-signed.zip<span style="color: #7a0874; font-weight: bold;">&#41;</span>= 946229291ed8e24cd80aeb4a66ca2fc7</div></td></tr></tbody></table></div>
<p>It was quite straight forward from this point.  I simply copied the zip to the root of the SD card on my Nexus One and checked the MD5 hash on the device as well &#8211; after copying it across.  It took a bit longer considering mine is a Class 2 Sandisk 8 GB MicroSDHC card.</p>
<p>My apps had already been backed up, and any new ones were automatically copied to the SD card thanks to App2SD in CyanogenMOD v5.0.6.  Everything else was backed up too (from SMSs to Call Logs); the rest was of course synced with the Google cloud.</p>
<p><img src="http://farm5.static.flickr.com/4048/4637569057_aec8f1d5ed_o.jpg"/></p>
<p>The screen changed to this icon for a while as the radio was updated, I just had to wait it out&#8230;</p>
<p><img src="http://farm5.static.flickr.com/4057/4638179024_d2ec373d48_o.jpg"/></p>
<p>The process terminated at this prompt, with nothing else.  I noticed that Amon_RA&#8217;s Recovery menu was active again and just did a reboot.</p>
<p><img src="http://farm5.static.flickr.com/4038/4637569251_c0f62a9c3d_o.jpg"/></p>
<h3>Observations:</h3>
]]></content:encoded>
			<wfw:commentRss>http://blog.bsodmike.com/2010/05/25/patching-cyanogenmod-v5-0-6-to-froyo-frf50/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
