<?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>Cristian Livadaru's blog &#187; linux</title>
	<atom:link href="http://cristian.livadaru.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://cristian.livadaru.net</link>
	<description>... think again ...</description>
	<lastBuildDate>Sat, 24 Jul 2010 19:20:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Use Adhearsion to check Asterisk</title>
		<link>http://cristian.livadaru.net/2009/11/03/use-adhearsion-to-check-asterisk/</link>
		<comments>http://cristian.livadaru.net/2009/11/03/use-adhearsion-to-check-asterisk/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 12:10:03 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Adhearsion]]></category>
		<category><![CDATA[Monit]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Nagios]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/?p=648</guid>
		<description><![CDATA[If you have a business depending on asterisk you need to be sure that everything is running. You could use Nagios or Monit to check if asterisk is running, but is it also working? What about your AGI Server? Is it doing what it&#8217;s supposed to do? The best way to find out if this [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a business depending on asterisk you need to be sure that everything is running. You could use <a href="http://www.nagios.org/">Nagios</a> or <a href="http://mmonit.com/monit/">Monit</a> to check if asterisk is running, but is it also working? What about your AGI Server? Is it doing what it&#8217;s supposed to do?</p>
<p>The best way to find out if this works would be to call and see if the call is accepted and if you get something back from your AGI server and you can do this with automatically with <a href="http://adhearsion.com/">Adhearsion</a>!</p>
<p>What you will need is a wav file containing a DTMF sequence. You can create one with Adobe Audition for example (aka Cooledit before Adobe took over). The Trial version is enough to create the DTMF. Use a 300ms pause at least the other settings didn’t really work for me. Also don&#8217;t forget to set your Asterisk server to dtmfmod=inband.</p>
<p>I created a new adhearsion project and used the Simon game as start of and modified it to look like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">methods_for <span style="color:#ff3333; font-weight:bold;">:dialplan</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  <span style="color:#9966CC; font-weight:bold;">def</span> check_call
    CheckCall.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF; font-weight:bold;">self</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">start</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">class</span> CheckCall
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> initialize<span style="color:#006600; font-weight:bold;">&#40;</span>call<span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#0066ff; font-weight:bold;">@call</span> = call
    <span style="color:#0066ff; font-weight:bold;">@number</span>=<span style="color:#996600;">'12345'</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> start
    collect_attempt
    verify_attempt
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> collect_attempt
    <span style="color:#0066ff; font-weight:bold;">@attempt</span> = <span style="color:#0066ff; font-weight:bold;">@call</span>.<span style="color:#9900CC;">input</span> <span style="color:#0066ff; font-weight:bold;">@number</span>.<span style="color:#9900CC;">length</span>,
      <span style="color:#ff3333; font-weight:bold;">:timeout</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> 10.<span style="color:#9900CC;">seconds</span>    
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> verify_attempt
    <span style="color:#9966CC; font-weight:bold;">if</span> attempt_correct? 
		<span style="color:#008000; font-style:italic;"># do something here</span>
    <span style="color:#9966CC; font-weight:bold;">else</span>
		<span style="color:#008000; font-style:italic;"># do something else</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> attempt_correct?
    <span style="color:#0066ff; font-weight:bold;">@attempt</span> == <span style="color:#0066ff; font-weight:bold;">@number</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>What this does is check if the called server sent the DTMF sequence 12345 and if not it would do something.<br/><br />
You cold for example use growl and/or prowl for notification or use some <a href="http://lcx.at/en/products/server-monitoring/">SMS service for notification</a> like <a href="http://lcx.at/en/">lcx.at</a> (I know, shameless self promotion).</p>
<p>Also don&#8217;t forget to activate drb in your adhersion project, do this in startup.rb</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">config.<span style="color:#9900CC;">enable_asterisk</span>
config.<span style="color:#9900CC;">asterisk</span>.<span style="color:#9900CC;">enable_ami</span> <span style="color:#ff3333; font-weight:bold;">:host</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;localhost&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:username</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;amiuser&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:password</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;amipassowrd&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:events</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span>
&nbsp;
config.<span style="color:#9900CC;">enable_drb</span> <span style="color:#ff3333; font-weight:bold;">:host</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;0.0.0.0&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:deny</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;0.0.0.0&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:allow</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">&quot;127.0.0.1&quot;</span>, <span style="color:#996600;">&quot;213.123.118.123&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span></pre></div></div>

<p>Ok now all we need is the script that triggers the call. This could look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'drb'</span>
<span style="color:#0066ff; font-weight:bold;">@adhearsion</span> = DRbObject.<span style="color:#9900CC;">new_with_uri</span> <span style="color:#996600;">&quot;druby://localhost:9050&quot;</span>
result = <span style="color:#0066ff; font-weight:bold;">@adhearsion</span>.<span style="color:#9900CC;">originate</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#ff3333; font-weight:bold;">:channel</span>   <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;SIP/....&quot;</span>, 
                                 <span style="color:#ff3333; font-weight:bold;">:context</span>   <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;checkcall&quot;</span>, 
                                 <span style="color:#ff3333; font-weight:bold;">:exten</span> 	<span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'4000'</span>,
                                 <span style="color:#ff3333; font-weight:bold;">:priority</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">1</span>,
                                 <span style="color:#ff3333; font-weight:bold;">:callerid</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;43123456789&quot;</span>,
                                 <span style="color:#ff3333; font-weight:bold;">:async</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'true'</span>,                                     
                                 <span style="color:#ff3333; font-weight:bold;">:variable</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;call_launcher=true|sleep_time=3600&quot;</span> <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

<p>So, this is it. I know this isn&#8217;t really a copy &#038; paste howto, some things are missing but I don&#8217;t want to repeat things that can be read in the adhearsion documentation.<br />
Oh, what I forgot to mention, I use a separate server which runs Asterisk to do the checks, the checks are NOT done form the same server I am checking, but I think this should be obvious.<br />
If you need a VPS with this Setup, or need someone to verify your VoIP Servers, feel free to <a href="http://lcx.at/en/contact-us/">contact me</a>! </p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2009/11/03/use-adhearsion-to-check-asterisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The oldest hard-disk</title>
		<link>http://cristian.livadaru.net/2009/05/10/the-oldest-hard-disk/</link>
		<comments>http://cristian.livadaru.net/2009/05/10/the-oldest-hard-disk/#comments</comments>
		<pubDate>Sun, 10 May 2009 06:21:00 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[harddisk]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/?p=630</guid>
		<description><![CDATA[Seems like I have one of the oldest, if not the oldest, hard disk in the world in one of my servers Didn&#8217;t know they had SATA 136 years ago.]]></description>
			<content:encoded><![CDATA[<p>Seems like I have one of the oldest, if not the oldest, hard disk in the world in one of my servers <img src='http://cristian.livadaru.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Didn&#8217;t know they had SATA 136 years ago. <a class="thickbox" href="http://cristian.livadaru.net/wp-content/uploads/2009/05/old_harddisk.png"><img src="http://cristian.livadaru.net/wp-content/uploads/2009/05/old_harddisk-300x46.png" alt="old_harddisk" title="old_harddisk" width="300" height="46" class="alignnone size-medium wp-image-631" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2009/05/10/the-oldest-hard-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[HowTo] Installing Ruby Enterprise Edition and Passenger on Debian Etch</title>
		<link>http://cristian.livadaru.net/2009/01/12/howto-installing-ruby-enterprise-edition-and-passenger-on-debian-etch/</link>
		<comments>http://cristian.livadaru.net/2009/01/12/howto-installing-ruby-enterprise-edition-and-passenger-on-debian-etch/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 14:22:46 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[debuan]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/?p=593</guid>
		<description><![CDATA[Install some stuff we will need apt-get install build-essential apache2 ruby1.8 zlib1g-dev libssl-dev mysql-server mysql-common libmysqlclient15-dev libmysqlclient15off apache2-prefork-dev Create a link for ruby else the installer won&#8217;t work ln -s /usr/bin/ruby1.8 /usr/bin/ruby get Ruby Enterprise edition (http://www.rubyenterpriseedition.com/download.html) tar xzvf ruby-enterprise-X.X.X.tar.gz ./ruby-enterprise-X.X.X/installer Delete the Ruby link and create new links rm /usr/bin/ruby ln -s /opt/ruby-enterprise-1.8.6-20081215/bin/rake /usr/bin/rake [...]]]></description>
			<content:encoded><![CDATA[<p>Install some stuff we will need</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential apache2 ruby1.8 zlib1g-dev libssl-dev mysql-server mysql-common libmysqlclient15-dev libmysqlclient15off apache2-prefork-dev</pre></div></div>

<p>Create a link for ruby else the installer won&#8217;t work</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby</pre></div></div>

<p>get Ruby Enterprise edition (http://www.rubyenterpriseedition.com/download.html)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xzvf ruby-enterprise-X.X.X.tar.gz
.<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-X.X.X<span style="color: #000000; font-weight: bold;">/</span>installer</pre></div></div>

<p>Delete the Ruby link and create new links</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby
<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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rake <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rake
<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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem 
<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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rails <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rails
<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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby</pre></div></div>

<p>Install Passenger</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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>passenger-install-apache2-module</pre></div></div>

<p>if you have this error</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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-2.0.6
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #660033;">-S</span> rake clean apache2
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby: No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory <span style="color: #660033;">--</span> rake <span style="color: #7a0874; font-weight: bold;">&#40;</span>LoadError<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>then it looks like the Rake GEM was not installed, just install it now. and don&#8217;t forget to create the symlink in /usr/bin !</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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem <span style="color: #c20cb9; font-weight: bold;">install</span> rake</pre></div></div>

<p>Add this to /etc/apache2/apache2.conf</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">LoadModule</span> passenger_module /opt/ruby-enterprise-1.8.6-<span style="color: #ff0000;">20081215</span>/lib/ruby/gems/<span style="color: #ff0000;">1.8</span>/gems/passenger-2.0.6/ext/apache2/mod_passenger.so
PassengerRoot /opt/ruby-enterprise-1.8.6-<span style="color: #ff0000;">20081215</span>/lib/ruby/gems/<span style="color: #ff0000;">1.8</span>/gems/passenger-2.0.6
PassengerRuby /opt/ruby-enterprise-1.8.6-<span style="color: #ff0000;">20081215</span>/bin/ruby</pre></div></div>

<p>That&#8217;s it ! Now you can configure your vhosts.</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">VirtualHost</span> 192.168.0.1:<span style="color: #ff0000;">80</span>&gt;
  <span style="color: #00007f;">ServerName</span> foo.com
  <span style="color: #00007f;">DocumentRoot</span> /var/rails/
&nbsp;
  RailsBaseURI /project1
  RailsBaseURI /project2
  RailsBaseURI /project3
&nbsp;
  <span style="color: #00007f;">Alias</span> /docs <span style="color: #7f007f;">&quot;/opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/passenger-2.0.6/doc/Users guide.html&quot;</span>
&lt;/<span style="color: #000000; font-weight:bold;">VirtualHost</span>&gt;</pre></div></div>

<p>An finaly, the capistrano config in deploy.rb</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">set <span style="color:#ff3333; font-weight:bold;">:application</span>, <span style="color:#996600;">&quot;project1&quot;</span>
set <span style="color:#ff3333; font-weight:bold;">:repository</span>,  <span style="color:#996600;">&quot;https://svn.foo.com/project1&quot;</span>
set <span style="color:#ff3333; font-weight:bold;">:user</span>, <span style="color:#996600;">'root'</span>
set <span style="color:#ff3333; font-weight:bold;">:use_sudo</span>, <span style="color:#0000FF; font-weight:bold;">false</span>
<span style="color:#008000; font-style:italic;"># If you aren't deploying to /u/apps/#{application} on the target</span>
<span style="color:#008000; font-style:italic;"># servers (which is the default), you can specify the actual location</span>
<span style="color:#008000; font-style:italic;"># via the :deploy_to variable:</span>
set <span style="color:#ff3333; font-weight:bold;">:deploy_to</span>, <span style="color:#996600;">&quot;/var/rails/#{application}&quot;</span>
&nbsp;
after <span style="color:#996600;">&quot;deploy:update_code&quot;</span>, <span style="color:#996600;">&quot;deploy:chown&quot;</span>
&nbsp;
role <span style="color:#ff3333; font-weight:bold;">:app</span>, <span style="color:#996600;">&quot;foo.com&quot;</span>
role <span style="color:#ff3333; font-weight:bold;">:web</span>, <span style="color:#996600;">&quot;foo.com&quot;</span>
role <span style="color:#ff3333; font-weight:bold;">:db</span>,  <span style="color:#996600;">&quot;foo.com&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:primary</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span>
&nbsp;
namespace <span style="color:#ff3333; font-weight:bold;">:deploy</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  desc <span style="color:#996600;">&quot;Change owner&quot;</span>
  task <span style="color:#ff3333; font-weight:bold;">:chown</span>, <span style="color:#ff3333; font-weight:bold;">:roles</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:app</span> <span style="color:#9966CC; font-weight:bold;">do</span>
    run <span style="color:#996600;">&quot;chown www-data:www-data -R #{latest_release}&quot;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
  desc <span style="color:#996600;">&quot;Restart Application&quot;</span>
  task <span style="color:#ff3333; font-weight:bold;">:restart</span>, <span style="color:#ff3333; font-weight:bold;">:roles</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:app</span> <span style="color:#9966CC; font-weight:bold;">do</span>
    run <span style="color:#996600;">&quot;touch #{current_path}/tmp/restart.txt&quot;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>in case you have this error:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">script<span style="color: #000000; font-weight: bold;">/</span>console production
Loading production environment <span style="color: #7a0874; font-weight: bold;">&#40;</span>Rails 2.1.0<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>irb<span style="color: #000000; font-weight: bold;">/</span>completion.rb:<span style="color: #000000;">10</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>require<span style="color: #ff0000;">': no such file to load -- readline (LoadError)
        from /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/1.8/irb/completion.rb:10
        from /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/1.8/irb/init.rb:252:in `require'</span>
        from <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>irb<span style="color: #000000; font-weight: bold;">/</span>init.rb:<span style="color: #000000;">252</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>load_modules<span style="color: #ff0000;">'
        from /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/1.8/irb/init.rb:250:in `each'</span>
        from <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>irb<span style="color: #000000; font-weight: bold;">/</span>init.rb:<span style="color: #000000;">250</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>load_modules<span style="color: #ff0000;">'
        from /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/1.8/irb/init.rb:21:in `setup'</span>
        from <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>irb.rb:<span style="color: #000000;">54</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>start<span style="color: #ff0000;">'
        from /usr/bin/irb:13</span></pre></div></div>

<p>Then some things where missing during install. Let&#8217;s install that and compile readling.</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>root<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>source<span style="color: #000000; font-weight: bold;">/</span>ext<span style="color: #000000; font-weight: bold;">/</span>readline
&nbsp;
ruby extconf.rb
checking <span style="color: #000000; font-weight: bold;">for</span> tgetnum<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">in</span> -lncurses... no
checking <span style="color: #000000; font-weight: bold;">for</span> tgetnum<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">in</span> -ltermcap... no
checking <span style="color: #000000; font-weight: bold;">for</span> tgetnum<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">in</span> -lcurses... no
checking <span style="color: #000000; font-weight: bold;">for</span> readline<span style="color: #000000; font-weight: bold;">/</span>readline.h... no
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libncurses5-dev libreadline5-dev</pre></div></div>

<p>Check once again if everything is installed</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ruby extconf.rb
.
.
creating Makefile</pre></div></div>

<p>and now compile</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: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2009/01/12/howto-installing-ruby-enterprise-edition-and-passenger-on-debian-etch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing RMagick2 on Debian Etch on AMD64</title>
		<link>http://cristian.livadaru.net/2008/12/10/installing-rmagick2-on-debian-etch-on-amd64/</link>
		<comments>http://cristian.livadaru.net/2008/12/10/installing-rmagick2-on-debian-etch-on-amd64/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 12:58:43 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2008/12/10/installing-rmagick2-on-debian-etch-on-amd64/</guid>
		<description><![CDATA[There are plenty of installation howto&#8217;s but in none of them I found how to get it running with debian Etch. So here is how I did it You can stick with the original installation guide for the beginning. Get the sources of ImageMagick &#62; 6.3, unfortunately the debian etch packages are to old so [...]]]></description>
			<content:encoded><![CDATA[<p>There are plenty of installation howto&#8217;s but in none of them I found how to get it running with debian Etch.</p>
<p>So here is how I did it</p>
<p>You can stick with <a href="http://rmagick.rubyforge.org/install2-linux.html">the original installation guide</a> for the beginning. Get the sources of ImageMagick &gt; 6.3, unfortunately the debian etch packages are to old so you have to compile it yourself!</p>
<p>After installing ImageMagick and RMagick you will have this problem:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">irb <span style="color:#006600; font-weight:bold;">-</span>rubygems <span style="color:#006600; font-weight:bold;">-</span>r RMagick
<span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>ruby<span style="color:#006600; font-weight:bold;">/</span>gems<span style="color:#006600; font-weight:bold;">/</span><span style="color:#006666;">1.8</span><span style="color:#006600; font-weight:bold;">/</span>gems<span style="color:#006600; font-weight:bold;">/</span>rmagick<span style="color:#006600; font-weight:bold;">-</span>2.8.0<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>RMagick2.<span style="color:#9900CC;">so</span>: libMagickCore.<span style="color:#9900CC;">so</span>.1: cannot <span style="color:#CC0066; font-weight:bold;">open</span> shared object file: No such file <span style="color:#9966CC; font-weight:bold;">or</span> directory <span style="color:#006600; font-weight:bold;">-</span> <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>ruby<span style="color:#006600; font-weight:bold;">/</span>gems<span style="color:#006600; font-weight:bold;">/</span><span style="color:#006666;">1.8</span><span style="color:#006600; font-weight:bold;">/</span>gems<span style="color:#006600; font-weight:bold;">/</span>rmagick<span style="color:#006600; font-weight:bold;">-</span>2.8.0<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>RMagick2.<span style="color:#9900CC;">so</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC00FF; font-weight:bold;">LoadError</span><span style="color:#006600; font-weight:bold;">&#41;</span>
        from <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>local<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>site_ruby<span style="color:#006600; font-weight:bold;">/</span><span style="color:#006666;">1.8</span><span style="color:#006600; font-weight:bold;">/</span>rubygems<span style="color:#006600; font-weight:bold;">/</span>custom_require.<span style="color:#9900CC;">rb</span>:<span style="color:#006666;">32</span>:<span style="color:#9966CC; font-weight:bold;">in</span> <span style="color:#996600;">`require'
        from /usr/lib/ruby/gems/1.8/gems/rmagick-2.8.0/lib/RMagick.rb:11
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `</span>gem_original_require<span style="color:#996600;">'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'</span>
        from <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>ruby<span style="color:#006600; font-weight:bold;">/</span><span style="color:#006666;">1.8</span><span style="color:#006600; font-weight:bold;">/</span>irb<span style="color:#006600; font-weight:bold;">/</span>init.<span style="color:#9900CC;">rb</span>:<span style="color:#006666;">252</span>:<span style="color:#9966CC; font-weight:bold;">in</span> <span style="color:#996600;">`load_modules'
        from /usr/lib/ruby/1.8/irb/init.rb:250:in `</span>each<span style="color:#996600;">'
        from /usr/lib/ruby/1.8/irb/init.rb:250:in `load_modules'</span>
        from <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>ruby<span style="color:#006600; font-weight:bold;">/</span><span style="color:#006666;">1.8</span><span style="color:#006600; font-weight:bold;">/</span>irb<span style="color:#006600; font-weight:bold;">/</span>init.<span style="color:#9900CC;">rb</span>:<span style="color:#006666;">21</span>:<span style="color:#9966CC; font-weight:bold;">in</span> <span style="color:#996600;">`setup'
        from /usr/lib/ruby/1.8/irb.rb:54:in `</span>start<span style="color:#996600;">'
        from /usr/bin/irb:13</span></pre></td></tr></table></div>

<p>To solve this problem create a new ld.so config by creating a file /etc/ld.so.conf.d/local.conf and add these 2 lines:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib</pre></td></tr></table></div>

<p>and run ldconfig</p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2008/12/10/installing-rmagick2-on-debian-etch-on-amd64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The REAL reason we use Linux</title>
		<link>http://cristian.livadaru.net/2008/03/18/the-real-reason-we-use-linux/</link>
		<comments>http://cristian.livadaru.net/2008/03/18/the-real-reason-we-use-linux/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 15:17:49 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2008/03/18/the-real-reason-we-use-linux/</guid>
		<description><![CDATA[We tell people we use Linux because it&#8217;s secure. Or because it&#8217;s free, because it&#8217;s customizable, because it&#8217;s free (the other meaning), because it has excellent community support&#8230; But all of that is just marketing bullshit. We tell that to non-Linuxers because they wouldn&#8217;t understand the real reason. And when we say those false reasons [...]]]></description>
			<content:encoded><![CDATA[<p>We tell people we use Linux because it&#8217;s secure. Or because it&#8217;s free, because it&#8217;s customizable, because it&#8217;s free (the other meaning), because it has excellent community support&#8230;</p>
<p>But all of that is just marketing bullshit. We tell that to non-Linuxers because they wouldn&#8217;t understand the real reason. And when we say those false reasons enough, we might even start to believe them ourselves.</p>
<p>But deep underneath, the real reason remains.</p>
<p>We use Linux because it&#8217;s fun!</p>
<p><a href="http://blog.anamazingmind.com/2008/03/real-reason-we-use-linux.html">more &#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2008/03/18/the-real-reason-we-use-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Install splunk&gt;_ on Debian</title>
		<link>http://cristian.livadaru.net/2007/07/21/howto-install-splunk_-on-debian/</link>
		<comments>http://cristian.livadaru.net/2007/07/21/howto-install-splunk_-on-debian/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 08:09:42 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2007/07/21/howto-install-splunk_-on-debian/</guid>
		<description><![CDATA[* Download the RPM from http://www.splunk.com * create a deb package with alien * install the deb package (dpkg -i .. ) * cd /opt/splunk/bin * ./splunk start If you get errors like this: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Then install libstdc++6 * apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>* Download the RPM from http://www.splunk.com<br />
* create a deb package with alien<br />
* install the deb package (dpkg -i .. )<br />
* cd /opt/splunk/bin<br />
* ./splunk start</p>
<p>If you get errors like this: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory</p>
<p>Then install libstdc++6</p>
<p>* apt-get install libstdc++6 </p>
<p>It&#8217;s that simple <img src='http://cristian.livadaru.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/debian" rel="tag">debian</a>, <a href="http://www.technorati.com/tag/linux" rel="tag">linux</a>, <a href="http://www.technorati.com/tag/howto" rel="tag">howto</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2007/07/21/howto-install-splunk_-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo install openfire (former wildfire) on Debian</title>
		<link>http://cristian.livadaru.net/2007/06/19/howto-install-openfire-former-wildfire-on-debian/</link>
		<comments>http://cristian.livadaru.net/2007/06/19/howto-install-openfire-former-wildfire-on-debian/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 16:18:05 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2007/06/19/howto-install-openfire-former-wildfire-on-debian/</guid>
		<description><![CDATA[Note: This has been done on a Debian Sarge installation but it should work on Etch also, I will report if it does once I have done it, sometime this week. I found this post on howtoforge and it helped me alot. First you need Java JRE, lucky me I had a deb package on [...]]]></description>
			<content:encoded><![CDATA[<p>Note: This has been done on a Debian Sarge installation but it should work on Etch also, I will report if it does once I have done it, sometime this week.<br />
I found this <a href="http://www.howtoforge.com/forums/showpost.php?p=24163&#038;postcount=3">post on howtoforge</a> and it helped me alot. </p>
<p>First you need Java JRE, lucky me I had a deb package on my server from some other tests so I didn&#8217;t need to create a new JRE deb package.<br />
Follow <a href="http://wiki.serios.net/wiki/Debian_Java_JRE/JDK_installation">this howto to create a debian</a> package so you can install JRE the debian way. Once you installed the JRE you can continue with openfire.</p>
<p>Download openfire from http://www.igniterealtime.org/downloads/index.jsp<br />
download the tgz file, the rpm installation with alien didn&#8217;t work for me on a AMD64, will probably work for i386.<br />
unpack it move it to /opt</p>
<p>tar -xzvf openfire_3_0_0.tar.gz<br />
mv openfire /opt</p>
<p>You don&#8217;t need to install any mysql java connector as mentioned on howtoforge, openfire now comes with everything you need.<br />
Create a new database and create the tables with the provided file.<br />
for example: mysql -u <user> -p < /opt/openfire/resources/database/openfire_mysql.sql</p>
<p>Make sure openfire.xml is writeable:<br />
# chmod 777 /opt/openfire/conf/openfire.xml</p>
<p>Now setup openfire over the webinterface: http://localhost:9090 or http://127.0.0.1:9090<br />
or use whatever server it is running on instead of localhost.</p>
<p>Note: if you have something like this in your /etc/hosts file </p>
<p>127.0.0.1      foobar localhost localhost.localdomain</p>
<p>it won't work since it will try to connect with dbuser@foobar instead of dbuser@localhost which won't work!<br />
change you /etc/hosts so that localhost is first! </p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/linux" rel="tag">linux</a>, <a href="http://www.technorati.com/tag/howto" rel="tag">howto</a>, <a href="http://www.technorati.com/tag/jabber" rel="tag">jabber</a>, <a href="http://www.technorati.com/tag/openfire" rel="tag">openfire</a>, <a href="http://www.technorati.com/tag/debian" rel="tag">debian</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2007/06/19/howto-install-openfire-former-wildfire-on-debian/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[HowTo] Installing eAccelerator on Debian etch</title>
		<link>http://cristian.livadaru.net/2007/05/25/howto-installing-eaccelerator-on-debian-etch/</link>
		<comments>http://cristian.livadaru.net/2007/05/25/howto-installing-eaccelerator-on-debian-etch/#comments</comments>
		<pubDate>Fri, 25 May 2007 12:10:06 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2007/05/25/howto-installing-eaccelerator-on-debian-etch/</guid>
		<description><![CDATA[This works for php4 and php5, apache1.3 and 2! first get php5-dev (or php4-dev, depending on what you use) apt-get install php5-dev get eaccelerator from here and unpack it. cd eaccelerator-0.9.5 phpize ./configure make make install create the eaccelerator cache directories mkdir /tmp/eaccelerator chmod 0777 /tmp/eaccelerator and add this to your php.ini (in my case: [...]]]></description>
			<content:encoded><![CDATA[<p>This works for php4 and php5, apache1.3 and 2! </p>
<p>first get php5-dev (or php4-dev, depending on what you use)<br />
apt-get install php5-dev </p>
<p>get eaccelerator from <a href="http://bart.eaccelerator.net/source/0.9.5/eaccelerator-0.9.5.tar.bz2">here</a> and unpack it.<br />
cd eaccelerator-0.9.5<br />
phpize<br />
./configure<br />
make<br />
make install </p>
<p>create the eaccelerator cache directories<br />
mkdir /tmp/eaccelerator<br />
chmod 0777 /tmp/eaccelerator</p>
<p>and add this to your php.ini (in my case: /etc/php5/apache2/php.ini )</p>
<p>extension=eaccelerator.so<br />
eaccelerator.shm_size=64<br />
eaccelerator.cache_dir=/tmp/eaccelerator<br />
eaccelerator.enable=1<br />
eaccelerator.optimizer=1<br />
eaccelerator.check_mtime=1<br />
eaccelerator.debug=0<br />
eaccelerator.filter=<br />
eaccelerator.shm_max=0<br />
eaccelerator.shm_ttl=0<br />
eaccelerator.shm_prune_period=0<br />
eaccelerator.shm_only=0<br />
eaccelerator.compress=1<br />
eaccelerator.compress_level=9<br />
eaccelerator.allowed_admin_path=/path/to/control.php</p>
<p>adjust the memory to whatever you like.<br />
Copy the control.php to whatever path you like (must be some htdocs accessible path) and set the path in eaccelerator.allowed_admin_path= &#8230;<br />
edit the file and user/password.<br />
now restart apache and you are done! go to the link where control.php is and check if you can login and if it works.<br />
<!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/debian" rel="tag">debian</a>, <a href="http://www.technorati.com/tag/eaccelerator" rel="tag">eaccelerator</a>, <a href="http://www.technorati.com/tag/server" rel="tag">server</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2007/05/25/howto-installing-eaccelerator-on-debian-etch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPCop out of the &#8220;box&#8221;</title>
		<link>http://cristian.livadaru.net/2007/04/07/ipcop-out-of-the-box/</link>
		<comments>http://cristian.livadaru.net/2007/04/07/ipcop-out-of-the-box/#comments</comments>
		<pubDate>Sat, 07 Apr 2007 14:13:00 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2007/04/07/ipcop-out-of-the-box/</guid>
		<description><![CDATA[I bought a VIA mini ITX mainboard to make a new firewall, the old one with a Pentium1 166mhz was going a bit slow and since I also wanted to use VPN I needed something better. IPCop was installed quite fast, and a quick search brought me to this great howto. After setting up VPN [...]]]></description>
			<content:encoded><![CDATA[<p>I bought a VIA mini ITX mainboard to make a new firewall, the old one with a Pentium1 166mhz was going a bit slow and since I also wanted to use VPN I needed something better. IPCop was installed quite fast, and a quick search brought me to <a href="http://thinkhole.org/wp/2006/03/28/ipcop-openvpn-howto/">this great howto</a>. After setting up VPN I needed a client for Mac OS and I found &#8220;<a href="http://www.tunnelblick.net/">Tunnelblick</a>&#8220;, quick installation and everything worked great. Now together with my mobile internet connection I can log in from everywhere and also be <a href="http://cristian.livadaru.net/wp-content/uploads/cris/2007/IMG_7694.JPG" rel="lightbox"><img src="http://cristian.livadaru.net/wp-content/uploads/cris/2007/.thumbs/th_IMG_7694.JPG" alt="IMG_7694.JPG" title="IMG_7694.JPG" align="left" border="0" /></a>secured <img src='http://cristian.livadaru.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Ok but what is it with the topic, out of the box? Well, usually this has some other meaning, but I really mean my IPCop works &#8220;out of the box&#8221;, I couldn&#8217;t find a case where I could fit it in so I just took a cardboard box <img src='http://cristian.livadaru.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2007/04/07/ipcop-out-of-the-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My fileserver in action</title>
		<link>http://cristian.livadaru.net/2007/04/07/my-fileserver-in-action/</link>
		<comments>http://cristian.livadaru.net/2007/04/07/my-fileserver-in-action/#comments</comments>
		<pubDate>Fri, 06 Apr 2007 23:00:21 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2007/04/07/my-fileserver-in-action/</guid>
		<description><![CDATA[Well, after I managed to fill 600Gigs it was time to get a new hard disk. I do still have some IDE Ports on that boad free, but why not get a SATA controller and a brand new SATA disk instead? Faster and it will also work if I switch the mainboard. Well, there was [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cristian.livadaru.net/wp-content/uploads/cris/2007/esplendidos.jpg" rel="lightbox"><img src="http://cristian.livadaru.net/wp-content/uploads/cris/2007/.thumbs/th_esplendidos.jpg" alt="esplendidos.jpg" title="esplendidos.jpg" align="left" border="0" /></a>Well, after I managed to fill 600Gigs it was time to get a new hard disk. I do still have some IDE Ports on that boad free, but why not get a SATA controller and a brand new SATA disk instead? Faster and it will also work if I switch the mainboard.</p>
<p>Well, there was only one problem, I still had my two big discs in a RAID 0 array which can&#8217;t be expanded by a third disk so it was time to switch to LVM. Lucky me that I had 4 SATA disks for the server I am working on where I can move my data to free the disks for the LVM. It took awhile to move 600gigs but now everything is done and my fileserver is back online with a nice and big LVM that could be expanded &#8230;. if I had more power connectors for the hard disks and space in the case for a new disk, the harddisk in the photo that is outside of the case is really connected and running <img src='http://cristian.livadaru.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>LV        VG      Attr   LSize    Origin Snap%  Move Copy%<br />
sharelv   sharevg -wi-ao  931.52G</p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2007/04/07/my-fileserver-in-action/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
