<?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>How in the TECH &#187; Linux</title>
	<atom:link href="http://www.howinthetech.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howinthetech.com</link>
	<description>Daily Tech Tips and News</description>
	<lastBuildDate>Fri, 03 Sep 2010 20:58:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel='hub' href='http://www.howinthetech.com/?pushpress=hub'/>
		<item>
		<title>Using Granola to reduce the cost of running your PC</title>
		<link>http://www.howinthetech.com/using-granola-to-reduce-the-cost-of-running-your-pc/</link>
		<comments>http://www.howinthetech.com/using-granola-to-reduce-the-cost-of-running-your-pc/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 23:48:15 +0000</pubDate>
		<dc:creator>Adam Myers</dc:creator>
				<category><![CDATA[How in the Tech]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Optimization]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.howinthetech.com/?p=3912</guid>
		<description><![CDATA[Saving energy isn&#8217;t just the popular thing to do, it&#8217;s right thing to do. Whether you believe in the impact of society on global warming or not, you probably are still receptive to saving a few dollars on your electricity bill? All modern PCs behave quite nicely with Windows built-in power management features such as [...]]]></description>
			<content:encoded><![CDATA[<p><div style="float: right; margin-top:0px;margin-left:5px;"><script type="text/javascript"><!--
google_ad_client = "pub-7614676277221702";
google_ad_slot = "8180382492";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>Saving energy isn&#8217;t just the popular thing to do, it&#8217;s right thing to do. Whether you believe in the impact of society on global warming or not, you probably are still receptive to saving a few dollars on your electricity bill? All modern PCs behave quite nicely with Windows built-in power management features such as <em>Stand By</em> and <em>Hibernate</em>. While hibernate might be a tougher conversion to make due to it&#8217;s slower by design resume feature, stand-by is something the majority of us should use. Unless your PC is actually doing something while you are away from it, a properly functioning PC utilizing stand by can resume to a fully working state in mere seconds. Surely that is sufficient to 90% of the PC users out there?</p>
<p>Utilizing the built-in power management functionality on your PC is an easy way to save money &#8211; a PC running 24/7 in my area costs roughly $10-15 a month. While you won&#8217;t retire early on these savings it is essentially free money in my opinion. For those of you that care a bit more about the environment or are even more miserly, their exists a piece of software that may speak to you.</p>
<p>Granola is an energy saving software that works on both Windows and Linux. Using analysis and under-lying algorithms, Granola can further reduce your power consumption on your PC by focusing almost exclusively on the CPU. While all modern processors feature some sort of built-in energy management, either throttling down the clock cycles or core voltage and times of minimal use, they&#8217;re results are conservative at best. Granola can further squeeze out a few more pennies on the dollar while sitting quietly in the background. The effect is essentially transparent after the initial splash screen in my experience.</p>
<p><a rel="attachment wp-att-3914" href="http://www.howinthetech.com/using-granola-to-reduce-the-cost-of-running-your-pc/granola/"><img class="alignnone size-full wp-image-3914" title="granola" src="http://www.howinthetech.com/wp-content/uploads/granola.png" alt="" width="352" height="549" /></a></p>
<p>The main interface of Granola consists of many interesting statistics and some tangible analogies to the savings you&#8217;ve incurred. For example, while a number such as 50 kWh saved over the course of the year means little to most, Granola will instead present the information in how many hours you could run an air conditioner or refrigerator. You will also get a cost savings tracked throughout the use of the software assuming you provide your electricity costs in the options panel. It&#8217;s really a clever tactic that attracted the attention of someone like myself.</p>
<p>Granola is a free download and works on most Windows (and Linux) systems including Windows 7.</p>
<p><a href="http://grano.la/">Download Granola</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.howinthetech.com/using-granola-to-reduce-the-cost-of-running-your-pc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add the Tab to PuTTY SSH Client</title>
		<link>http://www.howinthetech.com/add-the-tab-to-putty-ssh-client/</link>
		<comments>http://www.howinthetech.com/add-the-tab-to-putty-ssh-client/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 20:39:08 +0000</pubDate>
		<dc:creator>Adam Myers</dc:creator>
				<category><![CDATA[How in the Tech]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.howinthetech.com/?p=1004</guid>
		<description><![CDATA[PuTTY is arguably the most popular free SSH client for Windows, likely found on every computer belonging to a user who knows what SSH is. I use PuTTY daily &#8211; it&#8217;s a single executable that does everything I need, quickly and simply. Well .. not everything I suppose. The lack of tab-based navigation has annoyed [...]]]></description>
			<content:encoded><![CDATA[<p><div style="float: right; margin-top:0px;margin-left:5px;"><script type="text/javascript"><!--
google_ad_client = "pub-7614676277221702";
google_ad_slot = "8180382492";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> is arguably the most popular free SSH client for Windows, likely found on every computer belonging to a user who knows what SSH is. I use PuTTY daily &#8211; it&#8217;s a single executable that does everything I need, quickly and simply. Well .. not everything I suppose. The lack of tab-based navigation has annoyed me ever since I had gotten used to the notion in Firefox. As my day progresses, it is not uncommon to have 4 or 5 PuTTY sessions going at once. This flies in the face of my desire for an organized taskbar, with windows just so. My workspace becomes cramped and my productivity lessens. I admit, it&#8217;s a subtle and minor annoyance but today I found an answer.</p>
<p>The <a href="http://puttycm.free.fr/">PuTTY Connection Manager</a> is a wrapper for the popular client. PCM encapsulates the original putty.exe binary in an attractive interface, complete with tabs and a few other niceties.</p>
<ul>
<li>PuTTY with tabs &#8211; swell!</li>
<p style="text-align: center;"><img class="alignnone size-full wp-image-1005" title="pcm_1" src="http://www.howinthetech.com/wp-content/uploads/pcm_1.jpg" alt="" width="500" height="337" /></p>
</ul>
<ul>
<li>The connection manager on the right side can be configure to Auto Hide &#8211; much like the Windows taskbar.</li>
<p style="text-align: center;"><img class="alignnone size-full wp-image-1006" title="pcm_2" src="http://www.howinthetech.com/wp-content/uploads/pcm_2.jpg" alt="" width="377" height="203" /></p>
<li>A new feature provided by PuTTY Connection Manager is automatic login as well as passing parameters to the PuTTY session on creation.</li>
<p style="text-align: center;"><img class="alignnone size-full wp-image-1007" title="pcm_3" src="http://www.howinthetech.com/wp-content/uploads/pcm_3.jpg" alt="" width="500" height="212" /></p>
</ul>
<p>PuTTY Connection Manager requires Microsoft .NET Framework 2.0 and the original PuTTY Client &#8211; both of which are not included in the download. Even with the .NET requirement, PCM remains light-weight and snappy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howinthetech.com/add-the-tab-to-putty-ssh-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cracking ZIP, RAR, and 7z Files</title>
		<link>http://www.howinthetech.com/cracking-zip-rar-and-7z-files/</link>
		<comments>http://www.howinthetech.com/cracking-zip-rar-and-7z-files/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 20:17:51 +0000</pubDate>
		<dc:creator>Adam Myers</dc:creator>
				<category><![CDATA[How in the Tech]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Privacy]]></category>

		<guid isPermaLink="false">http://www.howinthetech.com/?p=440</guid>
		<description><![CDATA[Nine months ago you did a good deed. In a valiant attempt to clean up your filesystem you compressed and archived a few directories and their contents. Decidingly clever, effort was put towards keeping prying eyes out and your data secure &#8211; a password was embedded in the archive file. Without the password, no one [...]]]></description>
			<content:encoded><![CDATA[<p><div style="float: right; margin-top:0px;margin-left:5px;"><script type="text/javascript"><!--
google_ad_client = "pub-7614676277221702";
google_ad_slot = "8180382492";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>Nine months ago you did a good deed. In a valiant attempt to clean up your filesystem you compressed and archived a few directories and their contents. Decidingly clever, effort was put towards keeping prying eyes out and your data secure &#8211; a password was embedded in the archive file. Without the password, no one could access your data. Time has passed until today, when you&#8217;ve realized you need access to one of the files you&#8217;ve archived away. What was that password again? There is a solution to your predicament, <a href="http://rarcrack.sourceforge.net/" target="_blank">RarCrack</a>.</p>
<p>RarCrack is a Linux program that applies a bruteforce approach to cracking password protected rar, zip, and 7z files. Brute force has its limitations but in general, it can be quite effective. Besides, what other options do you have at this point?</p>
<p><a href="http://sourceforge.net/project/showfiles.php?group_id=175600&amp;package_id=250262&amp;release_id=549782" target="_blank">Download</a></p>
<p style="padding-left: 30px;"><em>wget http://downloads.sourceforge.net/rarcrack/rarcrack-0.2.tar.bz2?modtime=1193432831&amp;big_mirror=0</em></p>
<p>Install</p>
<address style="padding-left: 30px;"><em><code>tar xvjf rarcrack-0.2.tar.bz2</code></em></address>
<address style="padding-left: 30px;"><em><code>cd rarcrack-0.2</code></em></address>
<address style="padding-left: 30px;"><em><code>make ; sudo make install</code></em></address>
<p>Use</p>
<p style="padding-left: 30px;"><em>rarcrack your_encrypted_archive.ext [--threads thread_num] [--type rar|zip|7z]</em></p>
<p style="padding-left: 30px;">Everything in [] are optional, rarcrack cracks with two threads by default and autodetects the archive 		type. If the detection is wrong you can specify the correct file type with the type parameter. 		RarCrack currently cracks with a maximum of 12 threads. After the cracking has started, RarCrack will print the current status to a file. If you want more specific 		password character set to brute force from, you need to run RarCrack to create the XML 		status file (3 sec).</p>
<p style="padding-left: 30px;">Here is a sample XML file with a password character set:</p>
<p style="padding-left: 60px;"><em>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;rarcrack&gt;<br />
&lt;abc&gt;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&lt;/abc&gt;<br />
&lt;current&gt;uU&lt;/current&gt;<br />
&lt;good_password&gt;&lt;/good_password&gt;<br />
&lt;/rarcrack&gt;</em></p>
<p>With a bit of luck you will be able to determine the necessary password. In the same vain, you should take caution in just how easy this can be to crack the next time you wish to password protect a file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howinthetech.com/cracking-zip-rar-and-7z-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downloading an Entire Web Site with wget</title>
		<link>http://www.howinthetech.com/downloading-an-entire-web-site-with-wget/</link>
		<comments>http://www.howinthetech.com/downloading-an-entire-web-site-with-wget/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 21:06:51 +0000</pubDate>
		<dc:creator>Adam Myers</dc:creator>
				<category><![CDATA[How in the Tech]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.howinthetech.com/?p=487</guid>
		<description><![CDATA[GNU wget is a free utility for non-interactive download of files from the Web, generally available on most Linux installs.  It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies. Wget is non-interactive, meaning that it can work in the background, while the user is not logged on.  This allows you [...]]]></description>
			<content:encoded><![CDATA[<p><div style="float: right; margin-top:0px;margin-left:5px;"><script type="text/javascript"><!--
google_ad_client = "pub-7614676277221702";
google_ad_slot = "8180382492";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>GNU wget is a free utility for non-interactive download of files from the Web, generally available on most Linux installs.  It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies. Wget is non-interactive, meaning that it can work in the background, while the user is not logged on.  This allows you to start a retrieval and disconnect from the system, letting wget finish the work.  By contrast, most of the Web browsers require constant user&#8217;s presence, which can be a great hindrance when transferring a lot of data.</p>
<p>One of the powerful features of wget is its ability to retreive a complete mirror of a website, locally, on your hard drive. It is also intelligent enough to only download links or files associated with the website, without traversing external links. Though it would be a generous public service, you probably wouldn&#8217;t want to mirror the entire Internet!</p>
<p>Here&#8217;s how you do it.</p>
<p>From a Linux shell:</p>
<p style="padding-left: 30px;">$ wget -mk -w 10 http://www.google.com/</p>
<blockquote>
<ul>
<li><strong>-m</strong> instructs wget to enter mirroring mode</li>
<li><strong>-k </strong> instructs wget to convert links in the webpages downloaded to local links</li>
<li><strong>-w 10 </strong>instructs wget to delay 10 seconds between requests. This is really just to maintain proper net etiquette; it&#8217;s not required</li>
</ul>
</blockquote>
<p><span style="color: #000000;"><span>Not running Linux or otherwise have no access to wget? Don&#8217;t fret, <a href="http://pages.interlog.com/~tcharron/wgetwin.html">wget has been ported to Windows</a>. Wget is a powerful utility that I&#8217;ve barely scratched the surface here. Find out more on wget by reading the associated manpages.<br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.howinthetech.com/downloading-an-entire-web-site-with-wget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to sort folders by size in Linux/Unix</title>
		<link>http://www.howinthetech.com/how-to-sort-folders-by-size-in-linuxunix/</link>
		<comments>http://www.howinthetech.com/how-to-sort-folders-by-size-in-linuxunix/#comments</comments>
		<pubDate>Thu, 06 Jul 2006 20:27:51 +0000</pubDate>
		<dc:creator>Adam Myers</dc:creator>
				<category><![CDATA[How in the Tech]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.evileyez.org/how-to-sort-folders-by-size-in-linuxunix/</guid>
		<description><![CDATA[In my day to day profession I am often tasked to find out where all the storage space has gone on a system. For example, I need to figure out which user(s) are using more than their fair share on the mail server. Knowing that the mail folder resides under /home, I need a quick [...]]]></description>
			<content:encoded><![CDATA[<p><div style="float: right; margin-top:0px;margin-left:5px;"><script type="text/javascript"><!--
google_ad_client = "pub-7614676277221702";
google_ad_slot = "8180382492";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>In my day to day profession I am often tasked to find out where all the storage space has gone on a system. For example, I need to figure out which user(s) are using more than their fair share on the mail server. Knowing that the mail folder resides under /home, I need a quick and easy way to list all of its subfolders sorted by size.</p>
<p>Thankfully, Linux makes this a rather trivial process &#8211; assuming you know the right command and appropriate flags:</p>
<blockquote><p><strong>du &#8211;max-depth=1 /home/ | sort -n -r</strong></p></blockquote>
<p>In Unix, it is equally similar:</p>
<blockquote><p><strong>du -sk /home/* | sort -n -r</strong></p></blockquote>
<p>Either command, when executed, will dump something similar to the following:</p>
<blockquote><p><strong>1234881  /home/<br />
23441  /home/adam<br />
19244    /home/support<br />
13960    /home/admin<br />
&#8230;</strong></p></blockquote>
<p>..on your screen. Now, you can get to cracking those knuckles on your top spacepigs!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howinthetech.com/how-to-sort-folders-by-size-in-linuxunix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vi Cheat Sheet</title>
		<link>http://www.howinthetech.com/vi-cheat-sheet/</link>
		<comments>http://www.howinthetech.com/vi-cheat-sheet/#comments</comments>
		<pubDate>Wed, 17 May 2006 17:49:03 +0000</pubDate>
		<dc:creator>Adam Myers</dc:creator>
				<category><![CDATA[How in the Tech]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shortcuts]]></category>

		<guid isPermaLink="false">http://www.evileyez.org/vi-cheat-sheet/</guid>
		<description><![CDATA[vi is a powerful text editor found on practically every Unix based system. Consequently, it is quite beneficial to learn and master vi and its abundance of keyboard shortcuts. If you are not quite the guru you hoped to be, here is a handy reference page that will bring you up to speed quickly. File [...]]]></description>
			<content:encoded><![CDATA[<p><div style="float: right; margin-top:0px;margin-left:5px;"><script type="text/javascript"><!--
google_ad_client = "pub-7614676277221702";
google_ad_slot = "8180382492";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>vi is a powerful text editor found on practically every Unix based system. Consequently, it is quite beneficial to learn and master vi and its abundance of keyboard shortcuts. If you are not quite the guru you hoped to be, here is a handy reference page that will bring you up to speed quickly.</p>
<p><span style="font-weight: bold;">File Handling</span><br />
<span style="font-family: courier;"><br />
vi </span><br />
Open a  file to edit<br />
<br style="font-family: courier;" /> <span style="font-family: courier;">:w</span><br />
Save a file</p>
<p><span style="font-family: courier;">:w </span><br />
Save a file with a new filename<br />
<br style="font-family: courier;" /> <span style="font-family: courier;">:q!</span><br />
Quit without saving</p>
<p><span style="font-family: courier;">:wq</span><br />
Quit and save</p>
<p><span style="font-weight: bold;">Movement</span></p>
<p><span style="font-family: courier;">h or (left arrow key)</span><br />
Left one character<br />
<br style="font-family: courier;" /> <span style="font-family: courier;">i or (right arrow key)</span><br />
Right one character</p>
<p><span style="font-family: courier;">k or (up arrow key)</span><br />
Up one line</p>
<p><span style="font-family: courier;">j or (down arrow key)</span><br />
Down one line</p>
<p><span style="font-family: courier;">^</span><br />
Beginning of a line</p>
<p><span style="font-family: courier;">$</span><br />
End of  a line</p>
<p><span style="font-family: courier;">1G</span><br />
Beginning of a file<br />
<br style="font-family: courier;" /> <span style="font-family: courier;">G</span><br />
End of a file</p>
<p><span style="font-family: courier;">:</span><br />
move to line number</p>
<p><span style="font-weight: bold;">Editing</span></p>
<p><span style="font-family: courier;">i</span><br />
Insert text</p>
<p><span style="font-family: courier;">A</span><br />
Append text</p>
<p><span style="font-family: courier;">r</span><br />
Replace text<br />
<br style="font-family: courier;" /> <span style="font-family: courier;">R</span><br />
Replace a character</p>
<p><span style="font-family: courier;">x</span><br />
Cut/delete character</p>
<p><span style="font-family: courier;">dd</span><br />
Cut/delete line</p>
<p><span style="font-family: courier;">D</span><br />
Cut/delete to end of line</p>
<p><span style="font-family: courier;">Y or yy</span><br />
Copy line (yank)</p>
<p><span style="font-family: courier;">p</span><br />
Paste line</p>
<p><span style="font-family: courier;">J</span><br />
Join line below to this line</p>
<p><span style="font-family: courier;">u</span><br />
Undo last change</p>
<p><span style="font-family: courier;">e</span><br />
Undo all changes</p>
<p><span style="font-weight: bold;">Advanced Users</span></p>
<p><span style="font-family: courier;">/ &amp;/ (repeats last search)</span><br />
Search for keyword</p>
<p><span style="font-family: courier;">:set number &amp; : set no number (turns off numbers)</span><br />
Show line numbers</p>
<p><span style="font-family: courier;">.</span><br />
Repeat last command</p>
<p><span style="font-family: courier;">:m//</span><br />
Regular expression search</p>
<p><span style="font-family: courier;">:s///</span><br />
Regular expression replace</p>
<p><span style="font-family: courier;">:,s///</span><br />
Regular expression replace by lines</p>
<p><span style="font-family: courier;">:</span><br />
Repeat command x times</p>
<p><span style="font-family: courier;">%</span><br />
Find matching () or {}</p>
<p><span style="font-family: courier;">:sh</span> (type exit to return to vi)<br />
Drop to shell</p>
<p>[tags]Unix, vi, Linux, vi shortcuts[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howinthetech.com/vi-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick and dirty linux software RAID5</title>
		<link>http://www.howinthetech.com/quick-and-dirty-linux-software-raid5/</link>
		<comments>http://www.howinthetech.com/quick-and-dirty-linux-software-raid5/#comments</comments>
		<pubDate>Tue, 18 Apr 2006 17:11:24 +0000</pubDate>
		<dc:creator>Adam Myers</dc:creator>
				<category><![CDATA[How in the Tech]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://www.evileyez.org/quick-and-dirty-linux-software-raid5/</guid>
		<description><![CDATA[I recently migrated my network storage server, running Ubuntu Linux incidently, to a software RAID 5 configuration. RAID level 5 requires atleast 3 harddrives; giving you in total N-1 storage, where N is the number of disks in the array. For my deployment, I used 3 120GB drives (mixing IDE and SATA, Linux is indifferent [...]]]></description>
			<content:encoded><![CDATA[<p><div style="float: right; margin-top:0px;margin-left:5px;"><script type="text/javascript"><!--
google_ad_client = "pub-7614676277221702";
google_ad_slot = "8180382492";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>I recently migrated my network storage server, running <a href="http://www.ubuntu.com/" target="_blank">Ubuntu Linux </a>incidently, to a software RAID 5 configuration. RAID level 5 requires atleast 3 harddrives; giving you in total N-1 storage, where N is the number of disks in the array. For my deployment, I used 3 120GB drives (mixing IDE and SATA, Linux is indifferent here) giving me effectively 240GB. The missing 120GB is the parity information that allows transparent data recovery when 1 disk in the array fails. I&#8217;ve glossed over a lot of the <a href="http://www.google.ca/search?q=software+raid+5" target="_blank">details regarding RAID 5</a> but a quick google should fill in the blanks if need be.</p>
<p>Here is how I accomplished this under Ubuntu Dapper.</p>
<ol>
<li>Install <em>mdadm</em> using apt-get, or your favorite package manager. mdadm is the tool used to administer Linux md device arrays (software RAID).</li>
<li>Partition your drives as appropriate using <strong>cfdisk /dev/hd&lt;?&gt;</strong>. Ensure that all partitions are of equal size and the partition type is set to <strong>Linux raid autodetect</strong>.</li>
<li>Using <em>mdadm</em> create your RAID-5 device:
<ul>
<li><strong>mdadm </strong><code>--</code><strong>create /dev/md0 </strong><code>--</code><strong>chunk=64 </strong><code>--</code><strong>level=raid5 </strong><code>--</code><strong>raid-devices=3 /dev/hdc1 /dev/hde1 /dev/sda1</strong>; substituting for your own /dev/ devices.</li>
</ul>
</li>
<li>Good Good.
<ul>
<li># <strong>cat /proc/mdstat</strong><br />
Personalities : [raid5]<br />
md0 : active raid5 sda1[0] hdc1[1] hde1[2]<br />
234371968 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]</li>
</ul>
</li>
<li>Format your newly created <strong>/dev/md0</strong> device.
<ul>
<li><strong>mkfs.ext3 /dev/md0</strong></li>
</ul>
</li>
<li>Create a mount point for your RAID-5 array and add it to <strong>/etc/fstab</strong> so it is mounted automagically on the next reboot.
<ul>
<li>/dev/md0        /storage        ext3    defaults                        0       1</li>
</ul>
</li>
<li>Getting detailed info about your array.
<ul>
<li># <strong>mdadm <code>--</code>detail /dev/md0</strong><br />
/dev/md0:<br />
Version : 00.90.03<br />
Creation Time : Sat Apr  1 14:01:39 2006<br />
Raid Level : raid5<br />
Array Size : 234371968 (223.51 GiB 240.00 GB)<br />
Device Size : 117185984 (111.76 GiB 120.00 GB)<br />
Raid Devices : 3<br />
Total Devices : 3<br />
Preferred Minor : 0<br />
Persistence : Superblock is persistentUpdate Time : Tue Apr 18 07:39:21 2006<br />
State : clean<br />
Active Devices : 3<br />
Working Devices : 3<br />
Failed Devices : 0<br />
Spare Devices : 0Layout : left-symmetric<br />
Chunk Size : 64K</p>
<p>UUID : 51dec40b:2d6fd4cc:a9e0addc:fe5303d4<br />
Events : 0.176640</p>
<p>Number   Major   Minor   RaidDevice State<br />
0       8        1        0      active sync   /dev/sda1<br />
1      22        1        1      active sync   /dev/hdc1<br />
2      33        1        2      active sync   /dev/hde1</li>
</ul>
</li>
<li>Managing the RAID device.
<ul>
<li>Setting a disk faulty/failed:<br />
# <strong>mdadm <code>--</code>fail /dev/md0 /dev/hdc1</strong></li>
<li>Removing a faulty disk from an array:<br />
# <strong>mdadm <code>--</code>remove /dev/md0 /dev/hdc1</strong></li>
<li>Clearing any previous raid info on a disk:<br />
# <strong>mdadm <code>--</code>zero-superblock /dev/hdc1</strong></li>
<li>Adding a disk to an array:<br />
# <strong>mdadm <code>--</code>add /dev/md0 /dev/hdc1</strong></li>
</ul>
</li>
</ol>
<p>RAID can be an intimadating piece of technology but it&#8217;s benefits are plainly obvious. Hopefully this framework howto is enough to ease your fears.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howinthetech.com/quick-and-dirty-linux-software-raid5/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Is this the Last Day of the Month?</title>
		<link>http://www.howinthetech.com/is-this-the-last-day-of-the-month/</link>
		<comments>http://www.howinthetech.com/is-this-the-last-day-of-the-month/#comments</comments>
		<pubDate>Wed, 12 Apr 2006 17:53:29 +0000</pubDate>
		<dc:creator>Adam Myers</dc:creator>
				<category><![CDATA[How in the Tech]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.evileyez.org/is-this-the-last-day-of-the-month/</guid>
		<description><![CDATA[&#8220;One of the issues that has long irritated Unix users when setting up cron jobs is how to set up a job to run on the last day of the month. Unless one wants to set up a separate cron job for every month (and this still leaves the problem of leap years), it isn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;One of the issues that has long irritated Unix users when setting up cron jobs is how to set up a job to run on the last day of the month. Unless one wants to set up a separate cron job for every month (and this still leaves the problem of leap years), it isn&#8217;t at all straightforward how to attack this seemingly ordinary problem with an ordinary solution. However, there are some reliable ways to code around the problem.&#8221;</p>
<p>I&#8217;ve come across this problem in my profession and my solution is much simpler and easier to understand than the one proposed in this verbose write-up.</p>
<blockquote><p>#!/bin/bash<br />
if [ `date --date="+1 day" +%d` = 01 ]; then<br />
<em>execute desired task</em><br />
fi</p></blockquote>
<p>Have cron execute this bash script at the desired run-time each day to achieve the desired results.</p>
<p>Plug. Chug. Done.</p>
<p><a href="http://www.itworld.com/jpitw/refer/nl/unix_insider/04062006/">read more</a> | <a href="http://digg.com/linux_unix/Is_this_the_Last_Day_of_the_Month_">digg story</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.howinthetech.com/is-this-the-last-day-of-the-month/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taming Apple&#8217;s Tiger for Your PC</title>
		<link>http://www.howinthetech.com/howto_install_osx_intel/</link>
		<comments>http://www.howinthetech.com/howto_install_osx_intel/#comments</comments>
		<pubDate>Thu, 01 Sep 2005 17:02:47 +0000</pubDate>
		<dc:creator>Adam Myers</dc:creator>
				<category><![CDATA[How in the Tech]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I'd just like to say that there are not enough "How I Installed OS X on my Dell." Here's my contribution, in twelve easy steps.

1) Get tiger-x86.tar.bz2

2) Unpack tiger-x86-flat.img to a separate NTFS hard drive 

3) Load up the system with the Knoppix Live CD

4) If the drive from step 2 is external, attach it and let Knoppix automount it

5) Open up a terminal
<ul>
<li>Use su to become root</li>
<li>Switch to the directory Knoppix mounted from step 4 (look in /mnt/)</li>
<li>Execute ls –all to verify that the .img file exists</li>
<li>Execute dd bs=1048576 if=./tiger-x86-flat.img of=/dev/hda, where hda is the *drive* you wish to install to. hda=drive 1, hdb=drive 2, etc</li>
</ul>
6) When it has finished copying, reboot and select the drive you want as the startup from the BIOS or boot menu
]]></description>
			<content:encoded><![CDATA[<p>There are not enough &#8220;How I Installed OS X on my Dell.&#8221; Here&#8217;s my contribution, in twelve easy steps.</p>
<p>1) Get tiger-x86.tar.bz2</p>
<p>2) Unpack tiger-x86-flat.img to a separate NTFS hard drive</p>
<p>3) Load up the system with the Knoppix Live CD</p>
<p>4) If the drive from step 2 is external, attach it and let Knoppix automount it</p>
<p>5) Open up a terminal</p>
<ul>
<li>Use su to become root</li>
<li>Switch to the directory Knoppix mounted from step 4 (look in /mnt/)</li>
<li>Execute ls –all to verify that the .img file exists</li>
<li>Execute dd bs=1048576 if=./tiger-x86-flat.img of=/dev/hda, where hda is the *drive* you wish to install to. hda=drive 1, hdb=drive 2, etc</li>
</ul>
<p>6) When it has finished copying, reboot and select the drive you want as the startup from the BIOS or boot menu</p>
<p>7) With some luck, you should be staring at an Apple logon screen</p>
<ul>
<li>If the system hangs, Boot into safe mode by using the –x parameter at the Darwin boot screen</li>
</ul>
<p> <img src='http://www.howinthetech.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Log in as &#8220;deadmoo&#8221; password &#8220;bovinity&#8221;</p>
<p>9) Create your own account, Apple Menu-&gt;System Pref-&gt; Users.</p>
<p>10) Relogin as yourself. It is safe to remove &#8220;deadmoo&#8221;</p>
<p>11) Finally, delete the file /System/Library/Extentions/AppleTPMACPI.ktext</p>
<ul>
<li>Hold down the Windows key and empty trash if the system complains the file is in use</li>
<li>Reboot</li>
</ul>
<p>12) Profit!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howinthetech.com/howto_install_osx_intel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux on iPod mini</title>
		<link>http://www.howinthetech.com/linux_on_ipod_mini/</link>
		<comments>http://www.howinthetech.com/linux_on_ipod_mini/#comments</comments>
		<pubDate>Fri, 29 Jul 2005 19:59:29 +0000</pubDate>
		<dc:creator>Adam Myers</dc:creator>
				<category><![CDATA[Techlines Today]]></category>
		<category><![CDATA[Apple iPod]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I'd just like to say that I realize this is nothing new but I finally got around to checking out the <a href="http://www.ipodlinux.org">Linux on iPod project</a>. If you have to ask WHY? then don't bother reading further. Otherwise, here was my installation experience.

First off, I have to admit how amazed I was over the simple installation. That being said, realize what you are doing and what could happen if things go wrong. I merely claim that this "Worked for Me."
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d just like to say that I realize this is nothing new but I finally got around to checking out the <a href="http://www.ipodlinux.org">Linux on iPod project</a>. If you have to ask WHY? then don&#8217;t bother reading further. Otherwise, here was my installation experience.</p>
<p>First off, I have to admit how amazed I was over the simple installation. That being said, realize what you are doing and what could happen if things go wrong. I merely claim that this &#8220;Worked for Me.&#8221;<br />
<!--break--></p>
<ul>
<li>Connect your mini to your computer, ensuring that it is enabled for disk use.</li>
<li>Download the <a href="http://kreativekorp.dyndns.org/iota/4gipl.zip">iPod Linux Installer</a>, the <a href="http://www.ipodlinux.org/builds/">latest kernel.bin.gz</a>, and the <a href="http://www.ipodlinux.org/builds/">latest podzilla.gz</a>.</li>
<li>Unzip the three packages you&#8217;ve just downloaded.</li>
<li>Rename file <em>date-podzilla</em> to <em>podzilla</em> and copy to the root of the mini.</li>
<li>Rename file <em>date-kernel.bin</em> to <em>linux.bin</em> and replace the linux.bin inside the iPod Linux Installer folder.</li>
<li>Run and install <em>ipodlinux-installer</em>. Choose to update the firmware, making sure to keep Apples firmware as the default boot order.</li>
<li>Basically what you&#8217;ve just done is create a multi-boot option for your iPod, much the way you would dual boot Linux and Windows.</li>
<li>Lastly, copy the file <em>\4gipl\start</em> to the root of the mini, replacing the existing file.</li>
</ul>
<p>That&#8217;s it! Reboot your iPod mini (hold select and play buttons for 5-10sec). After reboot, hold the Rewind button; you should see the familiar linux text boot scroll.</p>
<p>Caio</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howinthetech.com/linux_on_ipod_mini/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->