<?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>Slash Dot Dash &#187; Linux</title>
	<atom:link href="http://www.slashdotdash.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.slashdotdash.net</link>
	<description>Rolling on Rails</description>
	<lastBuildDate>Wed, 18 Mar 2009 22:03:19 +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>Problem with openssl with Ruby 1.8.6 on Ubuntu Fesity 7.04</title>
		<link>http://www.slashdotdash.net/2007/06/27/problem-with-openssl-with-ruby-1-8-6-on-ubuntu-fesity-7-04/</link>
		<comments>http://www.slashdotdash.net/2007/06/27/problem-with-openssl-with-ruby-1-8-6-on-ubuntu-fesity-7-04/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 22:40:00 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Just fixed an issue with openssl not working correctly with Ruby 1.8.6 (installed from source) on Ubuntu Feisty (server). $ cat /etc/issue Ubuntu 7.04 After deploying a new Rails application I restarted mongrel but all requests were returning errors (500); the production.log indicated the following issue: no such file to load -- openssl To rectify [...]]]></description>
			<content:encoded><![CDATA[<p>Just fixed an issue with openssl not working correctly with Ruby 1.8.6 (installed from source) on Ubuntu Feisty (server).</p>
<pre>
$ cat /etc/issue
Ubuntu 7.04
</pre>
<p>After deploying a new Rails application I restarted mongrel but all requests were returning errors (500); the <code>production.log</code> indicated the following issue:</p>
<pre>
no such file to load -- openssl
</pre>
<p>To rectify this I had to do the following.</p>
<pre>
$ sudo apt-get install libopenssl-ruby
$ sudo apt-get install libssl0.9.8

$ cd ~/src/ruby-1.8.6/ext/openssl
$ ruby extconf.rb
$ make
$ sudo make install
</pre>
<p>To test that openssl is working correctly use <code>irb</code>:</p>
<pre>
irb(main):001:0&gt; require 'openssl'
=&gt; true
</pre>
<h4>References</h4>
<ul>
<li>http://linuxbrit.co.uk/rbot/ticket/69</li>
</ul>
<ul>
<li>http://www.ruby-forum.com/topic/90083</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.slashdotdash.net/2007/06/27/problem-with-openssl-with-ruby-1-8-6-on-ubuntu-fesity-7-04/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Typo and Rails / MySql problems</title>
		<link>http://www.slashdotdash.net/2006/11/09/typo-and-rails-mysql-problems/</link>
		<comments>http://www.slashdotdash.net/2006/11/09/typo-and-rails-mysql-problems/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 08:18:44 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Typo]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The blog is back up again (also moved to the root of the domain) &#8211; and hopefully running quicker now thanks to a quick change of hosting setup (Apache and fcgi to pound proxying to mongrel_cluster). One quick note to anyone experiencing the following problem with Typo running on Debian Linux: Lost connection to MySQL [...]]]></description>
			<content:encoded><![CDATA[<p>The blog is back up again (also moved to the root of the domain) &#8211; and hopefully running quicker now thanks to a quick change of hosting setup (Apache and fcgi to pound proxying to mongrel_cluster).</p>
<p>One quick note to anyone experiencing the following problem with Typo running on Debian Linux:</p>
<pre>Lost connection to MySQL server during query</pre>
<p>The recommended &#8216;fix&#8217; is to <code>gem install mysql</code>. Doing that on a Debian machine will result in numerous errors unless you also do the following:</p>
<pre>
$ apt-get install libmysqlclient10-dev
$ gem install mysql
</pre>
<p>(Thanks to the owner of <a href="http://spew.whalespine.org/?p=110">this blog</a> for the pointer, found via google).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.slashdotdash.net/2006/11/09/typo-and-rails-mysql-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian package management with APT &#8211; remove unused packages</title>
		<link>http://www.slashdotdash.net/2006/09/18/debian-package-management-with-apt-remove-unused-packages/</link>
		<comments>http://www.slashdotdash.net/2006/09/18/debian-package-management-with-apt-remove-unused-packages/#comments</comments>
		<pubDate>Mon, 18 Sep 2006 18:40:18 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[/var/cache/apt/archives can build up a lot of cruft&#8230; Clear out package files no longer available: apt-get autoclean Clear out all downloaded package files: apt-get clean]]></description>
			<content:encoded><![CDATA[<p>/var/cache/apt/archives can build up a lot of cruft&#8230;</p>
<p>Clear out package files no longer available:</p>
<pre>
apt-get autoclean
</pre>
<p>Clear out all downloaded package files:</p>
<pre>
apt-get clean
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.slashdotdash.net/2006/09/18/debian-package-management-with-apt-remove-unused-packages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Repairing a RAID5 software array (Debian Linux)</title>
		<link>http://www.slashdotdash.net/2006/04/12/repairing-a-raid5-software-array-debian-linux/</link>
		<comments>http://www.slashdotdash.net/2006/04/12/repairing-a-raid5-software-array-debian-linux/#comments</comments>
		<pubDate>Wed, 12 Apr 2006 20:35:00 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[RAID5 software arrays in Linux are very simple to setup and should run smoothly. Inevitably something will go wrong &#8211; but luckily that&#8217;s why we use RAID5 &#8211; there should be no data loss. Software RAID HOWTO is the best reference. Check the RAID Identify the problematic disk [UU_] mdadm --detail /dev/md0 cat /proc/mdstat Remove [...]]]></description>
			<content:encoded><![CDATA[<p><span class="caps">RAID5</span> software arrays in Linux are very simple to setup and should run smoothly. Inevitably something will go wrong &#8211; but luckily that&#8217;s why we use <span class="caps">RAID5</span> &#8211; there should be no data loss.</p>
<p><a href="http://www.tldp.org/HOWTO/Software-RAID-HOWTO-6.html">Software <span class="caps">RAID HOWTO</span></a> is the best reference.</p>
<h3>Check the <span class="caps">RAID</span></h3>
<p>Identify the problematic disk [UU_]</p>
<pre>
mdadm --detail /dev/md0
cat /proc/mdstat
</pre>
<h3>Remove failed disk</h3>
<pre>
mdadm /dev/md0 -r /dev/hdg1
</pre>
<h3>Add new disk</h3>
<pre>
mdadm /dev/md0 -a /dev/hdg1
</pre>
<p>Once rebuilding has started you can check the status via <code>/proc/mdstat</code> (depending on the array size it may take <em>quite a long time</em>).</p>
<pre>
cat /proc/mdstat
Personalities : [raid5]
md0 : active raid5 hdg1[3] hdc1[0] hde1[1]
      488391680 blocks level 5, 128k chunk, algorithm 2 [3/2] [UU_]
      [&gt;....................]  recovery =  0.8% (2098944/244195840) finish=205.3min speed=19648K/sec
unused devices: &lt;none&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.slashdotdash.net/2006/04/12/repairing-a-raid5-software-array-debian-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
