<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tricks and Ticks</title>
	<atom:link href="http://erikugel.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://erikugel.wordpress.com</link>
	<description>... another dot on the net</description>
	<lastBuildDate>Mon, 19 Mar 2012 23:38:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='erikugel.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tricks and Ticks</title>
		<link>http://erikugel.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://erikugel.wordpress.com/osd.xml" title="Tricks and Ticks" />
	<atom:link rel='hub' href='http://erikugel.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The Festival Speech Synthesis System with MPlayer output</title>
		<link>http://erikugel.wordpress.com/2011/11/20/the-festival-speech-synthesis-system-with-mplayer-output/</link>
		<comments>http://erikugel.wordpress.com/2011/11/20/the-festival-speech-synthesis-system-with-mplayer-output/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 01:08:24 +0000</pubDate>
		<dc:creator>Ernest Kugel</dc:creator>
				<category><![CDATA[#!]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[festival]]></category>
		<category><![CDATA[speech]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[to]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[tts]]></category>

		<guid isPermaLink="false">http://erikugel.wordpress.com/?p=323</guid>
		<description><![CDATA[This post is about setting up the Festival Speech Synthesis System to output speech through MPlayer playback. This is necessary if the built-in output modules, like ALSA or linux16audio, do not work for you. This can also help to increase &#8230; <a href="http://erikugel.wordpress.com/2011/11/20/the-festival-speech-synthesis-system-with-mplayer-output/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=323&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This post is about setting up <a title="Festival" href="http://www.cstr.ed.ac.uk/projects/festival/" target="_blank">the Festival Speech Synthesis System</a> to output speech through <a title="MPlayer" href="http://www.mplayerhq.hu/design7/news.html" target="_blank">MPlayer</a> playback. This is necessary if the built-in output modules, like ALSA or linux16audio, do not work for you. This can also help to increase the quality and performance of the synthesized audio. (For <a title="Slackware" href="http://www.slackware.com/" target="_blank">Slackware Linux</a>, for instance, MPlayer is the best already-installed option.) Once you have built Speech Tools and Festival following the instructions in the INSTALL files, you can specify MPlayer for output in your <em>~/.festivalrc</em> file by adding the following lines:</p>
<pre>(Parameter.set 'Audio_Command "mplayer -really-quiet -noconsolecontrols -nojoystick -nolirc -nomouseinput -demuxer rawaudio -rawaudio channels=1:rate=$SR $FILE")
(Parameter.set 'Audio_Method 'Audio_Command)</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erikugel.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erikugel.wordpress.com/323/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=323&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erikugel.wordpress.com/2011/11/20/the-festival-speech-synthesis-system-with-mplayer-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f340dbe37419780211eb389b9141eab5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erikkugel</media:title>
		</media:content>
	</item>
		<item>
		<title>University of Toronto email on the Android email client</title>
		<link>http://erikugel.wordpress.com/2011/09/21/university-of-toronto-email-on-the-android-email-client/</link>
		<comments>http://erikugel.wordpress.com/2011/09/21/university-of-toronto-email-on-the-android-email-client/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 09:44:09 +0000</pubDate>
		<dc:creator>Ernest Kugel</dc:creator>
				<category><![CDATA[#!]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[box]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mailbox]]></category>
		<category><![CDATA[of]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[toronto]]></category>
		<category><![CDATA[university]]></category>
		<category><![CDATA[utor]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://erikugel.wordpress.com/?p=313</guid>
		<description><![CDATA[This post will provide you with quick and dirty instructions for setting up the Android email client (simply called &#8220;Email&#8221; in your App Launcher) with your University of Toronto email account. Ready? 1. Fire up the Android Email client app. &#8230; <a href="http://erikugel.wordpress.com/2011/09/21/university-of-toronto-email-on-the-android-email-client/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=313&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This post will provide you with quick and dirty instructions for setting up the Android email client (simply called &#8220;Email&#8221; in your App Launcher) with your University of Toronto email account. Ready?</p>
<p>1. Fire up the Android Email client app.<br />
2. Press the Menu button on your Android device.<br />
3. Choose &#8220;Add Account&#8221;.<br />
4. Fill in your full email address (john.doe@utoronto.ca) and current password.<br />
5. Choose the &#8220;Manual Setup&#8221; button (it will become available after you have filled in your email and password).<br />
6. Pick an IMAP account.<br />
7. For your username, do not use your email address. Use the username for portal login instead, without specifying a domain (so just &#8220;doejhon&#8221; and *not* &#8220;jhon.doe@utoronto.ca&#8221; !)<br />
8. To fill in the &#8220;server&#8221; field, get the address of the mailserver hosting your account from your <a title="UTor ID information page" href="https://www.utorid.utoronto.ca/cgi-bin/utorid/info.pl" target="_blank">UTor ID Information Page ( https://www.utorid.utoronto.ca/cgi-bin/utorid/info.pl )</a>. It will appear as &#8220;mailbox###.utcc.utoronto.ca&#8221; and different mailboxes reside on different servers. We need to know yours.<br />
9. Choose SSL for encryption.<br />
10. Choose port 993 (if it was not chosen automatically).<br />
11. Click &#8220;Next&#8221;.<br />
12. Use same username/password as for incoming mail in step #7.<br />
13. Enter the SMTP server as &#8220;smtp.utoronto.ca&#8221;.<br />
14. Choose TLS encryption.<br />
15. Choose port 587.</p>
<p>You are done. Faculty spam (along with the odd useful message) will now begin flowing to and from your Android device!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erikugel.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erikugel.wordpress.com/313/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=313&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erikugel.wordpress.com/2011/09/21/university-of-toronto-email-on-the-android-email-client/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f340dbe37419780211eb389b9141eab5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erikkugel</media:title>
		</media:content>
	</item>
		<item>
		<title>Making an Ethernet Loopback Adapder</title>
		<link>http://erikugel.wordpress.com/2011/09/14/making-an-ethernet-loopback-adapder/</link>
		<comments>http://erikugel.wordpress.com/2011/09/14/making-an-ethernet-loopback-adapder/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 18:04:44 +0000</pubDate>
		<dc:creator>Ernest Kugel</dc:creator>
				<category><![CDATA[#!]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[cable]]></category>
		<category><![CDATA[cat5]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[lookback]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[nic]]></category>
		<category><![CDATA[plug]]></category>
		<category><![CDATA[rj-45]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://erikugel.wordpress.com/?p=307</guid>
		<description><![CDATA[This post will be short (and sweet). Ethernet Loopback Adapters are little handy pieces of equipment that route the transmitting pins in an Ethernet jack back to the receiving pins in the same jack. This is good for testing link &#8230; <a href="http://erikugel.wordpress.com/2011/09/14/making-an-ethernet-loopback-adapder/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=307&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This post will be short (and sweet). Ethernet Loopback Adapters are little handy pieces of equipment that route the transmitting pins in an Ethernet jack back to the receiving pins in the same jack. This is good for testing link connectivity on an Ethernet card &#8211; if the adapter can establish a link with itself the hardware on the adapter is probably OK. In real life, this can save you hassle quickly testing ADSL modems, routers, switches, desktops and laptops without plugging the device into another jack to get the link light to come on.</p>
<p>This how-to will use an existing Ethernet cable which will be converted to a Loopback cable.  There are lots of guides and video online about creating such an adapter using an Ethernet jack and wires, but this requires having an uncrimped  Ethernet jack, some wires, and a crimper. In my case, a trip to the store to buy the components I already have at home on ready Ethernet cables seemed wasteful (most people will have a cable or two, or can buy a short cat 5 cable for under 2 dollars). I strongly recommend using a cable with a broken or missing jack &#8211; after all, we only need one Ethernet jack which is properly wired to a cat5 or higher cable.</p>
<p>1. Cut the cat5 cable a few ( 2 or 3 ) inches from the jack.</p>
<p>2. Strip about an inch from the shielding of the cat 5 cable, revealing 8 separately shielded color coded wires inside.</p>
<p>3. Strip about half an inch from the shielding on four wires: green-white, green, orange-white, and orange.</p>
<p>4. Twist the green-white and orange-white stripped ends together, connecting pin 1 to pin 3.</p>
<p>5. Twist the green and orange stripped ends together, connecting pin 2 to pin 6.</p>
<p>If you have some tape, you may want to cover the tips up. Otherwise, make sure the tips don&#8217;t touch each other. The end result will look like this:</p>
<div id="attachment_308" class="wp-caption alignnone" style="width: 235px"><a href="http://erikugel.files.wordpress.com/2011/09/img_20110914_132451.jpg"><img class="size-medium wp-image-308" title="twisted pairs on an Ethernet loopback adapter" src="http://erikugel.files.wordpress.com/2011/09/img_20110914_132451-e1316023213334.jpg?w=225&#038;h=300" alt="twisted pairs on an Ethernet loopback adapter" width="225" height="300" /></a><p class="wp-caption-text">twisted pairs on an Ethernet loopback adapter</p></div>
<p>You can test your new loopback adapter in any working Ethernet jack by plugging it in!</p>
<p>You can see the Port line is on for a wireless router with the loopback adapter plugged in:</p>
<div id="attachment_309" class="wp-caption alignnone" style="width: 235px"><a href="http://erikugel.files.wordpress.com/2011/09/img_20110914_112341.jpg"><img class="size-medium wp-image-309" title="Link light on with loopback adaper plugged in" src="http://erikugel.files.wordpress.com/2011/09/img_20110914_112341.jpg?w=225&#038;h=300" alt="Link light on with loopback adaper plugged in" width="225" height="300" /></a><p class="wp-caption-text">Link light on with loopback adaper plugged in</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erikugel.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erikugel.wordpress.com/307/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=307&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erikugel.wordpress.com/2011/09/14/making-an-ethernet-loopback-adapder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f340dbe37419780211eb389b9141eab5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erikkugel</media:title>
		</media:content>

		<media:content url="http://erikugel.files.wordpress.com/2011/09/img_20110914_132451-e1316023213334.jpg?w=225" medium="image">
			<media:title type="html">twisted pairs on an Ethernet loopback adapter</media:title>
		</media:content>

		<media:content url="http://erikugel.files.wordpress.com/2011/09/img_20110914_112341.jpg?w=225" medium="image">
			<media:title type="html">Link light on with loopback adaper plugged in</media:title>
		</media:content>
	</item>
		<item>
		<title>Virtual Appliance with Debian Squeeze and OpenWRT-XBurst Development Tools for Qi Hardware&#8217;s Ben Nanonote</title>
		<link>http://erikugel.wordpress.com/2011/08/20/virtual-appliance-with-debian-squeeze-and-openwrt-xburst-development-tools-for-qi-hardwares-ben-nanonote/</link>
		<comments>http://erikugel.wordpress.com/2011/08/20/virtual-appliance-with-debian-squeeze-and-openwrt-xburst-development-tools-for-qi-hardwares-ben-nanonote/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 22:28:44 +0000</pubDate>
		<dc:creator>Ernest Kugel</dc:creator>
				<category><![CDATA[Ben Nanonote]]></category>
		<category><![CDATA[6]]></category>
		<category><![CDATA[appliance]]></category>
		<category><![CDATA[ben]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[enviornment]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nanonote]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[qi]]></category>
		<category><![CDATA[squeeze]]></category>
		<category><![CDATA[toolchain]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[xburst]]></category>

		<guid isPermaLink="false">http://erikugel.wordpress.com/?p=296</guid>
		<description><![CDATA[This post is about a Virtual Appliance with Debian Squeeze and OpenWRT-XBurst Development Tools installed, which would allow immediately compiling OpenWRT packages for the Nanonote without going through the painful process of setting up the development environment yourself. As a &#8230; <a href="http://erikugel.wordpress.com/2011/08/20/virtual-appliance-with-debian-squeeze-and-openwrt-xburst-development-tools-for-qi-hardwares-ben-nanonote/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=296&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This post is about a Virtual Appliance with Debian Squeeze and OpenWRT-XBurst Development Tools installed, which would allow immediately compiling OpenWRT packages for the <a title="Ben Nanonote" href="http://en.qi-hardware.com/wiki/Ben_NanoNote" target="_blank">Nanonote</a> without going through the painful process of setting up the development environment yourself.</p>
<p>As a non-developer, I found a working development environment to be the single most confusing part of porting to the Nanonote, even more confusing than OpenWRT&#8217;s Makefiles. Granted, this could be my personal lack of talent or skill, but it left me thinking removing this &#8220;steppingstone&#8221; for some of the less experienced users might open more doors, faster, for beginning Nanonote enthusiasts. The instructions at <a title="Building_OpenWRT_on_Debian_6" href="http://en.qi-hardware.com/wiki/Building_OpenWRT_on_Debian_6" target="_blank">http://en.qi-hardware.com/wiki/Building_OpenWRT_on_Debian_6</a> are great, but might slightly intimidate less experienced Linux users. They are also slightly daunting to follow if the need arises frequently (if reinstalling OS, royally screwed something up, or other scenarios I&#8217;m sure you ran into).</p>
<p>The easiest way to get around this I could come up with was creating a Virtual Appliance which contains the basics for compiling for the Nanonote, using the wiki instructions for Debian Squeeze. Such an appliance can be run in <a title="VirtualBox Downloads" href="http://www.virtualbox.org/wiki/Downloads" target="_blank">VirtualBox</a> (free and open source) or <a title="VMWare Player Download" href="http://www.vmware.com/go/downloadplayer" target="_blank">VMWare Player</a> (free as in beer), even on Windows hosts. The result is a single 2.4 GB file with a ready toolchain which is ready to &#8220;accept&#8221; package Makefiles and compile them. Debian was installed, the toolchain was compiled, the locales and paths were set. I gave it a quick test compiling <a title="GNU Pem" href="http://www.gnu.org/s/pem/" target="_blank">Pem</a> (and a load of Perl dependencies) and it seemed to work.</p>
<p>The Virtual Appliance is currently unimaginatively called &#8220;Debian Squeeze with OpenWRT-XBurst Development Tools 2011-08-27&#8243; and comes as a single .OVA file. See details below:</p>
<p>Instructions<br />
1. Install VirtualBox.<br />
2. Download Virtual Appliance .OVA file (links below)<br />
3. In VirtualBox click on &#8220;Machine&#8221; &gt; &#8220;Import&#8221; and select the .OVA file.</p>
<p>I&#8217;ve added a brief section under the <a title="Building_OpenWRT_on_Debian_6" href="http://en.qi-hardware.com/wiki/Building_OpenWRT_on_Debian_6" target="_blank">Building on &#8230; Debian Squeeze</a> wiki page.</p>
<p>Hope someone finds this helpful.</p>
<p><span style="text-decoration:underline;"><strong>2011-08-27 Release:</strong></span></p>
<p>Virtual Appliance Download Page on 1fichier.com:  <a title="2008-08-27 download link" href="http://4pp1qh.1fichier.com/en/" target="_blank">http://4pp1qh.1fichier.com/en/</a><br />
.OVA file MD5 sum:  3ad6e2aa9379336c10746a3062538d32<br />
user:  build<br />
password:  gongshow<br />
root password:  gongshow<br />
QR Image:</p>
<p><a href="http://www.1fichier.com/qr/0/4pp1qh.png"><img class="alignnone" title="2011-08-27 QR image" src="http://www.1fichier.com/qr/0/4pp1qh.png" alt="" width="124" height="124" /></a></p>
<p><strong><span style="text-decoration:underline;">2011-02-23 Release:</span></strong></p>
<p>Virtual Appliance Download Page on 1fichier.com:  <a title="Virtual Appliance Download Page" href="http://0tqstz.1fichier.com/en/">http://0tqstz.1fichier.com/en/</a><br />
.OVA file MD5 sum:  f9ebe1b0cfe63ae1aa584ddff7b222ed<br />
user:  build<br />
password:  gongshow<br />
root password:  gongshow<br />
QR Image:</p>
<p><a href="http://www.1fichier.com/qr/0/0tqstz.png"><img title="QR Code" src="http://www.1fichier.com/qr/0/0tqstz.png" alt="http://www.1fichier.com/qr/0/0tqstz.png" width="124" height="124" /></a></p>
<p>&#8211; Ernest Kugel</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erikugel.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erikugel.wordpress.com/296/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=296&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erikugel.wordpress.com/2011/08/20/virtual-appliance-with-debian-squeeze-and-openwrt-xburst-development-tools-for-qi-hardwares-ben-nanonote/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f340dbe37419780211eb389b9141eab5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erikkugel</media:title>
		</media:content>

		<media:content url="http://www.1fichier.com/qr/0/4pp1qh.png" medium="image">
			<media:title type="html">2011-08-27 QR image</media:title>
		</media:content>

		<media:content url="http://www.1fichier.com/qr/0/0tqstz.png" medium="image">
			<media:title type="html">QR Code</media:title>
		</media:content>
	</item>
		<item>
		<title>Monitoring Amazon EC2 instances and other Cloud Resources with Hyperic HQ (and other monitoring platforms)</title>
		<link>http://erikugel.wordpress.com/2011/08/19/monitoring-amazon-ec2-instances-and-other-cloud-resources-with-hyperic-hq-and-other-monitoring-platforms/</link>
		<comments>http://erikugel.wordpress.com/2011/08/19/monitoring-amazon-ec2-instances-and-other-cloud-resources-with-hyperic-hq-and-other-monitoring-platforms/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 15:13:01 +0000</pubDate>
		<dc:creator>Ernest Kugel</dc:creator>
				<category><![CDATA[#!]]></category>
		<category><![CDATA[agent]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[hyperic]]></category>
		<category><![CDATA[instance]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshd]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://erikugel.wordpress.com/?p=288</guid>
		<description><![CDATA[I&#8217;ve had to tackle this task recently and could not find a write-up. Nice folks from Hyperic, and others on Twitter, suggested OpenVPN or an SSH tunnel. I opted for the second option, and after setting up two tunnels and &#8230; <a href="http://erikugel.wordpress.com/2011/08/19/monitoring-amazon-ec2-instances-and-other-cloud-resources-with-hyperic-hq-and-other-monitoring-platforms/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=288&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve had to tackle this task recently and could not find a write-up. Nice folks from Hyperic, and others on Twitter, suggested OpenVPN or an SSH tunnel. I opted for the second option, and after setting up two tunnels and properly configuring the agent, I now have an Amazon EC2 Windows instance show up as a platform in my Dashboard. Note that those instructions will work for other software (Zabbix comes to mind). Here&#8217;s how you can have yours too:</p>
<p>1. Install an SSH server on the to-be-monitored cloud instance. For Linux, OpenSSH is easy to install and setup, and usually already comes with most distributions. All you have to do is create a user and a password, or keys. On Windows, CopSSH will do the trick &#8211; you just have to add a new user and configure it through the CopSSH control panel. Make sure the SSH server runs, and the login credentials work.</p>
<p>2. Install an SSH client on your Hyperic HQ server. For Linux, again, OpenSSH will do the trick and is most likely already there. For Windows, try CygWIN or PUTTY.</p>
<p>3. Designate a unique name for <em>localhost</em> in the <em>hosts</em> file of both the Hyperic server and the cloud instance. In Linux, it would be under <em>/etc/hosts</em>. In windows, it moves between versions but is usually under <em>C:\Windows\system32\drivers\etc\hosts</em> . Call it <em>cloudagent1</em>. The line should look like this:</p>
<pre>127.0.0.1     localhost cloudagent1</pre>
<p>4. From the Hyperic server, initiate an SSH tunnel which forwards two ports. First from the cloud instance to the Hyperic server (usually on port 7443). Second from the Hyperic server to the cloud instance, to the port on which the Hyperic agent runs. If you already have a Hyperic agent on your Hyperic server, you MUST use a different port. As the local agent usually runs on port 2144, you may want to pick something like port 22144. With OpenSSH on CygWin and Linux you can create the tunnels like this (assuming your username is &#8220;user&#8221; and your cloud instance is &#8220;cloud-instance.com&#8221;):</p>
<pre>$ ssh user@cloud-instance.com -R 7443:cloudagent1:7443 -L 22144:cloudagent1:22144 -N -f</pre>
<p>5. Configure the Hyperic agent on your cloud instance to use port 22144. The rest of the settings can be copied from your locally monitored agents. You can use &#8220;cloudagent1&#8243; (or whichever name you have assigned to the <em>localhost</em>) in the configuration.</p>
<p>Hope this helped!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erikugel.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erikugel.wordpress.com/288/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=288&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erikugel.wordpress.com/2011/08/19/monitoring-amazon-ec2-instances-and-other-cloud-resources-with-hyperic-hq-and-other-monitoring-platforms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://erikugel.files.wordpress.com/2011/08/aws_and_springsource_logo_rgb_small.jpg?w=150" />
		<media:content url="http://erikugel.files.wordpress.com/2011/08/aws_and_springsource_logo_rgb_small.jpg?w=150" medium="image">
			<media:title type="html">AWS_and_SpringSource_LOGO_RGB_small</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/f340dbe37419780211eb389b9141eab5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erikkugel</media:title>
		</media:content>
	</item>
		<item>
		<title>Make your PC link the Ben to the Internet, Automagically!</title>
		<link>http://erikugel.wordpress.com/2011/07/14/make-your-pc-link-the-ben-to-the-internet-automagically/</link>
		<comments>http://erikugel.wordpress.com/2011/07/14/make-your-pc-link-the-ben-to-the-internet-automagically/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 22:13:08 +0000</pubDate>
		<dc:creator>Ernest Kugel</dc:creator>
				<category><![CDATA[Ben Nanonote]]></category>
		<category><![CDATA[ben]]></category>
		<category><![CDATA[forward]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[hotplug]]></category>
		<category><![CDATA[ip_forward]]></category>
		<category><![CDATA[nanonote]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[qi]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[udev]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://erikugel.wordpress.com/?p=257</guid>
		<description><![CDATA[A familiar pain for Ben Nanonote users is connecting the Ben online every-time they plug it in. udev can remove this pain with a simple rule to run all the commands on the host the Ben is connected to when &#8230; <a href="http://erikugel.wordpress.com/2011/07/14/make-your-pc-link-the-ben-to-the-internet-automagically/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=257&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A familiar pain for Ben Nanonote users is connecting the Ben online every-time they plug it in. udev can remove this pain with a simple rule to run all the commands on the host the Ben is connected to when its connected. To get this done, you will need 2 pieces: a <a title="72-BenNanoNote-net.rules" href="http://xeps.no-ip.org/ben/udev/72-BenNanoNote-net.rules">udev rule</a>, and a <a title="ben-net.sh" href="http://xeps.no-ip.org/ben/scripts/ben-net.sh">script</a>.</p>
<p>Your udev rule can be a file under  /etc/udev/rules.d/ . I called mine &#8220;72-BenNanoNnote-net.rules&#8221;</p>
<p>It&#8217;s content should look like this:</p>
<pre>SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0525", ATTR{idProduct}=="a4a1", RUN+="/usr/local/bin/ben-net.sh"
# where RUN+= points to your script</pre>
<p>The script should look like this, and can feel comfortable under /usr/local/bin :</p>
<pre>#!/bin/bash
GATEWAY_IF=ppp0
if (/usr/bin/lsusb -t -d "0525:a4a1"); then
        echo .
        echo "Ben NanoNote found, setting up USB network ... "
        if !( /sbin/lsmod | grep 'ip_tables' ) &amp;&amp; ( /sbin/modprobe -l ip_tables ); then
                /sbin/modprobe ip_tables
                echo "ip_tables is now loaded"
        else
                echo "ip_tables already loaded"
        fi
        if ( grep '0' /proc/sys/net/ipv4/ip_forward ); then
                echo "1" &gt; /proc/sys/net/ipv4/ip_forward
                echo "IP forwarding is now enabled"
        else
                echo "IP forwarding already enabled"
        fi
        if !( /usr/sbin/iptables -L | grep $GATEWAY_IF ); then
                /usr/sbin/iptables -t nat -A POSTROUTING -o $GATEWAY_IF -j MASQUERADE
                echo "Routing is now enabled"
        else
                echo "Routing already setup on "$GATEWAY_IF
        fi
        /sbin/ifconfig usb0 192.168.254.100 netmask 255.255.255.0
fi
# where GATEWAY_IF is the interface that is connected to your LAN or the Internet.</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erikugel.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erikugel.wordpress.com/257/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=257&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erikugel.wordpress.com/2011/07/14/make-your-pc-link-the-ben-to-the-internet-automagically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f340dbe37419780211eb389b9141eab5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erikkugel</media:title>
		</media:content>
	</item>
		<item>
		<title>GNU Pem on the Ben NanoNote</title>
		<link>http://erikugel.wordpress.com/2011/07/13/gnu-pen-on-the-ben-nanonote/</link>
		<comments>http://erikugel.wordpress.com/2011/07/13/gnu-pen-on-the-ben-nanonote/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 18:02:00 +0000</pubDate>
		<dc:creator>Ernest Kugel</dc:creator>
				<category><![CDATA[Ben Nanonote]]></category>
		<category><![CDATA[ben]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[expense]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[manager]]></category>
		<category><![CDATA[nanonote]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[palmtop]]></category>
		<category><![CDATA[pem]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[pjp]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[qi]]></category>
		<category><![CDATA[spreadsheet]]></category>

		<guid isPermaLink="false">https://erikugel.wordpress.com/2011/07/13/gnu-pen-on-the-ben-nanonote/</guid>
		<description><![CDATA[Pem, the personal expenses manager, was ported to the NanoNote and feels at home!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=253&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://erikugel.files.wordpress.com/2011/07/wpid-img_20110713_125424.jpg?w=500" /></p>
<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://erikugel.files.wordpress.com/2011/07/wpid-img_20110713_125354.jpg?w=500" /></p>
<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://erikugel.files.wordpress.com/2011/07/wpid-img_20110713_125245.jpg?w=500" /></p>
<blockquote><p>Pem, the personal expenses manager, was ported to the NanoNote and feels at home!</p>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erikugel.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erikugel.wordpress.com/253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=253&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erikugel.wordpress.com/2011/07/13/gnu-pen-on-the-ben-nanonote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f340dbe37419780211eb389b9141eab5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erikkugel</media:title>
		</media:content>

		<media:content url="http://erikugel.files.wordpress.com/2011/07/wpid-img_20110713_125424.jpg" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://erikugel.files.wordpress.com/2011/07/wpid-img_20110713_125354.jpg" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://erikugel.files.wordpress.com/2011/07/wpid-img_20110713_125245.jpg" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Slackware 13.37 and the ASUS PCE-N13 Wireless Adapter</title>
		<link>http://erikugel.wordpress.com/2011/04/20/slackware-13-37-and-the-asus-pce-n13-wireless-adapter/</link>
		<comments>http://erikugel.wordpress.com/2011/04/20/slackware-13-37-and-the-asus-pce-n13-wireless-adapter/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 07:04:10 +0000</pubDate>
		<dc:creator>Ernest Kugel</dc:creator>
				<category><![CDATA[Slackware]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[pce-n13]]></category>
		<category><![CDATA[rt2860sta]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://erikugel.wordpress.com/?p=210</guid>
		<description><![CDATA[If you are on the market for a wireless adapter for your Linux desktop, the best bang for the buck today seems to be the ASUS PCE-N13. Not only will ~30$ get you a/b/g/n support, 300Mbps transfer rates, 2 antennas &#8230; <a href="http://erikugel.wordpress.com/2011/04/20/slackware-13-37-and-the-asus-pce-n13-wireless-adapter/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=210&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<div id="attachment_237" class="wp-caption alignright" style="width: 310px"><a href="http://erikugel.files.wordpress.com/2011/04/pce-n13.jpeg"><img class="size-full wp-image-237" title="PCE-N13" src="http://erikugel.files.wordpress.com/2011/04/pce-n13.jpeg?w=500" alt="ASUS PCE-N13"   /></a><p class="wp-caption-text">The ASUS PCE-N13 is not especially pretty, but its cheap, fast, and officially supported!</p></div>
<p>If you are on the market for a wireless adapter for your Linux desktop, the best bang for the buck today seems to be the <a title="ASUS" href="http://www.asus.com/Networks/WiFi_Networking/PCEN13/">ASUS PCE-N13</a>. Not only will <a title="NewEgg.com" href="http://www.newegg.com/Product/Product.aspx?Item=N82E16833320048" target="_blank">~30$</a> get you a/b/g/n support, 300Mbps transfer rates, 2 antennas and a PCIe bus, but it also says &#8220;Linux Support&#8221; right on the box, and not in some fine print in an obscure corner. The only card in my local shop to read that, although <em>all of them</em> work just fine. So this is a *moral* choice as well <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The card is indeed supported by the rt2860sta module. Unfortunately, with Both Slackware 13.37 and Ubuntu 10.10, the kernel module fails to bind to the card because the various rt2800 and rt2x00 modules conflict with rt2860sta. The module loads, but all attempts to initialize the card result in error messages. To remedy this, simply blacklist the other modules from loading by adding those modules to <em>/etc/modprobe.d/blacklist.conf</em> like this:</p>
<pre># Blacklist rt2800 and rt2x00 modules
# This will allow the rt2860sta module to bind to the ASUS PCE-N13 card:
blacklist rt2800lib
blacklist rt2800pci
blacklist rt2x00lib
blacklist rt2x00pci</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erikugel.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erikugel.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=210&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erikugel.wordpress.com/2011/04/20/slackware-13-37-and-the-asus-pce-n13-wireless-adapter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f340dbe37419780211eb389b9141eab5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erikkugel</media:title>
		</media:content>

		<media:content url="http://erikugel.files.wordpress.com/2011/04/pce-n13.jpeg" medium="image">
			<media:title type="html">PCE-N13</media:title>
		</media:content>
	</item>
		<item>
		<title>The Quest For The Fastest Linux Filesystem</title>
		<link>http://erikugel.wordpress.com/2011/04/14/the-quest-for-the-fastest-linux-filesystem/</link>
		<comments>http://erikugel.wordpress.com/2011/04/14/the-quest-for-the-fastest-linux-filesystem/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 20:39:56 +0000</pubDate>
		<dc:creator>Ernest Kugel</dc:creator>
				<category><![CDATA[#!]]></category>
		<category><![CDATA[barrier]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[btrfs]]></category>
		<category><![CDATA[chunk]]></category>
		<category><![CDATA[e2fsck]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[fs]]></category>
		<category><![CDATA[fsck]]></category>
		<category><![CDATA[journal]]></category>
		<category><![CDATA[lilo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[mkfs]]></category>
		<category><![CDATA[noatime]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[raid0]]></category>
		<category><![CDATA[raid5]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[speedup]]></category>
		<category><![CDATA[stripe]]></category>
		<category><![CDATA[stripewidth]]></category>
		<category><![CDATA[sunit]]></category>
		<category><![CDATA[swidth]]></category>
		<category><![CDATA[tune2fs]]></category>
		<category><![CDATA[writeback]]></category>
		<category><![CDATA[xfs]]></category>

		<guid isPermaLink="false">http://erikugel.wordpress.com/?p=201</guid>
		<description><![CDATA[What&#8217;s this thing about? This post has a few main points: 1. Speeding up a filesystem&#8217;s performance by setting it up on a tuned RAID0/5 array. 2. Picking the fastest filesystem. 3. The fastest format options for Ext3/4 or XFS &#8230; <a href="http://erikugel.wordpress.com/2011/04/14/the-quest-for-the-fastest-linux-filesystem/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=201&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">What&#8217;s this thing about?</span></strong></p>
<p>This post has a few main points:</p>
<p>1. Speeding up a filesystem&#8217;s performance by setting it up on a tuned RAID0/5 array.</p>
<p>2. Picking the fastest filesystem.</p>
<p>3. The fastest format options for Ext3/4 or XFS filesystems.</p>
<p>4. Tuning an Ext3/4 filesystem&#8217;s journal and directory index for speed.</p>
<p>5. Filesystem mount options that increase performance, such as <em>noatime</em> and <em>barrier=0</em>.</p>
<p>6. Setting up LILO to boot from a RAID1 <em>/boot</em> partition.</p>
<p>The title is a bit of an oversimplification <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  The article is intended to keep being work in progress as &#8220;we&#8221; learn, and as new faster tools become available. This article is not intended to cover the fastest hardware (yet). The goal is the &#8220;fastest&#8221; filesystem possible on whatever device you have. Basically, &#8220;we&#8221; want to setup and tweak whatever is possible to get our IO writes and reads to happen quicker. Which IO reads? random or sequential? long or short? The primary goal is a quick Linux <span style="text-decoration:underline;">root</span> filesystem, which is slightly different than, lets say, a database-only filesystem, or a /home partition for user files. Oh, and by the way, do not use this on your production machines, people. Seriously.</p>
<p><strong><span style="text-decoration:underline;">RAID</span></strong></p>
<p><span style="text-decoration:underline;">WTF is RAID?!</span></p>
<p>The first question is, how many devices would you like your filesystem to span? The simple and correct answer is &#8211; the more the faster. To use one filesystem across multiple devices, a single &#8220;virtual&#8221; device can be created from multiple partitions with RAID. (Recently developed filesystems, like BTRFS and ZFS, are capable of splitting themselves intelligently across partitions to optimize performance on their own, without RAID) Linux uses a software RAID tool which comes free with every major distribution &#8211; mdadm. Read about mdadm <a title="Mdadm - Wikipedia" href="http://en.wikipedia.org/wiki/Mdadm" target="_blank">here</a>, and read about using it <a title="RAID Setup - Wiki" href="https://raid.wiki.kernel.org/index.php/RAID_setup" target="_blank">here</a>. There&#8217;s also a quick 10 step guide I wrote <a title="RAID HowTo" href="http://erikugel.wordpress.com/2010/04/11/setting-up-linux-with-raid-faster-slackware-with-mdadm-and-xfs/" target="_blank">here</a> which will give you an idea about the general procedure of setting up a RAID mdadm array.</p>
<p>Plan your array, and then think about it for a while before you execute &#8211; you can&#8217;t change the array&#8217;s geometry (which is the performance sensitive part) after it&#8217;s created, and it&#8217;s a real pain to migrate a filesystem between arrays. Not to mention a Linux root filesystems.</p>
<p><span style="text-decoration:underline;">Deciding on a performance oriented type of RAID ( RAID0 vs. RAID5 )<br />
</span></p>
<p>The rule of thumb is to use 3 or more drives in a RAID5 array to gain redundancy at the cost of a slight performance loss over a RAID0 array (10% CPU load at peak times on my 2.8 GHz AthlonX2 with a 3 disk RAID5 array). If you only have 2 drives, you cannot use RAID5. Whatever your situation is, RAID0 will always be the fastest, but less responsible, choice.</p>
<p>RAID0 provides no redundancy and will fail irrecoverably when one of the drives in the array fails. Some would say you should avoid putting your root filesystem on an un-redundant array, but we&#8217;ll do it anyways! RAID0 is, well, the *fastest* (I threw that caution to the wind and I&#8217;m typing this from a RAID0 root partition, for what it&#8217;s worth). If you are going to be or have been using a RAID0 array, please comment about your experiences. Oh, and do backup often. At least weekly. To an *external* drive. If you only have one drive you can skip to the filesystem tuning part. If you do are going to use RAID0/5, remember to leave room for a RAID1 array, or a regular partition, for <em>/boot</em>. Today, LILO cannot yet boot a RAID0/5 array.</p>
<p><strong></strong><span style="text-decoration:underline;">Deciding on a RAID stripe size</span><span style="text-decoration:underline;"> ( 4 / 8 / 16 / 32 / 64 / 128 / 256 &#8230; )<br />
</span></p>
<p>You will need to decide, for both RAID0 and RAID5, about the size of the stripe you will use. See how such decisions affect performance <a title="RAID Performance - Linux RAID Wiki" href="https://raid.wiki.kernel.org/index.php/Performance" target="_blank">here</a>. I find the best results for my personal desktop to be 32kb chunks. 64 does not feel much different. I would not recommend going below 32 or above 128 for a general desktops root partition. I surf, play games, stream UPnP, run virtual machines, and use a small MySQL database. If I would be doing video editing, for example, a significantly bigger stripe size would be faster. Such specific usage filesystem should be setup for their own need and not on the root filesystem, if possible. Comments?</p>
<p><span style="text-decoration:underline;">RAID 5 &#8211; deciding on a parity algorithm ( Symmetric vs. Asymmetric )</span></p>
<p>For RAID5, the parity algorithm can be set to 4 different types. Symmetric-Left, Symmetric-Right, Asymmetric-Left, and Asymmetric-Right. They are explained <a title="RAID 5 parity - Stack Overflow" href="http://stackoverflow.com/questions/5326325/raid-5-parity-placement-policy">here</a>, but they appear to only affect performance to a small degree for desktop usage, as <a title="spinics.net - Parity Algorithm" href="http://www.spinics.net/lists/raid/msg32428.html">one thread</a> summarized.</p>
<p><span style="text-decoration:underline;">Creating a RAID0 array</span></p>
<p>Using the suggestions above, the command to create a 2-disk RAID0 array for a root partition on <em>/dev/md0</em> using the partitions <em>/dev/sda1</em> and <em>/dev/sdb1</em> should look like this:</p>
<pre># mdadm --create /dev/md0 --metadata=0.90 --level=0 --chunk=32 --raid-devices=2 /dev/sd[ab]1</pre>
<p>Note the &#8211;metadata option, which with 0.90 specifies the older mdadm metadata format. If you will use anything other than 0.90, you will find Lilo failing to boot.</p>
<p><span style="text-decoration:underline;"><strong>The Fastest Filesystem &#8211; Setup and Tuning</strong></span></p>
<p><span style="text-decoration:underline;">Deciding on a Filesystem ( Ext3 vs. Ext4 vs. XFS vs. BTRFS )</span><strong><span style="text-decoration:underline;"><br />
</span></strong></p>
<p>The <a title="ilsistemista.net - Linux Filesystems Benchmarked" href="http://www.ilsistemista.net/index.php/linux-a-unix/6-linux-filesystems-benchmarked-ext3-vs-ext4-vs-xfs-vs-btrfs.html" target="_blank">Ext4 filesystem does seem to outperform Ext3, XFS and BTRFS</a>, and it can be optimized for striping on RAID arrays. I recommend Ext4 until BTRFS catches up in performance, becomes compatible with LILO/GRUB, and gets an FSCK tool.</p>
<p><span style="text-decoration:underline;">Deciding on a Filesystem Block Size ( 1 vs. 2 vs. 4 )</span></p>
<p>It is impossible to stress how important this part is. Luckily, if you don&#8217;t know what this is and just don&#8217;t touch it, most mkfs tools default to the fastest choice &#8211; 4kb. Why you would not want to use 1 or 2 is neatly shown in the <a title="Performance - Linux RAID Wiki" href="https://raid.wiki.kernel.org/index.php/Performance#RAID-5">benchmarking results of RAID performance on those block sizes</a>. Even if you are not using RAID, you will find 4kb blocks to perform faster. Much like the RAID geometry, this is permanent and cannot be changed.</p>
<p><span style="text-decoration:underline;">Creating an optimized for RAID Ext4 ( stride and stripe-width )</span></p>
<p>Use those guidelines to calculate these values:</p>
<pre>stride = filesystem block-size / RAID chunk.
stripe-width = stride * number of drives in RAID array ( - for RAID0, and that minus one for RAID5 )</pre>
<p>pass the stride and the stripe-width to mkfs.ext4, along with the block size in bytes, like this:</p>
<pre># mkfs.ext4 -b 4096 -E stride=8,stripe-width=16 /dev/md0</pre>
<p>A handy tool to calculate those things for you can be found <a title="MKFS Stride - uClibc.org" href="http://uclibc.org/~aldot/mkfs_stride.html" target="_blank">here</a>.</p>
<p><span style="text-decoration:underline;">Creating an optimized XFS filesystem ( sunit and swidth )</span></p>
<p>The XFS options for RAID optimization are sunit and swidth. A good explanation about those two options can be found in <a title="Optimizing Performance - MythTV Wiki" href="http://www.mythtv.org/wiki/Optimizing_Performance" target="_blank">this post</a>. A quick and dirty formula to calculate those parameters was taken from <a title="RAID and XFS" href="http://webcache.googleusercontent.com/search?q=cache:nbUxpV-UO54J:feedblog.org/2008/06/18/howto-configure-raid-strides-in-xfs/+raid+with+xfs&amp;cd=12&amp;hl=en&amp;ct=clnk&amp;client=iceweasel-a" target="_blank">here</a>:</p>
<pre>sunit = RAID chunk in bytes / 512
swidth = sunit * number of drives in RAID array ( - for RAID0, and that minus one for RAID5 )</pre>
<p>The sunit for a 32kb (or 32768 byte) array would be 32768 / 512 = 64</p>
<p>The command to create such a filesystem for a 32kb chunk size RAID0 array with 2 drives and a 4096 (4kb) block size will look something like this:</p>
<pre># mkfs.xfs -b size=4096 -d sunit=64,swidth=128 /dev/md0</pre>
<p><span style="text-decoration:underline;">Tuning the Ext3 / Ext4 Filesystem ( Journal )<br />
</span></p>
<p>There&#8217;s a good explanation about the 3 modes in which a filesystem&#8217;s journal can be used on the <a title="Speeding Up EXT3 - OpenSUSE Wiki" href="http://en.opensuse.org/SDB:Speeding_up_ext3" target="_blank">OpenSUSE Wiki</a>. That same guide will rightly recommend avoiding writing actual data to the journal to improve performance. On a newly created but unmounted filesystem, disable the writing of actual data to the journal:</p>
<pre># tune2fs -O has_journal -o journal_data_writeback /dev/md0</pre>
<p><span style="text-decoration:underline;">Turning on Ext3 / Ext4 Directory Indexing:</span></p>
<p>Your filesystem will perform faster if the directories are indexed:<span style="text-decoration:underline;"><br />
</span></p>
<pre># tune2fs -O dir_index /dev/md0
# e2fsck -D /dev/md0</pre>
<p><strong><span style="text-decoration:underline;">Filesystem Mounting Options ( noatime, nodiratime, barrier, data and errors</span><span style="text-decoration:underline;"> options ):</span></strong></p>
<p>Some options should be passed to the filesystem on mount to increase its performance:</p>
<p><em>noatime, nodiratime</em> &#8211; Do not log access of files and directories.</p>
<p><em>barrier=0</em> &#8211; Disable barrier sync (Only safe if you can assure uninterrupted power to the drives, such as a UPS battery)</p>
<p><em>errors=remount-ro</em> &#8211; When we have filesystem errors, we should remount our root filesystem readonly (and generally panic).</p>
<p><em>data=writeback</em> &#8211; For Ext3 / Ext4. If your journal is in <em>writeback</em> mode (as we previously advised), set this option.</p>
<p>My fstab looks like this:</p>
<pre>/dev/md0         /                ext4        noatime,nodiratime,data=writeback,stripe=16,barrier=0,errors=remount-ro      1   1</pre>
<p>And my manual mount command will look like this:</p>
<pre># mount /dev/md0 /mnt -o noatime,nodiratime,data=writeback,stripe=16,barrier=0,errors=remount-ro</pre>
<p>Did I mention to NEVER do this on a production machine?</p>
<p><span style="text-decoration:underline;">Installing your Linux</span></p>
<p>Install as usual, but do not format the <em>root </em>partition you&#8217;ve setup! If you are using RAID0/5, you have to setup a separate, RAID1 or primary <em>/boot</em> partition. In my experience, the leaving the boot partition unoptimized does not affect regular performance, but if you are keen on shaving a few milliseconds off your boot-time you can go ahead and tune that filesystem yourself as well.<span style="text-decoration:underline;"><br />
</span></p>
<p><span style="text-decoration:underline;">Making sure LILO boots</span></p>
<p>If you are using RAID0/5 for your <em>root</em> partition, you must setup a separate non-RAID or RAID1 partition as <em>/boot</em>. If you do setup your <em>/boot</em> partition to be on a RAID1 array, you have to make sure to point lilo to the right drive but editing <em>/etc/lilo.conf</em> :</p>
<pre>boot = /dev/md1</pre>
<p>and make sure LILO knows about the mirroring of the <em>/boot</em> partitions by adding the line:<em></em></p>
<pre>raid-extra-boot = mbr-only</pre>
<p>Then, LILO must be reinstalled to the Master Boot Record while the <em>/boot</em> partition is mounted on the <em>root </em>partition. From a system rescue CD, with a properly edited <em>lilo.conf</em> file this will look something like this:</p>
<pre># mount /dev/md0 /mnt
# mount /dev/md1 /mnt/boot
# /mnt/sbin/lilo -C /mnt/etc/lilo.conf</pre>
<p>&#8230; and reboot.</p>
<p><span style="text-decoration:underline;">Experience and thoughts:</span></p>
<p>I&#8217;ve been following my own advice for the last couple of weeks. The system is stable and best of all, *fast*. May those not be &#8220;famous last words&#8221;, but I&#8217;ll update this post as I go. The only thing we all really need is comments and input. If you use something else that works faster for you &#8211; let us know. If something downgraded your stability to the level of Win98, please let us know. More importantly &#8211; if you see any errors, you got it &#8211; let us know.</p>
<p><span style="text-decoration:underline;">TO DO:</span></p>
<p>Test this interesting post about <a title="Alligning Partitions - IBM" href="http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/index.html" target="_blank">Aligning Partitions</a></p>
<p>Test BTRFS on 2 drives without RAID/LVM</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erikugel.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erikugel.wordpress.com/201/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=201&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erikugel.wordpress.com/2011/04/14/the-quest-for-the-fastest-linux-filesystem/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f340dbe37419780211eb389b9141eab5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erikkugel</media:title>
		</media:content>
	</item>
		<item>
		<title>MediaTomb on the Ben Nanonote</title>
		<link>http://erikugel.wordpress.com/2010/12/26/mediatomb-on-the-ben-nanonote/</link>
		<comments>http://erikugel.wordpress.com/2010/12/26/mediatomb-on-the-ben-nanonote/#comments</comments>
		<pubDate>Sun, 26 Dec 2010 18:55:53 +0000</pubDate>
		<dc:creator>Ernest Kugel</dc:creator>
				<category><![CDATA[Ben Nanonote]]></category>
		<category><![CDATA[ben]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[metiatomb]]></category>
		<category><![CDATA[nanonote]]></category>
		<category><![CDATA[qi]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[upnp]]></category>
		<category><![CDATA[upnp av]]></category>

		<guid isPermaLink="false">http://erikugel.wordpress.com/?p=167</guid>
		<description><![CDATA[What can I say, the title speaks for itself. As no big surprise, the most versatile piece of UPnP streaming media servers out there, MediaTomb, is humming along with no problems on Qi Hardware&#8217;s Ben Nanonote. Real world usage scenarios &#8230; <a href="http://erikugel.wordpress.com/2010/12/26/mediatomb-on-the-ben-nanonote/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=167&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>What can I say, the title speaks for itself. As no big surprise, the most versatile piece of <a title="WikiPedia UPnP" href="http://en.wikipedia.org/wiki/Upnp" target="_blank">UPnP</a> streaming media servers out there, <a title="MediaTomb" href="http://mediatomb.cc/" target="_blank">MediaTomb</a>, is humming along with no problems on <a title="Wikipedia Ben Nanonote" href="http://en.qi-hardware.com/wiki/Ben_NanoNote" target="_blank">Qi Hardware&#8217;s Ben Nanonote</a>. Real world usage scenarios could include using the Ben as a little DJ in parties by streaming to <a title="VLC" href="http://www.videolan.org/vlc/" target="_blank">VLC</a> or other UPnP supporting players, or other wild fantasies Ben owners might have. The best news here is that there is absolutely no brain work involved. I simply had to fire up the <a title="Getting Online" href="http://erikugel.wordpress.com/2010/03/27/the-ben-nanonote-from-qi-hardware/" target="_blank">network connection on the Ben</a>, grab <a title="&quot;right&quot; hard linked binary" href="http://downloads.sourceforge.net/mediatomb/mediatomb-static-0.11.0-r2-linux-uclibc-mips32el.tar.gz" target="_blank">the right hard linked binary</a>, untar it and run. All of this can be done directly from the Nanonote (once it&#8217;s online):</p>
<pre># wget http://downloads.sourceforge.net/mediatomb/mediatomb-static-0.11.0-r2-linux-uclibc-mips32el.tar.gz
# tar vxzf mediatomb-static-0.11.0-r2-linux-uclibc-mips32el.tar.gz
# cd ./mediatomb
# ./mediatomb.sh</pre>
<p>To automate, add this to /etc/rc.local and make it executable, but remember MediaTomb must be started from the mediatomb folder.</p>
<p>Once started, media tomb can be accessed on port 49152 with your browser. For me, this translates to <a href="http://192.168.3.2:49152" rel="nofollow">http://192.168.3.2:49152</a> and looks like this:</p>
<div id="attachment_202" class="wp-caption aligncenter" style="width: 310px"><a href="http://erikugel.files.wordpress.com/2010/12/mediatomb-on-nanonote.jpg"><img class="size-medium wp-image-202" title="MediaTomb on Nanonote" src="http://erikugel.files.wordpress.com/2010/12/mediatomb-on-nanonote.jpg?w=300&#038;h=176" alt="MediaTomb on Nanonote" width="300" height="176" /></a><p class="wp-caption-text">MediaTomb on Nanonote</p></div>
<p>So far, it&#8217;s an awesome remote file browser, and as soon as I can get VLC to compile on my Slackware, it&#8217;s party time!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erikugel.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erikugel.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erikugel.wordpress.com&#038;blog=8643872&#038;post=167&#038;subd=erikugel&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erikugel.wordpress.com/2010/12/26/mediatomb-on-the-ben-nanonote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/f340dbe37419780211eb389b9141eab5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">erikkugel</media:title>
		</media:content>

		<media:content url="http://erikugel.files.wordpress.com/2010/12/mediatomb-on-nanonote.jpg?w=300" medium="image">
			<media:title type="html">MediaTomb on Nanonote</media:title>
		</media:content>
	</item>
	</channel>
</rss>
