<?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>Open Sourcery &#187; gentoo</title>
	<atom:link href="http://www.opensourcery.co.za/category/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opensourcery.co.za</link>
	<description>Wizardry through open source</description>
	<lastBuildDate>Sat, 07 May 2011 18:41:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>VirtualBox, Gentoo and serial consoles</title>
		<link>http://www.opensourcery.co.za/2009/09/30/virtualbox-gentoo-and-serial-consoles/</link>
		<comments>http://www.opensourcery.co.za/2009/09/30/virtualbox-gentoo-and-serial-consoles/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 21:08:50 +0000</pubDate>
		<dc:creator>Kenneth Kalmer</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[quickies]]></category>
		<category><![CDATA[serial]]></category>

		<guid isPermaLink="false">http://www.opensourcery.co.za/?p=271</guid>
		<description><![CDATA[More as a reminder to myself for when I need this again, but I&#8217;m sure everyone needs this at least once. Having screwed up my kernel configs for my VirtualBox Gentoo image, I needed a serial console to catch the (&#8230;)</p><p><a href="http://www.opensourcery.co.za/2009/09/30/virtualbox-gentoo-and-serial-consoles/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>More as a reminder to myself for when I need this again, but I&#8217;m sure everyone needs this at least once.</p>
<p>Having screwed up my kernel configs for my VirtualBox Gentoo image, I needed a serial console to catch the boot messages scrolling past in order to see if all the required hardware was being loaded by the kernel. I&#8217;ve never done this on a physical machine before but I am converted now and will acquire a USB to serial port converter in the near future&#8230;</p>
<p>Using <a href="http://www.codestrom.com/wandering/2009/06/opensolaris-virtualbox-ttya-console-debugging.html" target="_blank">this article as a base</a> you need to do the following:</p>
<ol>
<li>Enable serial ports for your virtual machine</li>
<li>Select &#8220;Host Pipe&#8221;</li>
<li>Enter <em>/tmp/vboxconsole</em> as the filename</li>
<li>Use netcat to read the console: <em>nc -U /tmp/vboxconsole</em></li>
</ol>
<p>When booting you need to amend your grub boot line to have the following at the end:</p>
<pre>console=ttyS0,38400</pre>
<p>Making it look something like this:</p>
<pre>kernel=/kernel-2.6.30-r6 root=/dev/sda3 console=ttyS0,38400</pre>
<p>Proceed to boot and look at netcat to see the entire boot output scroll past without disappearing into thin air when the kernel panics.</p>
<p>Man, I love virtualization. I tested this on Mac OS X 10.5 with VirtualBox 3.0.6, but it should work on any *nix platform. Some more <a href="http://www.gentoo-wiki.info/HOWTO_Linux_serial_console">Gentoo serial console madness</a> can be found on the old Gentoo Wiki.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.za/2009/09/30/virtualbox-gentoo-and-serial-consoles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ruby Enterprise Edition on Gentoo with newer OpenSSL (&gt;0.9.8i)</title>
		<link>http://www.opensourcery.co.za/2009/04/21/ruby-enterprise-edition-on-gentoo-with-newer-openssl-098i/</link>
		<comments>http://www.opensourcery.co.za/2009/04/21/ruby-enterprise-edition-on-gentoo-with-newer-openssl-098i/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 15:39:03 +0000</pubDate>
		<dc:creator>Kenneth Kalmer</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[ree]]></category>

		<guid isPermaLink="false">http://www.opensourcery.co.za/?p=179</guid>
		<description><![CDATA[UPDATE 2009-04022: Ruby Enterprise Edition 20090421 released a couple of hours after the original post. Now includes the OpenSSL patch from Gentoo&#8217;s Portage. UPDATE: The upcoming release of Ruby Enterprise Edition might include the suggested patch, if we get enough (&#8230;)</p><p><a href="http://www.opensourcery.co.za/2009/04/21/ruby-enterprise-edition-on-gentoo-with-newer-openssl-098i/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE 2009-04022: </strong><a href="http://blog.phusion.nl/2009/04/22/ruby-enterprise-edition-186-20090421-released">Ruby Enterprise Edition 20090421 released a couple of hours after the original post</a>. Now includes the OpenSSL patch from Gentoo&#8217;s Portage.</p>
<p><strong>UPDATE: </strong>The upcoming release of Ruby Enterprise Edition <a href="http://http://groups.google.com/group/emm-ruby/browse_thread/thread/1d7ffc650626fd36">might include the suggested</a> patch, if we get enough +1&#8242;s on the list. Test and go vote!</p>
<p>Keeping your gentoo up to date almost means sacrificing <a href="http://www.rubyenterpriseedition.com">Ruby Enterprise Edition</a> because <a href="http://groups.google.com/group/emm-ruby/browse_thread/thread/1d7ffc650626fd36">it doesn&#8217;t compile against OpenSSL 0.9.8i or later</a>. This isn&#8217;t the fault of the Phusion guys, it comes from upstream Ruby.</p>
<p>Gentoo&#8217;s portage contains some patches for compiling stock Ruby 1.8.6 with later versions of OpenSSL, backported from Ruby 1.8.7. This patch also applies cleanly to Ruby Enterprise Edition 20090201, and here is how to do it from inside your unpacked Ruby Enterprise Edition tarball.</p>
<p><code><br />
$ cd source<br />
$ patch -p3 &lt; /usr/portage/dev-lang/ruby/files/ruby-1.8.6-openssl.patch<br />
$ cd ..<br />
$ sudo ./installer<br />
</code></p>
<p>This keeps your OpenSSL library up to date, and keeps Ruby Enterprise Edition happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.za/2009/04/21/ruby-enterprise-edition-on-gentoo-with-newer-openssl-098i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Replication Client with SSL, gotcha</title>
		<link>http://www.opensourcery.co.za/2008/09/08/mysql-replication-client-with-ssl-gotcha/</link>
		<comments>http://www.opensourcery.co.za/2008/09/08/mysql-replication-client-with-ssl-gotcha/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 11:50:36 +0000</pubDate>
		<dc:creator>Kenneth Kalmer</dc:creator>
				<category><![CDATA[Bind DLZ on Rails]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PowerDNS on Rails]]></category>
		<category><![CDATA[powerdns]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.opensourcery.co.za/?p=80</guid>
		<description><![CDATA[As part of the PowerDNS on Rails project, and improving our own DNS infrastructure, I sat out today to configure 4 new DNS servers around the world. This will move a lot of our DNS traffic out of South Africa, (&#8230;)</p><p><a href="http://www.opensourcery.co.za/2008/09/08/mysql-replication-client-with-ssl-gotcha/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>As part of the PowerDNS on Rails project, and improving our own DNS infrastructure, I sat out today to configure 4 new DNS servers around the world. This will move a lot of our DNS traffic out of South Africa, while keeping some servers locally on the main networks (Internet Solutions &amp; SAIX).</p>
<p>I rolled out MySQL replication with SSL enabled, you can Google for some good howto&#8217;s on the topic and I&#8217;ll give some posts below. Basically we have secure replication, and each DNS server is isolated in case of a disaster.</p>
<p><strong>The gotcha then?</strong></p>
<p>The MySQL docs, and some other howto&#8217;s indicate you should set the SSL client certificate details in your <em>my.cnf</em> file, under the <em>[client]</em> section. It makes sense, the slave is a client of the master. Appears not so with Gentoo&#8217;s mysql-5.0.60-r1 ebuild. It appears even less so with PowerDNS, who rightfully reads the <em>my.cnf</em> file as client.</p>
<p><strong>Cause and effect</strong></p>
<p>PowerDNS now tries to connect to the slave using the SSL details specified in the <em>[client]</em> section of the <em>my.cnf</em> file. This breaks, since you probably never configured your MySQL slave to have PowerDNS connect via SSL.</p>
<p>Secondly, it appears MySQL blatantly ignores the settings when used with replication, and you actually need to specify the client certificates in the <em>CHANGE MASTER TO</em> statement.</p>
<p><strong>Aftermath</strong></p>
<p>Nothing serious, was quick to piece together what was going on. Now I&#8217;ll have double digit DNS servers scattered around the globe near pearing point, with SSL encryption for the replication data. Brilliant, that really is resillient DNS!</p>
<p><strong>More reading</strong></p>
<ul>
<li>MySQL Manual &#8211; <a href="http://dev.mysql.com/doc/refman/5.0/en/secure-connections.html" target="_blank">Using SSL for secure connections</a></li>
<li>MySQL Manual &#8211; <a href="http://dev.mysql.com/doc/refman/5.0/en/replication-solutions-ssl.html" target="_blank">Setting up replication using SSL</a></li>
<li><a href="http://www.g-loaded.eu/2005/11/10/be-your-own-ca/" target="_blank">Be your own CA</a> &#8211; Not MySQL specific</li>
<li><a href="http://boilinglinux.blogspot.com/2008/05/mysql-replication-with-ssl.html" target="_self">MySQL Replication with SSL<br />
</a></li>
<li><a href="http://www.option-c.com/xwiki/MySQL_Replication_with_SSL" target="_blank">MySQL Replication with SSL</a></li>
</ul>
<p>Hope this prevents any future missery for someone else.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.za/2008/09/08/mysql-replication-client-with-ssl-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 3 and the apparent random SSL errors</title>
		<link>http://www.opensourcery.co.za/2008/07/02/firefox-3-and-the-apparent-random-ssl-errors/</link>
		<comments>http://www.opensourcery.co.za/2008/07/02/firefox-3-and-the-apparent-random-ssl-errors/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 10:00:25 +0000</pubDate>
		<dc:creator>Kenneth Kalmer</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.opensourcery.co.za/?p=35</guid>
		<description><![CDATA[Strange days we live in, especially when our browsers trip of bugs in encryption libraries on the servers&#8230; David Smalley neatly pointed out how upgrading OpenSSL to at least 0.9.8h solves the cryptic Firefox 3 SSL errors we&#8217;ve been seeing (&#8230;)</p><p><a href="http://www.opensourcery.co.za/2008/07/02/firefox-3-and-the-apparent-random-ssl-errors/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Strange days we live in, especially when our browsers trip of bugs in encryption libraries on the servers&#8230; <a href="http://davidsmalley.com/2008/6/22/firefox-3-triggers-an-openssl-bug">David Smalley</a> neatly pointed out how upgrading OpenSSL to at least 0.9.8h solves the cryptic Firefox 3 SSL errors we&#8217;ve been seeing on some our sites.</p>
<p><code>Secure Connection Failed An error occurred during a connection to xyz-abe.com SSL received an unexpected Change Cipher Spec record. (Error code: ssl_error_rx_unexpected_change_cipher) </code></p>
<p>Currently the package in question is still masked in gentoo, so upgrade as follows:</p>
<p># echo &#8216;=dev-libs/openssl-0.9.8h-r1&#8242; &gt;&gt; /etc/portage/package.unmask<br />
# emerge -av openssl</p>
<p>Once done, follow the instruction given by portage to rebuild the packages still using the old versions of OpenSSL.</p>
<p>Thanks David</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.za/2008/07/02/firefox-3-and-the-apparent-random-ssl-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gentoo rant</title>
		<link>http://www.opensourcery.co.za/2006/03/31/gentoo-rant/</link>
		<comments>http://www.opensourcery.co.za/2006/03/31/gentoo-rant/#comments</comments>
		<pubDate>Thu, 30 Mar 2006 23:08:00 +0000</pubDate>
		<dc:creator>Kenneth Kalmer</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://wordpress/2006/03/31/gentoo-rant/</guid>
		<description><![CDATA[I&#8217;ve been playing with Gentoo the last couple of days, and what a pleasure it has been! I&#8217;ve moved most of my development from PHP to either Python or Ruby (more on that later), in favour of speed and productivity. (&#8230;)</p><p><a href="http://www.opensourcery.co.za/2006/03/31/gentoo-rant/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing with <a href="http://www.gentoo.org">Gentoo</a> the last couple of days, and what a pleasure it has been! I&#8217;ve moved most of my development from <a href="http://www.php.net">PHP</a> to either <a href="http://www.python.org">Python</a> or <a href="http://www.ruby-lang.org">Ruby</a> (more on that later), in favour of speed and productivity. <a href="http://www.centos.org">CentOS</a> was just giving me more troubles than I needed, not because of them but because of <a href="http://www.redhat.com">RedHat</a> that uses ancient packages in their flagship distribution. I can understand why, but if you need to move with the times, you need an operating system that can respond quickly to your needs.</p>
<p>Try it, you&#8217;ll love it&#8230;.</p>
<p>Posts to come on <a href="http://www.xensource.com">Xen</a>, <a href="http://www.ruby-lang.org">Ruby</a> &#038; <a href="http://www.rubyonrails.com">Ruby on Rails</a>, <a href="http://www.python.org">Python</a> &amp; <a href="http://www.djangoproject.com">Django</a> and killing spam&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.za/2006/03/31/gentoo-rant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 8/18 queries in 0.004 seconds using disk

Served from: www.opensourcery.co.za @ 2012-02-04 18:17:37 -->
