<?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>zorzorz</title>
	<atom:link href="http://www.zorzorz.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zorzorz.net</link>
	<description></description>
	<lastBuildDate>Mon, 12 Sep 2011 22:04:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Toilet Snorkel</title>
		<link>http://www.zorzorz.net/2011/09/13/toilet-snorkel/</link>
		<comments>http://www.zorzorz.net/2011/09/13/toilet-snorkel/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 22:04:35 +0000</pubDate>
		<dc:creator>lorenzo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[pearls from the network]]></category>

		<guid isPermaLink="false">http://www.zorzorz.net/?p=167</guid>
		<description><![CDATA[why would you do that?]]></description>
			<content:encoded><![CDATA[<p>why would you do that?</p>
<p><a href="http://www.zorzorz.net/blog/wp-content/uploads/2011/09/toilet-snorkel.png"><img class="alignnone size-full wp-image-168" title="toilet snorkel" src="http://www.zorzorz.net/blog/wp-content/uploads/2011/09/toilet-snorkel.png" alt="" width="400" height="302" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zorzorz.net/2011/09/13/toilet-snorkel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nagios Error: Could not read object configuration data!</title>
		<link>http://www.zorzorz.net/2011/08/29/nagios-error-could-not-read-object-configuration-data/</link>
		<comments>http://www.zorzorz.net/2011/08/29/nagios-error-could-not-read-object-configuration-data/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 18:03:36 +0000</pubDate>
		<dc:creator>lorenzo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://www.zorzorz.net/?p=162</guid>
		<description><![CDATA[Some times ago i was experiencing a problem with nagios3 in Debian. After installing nagios, browsing the nagios web page, i got the following error: Could not read object configuration data! Nagios log messages didn&#8217;t reported any useful information. So &#8230; <a href="http://www.zorzorz.net/2011/08/29/nagios-error-could-not-read-object-configuration-data/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Some times ago i was experiencing a problem with nagios3 in Debian.</p>
<p>After installing nagios, browsing the nagios web page, i got the following error:</p>
<p><span class="Apple-style-span" style="font-style: italic;">Could not read object configuration data!</span></p>
<p>Nagios log messages didn&#8217;t reported any useful information. So googling around and making some test i discovered that was a permission problem of the nagios cache files. So i solved my problem changing the group of the /var/cache/nagios3/ directory as follow:</p>
<pre>chgrp -R apache /var/cache/nagios3/</pre>
<p>Previously was set to <em>www-data </em>.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zorzorz.net/2011/08/29/nagios-error-could-not-read-object-configuration-data/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenKM 5.x with MySQL</title>
		<link>http://www.zorzorz.net/2011/08/25/openkm-5-x-with-mysql/</link>
		<comments>http://www.zorzorz.net/2011/08/25/openkm-5-x-with-mysql/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 13:04:16 +0000</pubDate>
		<dc:creator>lorenzo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[KMS]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OpenKM]]></category>

		<guid isPermaLink="false">http://www.zorzorz.net/?p=122</guid>
		<description><![CDATA[Install OpenKM  Install openkm in /opt directory Database Setup DROP DATABASE IF EXISTS okm_repo; DROP DATABASE IF EXISTS okm_app; CREATE DATABASE okm_repo DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin; CREATE DATABASE okm_app DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin; CREATE &#8230; <a href="http://www.zorzorz.net/2011/08/25/openkm-5-x-with-mysql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3><strong>Install OpenKM </strong></h3>
<p>Install openkm in /opt directory</p>
<h3><strong>Database Setup</strong></h3>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">DROP</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> <span style="color: #993333; font-weight: bold;">IF</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> okm_repo; <span style="color: #993333; font-weight: bold;">DROP</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> <span style="color: #993333; font-weight: bold;">IF</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> okm_app;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> okm_repo <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">CHARACTER</span> <span style="color: #993333; font-weight: bold;">SET</span> utf8 <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">COLLATE</span> utf8_bin;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> okm_app <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">CHARACTER</span> <span style="color: #993333; font-weight: bold;">SET</span> utf8 <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">COLLATE</span> utf8_bin;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">USER</span> <span style="color: #ff0000;">'openkm'</span>@<span style="color: #ff0000;">'localhost'</span> <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'h3ll0$'</span>;
<span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">ALL</span> <span style="color: #993333; font-weight: bold;">ON</span> okm_repo<span style="color: #66cc66;">.*</span> <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #ff0000;">'openkm'</span>@<span style="color: #ff0000;">'localhost'</span> <span style="color: #993333; font-weight: bold;">WITH</span> <span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">OPTION</span>;
<span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">ALL</span> <span style="color: #993333; font-weight: bold;">ON</span> okm_app<span style="color: #66cc66;">.*</span> <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #ff0000;">'openkm'</span>@<span style="color: #ff0000;">'localhost'</span> <span style="color: #993333; font-weight: bold;">WITH</span> <span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">OPTION</span>;</pre></div></div>

<h3><strong>Configure Datasource</strong></h3>
<p>Edit the file $JBOSS_HOME/server/default/deploy/openkm-ds.xml as follow:<br />
<span id="more-122"></span></p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;datasources<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;local-tx-datasource<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;jndi-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>OpenKMDS<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/jndi-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;connection-url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jdbc:mysql://localhost:3306/okm_app?autoReconnect=true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/connection-url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;driver-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.mysql.jdbc.Driver<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/driver-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;user-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>openkm<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/user-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>h3ll0$<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;min-pool-size<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>5<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/min-pool-size<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;max-pool-size<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>20<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/max-pool-size<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;idle-timeout-minutes<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>28680<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/idle-timeout-minutes<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exception-sorter-class-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exception-sorter-class-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;valid-connection-checker-class-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/valid-connection-checker-class-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;metadata<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;type-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>mySQL<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/metadata<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/local-tx-datasource<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/datasources<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<h3><strong>Configure repository.xml</strong></h3>
<p>Replace the $JBOSS_HOME/repository.xml with <a href="/misc/openkm/repository.xml">this one</a>. <br/><br />
I changed the &lt;PersistenceManager&gt; block inside both &lt;Workspace&gt; and &lt;Versioning&gt; blocks as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Workspace</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;${wsp.name}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
....
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;PersistenceManager</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;driver&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;com.mysql.jdbc.Driver&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;url&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;jdbc:mysql://localhost:3306/okm_repo?autoReconnect=true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;schema&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;mysql&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;user&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;openkm&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;h3ll0$&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;schemaObjectPrefix&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;${wsp.name}_&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;externalBLOBs&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/PersistenceManager<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
....
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Workspace<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Versioning</span> <span style="color: #000066;">rootPath</span>=<span style="color: #ff0000;">&quot;${rep.home}/version&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
...
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;PersistenceManager</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;driver&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;com.mysql.jdbc.Driver&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;url&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;jdbc:mysql://localhost:3306/okm_repo? autoReconnect=true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;schema&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;mysql&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;user&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;openkm&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;h3ll0$&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;schemaObjectPrefix&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;version_&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;externalBLOBs&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/PersistenceManager<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
...</pre></div></div>

<h3><strong>Setup OpenKM.cfg</strong></h3>
<p>Edit the $JBOSS_HOME/OpenKM.cfg as follows:</p>
<pre>
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.hbm2ddl=create
</pre>
<h3><strong>Run OpenKM</strong></h3>
<p>Next you can run OpenKM with</p>
<pre>$JBOSS_HOME/bin/run.sh</pre>
<p>To listen on all network interfaces run with the <b>-b 0.0.0.0</b> option.<br />
Once you run the server for the first time remember to change the hibernate.hbm2ddl option to <i>none</i> in the OpenKM.cfg. This will avoid to recreate the tables each time you run the server.<br/></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zorzorz.net/2011/08/25/openkm-5-x-with-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error installing mongrel:  `require&#8217;: no such file to load &#8212; mkmf (LoadError)</title>
		<link>http://www.zorzorz.net/2011/08/16/error-installing-mongrel-require-no-such-file-to-load-mkmf-loaderror/</link>
		<comments>http://www.zorzorz.net/2011/08/16/error-installing-mongrel-require-no-such-file-to-load-mkmf-loaderror/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 17:34:31 +0000</pubDate>
		<dc:creator>lorenzo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.zorzorz.net/?p=119</guid>
		<description><![CDATA[lorenzo@ubuntu:~$ sudo gem1.8 install daemons gem_plugin mongrel mongrel_cluster --include-dependencies INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list Successfully installed daemons-1.1.4 Successfully installed gem_plugin-0.2.3 Building native extensions. This &#8230; <a href="http://www.zorzorz.net/2011/08/16/error-installing-mongrel-require-no-such-file-to-load-mkmf-loaderror/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><code>lorenzo@ubuntu:~$ sudo gem1.8 install daemons gem_plugin mongrel mongrel_cluster --include-dependencies<br />
INFO: `gem install -y` is now default and will be removed<br />
INFO: use --ignore-dependencies to install only the gems you list<br />
Successfully installed daemons-1.1.4<br />
Successfully installed gem_plugin-0.2.3<br />
Building native extensions. This could take a while...<br />
ERROR: Error installing mongrel:<br />
ERROR: Failed to build gem native extension.</code><br />
<span id="more-119"></span><br />
<code>/usr/bin/ruby1.8 extconf.rb<br />
extconf.rb:8:in `require': no such file to load -- mkmf (LoadError)<br />
from extconf.rb:8</code></p>
<p><code>Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection.<br />
Results logged to /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem_make.out<br />
Building native extensions. This could take a while...<br />
ERROR: Error installing mongrel_cluster:<br />
ERROR: Failed to build gem native extension.</code></p>
<p><code>/usr/bin/ruby1.8 extconf.rb<br />
extconf.rb:8:in `require': no such file to load -- mkmf (LoadError)<br />
from extconf.rb:8</code></p>
<p><code>Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection.<br />
Results logged to /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem_make.out<br />
2 gems installed<br />
Installing ri documentation for daemons-1.1.4...<br />
Installing ri documentation for gem_plugin-0.2.3...<br />
Installing RDoc documentation for daemons-1.1.4...<br />
Installing RDoc documentation for gem_plugin-0.2.3...</code></p>
<p>The solution is to install the ruby-dev package:</p>
<p><code>lorenzo@ubuntu:~$ sudo apt-get install ruby-dev</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zorzorz.net/2011/08/16/error-installing-mongrel-require-no-such-file-to-load-mkmf-loaderror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script to create fancy ~/.bash_profile and ~/.vimrc for solaris</title>
		<link>http://www.zorzorz.net/2011/06/27/script-to-create-fancy-bash_profile-and-vimrc-for-solaris/</link>
		<comments>http://www.zorzorz.net/2011/06/27/script-to-create-fancy-bash_profile-and-vimrc-for-solaris/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 20:49:59 +0000</pubDate>
		<dc:creator>lorenzo</dc:creator>
				<category><![CDATA[shell]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://zorzorz.net/?p=94</guid>
		<description><![CDATA[How many times creating a new solaris user, you have to set environment variables (PATH, EDITOR, PAGER, PS1, etc)? How many times you have to create a .vimrc file to make vim work in a human manner? So i wrote an &#8230; <a href="http://www.zorzorz.net/2011/06/27/script-to-create-fancy-bash_profile-and-vimrc-for-solaris/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>How many times creating a new solaris user, you have to set environment variables (PATH, EDITOR, PAGER, PS1, etc)? How many times you have to create a .vimrc file to make vim work in a human manner?</p>
<p>So i wrote an utility script which create for you these two files with some convenient functions. You can download the script <a href="/misc/solaris/script/solaris_home.sh">Here</a>!</p>
<p>To run the script just give the right permissions and type ./solaris_home.sh</p>
<p>That&#8217;s all! If you already have yours .bash_profile and .vimrc, then they&#8217;ll backed up with the extention .bak</p>
<p>Try it now and I hope that you&#8217;ll be happy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zorzorz.net/2011/06/27/script-to-create-fancy-bash_profile-and-vimrc-for-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create DVD iso image with genisoimage (aka mkisofs)</title>
		<link>http://www.zorzorz.net/2011/05/25/create-dvd-iso-image-with-genisoimage-aka-mkisofs/</link>
		<comments>http://www.zorzorz.net/2011/05/25/create-dvd-iso-image-with-genisoimage-aka-mkisofs/#comments</comments>
		<pubDate>Tue, 24 May 2011 23:17:44 +0000</pubDate>
		<dc:creator>lorenzo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://zorzorz.net/?p=82</guid>
		<description><![CDATA[To create a DVD iso image from a directory containing the DVD files you need: Verify that the directory structure is correct (the directories VIDEO_TS and AUDIO_TS must exists in the DVD root directory) Make the iso image with genisoimage &#8230; <a href="http://www.zorzorz.net/2011/05/25/create-dvd-iso-image-with-genisoimage-aka-mkisofs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To create a DVD iso image from a directory containing the DVD files you need:</p>
<ol>
<li>Verify that the directory structure is correct (the directories VIDEO_TS and AUDIO_TS must exists in the DVD root directory)</li>
<li>Make the iso image with genisoimage (or mkisofs) as follows:</li>
</ol>
<pre>﻿genisoimage -dvd-video -udf -V "Volume Name" -o  volume.iso "DVD_Dir"﻿</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.zorzorz.net/2011/05/25/create-dvd-iso-image-with-genisoimage-aka-mkisofs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skip Windows 7 Enterprise Edition Activation Update</title>
		<link>http://www.zorzorz.net/2011/05/25/skip-windows-7-enterprise-edition-activation-update/</link>
		<comments>http://www.zorzorz.net/2011/05/25/skip-windows-7-enterprise-edition-activation-update/#comments</comments>
		<pubDate>Tue, 24 May 2011 23:10:05 +0000</pubDate>
		<dc:creator>lorenzo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://zorzorz.net/?p=79</guid>
		<description><![CDATA[If you want to keep your windows 7 Enterprise Edition (for example an unoriginal copy&#8230;) updated without activate it, you need to skip the Windows 7 Activation update (KB971033).]]></description>
			<content:encoded><![CDATA[<p>If you want to keep your windows 7 Enterprise Edition (for example an unoriginal copy&#8230;) updated without activate it, you need to skip the Windows 7 Activation update (KB971033).</p>
<p> <img src='http://www.zorzorz.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.zorzorz.net/2011/05/25/skip-windows-7-enterprise-edition-activation-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware Workstation unable to build kernel module on Fedora 14</title>
		<link>http://www.zorzorz.net/2011/01/25/vmware-workstation-unable-to-build-kernel-module-on-fedora-14/</link>
		<comments>http://www.zorzorz.net/2011/01/25/vmware-workstation-unable-to-build-kernel-module-on-fedora-14/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 20:15:14 +0000</pubDate>
		<dc:creator>lorenzo</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://zorzorz.net/?p=73</guid>
		<description><![CDATA[Install the required dependencies: yum install kernel-devel kernel-headers gcc Install the required dependencies: cd /tmp/ wget http://sputnick-area.net/scripts/vmware7.1.1-patch-kernel-2.6.35.bash chmod +x vmware7.1.1-patch-kernel-2.6.35.bash ./vmware7.1.1-patch-kernel-2.6.35.bash Compile all the vmware modules: vmware-modconfig &#8211;console &#8211;install-all Done! Now you can successfully run vmware]]></description>
			<content:encoded><![CDATA[<ol>
<li>Install the required dependencies:<br />
<blockquote><p>yum install kernel-devel kernel-headers gcc</p></blockquote>
</li>
<li>Install the required dependencies:<br />
<blockquote><p>cd /tmp/<br />
wget http://sputnick-area.net/scripts/vmware7.1.1-patch-kernel-2.6.35.bash<br />
chmod +x vmware7.1.1-patch-kernel-2.6.35.bash<br />
./vmware7.1.1-patch-kernel-2.6.35.bash</p></blockquote>
</li>
<li>Compile all the vmware modules:<br />
<blockquote><p>vmware-modconfig &#8211;console &#8211;install-all</p></blockquote>
</li>
<li>Done! Now you can successfully run vmware <img src='http://www.zorzorz.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.zorzorz.net/2011/01/25/vmware-workstation-unable-to-build-kernel-module-on-fedora-14/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Fedora 14 NVIDIA proprietary driver</title>
		<link>http://www.zorzorz.net/2011/01/07/fedora-14-nvidia-proprietary-driver/</link>
		<comments>http://www.zorzorz.net/2011/01/07/fedora-14-nvidia-proprietary-driver/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 20:02:04 +0000</pubDate>
		<dc:creator>lorenzo</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://zorzorz.net/?p=65</guid>
		<description><![CDATA[Get the rpmfusion release: su -c “rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm” Update your packages: yum update 64bit users need to install the following rpms: yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64 32bit users need to install the following rpms instead: yum install kmod-nvidia &#8230; <a href="http://www.zorzorz.net/2011/01/07/fedora-14-nvidia-proprietary-driver/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<ol>
<li>Get the rpmfusion release:<br />
<blockquote><p>su -c “rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm”</p></blockquote>
</li>
<li>Update your packages:<br />
<blockquote><p>yum update</p></blockquote>
</li>
<li>64bit users need to install the following rpms:<br />
<blockquote><p>yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64</p></blockquote>
<p>32bit users need to install the following rpms instead:</p>
<blockquote><p>yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686</p></blockquote>
</li>
<li>Append the following string to your kernel line in /etc/grub.conf:<br />
<blockquote><p>rdblacklist=nouveau vga=0×318</p></blockquote>
<p>If it doesn&#8217;t work try with:</p>
<blockquote><p>nouveau.modeset=0</p></blockquote>
</li>
<li>Reboot and enjoy!!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.zorzorz.net/2011/01/07/fedora-14-nvidia-proprietary-driver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use SSH as a proxy server</title>
		<link>http://www.zorzorz.net/2010/12/22/use-ssh-as-a-proxy-server/</link>
		<comments>http://www.zorzorz.net/2010/12/22/use-ssh-as-a-proxy-server/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 09:38:33 +0000</pubDate>
		<dc:creator>lorenzo</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://zorzorz.net/?p=62</guid>
		<description><![CDATA[To use SSH as a proxy server use the following command: ssh -D 8080 -f -C -q -N lorenzo@www.myserver.com You will then be prompted for your password, which you should enter. That’s it! Your ssh tunnel is in place! A &#8230; <a href="http://www.zorzorz.net/2010/12/22/use-ssh-as-a-proxy-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To use SSH as a proxy server use the following command:</p>
<pre>ssh -D 8080 -f -C -q -N lorenzo@www.myserver.com</pre>
<p>You will then be prompted for your password, which you should enter. That’s it! Your ssh tunnel is in place!</p>
<p>A quick synopsis of what those switches mean is as follows:</p>
<p><strong>-D 8080</strong> : This basically does a lot of dynamic stuff and makes it behave as a SOCKS server. Of course you could use any non privileged port here (above 1023).</p>
<p><strong>-f</strong> : This will fork the process into the background after you type your password.</p>
<p><strong>-C</strong> : Turns on compression.</p>
<p><strong>-q</strong> : Quiet mode. Since this is just a tunnel we can make it quiet.</p>
<p><strong>-N</strong> : Tells it no commands will be sent. (the -f will complain if we don’t specify this).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zorzorz.net/2010/12/22/use-ssh-as-a-proxy-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

