<?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>Linux Showroom &#187; Open Source</title>
	<atom:link href="http://www.linux-showroom.com/topics/open-source/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linux-showroom.com</link>
	<description>My daily dosis of linux usage</description>
	<lastBuildDate>Sat, 06 Mar 2010 13:48:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New software packages bundled with OpenSuSE 11.1</title>
		<link>http://www.linux-showroom.com/2008/12/18/new-software-packages-bundled-with-opensuse-111.html</link>
		<comments>http://www.linux-showroom.com/2008/12/18/new-software-packages-bundled-with-opensuse-111.html#comments</comments>
		<pubDate>Thu, 18 Dec 2008 19:15:14 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[OpenSuSE]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=24</guid>
		<description><![CDATA[The newest version of OpenSuSE got released today. Open [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/12/18/new-software-packages-bundled-with-opensuse-111.html">New software packages bundled with OpenSuSE 11.1</a></p>
]]></description>
			<content:encoded><![CDATA[<p>The newest version of <a href="http://news.opensuse.org/2008/12/18/opensuse-111-released/">OpenSuSE got released today</a>. OpenSuSE 11.1 brings more than 230 new features the press release says. As I keep my systems up to date thanks to smart and all the repositories only a number of these new feature are missing on my OpenSuSE 11.0 installations. The most important reason I quickly upgrade my desktop system is KDE. As I am still using KDE version 3 and the version that comes with OpenSuSE 11.1 is the same I have installed (KDE 3.5.10) this does not convince me to upgrade.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7400231638705781";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "BA6600";
google_color_text = "3F3F3F";
google_color_url = "3F3F3F";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>I did however <a href="http://en.opensuse.org/Featurelist_11.1">discover new software (packages) in OpenSuSE 11.1</a> I have not known before. These packages are Tasque, Tellico, Twinkle, Monsoon, PulseAudio and Derby. I googled these terms and came up with the following.</p>
<p><span id="more-24"></span></p>
<ul>
<li><strong>Tasque</strong> is a simple task management app (TODO list) for the Linux Desktop. The <a href="http://live.gnome.org/Tasque/Screenshots">screenshots</a> remind me of the todo app that comes with the KDE Kontact tool.</li>
<li><strong>Tellico</strong> is a KDE application for organizing your collections. Tellico allows you to enter your collection in a catalogue database.</li>
<li><strong>Twinkle</strong> is a free software/open source VoIP softphone application for Linux. It uses the SIP protocol. It also incorporates a GPL implementation of the ZRTP and SRTP security protocols and MD5 digest authentication.</li>
<li><strong>Monsoon</strong> is a fully featured bittorrent GUI supporting many advanced features such as selective downloading, automatic port forwarding via uPnP and RSS integration.</li>
<li><strong>PulseAudio</strong> is a sound server for POSIX and Win32 systems.</li>
<li><strong>Apache Derby</strong> is an open source relational database implemented entirely in Java.</li>
</ul>
<p>I&#8217;d like to say even before I tried it out openSUSE just got better!</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/12/18/new-software-packages-bundled-with-opensuse-111.html">New software packages bundled with OpenSuSE 11.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2008/12/18/new-software-packages-bundled-with-opensuse-111.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The open source application stack for Windows</title>
		<link>http://www.linux-showroom.com/2008/12/10/the-open-source-application-stack-for-windows.html</link>
		<comments>http://www.linux-showroom.com/2008/12/10/the-open-source-application-stack-for-windows.html#comments</comments>
		<pubDate>Wed, 10 Dec 2008 21:30:47 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[Miro]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[OpenOffice]]></category>
		<category><![CDATA[Scribus]]></category>
		<category><![CDATA[Songbird]]></category>
		<category><![CDATA[The Gimp]]></category>
		<category><![CDATA[Thunderbird]]></category>
		<category><![CDATA[VLC]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=21</guid>
		<description><![CDATA[The bad thing with most new computers is that they come [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/12/10/the-open-source-application-stack-for-windows.html">The open source application stack for Windows</a></p>
]]></description>
			<content:encoded><![CDATA[<p>The bad thing with most new computers is that they come with Windows &#8482; preinstalled. The good thing is those Windows &#8482; installations don&#8217;t bring much (useful) software along. Users have to actively use which software they want to use.</p>
<p><span id="more-21"></span></p>
<p>Today I had to run updates on a new laptop which is given away in my family this year as xmas present. Needless to say I decided to install some software. The presentee is still at a very influential age. I should have installed Ubuntu or OpenSuSE but I ran with Windows to not upset the father. For all the applications though I was luckily enough to find open source software.</p>
<p>I installed <a title="OpenOffice" href="http://www.openoffice.org/">OpenOffice</a> for office stuff, <a title="Scribus" href="http://www.scribus.net/">Scribus</a> for desktop publishing, <a title="Firefox" href="http://www.mozilla-europe.org/de/firefox/">Mozilla Firefox</a> for surfing, <a title="Thunderbird" href="http://www.mozilla-europe.org/de/products/thunderbird/">Thunderbird</a> for mails, <a title="Songbird" href="http://getsongbird.com/">Songbird</a> for music, <a title="Miro" href="http://www.getmiro.com/">Miro</a> and <a title="VLC" href="http://www.videolan.org/vlc/">VLC</a> for videos, <a title="The GIMP" href="http://www.gimp.org/">The Gimp</a> for pictures and painting and last but not least <a title="Inkscape" href="http://www.inkscape.org">Inkscape</a> for (vector) graphics.</p>
<p>The presentee will get a pretty powerful software package with no upfront cost and no hidden fees. As she is not settled with any programs this setup will open the whole world of open source software to her.</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/12/10/the-open-source-application-stack-for-windows.html">The open source application stack for Windows</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2008/12/10/the-open-source-application-stack-for-windows.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ejabberd on GNU/Linux OpenSuSE 11.0</title>
		<link>http://www.linux-showroom.com/2008/11/24/ejabberd-on-gnulinux-opensuse-110.html</link>
		<comments>http://www.linux-showroom.com/2008/11/24/ejabberd-on-gnulinux-opensuse-110.html#comments</comments>
		<pubDate>Mon, 24 Nov 2008 13:41:39 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[ejabberd]]></category>
		<category><![CDATA[erlang]]></category>
		<category><![CDATA[jabber]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenSuSE]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=15</guid>
		<description><![CDATA[I heard about the successful usage of ejabberd from web [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/11/24/ejabberd-on-gnulinux-opensuse-110.html">ejabberd on GNU/Linux OpenSuSE 11.0</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I heard about the successful usage of ejabberd from <a href="http://www.weblin.com">weblin</a>&#8217;s CTO Heiner yesterday at lunch during <a href="http://barcamphamburg2008.mixxt.de">BarCamp Hamburg 08</a>. </p>
<p>I was thinking of deploying jabber services for <a href="http://www.podcast.de">podcast.de</a> for a while now but couldn&#8217;t decide which server to take. I checked the <a href="http://www.ejabberd.im">ejabberd website</a>. The software looks promising. So I give it a try.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">smart <span style="color: #c20cb9; font-weight: bold;">install</span> ejabberd</pre></div></div>

<p>Could not find any results. So I check <a href="http://software.opensuse.org/search">OpenSuSE software search</a>. Luckily it lists a source which I add to my smart sources.</p>
<p><span id="more-15"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">smart channel <span style="color: #660033;">--edit</span></pre></div></div>

<p><script type="text/javascript"><!--
google_ad_client = "pub-7400231638705781";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "BA6600";
google_color_text = "3F3F3F";
google_color_url = "3F3F3F";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>Cyberorg<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">type</span> = rpm-md
name = Cyberorg
baseurl = http:<span style="color: #000000; font-weight: bold;">//</span>download.opensuse.org<span style="color: #000000; font-weight: bold;">/</span>repositories<span style="color: #000000; font-weight: bold;">/</span>home:<span style="color: #000000; font-weight: bold;">/</span>cyberorg:<span style="color: #000000; font-weight: bold;">/</span>sugar<span style="color: #000000; font-weight: bold;">/</span>openSUSE_11.0<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>On to install the <strong>ejabberd</strong> package:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">smart <span style="color: #c20cb9; font-weight: bold;">install</span> ejabberd</pre></div></div>

<p>I get a report that I am still missing a package for <em>erlang</em> as ejabberd is written in <strong>erlang</strong>. I use the OpenSuSE software search again which lists the following source:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>NicoK<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">type</span> = rpm-md
name = NicoK
baseurl = http:<span style="color: #000000; font-weight: bold;">//</span>download.opensuse.org<span style="color: #000000; font-weight: bold;">/</span>repositories<span style="color: #000000; font-weight: bold;">/</span>home:<span style="color: #000000; font-weight: bold;">/</span>NicoK<span style="color: #000000; font-weight: bold;">/</span>openSUSE_11.0<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Now I can install ejabberd: ejabberd-2.0.0-2.11@x86_64<br />
I also need one more package: erlang-R12B4-18.11@x86_64</p>
<p>The beauty of installing pre-compiled RPMs on OpenSuSE. You almost always get a rc-file along with the RPM (for server software that is).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rce -<span style="color: #000000; font-weight: bold;">&gt;</span> Tab -<span style="color: #000000; font-weight: bold;">&gt;</span> rcejabberd</pre></div></div>

<p>There it is. Great! Now I want to change the default configuration. I would expect a config file to sit in /etc/sysconfig but ejabberd brings its own directory under /etc/ejabberd where two config files reside: ejabberd.cfg and ejabberdctl.cfg.</p>
<p>I read before that ejabberd.cfg is the heart of ejabberd. So I edit this for local usage only ATM.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7400231638705781";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "BA6600";
google_color_text = "3F3F3F";
google_color_url = "3F3F3F";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span>hosts, <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>ip, <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">127</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.</pre></div></div>

<p>I give it a try:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rcejabberd start
Starting ejabberd    <span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>Looks like it started. Too bad checking <a href="http://127.0.0.1:5280/admin">http://127.0.0.1:5280/admin</a> does not work. I check for an error in the log dir <strong>/var/log/ejabberd/</strong> just to find out no files have been created. <em>ps aux</em> shows me some erlang stuff is running: <em>/usr/lib64/erlang/erts-5.6.4/bin/epmd -daemon</em> but no jabber process(es) which I would suspect.</p>
<p>I am increasing the loglevel to debug (5):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span>loglevel, <span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>.</pre></div></div>

<p>No change. I remove <em>-detached</em> in the run script and try again. This time I get debug messages on the shell:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rcejabberd start
Starting ejabberd Erlang <span style="color: #7a0874; font-weight: bold;">&#40;</span>BEAM<span style="color: #7a0874; font-weight: bold;">&#41;</span> emulator version 5.6.4 <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">source</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">64</span>-bit<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>smp:<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>async-threads:<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>hipe<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>kernel-poll:<span style="color: #c20cb9; font-weight: bold;">false</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #ff0000;">&quot;init terminating in do_boot&quot;</span>,<span style="color: #7a0874; font-weight: bold;">&#123;</span>undef,<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>ejabberd,start,<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,<span style="color: #7a0874; font-weight: bold;">&#123;</span>init,start_it,<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,<span style="color: #7a0874; font-weight: bold;">&#123;</span>init,start_em,<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
Crash dump was written to: erl_crash.dump init terminating <span style="color: #000000; font-weight: bold;">in</span> do_boot<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>    failed</pre></div></div>

<p>At this point I have to give up the experiment as I have no time to fiddle around with erlang problems.</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/11/24/ejabberd-on-gnulinux-opensuse-110.html">ejabberd on GNU/Linux OpenSuSE 11.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2008/11/24/ejabberd-on-gnulinux-opensuse-110.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free e-book shellprogramming</title>
		<link>http://www.linux-showroom.com/2008/09/18/free-e-book-shellprogramming.html</link>
		<comments>http://www.linux-showroom.com/2008/09/18/free-e-book-shellprogramming.html#comments</comments>
		<pubDate>Thu, 18 Sep 2008 14:36:18 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[e-book]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Open Content]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shell command]]></category>
		<category><![CDATA[shell program]]></category>
		<category><![CDATA[Wikibooks]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=13</guid>
		<description><![CDATA[I had to write a shell program. And I was looking for a [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/09/18/free-e-book-shellprogramming.html">Free e-book shellprogramming</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I had to write a shell program. And I was looking for a how-to / manual covering my favorites shell command set. I found a nice <a href="http://www.ebooks.vc">e-book</a> on Wikibooks: <a href="http://de.wikibooks.org/wiki/Linux-Kompendium:_Shellprogrammierung">Linux-Kompendium: Shellprogrammierung</a> which helped me a lot. Hence the link for other people.</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/09/18/free-e-book-shellprogramming.html">Free e-book shellprogramming</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2008/09/18/free-e-book-shellprogramming.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache and lighttpd replaced by nginx for PHP application</title>
		<link>http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html</link>
		<comments>http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html#comments</comments>
		<pubDate>Sat, 16 Aug 2008 19:29:00 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[HAproxy]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP-FPM]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[Settings]]></category>
		<category><![CDATA[Squid]]></category>
		<category><![CDATA[stack]]></category>
		<category><![CDATA[Varnish]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=9</guid>
		<description><![CDATA[A while back I wrote an article Switching from Apache H [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html">Apache and lighttpd replaced by nginx for PHP application</a></p>
]]></description>
			<content:encoded><![CDATA[<p>A while back I wrote an article <a href="http://www.linux-showroom.com/2007/11/19/switching-from-apache-http-server-to-lighttpd-installing-lighttpd.html">Switching from Apache HTTP Server to Lighttpd &#8211; Installing Lighttpd</a>. Back then I migrated static stuff to lighttpd but left the dynamic stuff (PHP) with Apache.</p>
<p>I was never really satisfied with the speed of our system under load. I tried and tried. I optimized a lot of stuff in the backend and with the database. Most of the time I found a switch to make the system just a bit faster. Read <a href="http://www.webcoder.de/2008/01/15/retrospective-on-three-years-of-seagull-development.html">Retrospective on three years of Seagull development</a> if you are interested in the whole story.</p>
<p><span id="more-9"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7400231638705781";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "BA6600";
google_color_text = "3F3F3F";
google_color_url = "3F3F3F";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>In the last couple of weeks I ran out of ideas on where to improve next (without the need of rewriting too much code). I remembered using <a href="http://www.squid-cache.org/">Squid</a> years ago. I had a look at the newest version (3.0) and my interest in Squid stopped pretty soon after reading through the documentation. It was just not the software I needed.</p>
<p>I dived into spreading the load to multiple backends using <a href="http://haproxy.1wt.eu/">HAproxy</a> which by the way has a super active community. Check the mailinglist. The maintainer Willy is doing a great job. Learning about HAproxy I stumbled across the webserver <a href="http://wiki.codemongers.com/Main">nginx</a> (pronounced engine x) numerous times. Learning about nginx I stumbled across the reverse proxy <a href="http://varnish.projects.linpro.no/">Varnish</a> which is the proxy solution I hoped Squid would be. Furtherdown the line I ran into PHP-FPM &#8211; the PHP FastCGI Process Manager &#8211; which should not stay unmentioned.</p>
<p>So I read lots of blog posts, mails from mailinglists, documentation, articles, visited several forums and also learned many new things in a few wikis. So after getting the idea I had my stack together: Varnish -> HAproxy -> nginx -> PHP -> MySQL</p>
<p>Time to test it out! Varnish comes in a relatively uptodate package for my favorite distribution OpenSuSE (currently running 10.3 on 6 systems). HAproxy is available in a fresh version. nginx is theoretically available. It cannot install it though because of a package management conflict. So I downloaded the source for the newest stable version (0.6.3 as time of writing) and compiled it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>sysoev.ru<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx-0.6.32.tar.gz
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>nginx-0.6.32 <span style="color: #660033;">--user</span>=nginx <span style="color: #660033;">--group</span>=nginx --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>I did not need to install any extra packages. Frankly spoken I do have all the packages for compilation of C/C++ installed.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>nginx-0.6.32 nginx</pre></div></div>

<p>I always set a symlink to the currently used package. That way it is easy to replace the package when new versions come out. I can compile and install the new version and just switch the symlink.</p>
<p>Next thing I had to compile was a patched PHP version. So download the sources at <a href="http://www.php.net">php.net</a> and the patches at the <a href="http://php-fpm.anight.org/">PHP-FPM</a> site.</p>
<p>Unpack the PHP source:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xjvf php-5.2.6.tar.bz2</pre></div></div>

<p>Patch the source:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-cd</span> php-5.2.6-fpm-0.5.8.diff.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">patch</span> <span style="color: #660033;">-d</span> php-5.2.6 <span style="color: #660033;">-p1</span></pre></div></div>

<p>Configure PHP (adjust your settings accordingly):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">LDFLAGS</span>=<span style="color: #ff0000;">&quot;-L/usr/lib64&quot;</span> .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--with-curl</span> <span style="color: #660033;">--disable-debug</span> <span style="color: #660033;">--enable-libxml</span> <span style="color: #660033;">--enable-session</span> <span style="color: #660033;">--with-pcre-regex</span> <span style="color: #660033;">--enable-xml</span> <span style="color: #660033;">--with-bz2</span> <span style="color: #660033;">--with-zlib</span> <span style="color: #660033;">--enable-exif</span> <span style="color: #660033;">--enable-inline-optimization</span> <span style="color: #660033;">--enable-soap</span> <span style="color: #660033;">--enable-sockets</span> <span style="color: #660033;">--with-xmlrpc</span> <span style="color: #660033;">--without-pear</span> <span style="color: #660033;">--with-libdir</span>=lib64 <span style="color: #660033;">--with-mysql</span> <span style="color: #660033;">--with-mysqli</span> <span style="color: #660033;">--enable-mbstring</span> <span style="color: #660033;">--with-mcrypt</span> <span style="color: #660033;">--with-mhash</span> <span style="color: #660033;">--with-mime-magic</span> <span style="color: #660033;">--with-jpeg-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64 <span style="color: #660033;">--with-png-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64 <span style="color: #660033;">--with-gd</span> <span style="color: #660033;">--enable-gd-native-ttf</span> <span style="color: #660033;">--with-ttf</span> <span style="color: #660033;">--with-freetype-dir</span> <span style="color: #660033;">--enable-ftp</span> <span style="color: #660033;">--enable-zend-multibyte</span> <span style="color: #660033;">--with-openssl</span> <span style="color: #660033;">--enable-force-cgi-redirect</span> <span style="color: #660033;">--with-pcre-regex</span> <span style="color: #660033;">--without-sqlite</span> <span style="color: #660033;">--without-mm</span> <span style="color: #660033;">--enable-fastcgi</span> <span style="color: #660033;">--enable-bcmath</span> <span style="color: #660033;">--enable-fpm</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>php5.2.6-fpm</pre></div></div>

<p>Compile and install:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Adjust the PHP-FPM settings to fit your needs. You can find more info on this and related subjects in the <a href="http://php-fpm.anight.org/docs.html">PHP-FPM documentation</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php-fpm.conf</pre></div></div>

<p>Start PHP-FPM:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php-cgi <span style="color: #660033;">--fpm</span></pre></div></div>

<p>Have a look in the log files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>logs<span style="color: #000000; font-weight: bold;">/</span>php-fpm.log</pre></div></div>

<p>Now you can connect through your webserver to fast-cgi processes. I use nginx as webserver (see above). Advantages and disadvantes of fast-cgi vs. mod-based approaches et al have been covered elsewhere. For me this makes perfectly sense and works extremly well.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7400231638705781";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "BA6600";
google_color_text = "3F3F3F";
google_color_url = "3F3F3F";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>After playing around with Varnish for a while I decided I do not need HAProxy ATM. Varnish can do all the decisions I need to make based on HTTP headers. I configured Varnish&#8217;s config file (here: vcl.conf) by reading lots of examples on the net and trial and error.</p>
<p>If I find more time and anyone is interested I post more details on the configuration of nginx and Varnish. But for now I want to publish this post as it has been sitting here for a while already.</p>
<p>PS: If people say content is king they are absolutely right. But never forget in the internet speed is Kaiser!</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html">Apache and lighttpd replaced by nginx for PHP application</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>OpenOffice 2.3 not working on 64-bit cpu</title>
		<link>http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html</link>
		<comments>http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html#comments</comments>
		<pubDate>Wed, 31 Oct 2007 19:53:48 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[office]]></category>
		<category><![CDATA[OpenOffice]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html</guid>
		<description><![CDATA[I upgraded my OpenOffice installation to version 2.3.0. [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html">OpenOffice 2.3 not working on 64-bit cpu</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I upgraded my OpenOffice installation to version 2.3.0.1 for a 64-bit intel cpu. After upgrading the packages the software would reliably hang on saving a document and generating a pdf. I downgraded back to the monolithic i586 version. Everything works just fine and as expected.</p>
<p><!--adsense--></p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html">OpenOffice 2.3 not working on 64-bit cpu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Source alternative for Camtasia under Linux</title>
		<link>http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html</link>
		<comments>http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html#comments</comments>
		<pubDate>Thu, 25 Oct 2007 12:55:39 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[camtasia]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[Xvidcap]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html</guid>
		<description><![CDATA[I have been thinking of creating my own screencasts for [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html">Open Source alternative for Camtasia under Linux</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I have been thinking of creating my own screencasts for a while. Today I stumbled upon a screenshot of Camtasia studio which looked very promising. Unfortunately they do not offer a linux version. So I googled around for an open source alternative. The one thing I found is the <a href="http://xvidcap.sourceforge.net" title="Xvidcap">Xvidcap project</a>. Drawback with the software is that has not been updated since October last year.</p>
<p>So I installed Xvidcap</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> xvidcap.x86_64</pre></div></div>

<p>You can record actions in a little window. Not as fancy as Camtasia but will do for the beginning.</p>
<p><!--adsense--></p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html">Open Source alternative for Camtasia under Linux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
