<?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>Samson&#039;s Weblog &#187; Linux</title>
	<atom:link href="http://blog.samsonis.me/category/technique/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.samsonis.me</link>
	<description>天与弗取，反受其咎；时至不行，反受其殃</description>
	<lastBuildDate>Sun, 29 Jan 2012 13:53:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>OpenExplorer Eclipse Plugin 1.5.0</title>
		<link>http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/</link>
		<comments>http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 08:24:46 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Open Explorer]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=3325</guid>
		<description><![CDATA[Thanks to jdkcn, Open Explorer now supports multiple file managers (not only nautilus) in Linux, it will detect your system file manager and use that by default i. I also added a preferences page for this, so you can customize it if the default doesn&#8217;t make you happy. To upgrade, simply replace the plugin jar ...]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="https://github.com/samsonw/OpenExplorer/pull/2" target="_blank">jdkcn</a>, Open Explorer now supports multiple file managers (not only nautilus) in Linux, it will detect your system file manager and use that by default <sup><a href="http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/#footnote_0_3325" id="identifier_0_3325" class="footnote-link footnote-identifier-link" title="dolphin (KDE), nautilus (Gnome), thunar (xfce), pcmanfm (lxde), rox, xdg-open, etc">i</a></sup>.  I also added a preferences page for this, so you can customize it if the default doesn&#8217;t make you happy.</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/08/Open-Explorer-Preferences.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/08/Open-Explorer-Preferences-300x228.png" alt="" title="Open Explorer Preferences" width="300" height="228" class="alignnone size-medium wp-image-3331" /></a></p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/08/File-Manager-Preferences.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/08/File-Manager-Preferences-300x222.png" alt="" title="File Manager Preferences" width="300" height="222" class="alignnone size-medium wp-image-3332" /></a></p>
<p>To upgrade, simply replace the plugin jar file, you can always download the latest version<sup><a href="http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/#footnote_1_3325" id="identifier_1_3325" class="footnote-link footnote-identifier-link" title="1.5.0.v201108051513">ii</a></sup> from <a href="https://github.com/samsonw/OpenExplorer/downloads" title="OpenExplorer downloads" target="_blank">here</a>.</p>
[Footnotes]<ol class="footnotes"><li id="footnote_0_3325" class="footnote">dolphin (KDE), nautilus (Gnome), thunar (xfce), pcmanfm (lxde), rox, xdg-open, etc</li><li id="footnote_1_3325" class="footnote">1.5.0.v201108051513</li></ol>
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2010/10/release-openexplorer-eclipse-plugin-1-1-0/" title="Release OpenExplorer Eclipse Plugin 1.1.0 (October 12, 2010)">Release OpenExplorer Eclipse Plugin 1.1.0</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-4-0/" title="OpenExplorer Eclipse Plugin 1.4.0 (July 20, 2011)">OpenExplorer Eclipse Plugin 1.4.0</a> (1)</li>
	<li><a href="http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-3-0/" title="OpenExplorer Eclipse Plugin 1.3.0 (July 19, 2011)">OpenExplorer Eclipse Plugin 1.3.0</a> (3)</li>
	<li><a href="http://blog.samsonis.me/2011/01/openexplorer-eclipse-plugin-1-2-0/" title="OpenExplorer Eclipse Plugin 1.2.0 (January 17, 2011)">OpenExplorer Eclipse Plugin 1.2.0</a> (5)</li>
	<li><a href="http://blog.samsonis.me/2009/02/open-explorer-plugin-for-eclipse/" title="Open Explorer Plugin for Eclipse (February 4, 2009)">Open Explorer Plugin for Eclipse</a> (22)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenExplorer Eclipse Plugin 1.4.0</title>
		<link>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-4-0/</link>
		<comments>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-4-0/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 14:31:31 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Open Explorer]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=3310</guid>
		<description><![CDATA[Alright, this time I will let all the screenshots speak, as they&#8217;re inherently international. So, what&#8217;s new? anything else? Yeah! Okay, that&#8217;s the new stuff, what about our old friend? It turns out&#8230; Want to have a try? I know you want :) Related posts Release OpenExplorer Eclipse Plugin 1.1.0 (0) OpenExplorer Eclipse Plugin 1.5.0 ...]]></description>
			<content:encoded><![CDATA[<p>Alright, this time I will let all the screenshots speak, as they&#8217;re inherently international.</p>
<p>So, what&#8217;s new?</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer-Navigator-popup.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer-Navigator-popup-300x182.png" alt="" title="OpenExplorer Navigator popup" width="300" height="182" class="alignnone size-medium wp-image-3312" /></a></p>
<p>anything else?  Yeah!</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer-editor-popup.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer-editor-popup-300x182.png" alt="" title="OpenExplorer editor popup" width="300" height="182" class="alignnone size-medium wp-image-3313" /></a><br />
<span id="more-3310"></span><br />
Okay, that&#8217;s the new stuff, what about our old friend?  It turns out&#8230;</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer-300x182.png" alt="" title="OpenExplorer" width="300" height="182" class="alignnone size-medium wp-image-3318" /></a></p>
<p>Want to <a href="https://github.com/samsonw/OpenExplorer/downloads" title="OpenExplorer downloads" target="_blank">have a try</a>?  I know you want :)</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2010/10/release-openexplorer-eclipse-plugin-1-1-0/" title="Release OpenExplorer Eclipse Plugin 1.1.0 (October 12, 2010)">Release OpenExplorer Eclipse Plugin 1.1.0</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/" title="OpenExplorer Eclipse Plugin 1.5.0 (August 5, 2011)">OpenExplorer Eclipse Plugin 1.5.0</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-3-0/" title="OpenExplorer Eclipse Plugin 1.3.0 (July 19, 2011)">OpenExplorer Eclipse Plugin 1.3.0</a> (3)</li>
	<li><a href="http://blog.samsonis.me/2011/01/openexplorer-eclipse-plugin-1-2-0/" title="OpenExplorer Eclipse Plugin 1.2.0 (January 17, 2011)">OpenExplorer Eclipse Plugin 1.2.0</a> (5)</li>
	<li><a href="http://blog.samsonis.me/2009/02/open-explorer-plugin-for-eclipse/" title="Open Explorer Plugin for Eclipse (February 4, 2009)">Open Explorer Plugin for Eclipse</a> (22)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-4-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenExplorer Eclipse Plugin 1.3.0</title>
		<link>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-3-0/</link>
		<comments>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-3-0/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 08:15:32 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Open Explorer]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=3297</guid>
		<description><![CDATA[Essentially, this is just a bug-fixing and maintaining release. In this release, we addressed an issue on linux platform (with nautilus installed, currently seems all bugs are reported from ubuntu), similar to this one. I&#8217;ve thoroughly tested it in Eclipse Galileo (3.5), Helios (3.6), Indigo (3.7) on Mac OS X 10.6.8, Linux (Ubuntu 11.04) and ...]]></description>
			<content:encoded><![CDATA[<p>Essentially, this is just a bug-fixing and maintaining release.  In this release, we addressed an issue on linux platform (with nautilus installed, currently seems all bugs are reported from ubuntu), similar to <a href="http://blog.samsonis.me/2011/01/openexplorer-eclipse-plugin-1-2-0/#comment-1716">this one</a>.</p>
<p>I&#8217;ve thoroughly tested it in Eclipse Galileo (3.5), Helios (3.6), Indigo (3.7) on Mac OS X 10.6.8, Linux (Ubuntu 11.04) and Windows XP.  While I try my best to maintain the plugin compatibility with the latest Eclipse version and latest OS release, it does may have some backward compatible issue.  If you encounter any problems, please consider upgrading your eclipse and OS to the latest version and try again.  If this doesn&#8217;t solve the problem, please do not hesitate to report defects <a href="https://github.com/samsonw/OpenExplorer/issues" title="github issues" target="_blank">here</a> or simply leave comments below.</p>
<p>This project is hosting on <a href="https://github.com/samsonw/OpenExplorer" title="OpenExplorer" target="_blank">github</a> and the latest release can be downloaded here:<br />
<a href="https://github.com/samsonw/OpenExplorer/downloads" title="OpenExplorer downloads" target="_blank">https://github.com/samsonw/OpenExplorer/downloads</a></p>
<p>To upgrade the plugin, just replace the jar package in your $ECLIPSE_HOME/plugins or $ECLIPSE_HOME/dropins directory.</p>
<p>Last but not least, thanks for all the support and feedback so far.  I hope you enjoy it.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2010/10/release-openexplorer-eclipse-plugin-1-1-0/" title="Release OpenExplorer Eclipse Plugin 1.1.0 (October 12, 2010)">Release OpenExplorer Eclipse Plugin 1.1.0</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/" title="OpenExplorer Eclipse Plugin 1.5.0 (August 5, 2011)">OpenExplorer Eclipse Plugin 1.5.0</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-4-0/" title="OpenExplorer Eclipse Plugin 1.4.0 (July 20, 2011)">OpenExplorer Eclipse Plugin 1.4.0</a> (1)</li>
	<li><a href="http://blog.samsonis.me/2011/01/openexplorer-eclipse-plugin-1-2-0/" title="OpenExplorer Eclipse Plugin 1.2.0 (January 17, 2011)">OpenExplorer Eclipse Plugin 1.2.0</a> (5)</li>
	<li><a href="http://blog.samsonis.me/2009/02/open-explorer-plugin-for-eclipse/" title="Open Explorer Plugin for Eclipse (February 4, 2009)">Open Explorer Plugin for Eclipse</a> (22)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-3-0/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ArchLinux, RVM, Ruby, Rails, Nginx, Passenger and You</title>
		<link>http://blog.samsonis.me/2011/03/archlinux-rvm-ruby-rails-nginx-passenger-and-you/</link>
		<comments>http://blog.samsonis.me/2011/03/archlinux-rvm-ruby-rails-nginx-passenger-and-you/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 13:50:08 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[ArchLinux]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[RVM]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=2938</guid>
		<description><![CDATA[没看错，就是ArchLinux，怎么，又回来了？其实我一直未曾离开…… i 好了不矫情了，let&#8217;s do business. [Overview] 本文介绍如何在archlinux上快速搭建rails开发环境，其中有很多可能包括我个人的preferences，各位完全可以根据自行需要取舍。 [ArchLinux] 参照Arch自己的 Official Install Guide ii 安装，其实根本不用参照，整个安装wizard做的已经非常非常user friendly了，我觉得。 [RVM] RVM 的安装依赖 git 和 curl： $ sudo pacman -S git curl 装之： $ bash &#60; &#60;&#40; curl http://rvm.beginrescueend.com/releases/rvm-install-head &#41; 注意没有sudo，符合homebrew的philosophy，尽量不要root，何况我们还是作为development环境，rvm官网好像现在已经没有倾向性了，不过我印象中以前也是倾向于装在user的home目录。 同样是非常友好的安装过程，参照提示，在.bash_profile或者.bashrc的最后添加一行 Load 代码（如果你用的是bash的话）： $ echo '[[ -s &#34;$HOME/.rvm/scripts/rvm&#34; ]] &#38;&#38; . &#34;$HOME/.rvm/scripts/rvm&#34;' &#62;&#62; ~/.bashrc 我还喜欢shell补全，如果你也喜欢，再加上一句即可： $ echo '[[ -r ...]]></description>
			<content:encoded><![CDATA[<p>没看错，就是ArchLinux，怎么，又<a href="http://blog.samsonis.me/tag/archlinux/">回来了</a>？其实我一直未曾离开…… <sup><a href="http://blog.samsonis.me/2011/03/archlinux-rvm-ruby-rails-nginx-passenger-and-you/#footnote_0_2938" id="identifier_0_2938" class="footnote-link footnote-identifier-link" title="我有一个arch的liveusb，各种机子上一直保存着至少2+个arch的vm，虽然后来由于太占空间被转移到了移动硬盘，可就是一直舍不得删">i</a></sup></p>
<p>好了不矫情了，let&#8217;s do business.</p>
<p><span style="text-decoration: underline;">[Overview]</span><br />
本文介绍如何在archlinux上快速搭建rails开发环境，其中有很多可能包括我个人的preferences，各位完全可以根据自行需要取舍。</p>
<p><span style="text-decoration: underline;">[ArchLinux]</span><br />
参照Arch自己的 <a href="https://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide">Official Install Guide</a> <sup><a href="http://blog.samsonis.me/2011/03/archlinux-rvm-ruby-rails-nginx-passenger-and-you/#footnote_1_2938" id="identifier_1_2938" class="footnote-link footnote-identifier-link" title="最近老是official, official的&hellip; 你懂的">ii</a></sup> 安装，其实根本不用参照，整个安装wizard做的已经非常非常user friendly了，我觉得。</p>
<p><span style="text-decoration: underline;">[RVM]</span><br />
<a href="http://rvm.beginrescueend.com/">RVM</a> 的安装依赖 git 和 curl：</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> pacman <span style="color: #660033;">-S</span> git curl</div></div>
<p>装之：</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">bash</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span> curl http:<span style="color: #000000; font-weight: bold;">//</span>rvm.beginrescueend.com<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>rvm-install-head <span style="color: #7a0874; font-weight: bold;">&#41;</span></div></div>
<p>注意没有sudo，符合homebrew的philosophy，尽量不要root，何况我们还是作为development环境，<a href="http://rvm.beginrescueend.com/rvm/install/">rvm官网</a>好像现在已经没有倾向性了，不过我印象中以前也是倾向于装在user的home目录。<br />
<span id="more-2938"></span><br />
同样是非常友好的安装过程，参照提示，在.bash_profile或者.bashrc的最后添加一行 Load 代码（如果你用的是bash的话）：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'[[ -s &quot;$HOME/.rvm/scripts/rvm&quot; ]] &amp;&amp; . &quot;$HOME/.rvm/scripts/rvm&quot;'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.bashrc</div></div>
<p>我还喜欢shell补全，如果你也喜欢，再加上一句即可：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'[[ -r $rvm_path/scripts/completion ]] &amp;&amp; . $rvm_path/scripts/completion'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.bashrc</div></div>
<p>最后查看一下notes，看看所在平台有什么注意事项：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rvm notes</div></div>
<p><span style="text-decoration: underline;">[Ruby]</span><br />
这里我们用rvm安装ruby，如果你喜欢也可以pacman -S之，我查了下，arch repo里的ruby是1.9.2，patch level也是最新的180，不过rvm的好处是可以安装好几个ruby版本，且能够非常方便的帮你维护不同的gemset，非常像python里面的<a href="http://pypi.python.org/pypi/virtualenv">virtualenv</a>.</p>
<p>安装最新的ruby 1.9.2:</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rvm <span style="color: #c20cb9; font-weight: bold;">install</span> 1.9.2</div></div>
<p>如果需要也可以装上1.8.7的：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rvm <span style="color: #c20cb9; font-weight: bold;">install</span> 1.8.7</div></div>
<p>下载编译安装完后我们就可以使用了，我喜欢把ruby 1.9.2，gemset rails3作为我的default：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rvm use 1.9.2<span style="color: #000000; font-weight: bold;">@</span>rails3 <span style="color: #660033;">--create</span> <span style="color: #660033;">--default</span></div></div>
<p>verify一下我们是否还是 so far so good：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><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;">which</span> ruby<br />
<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>samson<span style="color: #000000; font-weight: bold;">/</span>.rvm<span style="color: #000000; font-weight: bold;">/</span>rubies<span style="color: #000000; font-weight: bold;">/</span>ruby-1.9.2-p180<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby<br />
$ ruby <span style="color: #660033;">-v</span><br />
ruby 1.9.2p180 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2011</span>-02-<span style="color: #000000;">18</span> revision <span style="color: #000000;">30909</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>x86_64-linux<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></div>
<p><span style="text-decoration: underline;">[Rails]</span><br />
安装rails 3，最新的是3.0.5:</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails</div></div>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><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;">which</span> rails<br />
<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>samson<span style="color: #000000; font-weight: bold;">/</span>.rvm<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>ruby-1.9.2-p180<span style="color: #000000; font-weight: bold;">@</span>rails3<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rails<br />
$ rails <span style="color: #660033;">-v</span><br />
Rails 3.0.5</div></div>
<p>创建一个project做demo：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rails new demo</div></div>
<p>bundle一下，确保所有依赖的gem都已安装，这里会把sqlite3给补上:</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">cd</span> demo<br />
$ bundle</div></div>
<p>又一个milestone，测试一下：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rails s</div></div>
<p><span style="text-decoration: underline;">[Nginx &#038; Passenger]</span><br />
不用apache，让我们换nginx玩玩；由于passenger的nginx模块安装的时候需要重新编译nginx，所以 pacman -S nginx 似乎是没有意义的，我们这里先skip掉，先安装passenger，然后在编译安装passenger的nginx模块的时候把nginx一并搞定。</p>
<p>安装passenger：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ gem <span style="color: #c20cb9; font-weight: bold;">install</span> passenger</div></div>
<p>安装passenger的nginx模块，同时安装nginx，默认的nginx安装地址是/opt/nginx（可以修改到不需要root的地址），需要root，我们可以用rvmsudo搞定：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rvmsudo passenger-install-nginx-module</div></div>
<p>again，友好至极，装完连配置文件都帮你改好了，不过检查一下总不会错：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><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;">grep</span> <span style="color: #ff0000;">&quot;passenger&quot;</span> nginx.conf<br />
&nbsp; &nbsp; passenger_root <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>samson<span style="color: #000000; font-weight: bold;">/</span>.rvm<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>ruby-1.9.2-p180<span style="color: #000000; font-weight: bold;">@</span>rails3<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-3.0.5;<br />
&nbsp; &nbsp; passenger_ruby <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>samson<span style="color: #000000; font-weight: bold;">/</span>.rvm<span style="color: #000000; font-weight: bold;">/</span>wrappers<span style="color: #000000; font-weight: bold;">/</span>ruby-1.9.2-p180<span style="color: #000000; font-weight: bold;">@</span>rails3<span style="color: #000000; font-weight: bold;">/</span>ruby;</div></div>
<p>配置一下，来跑一下之前创建的demo project：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">server <span style="color: #7a0874; font-weight: bold;">&#123;</span>¬<br />
&nbsp; listen <span style="color: #000000;">80</span>;¬<br />
&nbsp; server_name demo.local;¬<br />
&nbsp; root <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>samson<span style="color: #000000; font-weight: bold;">/</span>code<span style="color: #000000; font-weight: bold;">/</span>demo<span style="color: #000000; font-weight: bold;">/</span>public;¬<br />
&nbsp; passenger_enabled on;¬<br />
&nbsp; rails_env development;¬<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span>¬</div></div>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>nginx</div></div>
<p>我取的server name时demo.local，所以在hosts里面加上这条entry后，我们就可以用browser访问 http://demo.local 了.</p>
<p>如果遇到403 forbidden，在nginx.conf里面改下user即可：</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">user samson <span style="color: #c20cb9; font-weight: bold;">users</span>;</div></div>
<p>reload, welcome aboard!</p>
<div class="codecolorer-container bash railscasts" style="border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>nginx <span style="color: #660033;">-s</span> reload</div></div>
[Footnotes]<ol class="footnotes"><li id="footnote_0_2938" class="footnote">我有一个arch的liveusb，各种机子上一直保存着至少2+个arch的vm，虽然后来由于太占空间被转移到了移动硬盘，可就是一直舍不得删</li><li id="footnote_1_2938" class="footnote">最近老是official, official的… 你懂的</li></ol>
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2009/06/redmine-on-archlinux/" title="Redmine on Archlinux (June 30, 2009)">Redmine on Archlinux</a> (6)</li>
	<li><a href="http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/" title="Install Ruby on Rails on Archlinux (June 30, 2009)">Install Ruby on Rails on Archlinux</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2009/05/safeboot%e5%8f%8c%e7%b3%bb%e7%bb%9f%e5%bc%95%e5%af%bc/" title="SafeBoot双系统引导 (May 12, 2009)">SafeBoot双系统引导</a> (29)</li>
	<li><a href="http://blog.samsonis.me/2011/12/downgrade-rubygems/" title="Downgrade Rubygems (December 5, 2011)">Downgrade Rubygems</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2009/02/archlinux%e4%b8%8b%e7%9a%84%e6%97%b6%e9%97%b4%e6%97%b6%e5%8c%ba%e8%ae%be%e7%bd%ae/" title="Archlinux下的时间时区设置 (February 13, 2009)">Archlinux下的时间时区设置</a> (15)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2011/03/archlinux-rvm-ruby-rails-nginx-passenger-and-you/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Redmine on Archlinux</title>
		<link>http://blog.samsonis.me/2009/06/redmine-on-archlinux/</link>
		<comments>http://blog.samsonis.me/2009/06/redmine-on-archlinux/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 05:07:57 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[ArchLinux]]></category>
		<category><![CDATA[Redmine]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=956</guid>
		<description><![CDATA[[Overview] This entry will describe a basic installation and configuration of redmine, a flexible and cross-platform project management web application, on an archlinux system. For the official installation guide, please refer this wiki page. [Preparation] 1. Download the latest stable release of redmine (0.8.4) from rubyforge: $ wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz 2. Install ruby and ruby on ...]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">[Overview]</span><br />
This entry will describe a basic installation and configuration of <a href="http://www.redmine.org/">redmine</a>, a flexible and cross-platform project management web application, on an archlinux system.</p>
<p>For the official installation guide, please refer this <a href="http://www.redmine.org/wiki/redmine/RedmineInstall">wiki page</a>.</p>
<p><span style="text-decoration: underline;">[Preparation]</span><br />
1. Download the latest stable release of redmine (0.8.4) from <a href="http://rubyforge.org/frs/?group_id=1850">rubyforge</a>:</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz</div></div>
<p>2. <a href="http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/">Install ruby and ruby on rails</a><br />
(Notes: rails is optional since the redmine official release we download above already include the appropriate rails version (2.1.2) in its vendor directory)</p>
<p>3. Make sure rubygems and rake meet the version requirement of redmine:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gem <span style="color: #660033;">-v</span> <span style="color: #000000; font-weight: bold;">&gt;</span>= 1.3.1</div></div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rake <span style="color: #660033;">--version</span> <span style="color: #000000; font-weight: bold;">&gt;</span>= 0.8.3</div></div>
<p><span id="more-956"></span><br />
<span style="text-decoration: underline;">[Database]</span><br />
mysql is the recommended database of redmine, so here we will use mysql:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> pacman <span style="color: #660033;">-S</span> mysql</div></div>
<p>start mysql:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>mysqld start</div></div>
<p>refer this <a href="http://wiki.archlinux.org/index.php/MySQL">wiki page</a> for more information about mysql installation.</p>
<p><span style="text-decoration: underline;">[Basic installation]</span><br />
<span style="text-decoration: underline;">step 1</span>: create redmine db with user &#8220;redmine&#8221;</p>
<div class="codecolorer-container mysql railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ mysql <span style="color: #CC0099;">-</span>u root <span style="color: #CC0099;">-</span>p<br />
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">create</span> <span style="color: #990099; font-weight: bold;">database</span> redmine character <span style="color: #990099; font-weight: bold;">set</span> utf8<span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">create</span> <span style="color: #000099;">user</span> <span style="color: #008000;">'redmine'</span>@<span style="color: #008000;">'localhost'</span> identified by <span style="color: #008000;">'password'</span><span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">grant</span> <span style="color: #990099; font-weight: bold;">all</span> <span style="color: #990099; font-weight: bold;">privileges</span> <span style="color: #990099; font-weight: bold;">on</span> redmine.<span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">to</span> <span style="color: #008000;">'redmine'</span>@<span style="color: #008000;">'localhost'</span><span style="color: #000033;">;</span></div></div>
<p><span style="text-decoration: underline;">step 2</span>: configure redmine database settings for &#8220;production&#8221; environment</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">cd</span> redmine-0.8.4<br />
$ <span style="color: #c20cb9; font-weight: bold;">cp</span> config<span style="color: #000000; font-weight: bold;">/</span>database.yml.example config<span style="color: #000000; font-weight: bold;">/</span>database.yml</div></div>
<p>edit config/database.yml, make the production section looks like:</p>
<blockquote><p>production:<br />
adapter: mysql<br />
database: redmine<br />
host: localhost<br />
username: redmine<br />
password: password<br />
encoding: utf8</p></blockquote>
<p><span style="text-decoration: underline;">step 3</span>: create database structure and an administrator account</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rake db:migrate <span style="color: #007800;">RAILS_ENV</span>=<span style="color: #ff0000;">&quot;production&quot;</span></div></div>
<p>the default administrator account is:</p>
<blockquote><p>username: admin<br />
password: admin</p></blockquote>
<p><span style="text-decoration: underline;">step 4</span>: insert default configuration data in database</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rake redmine:load_default_data <span style="color: #007800;">RAILS_ENV</span>=<span style="color: #ff0000;">&quot;production&quot;</span></div></div>
<p>according to the official wiki, this step is optional but <em>highly recommended</em>.  It will load default roles, trackers, statuses, workflows and enumerations for our convenience.</p>
<p><span style="text-decoration: underline;">step 5</span>: test installation<br />
start mongrel:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ script<span style="color: #000000; font-weight: bold;">/</span>server <span style="color: #660033;">-e</span> production</div></div>
<p>point your browser to navigate http://server-domain-or-ip:3000/ to see the redmine welcome page, use the default admin account above to login.</p>
<p>redmine home:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/redmine-home.png"><img class="alignnone size-medium wp-image-1022" title="redmine home" src="http://blog.samsonis.me/wp-content/uploads/2009/06/redmine-home-300x217.png" alt="redmine home" width="300" height="217" /></a></p>
<p>redmine administration setting:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/redmine-admin-setting.png"><img class="alignnone size-medium wp-image-1023" title="redmine admin setting" src="http://blog.samsonis.me/wp-content/uploads/2009/06/redmine-admin-setting-300x217.png" alt="redmine admin setting" width="300" height="217" /></a></p>
<p><span style="text-decoration: underline;">[Deploy using phusion passenger (aka mod_rails)]</span><br />
<span style="text-decoration: underline;">step 1</span>: install passenger and its apache 2 module<br />
install passenger:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> passenger</div></div>
<p>install apache 2 module, please make sure g++, ruby, openssl and apache are installed before issue the command below:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> passenger-install-apache2-module</div></div>
<p>follow the screen instructions and pay attention to the console output, some of them will be used later.</p>
<p><span style="text-decoration: underline;">step 2</span>: deploy and set up permissions</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>http<span style="color: #000000; font-weight: bold;">/</span>rails<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> redmine-0.8.4 <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>http<span style="color: #000000; font-weight: bold;">/</span>rails<span style="color: #000000; font-weight: bold;">/</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> http:http <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>http<span style="color: #000000; font-weight: bold;">/</span>rails<span style="color: #000000; font-weight: bold;">/</span>redmine-0.8.4</div></div>
<p><span style="text-decoration: underline;">step 3</span>: configure apache to use passenger<br />
add one include at the end of httpd.conf:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Include conf/extra/httpd-rails.conf&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf</div></div>
<p>create the httpd-rails.conf:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>extra<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> httpd-rails.conf</div></div>
<p>edit httpd-rails.conf, follow the former console output and add the passenger configuration there, below is my configuration, yours may be differ:</p>
<blockquote><p>LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.so<br />
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4<br />
PassengerRuby /usr/bin/ruby</p>
<p>NameVirtualHost *:80</p>
<p>&lt;VirtualHost *:80&gt;<br />
&nbsp;&nbsp;ServerName SERVER-DOMAIN-OR-IP<br />
&nbsp;&nbsp;DocumentRoot /srv/http/rails/redmine-0.8.4/public<br />
&nbsp;&nbsp;RailsEnv production<br />
&nbsp;&nbsp;ErrorLog /var/log/httpd/rails_error_log<br />
&nbsp;&nbsp;CustomLog /var/log/httpd/rails_access_log common<br />
&lt;/VirtualHost&gt;</p></blockquote>
<p><span style="text-decoration: underline;">step 4</span>: restart apache and test installation</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>httpd restart</div></div>
<p>navigate http://SERVER-DOMAIN-OR-IP/ to see if anything is broken.</p>
<p><span style="text-decoration: underline;">[Optional components]</span><br />
we use subversion for repository browsing:</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo pacman -S subversion</div></div>
<p>and enable Gantt export to png image:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> pacman <span style="color: #660033;">-S</span> imagemagick<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rmagick</div></div>
<p><span style="text-decoration: underline;">[Themes]</span><br />
I like the Basecamp theme:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>http<span style="color: #000000; font-weight: bold;">/</span>rails<span style="color: #000000; font-weight: bold;">/</span>redmine-0.8.4<span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>themes<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.redmine.org<span style="color: #000000; font-weight: bold;">/</span>attachments<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1274</span><span style="color: #000000; font-weight: bold;">/</span>basecamp.zip<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">unzip</span> basecamp.zip<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> http:http basecamp<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> basecamp.zip</div></div>
<p>then the basecamp theme option is available in the drop-down list of &#8220;Theme&#8221; in the &#8220;General&#8221; tab under &#8220;Administration -&gt; Settings&#8221;.</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/redmine-basecamp.png"><img class="alignnone size-medium wp-image-1033" title="redmine basecamp" src="http://blog.samsonis.me/wp-content/uploads/2009/06/redmine-basecamp-300x217.png" alt="redmine basecamp" width="300" height="217" /></a></p>
<p><span style="text-decoration: underline;">[SMTP]</span><br />
to be continued&#8230;</p>
<p><span style="text-decoration: underline;">[Plugins]</span><br />
to be continued&#8230;</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/" title="Install Ruby on Rails on Archlinux (June 30, 2009)">Install Ruby on Rails on Archlinux</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/03/archlinux-rvm-ruby-rails-nginx-passenger-and-you/" title="ArchLinux, RVM, Ruby, Rails, Nginx, Passenger and You (March 30, 2011)">ArchLinux, RVM, Ruby, Rails, Nginx, Passenger and You</a> (3)</li>
	<li><a href="http://blog.samsonis.me/2009/05/safeboot%e5%8f%8c%e7%b3%bb%e7%bb%9f%e5%bc%95%e5%af%bc/" title="SafeBoot双系统引导 (May 12, 2009)">SafeBoot双系统引导</a> (29)</li>
	<li><a href="http://blog.samsonis.me/2009/02/archlinux%e4%b8%8b%e7%9a%84%e6%97%b6%e9%97%b4%e6%97%b6%e5%8c%ba%e8%ae%be%e7%bd%ae/" title="Archlinux下的时间时区设置 (February 13, 2009)">Archlinux下的时间时区设置</a> (15)</li>
	<li><a href="http://blog.samsonis.me/2009/02/archlinux-200902%e7%89%88%e6%9c%ac%e7%9a%84%e6%94%b9%e8%bf%9b/" title="ArchLinux 2009.02版本的改进 (February 16, 2009)">ArchLinux 2009.02版本的改进</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2009/06/redmine-on-archlinux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Install Ruby on Rails on Archlinux</title>
		<link>http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/</link>
		<comments>http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 17:57:41 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[ArchLinux]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=958</guid>
		<description><![CDATA[[Overview] Here we will install ruby on rails framework on our Archlinux box. For more detail information, please refer this wiki page. [Install ruby and rubygems] First we need to install ruby and its package system rubygems: $ sudo pacman -S ruby rubygems [Install rails] Next install rails via rubygems: $ sudo gem install rails ...]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">[Overview]</span><br />
Here we will install <a href="http://rubyonrails.org/">ruby on rails</a> framework on our Archlinux box.  For more detail information, please refer this <a href="http://wiki.archlinux.org/index.php/RubyOnRails">wiki page</a>.</p>
<p><span style="text-decoration: underline;">[Install ruby and rubygems]</span><br />
First we need to install ruby and its package system <a href="http://docs.rubygems.org/">rubygems</a>:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> pacman <span style="color: #660033;">-S</span> ruby rubygems</div></div>
<p><span style="text-decoration: underline;">[Install rails]</span><br />
Next install rails via rubygems:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails</div></div>
<p>gem will help us manage all the dependencies and download them automatically.</p>
<p>(Notes: if you execute the above command without being root (e.g. without sudo), gem will install rails in the home directory of the current user. Usually the directory is named after &#8220;.gem&#8221;, you probably need to manually add rails and rake bin directory to your PATH before you could use them, that may not be what you exactly want.)<br />
<span id="more-958"></span><br />
next install sqlite database since it&#8217;s rails&#8217;s default database:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> pacman <span style="color: #660033;">-S</span> ruby-sqlite3</div></div>
<p>rails supports a lot of modern databases, but here we will only use sqlite for simplicity.</p>
<p>Finally let&#8217;s replace rails build-in http server <a href="http://www.webrick.org/">webrick</a> with <a href="http://mongrel.rubyforge.org/">mongrel</a>, which is faster and more stable, and also rails community&#8217;s recommendation.</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mongrel</div></div>
<p><span style="text-decoration: underline;">[Test rails installation]</span><br />
All right, that&#8217;s it, pretty simple, isn&#8217;t it?  Next, let&#8217;s make sure it exactly works as we expected.</p>
<p>test ruby, rubygems, rails and rake installation, make sure all these tools are successfully installed:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ruby <span style="color: #660033;">-v</span><br />
$ gem <span style="color: #660033;">-v</span><br />
$ rails <span style="color: #660033;">-v</span><br />
$ rake <span style="color: #660033;">--version</span></div></div>
<p>create a rails testapp with preconfiguration for sqlite 3 database:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rails <span style="color: #660033;">-d</span> sqlite3 testapp</div></div>
<p>next start the web server, mongrel will be booted since we have mongrel installed before, otherwise webrick will be used:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">cd</span> testapp<br />
$ script<span style="color: #000000; font-weight: bold;">/</span>server</div></div>
<p>as can be seen from the console output below, the default listening port is 3000:</p>
<blockquote><p>=> Booting Mongrel<br />
=> Rails 2.3.2 application starting on http://0.0.0.0:3000<br />
=> Call with -d to detach<br />
=> Ctrl-C to shutdown server</p></blockquote>
<p>finally fire our favorite browser to http://server-domain-or-ip:3000/ to see the rails &#8220;welcome abroad&#8221; page, and we&#8217;re done:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/ruby-on-rails-installation.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/ruby-on-rails-installation-300x217.png" alt="ruby on rails installation" title="ruby on rails installation" width="300" height="217" class="alignnone size-medium wp-image-986" /></a></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2009/06/redmine-on-archlinux/" title="Redmine on Archlinux (June 30, 2009)">Redmine on Archlinux</a> (6)</li>
	<li><a href="http://blog.samsonis.me/2011/03/archlinux-rvm-ruby-rails-nginx-passenger-and-you/" title="ArchLinux, RVM, Ruby, Rails, Nginx, Passenger and You (March 30, 2011)">ArchLinux, RVM, Ruby, Rails, Nginx, Passenger and You</a> (3)</li>
	<li><a href="http://blog.samsonis.me/2009/05/safeboot%e5%8f%8c%e7%b3%bb%e7%bb%9f%e5%bc%95%e5%af%bc/" title="SafeBoot双系统引导 (May 12, 2009)">SafeBoot双系统引导</a> (29)</li>
	<li><a href="http://blog.samsonis.me/2009/02/archlinux%e4%b8%8b%e7%9a%84%e6%97%b6%e9%97%b4%e6%97%b6%e5%8c%ba%e8%ae%be%e7%bd%ae/" title="Archlinux下的时间时区设置 (February 13, 2009)">Archlinux下的时间时区设置</a> (15)</li>
	<li><a href="http://blog.samsonis.me/2009/02/archlinux-200902%e7%89%88%e6%9c%ac%e7%9a%84%e6%94%b9%e8%bf%9b/" title="ArchLinux 2009.02版本的改进 (February 16, 2009)">ArchLinux 2009.02版本的改进</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Ubuntu on VirtualBox (Part 3)</title>
		<link>http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-3/</link>
		<comments>http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-3/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 17:46:24 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=769</guid>
		<description><![CDATA[Continue from the previous 2 parts: Install Ubuntu on VirtualBox (Part 1) Install Ubuntu on VirtualBox (Part 2) All right, we have finished virtualbox installation and successfully created one virtual machine on it. Now it&#8217;s the time to&#8230; [Install Ubuntu] Just treat the VM like a real physical machine, what will you do to install ...]]></description>
			<content:encoded><![CDATA[<p>Continue from the previous 2 parts:<br />
<a href="http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-1/">Install Ubuntu on VirtualBox (Part 1)</a><br />
<a href="http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-2/">Install Ubuntu on VirtualBox (Part 2)</a></p>
<p>All right, we have finished virtualbox installation and successfully created one virtual machine on it.</p>
<p>Now it&#8217;s the time to&#8230;</p>
<p><span style="text-decoration: underline;">[Install Ubuntu]</span><br />
Just treat the VM like a real physical machine, what will you do to install an OS on a new gained physical machine?  Yeah, that&#8217;s right, insert a CD or DVD.</p>
<p>Now let&#8217;s do exactly the same thing to our virtual machine.</p>
<p>Right click the VM, select &#8220;Settings&#8230;&#8221;, and you will be greeted with a setting dialog looks like below:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-1.png"><img class="alignnone size-medium wp-image-773" title="install ubuntu 1" src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-1-297x300.png" alt="install ubuntu 1" width="297" height="300" /></a><br />
<span id="more-769"></span><br />
A lot of settings and tweaks for this VM can be done in this dialog, right now we only need to change the &#8220;CD/DVD-ROM&#8221; setting.  Choose the &#8220;CD/DVD-ROM&#8221; tab and check &#8220;Mount CD/DVD Drive&#8221;, in order to put an valid iso image file path to &#8220;ISO Image File&#8221;, click the folder-like button besides it:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-2.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-2-297x300.png" alt="install ubuntu 2" title="install ubuntu 2" width="297" height="300" class="alignnone size-medium wp-image-783" /></a></p>
<p>&#8220;Virtual Media Manager&#8221; will be then invoked and it will provide us a way to select the iso image we want to mount:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-3.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-3-300x235.png" alt="install ubuntu 3" title="install ubuntu 3" width="300" height="235" class="alignnone size-medium wp-image-787" /></a></p>
<p>Click &#8220;Add&#8221; button on the toolbar, and select the ubuntu iso image file we downloaded before:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-4.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-4-300x235.png" alt="install ubuntu 4" title="install ubuntu 4" width="300" height="235" class="alignnone size-medium wp-image-792" /></a></p>
<p>&#8220;Select&#8221; it to return:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-5.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-5-297x300.png" alt="install ubuntu 5" title="install ubuntu 5" width="297" height="300" class="alignnone size-medium wp-image-793" /></a></p>
<p>All right, we finish inserting the DVD by clicking &#8220;OK&#8221; and we&#8217;re ready to boot.  To start the VM, just choose the VM then click the &#8220;Start&#8221; button on toolbar, or right click the VM then select &#8220;Start&#8221;.</p>
<p>From now on, everything happens in the VM just like in a normal physical machine.</p>
<p>Select language:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-6.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-6-300x257.png" alt="install ubuntu 6" title="install ubuntu 6" width="300" height="257" class="alignnone size-medium wp-image-798" /></a></p>
<p>Select &#8220;Install Ubuntu&#8221;:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-7.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-7-300x257.png" alt="install ubuntu 7" title="install ubuntu 7" width="300" height="257" class="alignnone size-medium wp-image-800" /></a></p>
<p>Booting&#8230;:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-8.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-8-300x257.png" alt="install ubuntu 8" title="install ubuntu 8" width="300" height="257" class="alignnone size-medium wp-image-801" /></a></p>
<p>Choose language:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-9.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-9-300x250.png" alt="install ubuntu 9" title="install ubuntu 9" width="300" height="250" class="alignnone size-medium wp-image-805" /></a></p>
<p>Select time zone:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-10.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-10-300x250.png" alt="install ubuntu 10" title="install ubuntu 10" width="300" height="250" class="alignnone size-medium wp-image-810" /></a></p>
<p>Choose keyboard layout:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-11.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-11-300x250.png" alt="install ubuntu 11" title="install ubuntu 11" width="300" height="250" class="alignnone size-medium wp-image-811" /></a></p>
<p>Prepare disk space, for simplicity here, we choose &#8220;Use the entire disk&#8221; to let Ubuntu to auto partition our disk (the virtual disk we created before, still remember? of course you do:)):</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-12.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-12-300x250.png" alt="install ubuntu 12" title="install ubuntu 12" width="300" height="250" class="alignnone size-medium wp-image-812" /></a></p>
<p>Name, password, computer name etc&#8230; :</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-13.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-13-300x250.png" alt="install ubuntu 13" title="install ubuntu 13" width="300" height="250" class="alignnone size-medium wp-image-815" /></a></p>
<p>Ready to install, confirmation:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-14.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-14-300x250.png" alt="install ubuntu 14" title="install ubuntu 14" width="300" height="250" class="alignnone size-medium wp-image-817" /></a></p>
<p>Installing system, partition formatting&#8230; :</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-15.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-15-300x250.png" alt="install ubuntu 15" title="install ubuntu 15" width="300" height="250" class="alignnone size-medium wp-image-818" /></a></p>
<p>Installing system, copying files&#8230; :</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-16.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-16-300x250.png" alt="install ubuntu 16" title="install ubuntu 16" width="300" height="250" class="alignnone size-medium wp-image-819" /></a></p>
<p>If blocked at &#8220;Configuring apt, scanning the mirror&#8230;&#8221;, click &#8220;Devices->Network Adapters->Adapter 1&#8243; to temporary disable your network adapter, just like remove the network adapter if we are dealing with real physical machine:):</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-17.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-17-300x250.png" alt="install ubuntu 17" title="install ubuntu 17" width="300" height="250" class="alignnone size-medium wp-image-822" /></a></p>
<p>Installation complete, restart now:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-18.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-18-300x250.png" alt="install ubuntu 18" title="install ubuntu 18" width="300" height="250" class="alignnone size-medium wp-image-825" /></a></p>
<p>Just provide a chance for you to remove the iso image (remove disk) before reboot:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-19.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-19-300x257.png" alt="install ubuntu 19" title="install ubuntu 19" width="300" height="257" class="alignnone size-medium wp-image-827" /></a></p>
<p>Reboot, prompt for user name and password:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-20.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-20-300x250.png" alt="install ubuntu 20" title="install ubuntu 20" width="300" height="250" class="alignnone size-medium wp-image-829" /></a></p>
<p>Boot complete, desktop ready:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-21.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/install-ubuntu-21-300x250.png" alt="install ubuntu 21" title="install ubuntu 21" width="300" height="250" class="alignnone size-medium wp-image-830" /></a></p>
<p>Linux installation is more and more simple and elegant nowadays, isn&#8217;t it?</p>
<p><span style="text-decoration: underline;">[Next step]</span><br />
1. Ubuntu 9.04 desktop edition official documentation:<br />
<a href="https://help.ubuntu.com/9.04/">https://help.ubuntu.com/9.04/</a></p>
<p>2. Linux commands<br />
<a href="http://en.wikipedia.org/wiki/List_of_Unix_utilities">http://en.wikipedia.org/wiki/List_of_Unix_utilities</a></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-1/" title="Install Ubuntu on VirtualBox (Part 1) (June 5, 2009)">Install Ubuntu on VirtualBox (Part 1)</a> (1)</li>
	<li><a href="http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-2/" title="Install Ubuntu on VirtualBox (Part 2) (June 5, 2009)">Install Ubuntu on VirtualBox (Part 2)</a> (3)</li>
	<li><a href="http://blog.samsonis.me/2009/05/safeboot%e5%8f%8c%e7%b3%bb%e7%bb%9f%e5%bc%95%e5%af%bc/" title="SafeBoot双系统引导 (May 12, 2009)">SafeBoot双系统引导</a> (29)</li>
	<li><a href="http://blog.samsonis.me/2009/06/redmine-on-archlinux/" title="Redmine on Archlinux (June 30, 2009)">Redmine on Archlinux</a> (6)</li>
	<li><a href="http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/" title="Install Ruby on Rails on Archlinux (June 30, 2009)">Install Ruby on Rails on Archlinux</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install Ubuntu on VirtualBox (Part 2)</title>
		<link>http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-2/</link>
		<comments>http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-2/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 15:23:28 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=710</guid>
		<description><![CDATA[Continue from the previous part: Install Ubuntu on VirtualBox (Part 1). We have already downloaded all the needed softwares and finish the virtualbox installation, so far so good~ Now launch the newly installed virtualbox, let&#8217;s &#8230; [Create a virtual machine] Remember we mentioned that the OS needs to be installed on a physical machine in ...]]></description>
			<content:encoded><![CDATA[<p>Continue from the previous part: <a href="http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-1/">Install Ubuntu on VirtualBox (Part 1)</a>.</p>
<p>We have already downloaded all the needed softwares and finish the virtualbox installation, so far so good~</p>
<p>Now launch the newly installed virtualbox, let&#8217;s &#8230;</p>
<p><span style="text-decoration: underline;">[Create a virtual machine]</span><br />
Remember we mentioned that the OS needs to be installed on a physical machine in our last post?  Yeah, right now we are gonna to prepare a virtual physical machine, using virtualbox.</p>
<p>The fresh installed virtualbox looks like below:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-1.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-1-300x204.png" alt="create virtual machine 1" title="create virtual machine 1" width="300" height="204" class="alignnone size-medium wp-image-723" /></a><br />
<span id="more-710"></span><br />
Click &#8220;File->Preferences&#8230;&#8221;, tweak some global settings before we start, you can modify anything you want to make you comfortable, here I recommend to change the &#8220;Default Hard Disk Folder&#8221; and &#8220;Default Machine Folder&#8221;:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-2.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-2-300x292.png" alt="create virtual machine 2" title="create virtual machine 2" width="300" height="292" class="alignnone size-medium wp-image-726" /></a></p>
<p>After preferences setting, click the &#8220;New&#8221; button on toolbar to start the &#8220;create new virtual machine wizard&#8221;:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-3.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-3-300x270.png" alt="create virtual machine 3" title="create virtual machine 3" width="300" height="270" class="alignnone size-medium wp-image-728" /></a></p>
<p>Click &#8220;Next&#8221;, in the next screen, input the virtual machine name and its OS type, since we are now installing ubuntu 9.04 desktop edition, we can put something looks like below:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-4.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-4-300x270.png" alt="create virtual machine 4" title="create virtual machine 4" width="300" height="270" class="alignnone size-medium wp-image-733" /></a></p>
<p>&#8220;Next&#8221;, now the wizard asks us to input the RAM of the virtual machine, it&#8217;s now starting to look like a real machine, isn&#8217;t it?  Here I assign this VM (virtual machine) 512M RAM, you can change it to meet your needs, just note that the RAM you gave to the VM will later be occupied from your real machine (the one you install windows on), so don&#8217;t assign too much memory if you don&#8217;t have so much:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-5.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-5-300x270.png" alt="create virtual machine 5" title="create virtual machine 5" width="300" height="270" class="alignnone size-medium wp-image-735" /></a></p>
<p>&#8220;Next&#8221; comes to the hard disk, yes, it&#8217;s still a virtual one.  Since we haven&#8217;t created any virtual hard disk right now, we need to select &#8220;Create new hard disk&#8221;, also check the &#8220;Boot Hard Disk (Primary Master)&#8221; option, we will later boot our ubuntu on this hard disk:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-6.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-6-300x270.png" alt="create virtual machine 6" title="create virtual machine 6" width="300" height="270" class="alignnone size-medium wp-image-737" /></a></p>
<p>&#8220;Next&#8221;, cause we select &#8220;Create new hard disk&#8221; in the former screen, now we are heading to the &#8220;create new virtual disk wizard&#8221;:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-7.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-7-300x270.png" alt="create virtual machine 7" title="create virtual machine 7" width="300" height="270" class="alignnone size-medium wp-image-742" /></a></p>
<p>&#8220;Next&#8221;&#8230; (why so much next:-)), we are asked to choose the virtual hard disk type, in consideration of the flexibility, we choose &#8220;Dynamic expanding storage&#8221; here, maybe a little bit slower than &#8220;Fixed-size storage&#8221;, but that&#8217;s worth it:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-8.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-8-300x270.png" alt="create virtual machine 8" title="create virtual machine 8" width="300" height="270" class="alignnone size-medium wp-image-745" /></a></p>
<p>&#8220;Next&#8221; comes the virtual disk location and size&#8230; (why so much next?   Maybe you will start to complain:), but trust me, it&#8217;s close, not so much next remains:))  since we are already finished the global &#8220;Default Hard Disk Folder&#8221; setting before, we can just leave the &#8220;Virtual Disk&#8221; setting here to its own, it will follow our global setting if we don&#8217;t explicitly set it.  Since we have selected &#8220;Dynamic expanding storage&#8221; type before, the disk size here is just a maximum size of your disk, not the exact size, so feel free to set it to any size you want.  The actual limit is your real physical hard disk size if you set it to a very large number, like 2T:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-9.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-9-300x270.png" alt="create virtual machine 9" title="create virtual machine 9" width="300" height="270" class="alignnone size-medium wp-image-748" /></a></p>
<p>&#8220;Next&#8221; again, we finally see a &#8220;finish&#8221;, but don&#8217;t count your chickens now, it&#8217;s only the finish of the virtual hard disk creation:)</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-10.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-10-300x270.png" alt="create virtual machine 10" title="create virtual machine 10" width="300" height="270" class="alignnone size-medium wp-image-751" /></a></p>
<p>After click &#8220;finish&#8221;, we finally got the last &#8220;finish&#8221;, check the parameters again and click &#8220;finish&#8221; to create our first virtual machine:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-11.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-11-300x270.png" alt="create virtual machine 11" title="create virtual machine 11" width="300" height="270" class="alignnone size-medium wp-image-754" /></a></p>
<p>After successfully creation, finally a virtual machine shows up:</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-12.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/06/create-vm-12-300x204.png" alt="create virtual machine 12" title="create virtual machine 12" width="300" height="204" class="alignnone size-medium wp-image-756" /></a></p>
<p>We will later create ubuntu on this virtual machine in this articles&#8217;s 3rd part.</p>
<p>To be continued&#8230;</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-3/" title="Install Ubuntu on VirtualBox (Part 3) (June 6, 2009)">Install Ubuntu on VirtualBox (Part 3)</a> (2)</li>
	<li><a href="http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-1/" title="Install Ubuntu on VirtualBox (Part 1) (June 5, 2009)">Install Ubuntu on VirtualBox (Part 1)</a> (1)</li>
	<li><a href="http://blog.samsonis.me/2009/05/safeboot%e5%8f%8c%e7%b3%bb%e7%bb%9f%e5%bc%95%e5%af%bc/" title="SafeBoot双系统引导 (May 12, 2009)">SafeBoot双系统引导</a> (29)</li>
	<li><a href="http://blog.samsonis.me/2009/06/redmine-on-archlinux/" title="Redmine on Archlinux (June 30, 2009)">Redmine on Archlinux</a> (6)</li>
	<li><a href="http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/" title="Install Ruby on Rails on Archlinux (June 30, 2009)">Install Ruby on Rails on Archlinux</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Install Ubuntu on VirtualBox (Part 1)</title>
		<link>http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-1/</link>
		<comments>http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-1/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 11:19:18 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=660</guid>
		<description><![CDATA[[Dedication] To my friend louchx:), welcome to the Unix/Linux world! [Overview] Ubuntu is one of the most popular linux distribution nowadays. It mainly focus on usability, accessibility and internationalization, to reach as many people as possible. Refer ubuntu home page and this wiki page for more detail information about ubuntu. Usually we will need a ...]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">[Dedication]</span><br />
To my friend louchx:), welcome to the Unix/Linux world!</p>
<p><span style="text-decoration: underline;">[Overview]</span><br />
<a href="http://www.ubuntu.com/">Ubuntu</a> is one of the most popular linux distribution nowadays.  It mainly focus on usability, accessibility and internationalization, to reach as many people as possible.  Refer <a href="http://www.ubuntu.com/">ubuntu home page</a> and this <a href="http://en.wikipedia.org/wiki/Ubuntu/">wiki page</a> for more detail information about ubuntu.</p>
<p>Usually we will need a physical machine to install an OS like ubuntu, but since that&#8217;s our first time to install linux, let&#8217;s choose another more secure way.  We will use a software virtualizer to virtualize a physical machine for us.</p>
<p><a href="http://www.virtualbox.org/">VirtualBox</a> is a general-purpose full virtualizer for x86 hardware.  According to its <a href="http://www.virtualbox.org/">official home page</a>, it is now the only professional-quality virtualization solution that is also Open Source Software.<br />
Another choice is <a href="http://www.vmware.com/">VMware</a>, but since it&#8217;s not free, that&#8217;s not my recommendation here.</p>
<p>So&#8230; here we will install ubuntu on virtualbox based on windows hosts.<br />
<span id="more-660"></span><br />
First let&#8217;s prepare&#8230;</p>
<p><span style="text-decoration: underline;">[What we need]</span><br />
1. Ubuntu 9.04 Desktop Edition 32 bit version<br />
Download the iso from <a href="http://www.ubuntu.com/getubuntu/download">http://www.ubuntu.com/getubuntu/download</a>, choose a proper download location there</p>
<p>2. VirtualBox 2.2.4 for Windows hosts<br />
Download the latest release from <a href="http://www.virtualbox.org/wiki/Downloads">http://www.virtualbox.org/wiki/Downloads</a></p>
<p><span style="text-decoration: underline;">[Install VirtualBox]</span><br />
VirtualBox installation is just like installing a normal windows software.  That&#8217;s what you&#8217;re most familiar with, so I only attach some screenshots below.</p>
<p>For the official installation guides on Windows host, please refer <a href="http://www.virtualbox.org/manual/UserManual.html#id2496164">this page</a>.</p>
<p>virtualbox setup 1:<br />
<a href="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-1.png"><img class="alignnone size-medium wp-image-690" title="virtualbox setup 1" src="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-1-300x235.png" alt="virtualbox setup 1" width="300" height="235" /></a></p>
<p>virtualbox setup 2:<br />
<a href="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-2.png"><img class="alignnone size-medium wp-image-691" title="virtualbox setup 2" src="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-2-300x235.png" alt="virtualbox setup 2" width="300" height="235" /></a></p>
<p>virtualbox setup 3:<br />
<a href="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-3.png"><img class="alignnone size-medium wp-image-692" title="virtualbox setup 3" src="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-3-300x235.png" alt="virtualbox setup 3" width="300" height="235" /></a></p>
<p>virtualbox setup 4:<br />
<a href="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-4.png"><img class="alignnone size-medium wp-image-693" title="virtualbox setup 4" src="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-4-300x235.png" alt="virtualbox setup 4" width="300" height="235" /></a></p>
<p>virtualbox setup 5:<br />
<a href="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-5.png"><img class="alignnone size-medium wp-image-694" title="virtualbox setup 5" src="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-5-300x235.png" alt="virtualbox setup 5" width="300" height="235" /></a></p>
<p>virtualbox setup 6:<br />
<a href="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-6.png"><img class="alignnone size-medium wp-image-695" title="virtualbox setup 6" src="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-6-300x235.png" alt="virtualbox setup 6" width="300" height="235" /></a></p>
<p>virtualbox setup 7:<br />
<a href="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-7.png"><img class="alignnone size-medium wp-image-689" title="virtualbox setup 7" src="http://blog.samsonis.me/wp-content/uploads/2009/06/virtualbox-setup-7-300x235.png" alt="virtualbox setup 7" width="300" height="235" /></a></p>
<p>To be continued&#8230;</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-3/" title="Install Ubuntu on VirtualBox (Part 3) (June 6, 2009)">Install Ubuntu on VirtualBox (Part 3)</a> (2)</li>
	<li><a href="http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-2/" title="Install Ubuntu on VirtualBox (Part 2) (June 5, 2009)">Install Ubuntu on VirtualBox (Part 2)</a> (3)</li>
	<li><a href="http://blog.samsonis.me/2009/05/safeboot%e5%8f%8c%e7%b3%bb%e7%bb%9f%e5%bc%95%e5%af%bc/" title="SafeBoot双系统引导 (May 12, 2009)">SafeBoot双系统引导</a> (29)</li>
	<li><a href="http://blog.samsonis.me/2009/06/redmine-on-archlinux/" title="Redmine on Archlinux (June 30, 2009)">Redmine on Archlinux</a> (6)</li>
	<li><a href="http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/" title="Install Ruby on Rails on Archlinux (June 30, 2009)">Install Ruby on Rails on Archlinux</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2009/06/install-ubuntu-on-virtualbox-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bugzilla on ArchLinux</title>
		<link>http://blog.samsonis.me/2009/04/bugzilla-on-archlinux/</link>
		<comments>http://blog.samsonis.me/2009/04/bugzilla-on-archlinux/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 16:23:43 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[ArchLinux]]></category>
		<category><![CDATA[Bugzilla]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=440</guid>
		<description><![CDATA[Need a web server and a database engine to run bugzilla, here I choose apache and mysql. Install apache: $ pacman -S apache Refer this wiki page for detailed information about apache installation and configuration. Install mysql: $ pacman -S mysql The above LAMP wiki page also mentions something about mysql installation and configuration, for ...]]></description>
			<content:encoded><![CDATA[<p>Need a web server and a database engine to run bugzilla, here I choose apache and mysql.</p>
<p>Install apache:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ pacman <span style="color: #660033;">-S</span> apache</div></div>
<p>Refer <a href="http://wiki.archlinux.org/index.php/LAMP">this wiki page</a> for detailed information about apache installation and configuration.</p>
<p>Install mysql:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ pacman <span style="color: #660033;">-S</span> mysql</div></div>
<p>The above <a href="http://wiki.archlinux.org/index.php/LAMP">LAMP wiki page</a> also mentions something about mysql installation and configuration, for standalone installation, please refer <a href="http://wiki.archlinux.org/index.php/MySQL">this wiki page</a>.</p>
<p>Then install bugzilla using:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ pacman <span style="color: #660033;">-S</span> bugzilla</div></div>
<p>It requires a bunch of perl modules to be installed too, but some required modules still need to be installed manually (a little weird, why not include all required perl modules into dependencies?)</p>
<p>Make a module check first:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>http<span style="color: #000000; font-weight: bold;">/</span>bugzilla<br />
$ .<span style="color: #000000; font-weight: bold;">/</span>checksetup.pl <span style="color: #660033;">--check-modules</span></div></div>
<p><span id="more-440"></span><br />
Check the screen output, you will learn which module is required and which is optional, for missing modules, it will also show you the shell command to install them.</p>
<p>Install all required and optional modules using:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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;">perl</span> install-module.pl <span style="color: #660033;">-all</span></div></div>
<p>To make module GD and PerlMagick works, make sure you have gd and imagemagick installed:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ pacman <span style="color: #660033;">-S</span> gd imagemagick</div></div>
<p>Make the module check again, make sure all the required and optional modules are found:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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>checksetup.pl <span style="color: #660033;">--check-modules</span></div></div>
<p>(Note: For perl DBD modules, only DBD-mysql is needed in this case, it&#8217;s ok if it complains about not found DBD-pg or DBD-Oracle modules)</p>
<p>Next, some more configuration to let bugzilla know how to connect mysql and create initial tables in it.</p>
<p>Run checksetup.pl again, this time without the &#8211;check-modules switch:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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>checksetup.pl</div></div>
<p>A file called <em>&#8220;localconfig&#8221;</em> is generated if everything is ok.  Then edit it, modify some parameters there:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">$webservergroup</span> = <span style="color: #ff0000;">'http'</span>;<br />
<span style="color: #007800;">$db_driver</span> = <span style="color: #ff0000;">'mysql'</span>;<br />
<span style="color: #007800;">$db_name</span> = <span style="color: #ff0000;">'bugs'</span>;<br />
<span style="color: #007800;">$db_user</span> = <span style="color: #ff0000;">'bugs'</span>;<br />
<span style="color: #007800;">$db_pass</span> = <span style="color: #ff0000;">'YOUR_PASSWORD_HERE'</span>;</div></div>
<p>Create the $db_user with password $db_pass in mysql:</p>
<div class="codecolorer-container mysql railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ mysql <span style="color: #CC0099;">-</span>u root <span style="color: #CC0099;">-</span>p<br />
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">GRANT</span> <span style="color: #990099; font-weight: bold;">SELECT</span><span style="color: #000033;">,</span> <span style="color: #990099; font-weight: bold;">INSERT</span><span style="color: #000033;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #990099; font-weight: bold;">UPDATE</span><span style="color: #000033;">,</span> <span style="color: #990099; font-weight: bold;">DELETE</span><span style="color: #000033;">,</span> <span style="color: #990099; font-weight: bold;">INDEX</span><span style="color: #000033;">,</span> <span style="color: #990099; font-weight: bold;">ALTER</span><span style="color: #000033;">,</span> <span style="color: #990099; font-weight: bold;">CREATE</span><span style="color: #000033;">,</span> <span style="color: #990099; font-weight: bold;">LOCK</span> <span style="color: #990099; font-weight: bold;">TABLES</span><span style="color: #000033;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TEMPORARY</span> <span style="color: #990099; font-weight: bold;">TABLES</span><span style="color: #000033;">,</span> <span style="color: #990099; font-weight: bold;">DROP</span><span style="color: #000033;">,</span> <span style="color: #990099; font-weight: bold;">REFERENCES</span> <span style="color: #990099; font-weight: bold;">ON</span> bugs.<span style="color: #CC0099;">*</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #990099; font-weight: bold;">TO</span> bugs@localhost IDENTIFIED BY <span style="color: #008000;">'YOUR<span style="color: #008080; font-weight: bold;">_</span>PASSWORD<span style="color: #008080; font-weight: bold;">_</span>HERE'</span><span style="color: #000033;">;</span></div></div>
<p>mysql> FLUSH PRIVILEGES;</code></p>
<p>Run checksetup.pl again to create tables and an administrator user:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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>checksetup.pl</div></div>
<p>Tweak mysql to make bugzilla more scalable and usable, refer <a href="http://www.bugzilla.org/docs/3.2/en/html/configuration.html">bugzilla official doc</a> for details:</p>
<p>Allow large attachments and many comments:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqld<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #666666; font-style: italic;"># Allow packets up to 4MB</span><br />
<span style="color: #007800;">max_allowed_packet</span>=4M</div></div>
<p>Allow small words in full-text indexes:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqld<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #666666; font-style: italic;"># Allow small words in full-text indexes</span><br />
<span style="color: #007800;">ft_min_word_len</span>=<span style="color: #000000;">2</span></div></div>
<p>Permit attachments table to grow beyond 4GB:</p>
<div class="codecolorer-container mysql railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">use</span> bugs<span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">ALTER</span> <span style="color: #990099; font-weight: bold;">TABLE</span> attachments <span style="color: #FF9900; font-weight: bold;">AVG_ROW_LENGTH</span><span style="color: #CC0099;">=</span><span style="color: #008080;">1000000</span><span style="color: #000033;">,</span> <span style="color: #FF9900; font-weight: bold;">MAX_ROWS</span><span style="color: #CC0099;">=</span><span style="color: #008080;">20000</span><span style="color: #000033;">;</span></div></div>
<p>Finally, configure apache to run bugzilla using mod_cgi (also can be configured using mod_perl, refer <a href="http://www.bugzilla.org/docs/3.2/en/html/configuration.html">this</a> for details)</p>
<p>Add following lines to /etc/httpd/conf/httpd.conf:</p>
<div class="codecolorer-container apache railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="apache codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;<span style="color: #000000; font-weight:bold;">Directory</span> /srv/http/bugzilla&gt;<br />
&nbsp; <span style="color: #00007f;">AddHandler</span> cgi-<span style="color: #00007f;">script</span> .cgi<br />
&nbsp; <span style="color: #00007f;">Options</span> +<span style="color: #0000ff;">Indexes</span> +ExecCGI<br />
&nbsp; <span style="color: #00007f;">DirectoryIndex</span> index.cgi<br />
&nbsp; <span style="color: #00007f;">AllowOverride</span> <span style="color: #00007f;">Limit</span><br />
&lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;</div></div>
<p>That's it, restart mysql and apache:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>mysqld restart<br />
$ <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>httpd restart</div></div>
<p>Access http://server-domain-or-ip/bugzilla/ using your favorite browser to see your work result:)</p>
<p>Attach some screen shots of mine below:</p>
<p>Home page:<br />
<a href="http://blog.samsonis.me/wp-content/uploads/2009/04/bugzilla.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/04/bugzilla-300x217.png" alt="bugzilla" title="bugzilla" width="300" height="217" class="alignnone size-medium wp-image-490" /></a></p>
<p>Admin page:<br />
<a href="http://blog.samsonis.me/wp-content/uploads/2009/04/bugzilla-admin.png"><img src="http://blog.samsonis.me/wp-content/uploads/2009/04/bugzilla-admin-300x217.png" alt="bugzilla-admin" title="bugzilla-admin" width="300" height="217" class="alignnone size-medium wp-image-492" /></a></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2009/05/safeboot%e5%8f%8c%e7%b3%bb%e7%bb%9f%e5%bc%95%e5%af%bc/" title="SafeBoot双系统引导 (May 12, 2009)">SafeBoot双系统引导</a> (29)</li>
	<li><a href="http://blog.samsonis.me/2009/06/redmine-on-archlinux/" title="Redmine on Archlinux (June 30, 2009)">Redmine on Archlinux</a> (6)</li>
	<li><a href="http://blog.samsonis.me/2009/06/install-ruby-on-rails-on-archlinux/" title="Install Ruby on Rails on Archlinux (June 30, 2009)">Install Ruby on Rails on Archlinux</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2009/02/archlinux%e4%b8%8b%e7%9a%84%e6%97%b6%e9%97%b4%e6%97%b6%e5%8c%ba%e8%ae%be%e7%bd%ae/" title="Archlinux下的时间时区设置 (February 13, 2009)">Archlinux下的时间时区设置</a> (15)</li>
	<li><a href="http://blog.samsonis.me/2011/03/archlinux-rvm-ruby-rails-nginx-passenger-and-you/" title="ArchLinux, RVM, Ruby, Rails, Nginx, Passenger and You (March 30, 2011)">ArchLinux, RVM, Ruby, Rails, Nginx, Passenger and You</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2009/04/bugzilla-on-archlinux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

