<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Techthrob.com</title>
	
	<link>http://techthrob.com</link>
	<description>Words of Wisdom for Technologists</description>
	<lastBuildDate>Tue, 17 Aug 2010 12:00:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/techthrob" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="techthrob" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">techthrob</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>3 Types Of Backup You Need For Complete Data Protection</title>
		<link>http://techthrob.com/2010/08/17/3-types-of-backup-you-need-for-complete-data-protection/</link>
		<comments>http://techthrob.com/2010/08/17/3-types-of-backup-you-need-for-complete-data-protection/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 12:00:58 +0000</pubDate>
		<dc:creator>Jonathan DePrizio</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://techthrob.com/?p=624</guid>
		<description><![CDATA[Note: This is a guest post contributed by StoragePipe.com. When we think of data protection, most people just imagine themselves copying their computer over to another device on a regular basis&#8230; so that it can be copied back in an emergency. Of course, it’s not that simple. There are many different challenges that make data [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note: This is a guest post contributed by StoragePipe.com.<br />
</em></p>
<p>When we think of data protection, most people just imagine themselves copying their computer over to another device on a regular basis&#8230; so that it can be copied back in an emergency. Of course, it’s not that simple.</p>
<p>There are many different challenges that make data protection difficult, and many different recovery scenarios need to be accounted-for:</p>
<ul>
<li>How would you react if you accidentally backed up a virus?</li>
<li>What do you do if an employee accidentally deletes a file or saves over an important document?</li>
<li>How fast can you get back up if your system goes down during business hours?</li>
<li>What do you do if you have more data than you can reasonably back up?</li>
</ul>
<p>These are just a few of the many data protection scenarios that you need to prepare for. In order properly defend yourself, you need a solution that is simple, modular and capable of handling a wide range of challenges.</p>
<p>The methodology I prefer involves 3 different backup processes which complement each other very well.</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/08/IBA.jpg"><img src="http://techthrob.com/wp-content/uploads/2010/08/IBA-300x261.jpg" alt="" title="IBA" width="300" height="261" class="aligncenter size-medium wp-image-635" /></a></p>
<div class="sectionHeader">Disk Image</div>
<p>When you first set up your computer, you’ll want to install all of the applications you need and create a recovery image for this machine. This will come in handy if you ever need to perform a bare metal restore.</p>
<p>Restoring your system from a disk image, with all of your favourite applications pre-installed, can save you many hours when re-building your machine from scratch.</p>
<p>You’ll want to keep 2 copies of this system image. One copy should be kept on-site, and the other should be taken to a remote location for safety.</p>
<div class="sectionHeader">Regular Backups</div>
<p>Of course, when it comes time to recover, this disk image will already be several months old. Also, it will only contain applications&#8230;. not data.</p>
<p>What you truly care about the most is your irreplaceable data. All of those pictures, Word documents, and Photoshop files are very important and valuable to you. At the very least, you’ll want to back these up on a daily basis.</p>
<p>Also, you’ll want to maintain several historically versioned copies of all your data backups. This way, you can still recover your files if you accidentally back up a corrupted version. I recommend keeping about 30 days of historical backups&#8230; just to be safe.</p>
<p>And just like your system image, you should keep 2 copies of each backup&#8230; one off-site, and one close-at-hand.</p>
<div class="sectionHeader">Data Archiving</div>
<p>As you keep using your machine, you will accumulate a lot of junk that can quickly fill up your hard drive. Although you may not need any of this data right now, you might require access at a later date. This type of clutter can cause your backups to take much longer, and greatly extend recovery times.</p>
<p>In order to optimize your backup process and improve the performance of your machine, you’ll want to periodically clean up your hard drive and send inactive files off to an archival storage device. For this kind of long-term storage, I’d recommend a stable &#038; crash-resistant media such as online storage or backup tape. (External hard drives have too many unstable moving parts)</p>
<p>A good policy is to archive any files that have not been accessed within the past 6 months. This should be enough to clear 60-80% of the space on your hard drive, and also improve backup &#038; recovery times by 60-80%.</p>
<p>If you ever need these files again later on, retrieving them from the archives should be a simple matter.</p>
<div class="sectionHeader">3 Steps To Emergency Recovery</div>
<p>If your computer were ever to suddenly crash, you would first load up your system image to restore your machine and applications to their previous state, then you would load up your most recent backups. If you need any additional data that wasn’t included in the backups, you<br />
can selectively grab only the files you need from the archives without having to load the rest.</p>
<p>Now you see how much easier backup and recovery can be when you’re organized. And with this approach, you’ll also be prepared for a number of other unexpected data loss scenarios.</p>
<p><em>About The Author: Storagepipe offers <a href="http://storagepipe.com">online backup</a> services that are designed to simplify backups, and speed up recovery.</em></p>

<p><a href="http://feedads.g.doubleclick.net/~a/eE6f7aXHb_3Rqz_7FbaQrRwIybc/0/da"><img src="http://feedads.g.doubleclick.net/~a/eE6f7aXHb_3Rqz_7FbaQrRwIybc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/eE6f7aXHb_3Rqz_7FbaQrRwIybc/1/da"><img src="http://feedads.g.doubleclick.net/~a/eE6f7aXHb_3Rqz_7FbaQrRwIybc/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://techthrob.com/2010/08/17/3-types-of-backup-you-need-for-complete-data-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Public Service Announcement: Verify Your Backups!</title>
		<link>http://techthrob.com/2010/08/10/public-service-announcement-verify-your-backups/</link>
		<comments>http://techthrob.com/2010/08/10/public-service-announcement-verify-your-backups/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 12:21:53 +0000</pubDate>
		<dc:creator>Jonathan DePrizio</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[end-user]]></category>
		<category><![CDATA[operating systems]]></category>

		<guid isPermaLink="false">http://techthrob.com/?p=599</guid>
		<description><![CDATA[There’s only one thing worse than having no backup at all: thinking you have a backup, and finding out it doesn’t work when you go to restore. It seems like common sense, but unfortunately backup validation is often overlooked. After establishing a backup system, it’s vital that you periodically check to make sure that it [...]]]></description>
			<content:encoded><![CDATA[<a href="http://techthrob.com/wp-content/uploads/2010/08/500075818_8a0661e16a_b1.jpg"><img src="http://techthrob.com/wp-content/uploads/2010/08/500075818_8a0661e16a_b1-225x300.jpg" alt="" title="Angry Hard Disk" width="225" height="300" class="size-medium wp-image-604" style="float: left; margin-right: 1em;" /></a>
<p>There’s only one thing worse than having no backup at all: thinking you have a backup, and finding out it doesn’t work when you go to restore.</p>
<p>It seems like common sense, but unfortunately backup validation is often overlooked.  After establishing a backup system, it’s vital that you periodically check to make sure that it is working and that you are able to restore in the case of a disaster.  A system administrator that has configured a nightly backup but has never performed a test restore hasn’t done his job; he can’t say with any degree of certainty that he’ll be able to recover lost data in the event of a disaster, because he’s never tried.</p>
<p>There are many reasons why a backup might turn out to be a dud, even if you thought it was functional.  Here&#8217;s a quick list, including things that I&#8217;ve either seen personally, or that I&#8217;ve heard about second-hand:</p>
<ol class="subsectionList">
<li>Your backup restores, but you don’t have a few vital files or directories it turns out you really need.</li>
<li>The backup used to work, but at some point the media became full, and backups haven’t been working for some time.</li>
<li>The backup used to work, but at some point the media became corrupted, and you can’t restore.</li>
<li>The backup target is a remote network host, and the SSH key changed.  The backup script has been failing to login since then, and you don’t have any recent backups.</li>
<li>Your backups are working, but you aren’t backing up often enough to save everything you need in the event of a disaster.</li>
<li>The backup target is an NFS share, which at some point became unmounted, and you’ve just been making second copies of everything on the local hard disk &#8212; not very useful.</li>
</ol>
<p>Notice that in all of these cases, the very first backup was completely successful, but over time something fell apart.  Therefore, it’s not enough just to check your backup once; it&#8217;s vital that you periodically check to make sure everything is working and complete. While many of these cases can be handled by proper backup software (corrupt media, unmounted NFS share, etc&#8230;), others are things that require human intervention (such as making sure you&#8217;ve got all the files you need, and that you back them up on a proper schedule).</p>
<p>Additionally, when you periodically perform a restore test, you gain:</p>
<ol class="subsectionList">
<li>Confidence that the backups are good, and that they are dependable in the event that you should need them.</li>
<p> Peace of mind is priceless.</p>
<li>A tested backup procedure.</li>
<p>Having a data-loss event on your hands and having to restore without a procedure to follow is nerve-racking.  If you’re in charge of restoring data for a company, you should have a written procedure to follow.  This way, not only will you know exactly what needs to be done, but it will be possible for others to restore in the event of an emergency. The procedure should be written in such a way that someone familiar with the backup system can follow it to restore the vital data if necessary.
</ol>
<p>So if you haven&#8217;t already, go <em>now</em> and make sure that your backups can be restored, and that you have everything you need.  </p>
<p><strong>What&#8217;s your backup system?</strong>  Do you periodically make sure that your backups are functional, and you&#8217;re backing up everything you need to have in the event of a disaster?  Are you sure that your are safe in the event of system loss?  Share your backup and restore method in the <a href="#commentbox">comments below.</a></p>
<p><span class="photoCredit">Absolutely brilliant photo credit goes to <a href="http://www.flickr.com/photos/matalyn/293335995/">Matalyn</a>.</span></p>

<p><a href="http://feedads.g.doubleclick.net/~a/mIK0UC-iGUgKTCZDDx8y20_RZtU/0/da"><img src="http://feedads.g.doubleclick.net/~a/mIK0UC-iGUgKTCZDDx8y20_RZtU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mIK0UC-iGUgKTCZDDx8y20_RZtU/1/da"><img src="http://feedads.g.doubleclick.net/~a/mIK0UC-iGUgKTCZDDx8y20_RZtU/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://techthrob.com/2010/08/10/public-service-announcement-verify-your-backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get a Dynamic Interplanetary Background with Xplanet</title>
		<link>http://techthrob.com/2010/08/04/get-a-dynamic-interplanetary-background-with-xplanet/</link>
		<comments>http://techthrob.com/2010/08/04/get-a-dynamic-interplanetary-background-with-xplanet/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 03:00:30 +0000</pubDate>
		<dc:creator>Jonathan DePrizio</dc:creator>
				<category><![CDATA[Currently Featured]]></category>
		<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[end-user]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://techthrob.com/?p=518</guid>
		<description><![CDATA[This tutorial will show you how to setup a cool, dynamic wallpaper for your computer based upon XPlanet. The image to left is the final result of this how-to; notice the cloud map and the daylight, which are both periodically updated to match real-time cloud data and sunlight. You can chose to do the same [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://techthrob.com/wp-content/uploads/2010/07/xplanet_as_bg.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/xplanet_as_bg-300x169.png" alt="" title="Xplanet as Background" width="300" height="169" class="alignleft size-medium wp-image-522" style="margin-right: 1.5em; float:left; " /></a>This tutorial will show you how to setup a cool, dynamic wallpaper for your computer based upon XPlanet.  The image to left is the final result of this how-to; notice the cloud map and the daylight, which are both periodically updated to match real-time cloud data and sunlight.  You can chose to do the same thing with your background, or to customize the settings to your individual taste. This article will show you how to configure xplanet to be your desktop background in Gnome, so it will work in either Ubuntu or Fedora.  With a little tweaking to this desktop modification, you should be able to get it to work under most environments and distributions.</p>
<ol>
<li class="sectionHeader">Installing xplanet</li>
<p>	The first thing you’ll need to do is install <code>xplanet</code>.  This can be done quickly and easily from the command line:</p>
<p><span class="distroInstallName">Ubuntu:</span> <span class="distroInstallCommand">sudo apt-get install xplanet</span><br />
<span class="distroInstallName">Fedora:</span> <span class="distroInstallCommand">sudo yum install xplanet</span></p>
<li class="sectionHeader">Running from the command line</li>
<p>Xplanet has lots of options, which you can see in its man page if you run ‘<code>man xplanet</code>’.  I did find that the manual isn’t entirely up to date, however &#8211; it doesn’t list all the map types that xplanet actually supports with the -projections flag.  Nevertheless, the manual is still a good place to start if you’re looking to explore xplanet’s featureset.</p>
<p>You can run xplanet from the command line to get an idea of what kind of map you want to generate, how large it should be, and what options you want to use.  For example, you&#8217;ll probably want to generate an image that fits your screen resolution.  Use the <code>-geometry</code> option to specify the size you want, in pixels.  You can use the <code>-window</code> option while you experiment, until you get the map exactly how you want it:</p>
<div class="linuxCommand">xplanet -projection rectangular -geometry 1360&#215;768 -window</div>
<p>The above are the options that I use, but of course you should play with it until you find something you like.  One thing you&#8217;ll probably want to tweak is the <code>-projection</code> option, which determines what kind of map you want to generate.  Also check out the <code>-latitude</code> and <code>-longitude</code> options to tell xplanet where to center the map; you can set it so your location is at the center of the image, if you want.  Check out the man page for all the details (there are many!).  To help get you started, here are a couple of fun projections and the commands to generate them:</p>
<p>A zoomed-out globe with New York at its center:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/08/ny_center_stars.png"><img src="http://techthrob.com/wp-content/uploads/2010/08/ny_center_stars-300x169.png" alt="" title="Xplanet NY Centric with Stars" width="300" height="169" class="aligncenter size-medium wp-image-595" /></a></p>
<div class="linuxCommand">xplanet  -radius 30 -num_times 1 -latitude 40 -longitude -73  -projection orthographic</div>
<p>You can view more than just the Earth; here&#8217;s a spectacular view of Saturn!<br />
<a href="http://techthrob.com/wp-content/uploads/2010/08/saturn.png"><img src="http://techthrob.com/wp-content/uploads/2010/08/saturn-300x169.png" alt="" title="Saturn in Xplanet" width="300" height="169" class="aligncenter size-medium wp-image-545" /></a></p>
<div class="linuxCommand">xplanet -body saturn -latitude 25</div>
<li class="sectionHeader">Setting the background</li>
<p>Once you’ve picked out the options you want to use for your background, you need to tell xplanet to save it to a file so you can select it as your wallpaper.  Simply use the <code>-output</code> and the <code>-num_times 1 </code> options on the command line and xplanet will run, save the generated image to the file specified by <code>-output</code>, and exit.  Be sure to set the <code>-num_times 1</code> option, or xplanet won&#8217;t close after generating the image.</p>
<p>Next, you’ll want to set your wallpaper to be the saved image.  Do this just like you would normally set your wallpaper; you can go to the System menu in either Ubuntu or Fedora, and under Preferences select Appearance.</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/08/Screenshot-Appearance-Preferences.png"><img src="http://techthrob.com/wp-content/uploads/2010/08/Screenshot-Appearance-Preferences-300x265.png" alt="" title="Setting the Background in Gnome" width="300" height="265" class="aligncenter size-medium wp-image-547" /></a></p>
<p>Or, you can right-click on the desktop and select Change Desktop Background.  Either way, click the “Add” button and add the image you saved with Xplanet.  Now that will be your background.  </p>
<p>But, there’s more to do!</p>
<li class="sectionHeader">Getting the clouds</li>
<p>One of the coolest features of xplanet is that it has the ability to overlay a “cloud map” showing the current cloud coverage on Earth.  If you’ll notice in the screenshot at the beginning of this article, my desktop includes a cloud map overlay.  There are two choices for setting up the cloud map:</p>
<ul class="subUList">
<li>Download a static cloud map</li>
<p>If you don&#8217;t care about having the cloud coverage update itself periodically, you can download a single image and use it whenever xplanet renders the Earth.  Simply save <a href="/everything_else/clouds_2048.jpg">this file</a> somewhere, and proceed to the next section about &#8220;Creating the configuration.&#8221;  Or, for more fun&#8230;</p>
<li>Periodically download an updated cloud map automatically</li>
<p>The other option is to setup a script to periodically download an updated cloud map, so that your wallpaper matches the current cloud coverage of the planet.  It&#8217;s a little tweak, but it&#8217;s definitely fun.  If you decide it&#8217;s worth the effort, here&#8217;s what you need to do:</p>
<ol class="subOList">
<li style="margin-left: 50px;">Setup the script to download the cloudmap automatically</li>
<p>Download <a href="http://xplanet.sourceforge.net//Extras/download_clouds.py">this script</a> and decompress it. This script was written by Michal Pasternak and is in the public domain.  It is useful because it checks if a new cloud map is available before actually downloading it, which saves a lot of bandwidth.</p>
<li style="margin-left: 50px;">Run the script once to generate the cloudmap</li>
<p>Once you&#8217;ve downloaded the script, make it executable by running the following command in its directory:</p>
<div class="linuxCommand">chmod +x download_clouds.py</div>
<p>Next, run the script so it will download the initial cloud map:</p>
<div class="linuxCommand">./download_clouds.py</div>
<p>By default, the script saves the map with a filename of <code>clouds_2048.jpg</code>.
	</ol>
<p>Now continue to the next section, which will show you how to setup the configuration file in order to use the cloud map.  Keep reading to the &#8220;putting it all together&#8221; section to create an automated cron job so the cloud map will update itself periodically. </p>
</ul>
<li class="sectionHeader">Creating the configuration</li>
<p>If you&#8217;re satisfied with the image you generated previously, that&#8217;s fine; you can skip this step.  But if you want to add clouds or lights, you&#8217;ll need to modify the xplanet configuration file to let it know where to find these added goodies.  It&#8217;s done in a text editor, but it&#8217;s pretty simple.  </p>
<p>The easiest way to proceed is to modify the default configuration file, by opening it in either vim or your favorite graphical text editor.  On both Ubuntu and Fedora, the default configuration file is located at <code>/usr/share/xplanet/config/default</code>.  You&#8217;ll need to be root to edit it (optionally, you can copy it to your home directory and then edit it, if you don&#8217;t want to make system-wide changes).</p>
<p>Inside <code>/usr/share/xplanet/config/default</code>, search for the line <code>[earth]</code>, which specifies the options to use when drawing a picture of Earth.  Here&#8217;s my [earth] section of the configuration file:</p>
<div class="linuxCommand">
[earth]<br />
&#8220;Earth&#8221;<br />
color={28, 82, 110}<br />
cloud_map=/home/jdeprizi/bin/xplanet/clouds.jpg<br />
night_map=/home/jdeprizi/bin/xplanet/night_xplanet1.jpg<br />
#marker_file=earth<br />
min_radius_for_label=0<br />
#satellite_file=iss
</div>
<p>While you should certainly check out what happens if you uncomment <code>satellite_file</code> or <code>marker_file</code>, the two things I want to mention are <code>cloud_map</code> and <code>night_map</code>.  The <code>cloud_map</code> option should be set to the image you specified in the section above, &#8220;Getting the clouds.&#8221;  This tells xplanet to overlay the cloud map onto the generated image, and yields a result similar to the screenshot at the beginning of this page. </p>
<p>When you specify the <code>night_map</code> option, xplanet will draw city lights in the part of the Earth where there is no sunlight, like so:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/08/nighttime_lights.jpg"><img src="http://techthrob.com/wp-content/uploads/2010/08/nighttime_lights-300x169.jpg" alt="" title="Xplanet with night_map specified" width="300" height="169" class="aligncenter size-medium wp-image-552" /></a></p>
<p>Your night map should be located in <code>/usr/share/xplanet/images</code> with a file name <code>night.jpg</code>.  In the above example, I copied it into my home directory.</p>
<li class="sectionHeader">Putting it all together &#8211; cronjob and login trigger</li>
<p>Now that you have your background looking just the way you want, you’ll need to configure a scheduled job to make sure that it updates the daylight and the cloudmap automatically.  The easiest way to do this is by <a href="/2010/08/02/how-to-schedule-tasks-with-gnome-scheduler/">scheduling a job using cron and gnome-schedule</a>.  Use the command you came up with above, and schedule a job to run as often as you want &#8212; I generate a new image every 30 minutes.  I also download the cloud map every 12 hours:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/08/gen_clouds_job1.png"><img src="http://techthrob.com/wp-content/uploads/2010/08/gen_clouds_job1-300x262.png" alt="" title="Get Clouds Every 12 Hours" width="300" height="262" class="aligncenter size-medium wp-image-591" /></a></p>
<p>You&#8217;ll also need to have the map generate when you login, especially if your computer is off for long periods of time.  If you don&#8217;t do this, the map won&#8217;t regenerate until the next cronjob kicks off, and you could be looking at a very outdated image for up to an hour.  To have the wallpaper refresh when you first login, simply go to the Startup Applications item under System and then Preferences.  Add a new item with the same command as you used above, to generate your background:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/08/gen_on_startup.png"><img src="http://techthrob.com/wp-content/uploads/2010/08/gen_on_startup-300x156.png" alt="" title="Generate Xplanet on Startup" width="300" height="156" class="aligncenter size-medium wp-image-590" /></a></p>
<p>Now your wallpaper will automatically refresh whenever you login.</p>
<li class="sectionHeader">Now let everyone see!</li>
<p>If you&#8217;ve followed through to this point, you should have a fully-functional xplanet wallpaper that will automatically refresh itself, following the interval you specified.  Awesome!  Show off your work by posting a screenshot to the <a href="http://www.facebook.com/pages/TechThrob/119222218122496#!/pages/TechThrob/119222218122496?v=photos">TechThrob Facebook gallery</a>.  Also, <a href="#commentbox">leave a comment</a> with the options you use to generate your background, so others can see what kind of cool tweaks you&#8217;re using!</p>
</ol>

<p><a href="http://feedads.g.doubleclick.net/~a/-ZW8g3MWtFKMMsl1O3cvlBlRR_s/0/da"><img src="http://feedads.g.doubleclick.net/~a/-ZW8g3MWtFKMMsl1O3cvlBlRR_s/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/-ZW8g3MWtFKMMsl1O3cvlBlRR_s/1/da"><img src="http://feedads.g.doubleclick.net/~a/-ZW8g3MWtFKMMsl1O3cvlBlRR_s/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://techthrob.com/2010/08/04/get-a-dynamic-interplanetary-background-with-xplanet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Schedule Tasks with Gnome-Scheduler</title>
		<link>http://techthrob.com/2010/08/02/how-to-schedule-tasks-with-gnome-scheduler/</link>
		<comments>http://techthrob.com/2010/08/02/how-to-schedule-tasks-with-gnome-scheduler/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 02:41:27 +0000</pubDate>
		<dc:creator>Jonathan DePrizio</dc:creator>
				<category><![CDATA[Currently Featured]]></category>
		<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://techthrob.com/?p=565</guid>
		<description><![CDATA[If you’ve used Linux for a while you’ve probably learned about cron, which is the system service responsible for executing scheduled tasks. Cron runs in the background, and helps keep your computer running. At scheduled times, it launches programs to rotate log files, check for software updates, and perform other housekeeping jobs. You can also [...]]]></description>
			<content:encoded><![CDATA[<p>If you’ve used Linux for a while you’ve probably learned about <code>cron</code>, which is the system service responsible for executing scheduled tasks.  <code>Cron</code> runs in the background, and helps keep your computer running. At scheduled times, it launches programs to rotate log files, check for software updates, and perform other housekeeping jobs.  You can also use <code>cron</code> to your own advantage and to schedule your own tasks; for example, a routine backup of your home directory, or to check if you have new mail.  The easiest way to schedule tasks in Ubuntu or Fedora is to use the gnome-schedule application. This tutorial will show you how to schedule tasks using the Gnome Scheduler, a graphical front-end for cron.</p>
<div class="sectionHeader">Installation</div>
<p>First, install the gnome-schedule application.  As usual, this is a quick one-liner in most popular distributions:</p>
<p><span class="distroInstallName">Ubuntu:</span><span class="distroInstallCommand">sudo apt-get install gnome-schedule</span><br />
<span class="distroInstallName">Fedora:</span><span class="distroInstallCommand">sudo yum install gnome-schedule</span></p>
<p>Once it’s installed, you should see a new “Scheduled Tasks” application in the System Tools menu.</p>
<div class="sectionHeader">New and existing tasks</div>
<p>The task scheduler gives you three options for creating a new task.  You can chose a recurring task, which is the primary use of gnome-schedule as a frontend for cron.  It also allows you to create a task that runs only once; this actually uses the <code>at</code> service.  </p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/08/Add-a-task.png"><img src="http://techthrob.com/wp-content/uploads/2010/08/Add-a-task-300x263.png" alt="Task Type Selection in Gnome Scheduler" title="Task Type Selection in Gnome Scheduler" width="198" height="173" class="aligncenter size-medium wp-image-568" /></a></p>
<p>Additionally, you can create custom schedule templates; for example, if you want to run tasks on certain holidays, you can create a template for that so you don’t have to re-create the cron rules each time.  Most users won’t need this feature, but it’s nice to have.  </p>
<p>The main window shows you the currently-scheduled tasks:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/08/Screenshot-Configure-Scheduled-Tasks.png"><img src="http://techthrob.com/wp-content/uploads/2010/08/Screenshot-Configure-Scheduled-Tasks-300x107.png" alt="Showing Scheduled Tasts" title="Showing Scheduled Tasts" width="300" height="107" class="aligncenter size-medium wp-image-569" /></a></p>
<p>It&#8217;s a bit spartan, and there&#8217;s definitely no eye candy, but if you&#8217;re at all familiar with cron you&#8217;ll be very comfortable with the output.</p>
<div class="sectionHeader">Scheduling a task</div>
<p>The primary use of gnome-schedule is to setup cronjobs, and it does it very well.  The single-window configuration allows you to specify a name for the job as well as the command to run.  The date and time wizard accepts standard cron syntax, but a major feature is a GUI tool that sets up the schedule for you. </p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/08/scheduling_a_task.png"><img src="http://techthrob.com/wp-content/uploads/2010/08/scheduling_a_task-300x272.png" alt="Configuring a Scheduled Task" title="Configuring a Scheduled Task" width="300" height="272" class="aligncenter size-medium wp-image-577" /></a></p>
<p>For example, by choosing whether you want to run a task every day, every X number of days, or in a range of specific days, you are able to set a schedule with a very high level of precision.  This is the precision that <code>cron</code> is known for, and using gnome-schedule you are able to take this power and implement it via a convenient graphical interface.</p>
<div class="sectionHeader">Creating a one-time-only task</div>
<p>Gnome-schedule can create one-time jobs, in addition to recurring tasks.  Creating a single-instance job actually uses the <code>at</code> daemon rather than cron (advanced users should be familiar with the difference, but from our current perspective it doesn’t matter). When you create a one-time job, you get a simple window to give the job a title and a time to launch, and to say what commands you want to run at the scheduled time.</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/08/schedule-task-editor.png"><img src="http://techthrob.com/wp-content/uploads/2010/08/schedule-task-editor-300x206.png" alt="Editing a one-time task" title="Editing a one-time task" width="300" height="206" class="aligncenter size-medium wp-image-574" /></a></p>
<p>In the above screenshot, I am creating a scheduled task to pop up a reminder window (using Zenity) at 11:55 to tell me that I need to post something to TechThrob (although I assure you, I don&#8217;t need any reminders for that).  Of course, you can use this for anything &#8212; you might want to schedule an alarm to wake you up in the morning, or a reminder to pick something up on the way home.</p>
<p>I find that the single-instance scheduler is actually incredibly useful, perhaps even more useful that the repeating schedule.  I never really used <code>at</code> when it was just a command line utility; I knew it was there, but I didn&#8217;t see a need for it.  Once I started using gnome-schedule, though, I found that scheduling reminders and automated jobs was very easy and incredibly useful.</p>
<div class="sectionHeader">Very useful help</div>
<p>The scheduler is incredibly well documented, and you can read the help by clicking the gnome help icon in the main window.  I ran into a small problem trying to get graphical applications to launch (zenity, in the above example), but I quickly found the answer in the help (you have to specify the DISPLAY variable).  If you&#8217;re curious as to how something works, or you&#8217;re having some problem, I suggest giving the documentation a look before you get frustrated or <a href="http://techthrob.com/2009/03/02/8-ways-to-get-help-with-ubuntu-linu/">ask for help</a>.</p>
<div class="sectionHeader">What do you schedule?</div>
<p>Have you ever used cron before?  What kind of tasks do you have automated with cronjobs?  I&#8217;m also curious to know if others find the cron syntax as confusing as I do &#8211; I&#8217;ve always had to lookup cron syntax when I need to do something more complicated than setting a task to run at a specified minute or hour (hence why I love gnome-schedule&#8217;s GUI so much!).  Leave your thoughts in the comments below!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/DaezvwgUg3CBWLJwj9vF3Z5-qmU/0/da"><img src="http://feedads.g.doubleclick.net/~a/DaezvwgUg3CBWLJwj9vF3Z5-qmU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DaezvwgUg3CBWLJwj9vF3Z5-qmU/1/da"><img src="http://feedads.g.doubleclick.net/~a/DaezvwgUg3CBWLJwj9vF3Z5-qmU/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://techthrob.com/2010/08/02/how-to-schedule-tasks-with-gnome-scheduler/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to Monitor Network Traffic in Linux</title>
		<link>http://techthrob.com/2010/07/26/how-to-monitor-network-traffic-in-linux/</link>
		<comments>http://techthrob.com/2010/07/26/how-to-monitor-network-traffic-in-linux/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 02:50:17 +0000</pubDate>
		<dc:creator>Jonathan DePrizio</dc:creator>
				<category><![CDATA[Currently Featured]]></category>
		<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://techthrob.com/?p=489</guid>
		<description><![CDATA[I recently covered three utilities you can use to monitor your system resources in Linux. One of those programs, iftop gives you information about the network traffic of your machine. In this article I’ll show the in-depth usage of iftop, as well as another program called nethogs that was recommended by a reader. With these [...]]]></description>
			<content:encoded><![CDATA[<p>I recently covered <a href="http://techthrob.com/2010/07/21/three-apps-for-monitoring-performance-in-linux/">three utilities you can use to monitor your system resources in Linux</a>.  One of those programs, <code>iftop</code> gives you information about the network traffic of your machine.  In this article I’ll show the in-depth usage of iftop, as well as another program called <code>nethogs</code> that was recommended by a reader.  With these two programs you’ll learn how to monitor network usage in Linux, in both Ubuntu and Fedora as well as many other distributions.</p>
<p><em>Note: You&#8217;ll need to be root to run most, if not all, of these commands.</em></p>
<div class="sectionHeader">iftop</div>
<p>I’ve used <code>iftop</code> for a long time, because it’s a very powerful tool that gives you lots of details about your network connections.  Here’s what you need to know about <code>iftop</code> to get started:</p>
<ol>
<li class="sectionHeader">Basic Usage</li>
<p><code>iftop</code> is easy to use if you just want to see your current network connections and how much bandwidth is being used by each remote host.  Simply launch it from the command line, passing the <code>-i</code> option with the interface you want to monitor, and optionally the <code>-B</code> option to display values in bytes (the default is to display in bits).  So for example, to monitor the wlan0 device in bytes, you would run:</p>
<div class="linuxCommand">iftop -i wlan0 -B</div>
<p>There’s a lot of information displayed on the screen, but it is formatted intelligently and quickly becomes easy to digest.  Here is what the basic screen is showing you, when you first launch <code>iftop</code>:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/07/iftop_labeled.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/iftop_labeled-300x191.png" alt="" title="Labeled iftop Output" width="300" height="191" class="aligncenter size-medium wp-image-508" /></a></p>
<p>As you can see, the display is packed full of useful information (click on the image above for a larger version).  Don&#8217;t worry if it&#8217;s a little overwhelming at first; it won&#8217;t take long to get used to reading the display, and you&#8217;ll appreciate having all this information available so quickly.</p>
<p>Now let’s move on to some of the more powerful features that <code>iftop</code> provides.</p>
<li class="sectionHeader">Filtering networks, hosts, and ports</li>
<p>While it’s nice to see all the hosts your computer is talking to, it’s often the case that you’re only interested in a certain segment of the network.  <code>iftop</code> allows you to filter connections by network, host, and port, which gives you complete control over which connections are displayed.</p>
<p><code>iftop</code> accepts <a href="http://www.manpagez.com/man/7/pcap-filter/">pcap-filter formatted filters</a> on the commandline with the <code>-f</code> flag.  Below is a table of some of the filers you might want to use with iftop:</p>
<table class="borderedTable monospaced" style="margin-bottom: 1em;">
<tr >
<td>dst host <em>host</em>		</td>
<td>src host <em>host</em></td>
</tr>
<tr>
<td>dst net <em>net</em>			</td>
<td>src net <em>net</em></td>
</tr>
<tr>
<td>dst port <em>port</em>			</td>
<td>src port <em>port</em></td>
</tr>
<tr>
<td>dst portrange <em>start-end</em>		</td>
<td>src portrange <em>start-end</em></td>
</tr>
<tr>
<td>gateway <em>gateway</em></td>
</tr>
<tr>
<td>ip proto <em>protocol</em></td>
</tr>
</table>
<p>For example, to view only traffic going from your local machine to google.com over eth0, you could run:</p>
<div class="linuxCommand">iftop -i eth0 -f &#8220;dst host google.com&#8221;</div>
<p>Or to see only ssh traffic over wlan0:</p>
<div class="linuxCommand">iftop -i wlan0 -f &#8220;dst port 22&#8243;</div>
<p>Additionally, <code>iftop</code> allows you to set arbitrary filters based upon regular expressions.  It’s important to note that when you specify a filter with a regular expression, you are only filtering the on-screen output, whereas using a pcap filter (above) will filter what iftop actually listens to.  As a result, the totals displayed at the bottom of the screen won&#8217;t be affected by regex filters.  You can press the <code>l</code> key to enter regular expression filters while iftop is running.</p>
<li class="sectionHeader">Controlling the interface and the online help</li>
<p>Once you&#8217;ve got the information you want on the screen, you&#8217;ll need to be able to move around and tweak the exact output.  There are many options, and the easiest thing to do is just hit the <code>h</code> or <code>?</code> key to see the on-screen help:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/07/iftop_help.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/iftop_help-300x208.png" alt="" title="Online Help for iftop" width="300" height="208" class="aligncenter size-medium wp-image-503" /></a></p>
<p>Notice that you can toggle things like hostname and port resolution, port display, and whether iftop sorts by destination or source.  Showing connections by port is useful for monitoring throughput on programs that create many connections, while turning DNS resolution on might make it easier to read the display if you are watching things like web traffic.</p>
</ol>
<div class="sectionHeader">nethogs</div>
<p>Now I’ll show you how to use <code>nethogs</code>, which is a great little program that was mentioned by one of TechThrob’s readers (thanks, dasen!).  Whereas <code>iftop</code> displays network usage by destination IP address and port number, <code>nethogs</code> takes a process-oriented approach and shows you usage based on the program that is accessing the network.</p>
<p><code>nethogs</code> is much simpler than iftop and doesn’t have as many options.  You can specify the interface to listen on when you launch it:</p>
<div class="linuxCommand">nethogs eth1</div>
<p>Which will give you a screen similar to the following, showing the processes that are sending or receiving traffic on that interface.</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/07/nethogs.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/nethogs-300x208.png" alt="" title="Nethogs Output" width="300" height="208" class="aligncenter size-medium wp-image-504" /></a></p>
<p>While it’s running, you can use the <code>m</code> key to toggle between units (megabytes, kilobytes, and bytes) and to change whether you are viewing instantaneous throughput or the total throughput since nethogs was started.</p>
<p>Being so simple is the greatest advantage of nethogs, since it makes it much more user-friendly than iftop and lets you see in an instant what applications are using your network, and how much bandwidth they are using.  If you think your network is being hammered and you want to know who to hold responsible, <code>nethogs</code> is probably the command you want.</p>
<div class="sectionHeader">Don&#8217;t be evil</div>
<p>With great power comes great responsibility.  If you have root on a machine that is routing a lot of traffic, tools like this will let you see what people are doing on the network; don&#8217;t be evil.  Use these tools to monitor your own traffic, and to troubleshoot problems, but don&#8217;t spy on other people.  </p>

<p><a href="http://feedads.g.doubleclick.net/~a/EdOC0Kd8UMx-ZNca4xr2hMkC0QA/0/da"><img src="http://feedads.g.doubleclick.net/~a/EdOC0Kd8UMx-ZNca4xr2hMkC0QA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/EdOC0Kd8UMx-ZNca4xr2hMkC0QA/1/da"><img src="http://feedads.g.doubleclick.net/~a/EdOC0Kd8UMx-ZNca4xr2hMkC0QA/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://techthrob.com/2010/07/26/how-to-monitor-network-traffic-in-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Changes to design, content managment</title>
		<link>http://techthrob.com/2010/07/21/changes-to-design-content-managment/</link>
		<comments>http://techthrob.com/2010/07/21/changes-to-design-content-managment/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 12:18:57 +0000</pubDate>
		<dc:creator>Jonathan DePrizio</dc:creator>
				<category><![CDATA[Housekeeping]]></category>

		<guid isPermaLink="false">http://techthrob.com/?p=476</guid>
		<description><![CDATA[Loyal visitors will notice that TechThrob is sporting a new layout, which will make it easier to find great content and see what people are saying about hot posts. Additionally, post tags and categories are being reorganized, which should make it even easier to find what you&#8217;re looking for. Thanks for reading, and I hope [...]]]></description>
			<content:encoded><![CDATA[<p>Loyal visitors will notice that TechThrob is sporting a new layout, which will make it easier to find great content and see what people are saying about hot posts.  Additionally, post tags and categories are being reorganized, which should make it even easier to find what you&#8217;re looking for.  Thanks for reading, and I hope you&#8217;ve found useful stuff here.  If so, I encourage you to <a href="http://techthrob.com/?feed=rss2">subscribe to the RSS feed</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/OgWQ2XP99GtTErtobgnr3Do9_ks/0/da"><img src="http://feedads.g.doubleclick.net/~a/OgWQ2XP99GtTErtobgnr3Do9_ks/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OgWQ2XP99GtTErtobgnr3Do9_ks/1/da"><img src="http://feedads.g.doubleclick.net/~a/OgWQ2XP99GtTErtobgnr3Do9_ks/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://techthrob.com/2010/07/21/changes-to-design-content-managment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Three Apps For Monitoring Performance In Linux</title>
		<link>http://techthrob.com/2010/07/21/three-apps-for-monitoring-performance-in-linux/</link>
		<comments>http://techthrob.com/2010/07/21/three-apps-for-monitoring-performance-in-linux/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 11:20:16 +0000</pubDate>
		<dc:creator>Jonathan DePrizio</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[utilities]]></category>

		<guid isPermaLink="false">http://techthrob.com/?p=435</guid>
		<description><![CDATA[Most Linux users are familiar with the top command. Top shows you a list of processes on your system and provides a ton of useful information such as their CPU usage and owner. Unfortunately, this isn’t always enough data and many people don’t know where to turn next. This article covers three performance monitoring applications [...]]]></description>
			<content:encoded><![CDATA[<p>Most Linux users are familiar with the <code>top</code> command.  <code>Top</code> shows you a list of processes on your system and provides a ton of useful information such as their CPU usage and owner.  Unfortunately, this isn’t always enough data and many people don’t know where to turn next.  This article covers three performance monitoring applications that show information <code>top</code> doesn’t tell you, and can greatly help in troubleshooting bottlenecks or just finding out more about your system.  These utilities are <code>iftop</code>, <code>iotop</code>, and <code>pv</code>.</p>
<ol>
<li class="sectionHeader">iftop</li>
<p>As you might be able to deduce from the name, <code>iftop</code> is a top-like application for network interfaces.  You need to be root to run it, and it can be installed using the command:</p>
<p><span class="distroInstallName">Ubuntu:</span> <span class="distroInstallCommand">sudo apt-get install iftop</span><br />
<span class="distroInstallName">Fedora:</span> <span class="distroInstallCommand">sudo yum install iftop</span></p>
<p>Run it in a terminal by specificying the interface you want to use, and optionally a -B (make sure you use a capital B) to display values in bytes rather than bits:</p>
<div class="linuxCommand">
# iftop -i eth3 -B
</div>
<p>The result is a screen showing you all the current connections on that port, as well as the throughput for each connection.  Like <code>top</code>, iftop is full of features; press the <code>h</code> key to get an online help showing the options.</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/07/iftop.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/iftop-300x208.png" alt="" title="iftop displaying bandwidth usage" width="300" height="208" class="aligncenter size-medium wp-image-447" /></a></p>
<p>Here you can see my network throughput as I run a speed test on dslreports.com.  You&#8217;ll notice that there are separate indicators for incoming and outgoing traffic, and that three values are given on the right-hand side; these are the 2, 10, and 40 second averages.</p>
<p>If you find iftop useful, you might want to read more about <a href="http://techthrob.com/2010/07/26/how-to-monitor-network-traffic-in-linux/">monitoring network traffic</a>.</p>
<li class="sectionHeader">iotop</li>
<p>While <code>iftop</code> is great for monitoring network throughput, <code>iotop</code> is the utility you want if you need to measure disk access.  It&#8217;s easily installable from the commandline:</p>
<p><span class="distroInstallName">Ubuntu:</span> <span class="distroInstallCommand">sudo apt-get install iotop</span><br />
<span class="distroInstallName">Fedora:</span> <span class="distroInstallCommand">sudo yum install iotop</span></p>
<p>And you can run it with a simple <code>sudo iotop</code> command.  What you&#8217;ll get is a listing of processes, like in top, but with their disk access information:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/07/iotop.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/iotop-300x208.png" alt="" title="IOTop showing disk access" width="300" height="208" class="aligncenter size-medium wp-image-451" /></a></p>
<p>In the above screenshot, I&#8217;m running a simple <code>dd</code> test to write to my local hard disk, which you can see as the first item in the window.  </p>
<p><code>iotop</code> will tell you how much data each process is reading and writing, as well as if a process is using swap (which can be really helpful if you need to determine which process is thrashing your disk).</p>
<li class="sectionHeader">pv</li>
<p>The <code>pv</code> command isn’t a top-like application at all, but I’ve found it incredibly useful and I wanted to share it with you here.  The <code>pv</code> utility is used between pipes on a command line and measures the speed of data throwing through that pipe. For example, here I am using <code>pv</code> to measure how quickly data is flowing between two <code>dd</code> commands:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/07/pv.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/pv-300x78.png" alt="" title="pv" width="300" height="78" class="aligncenter size-medium wp-image-462" /></a></p>
<p>Installing <code>pv</code> is a simple one-liner:</p>
<p><span class="distroInstallName">Ubuntu:</span> <span class="distroInstallCommand">sudo apt-get install pv</span><br />
<span class="distroInstallName">Fedora:</span> <span class="distroInstallCommand">sudo yum install pv</span></p>
<p>This is a great way to see how quickly one command is passing data to another command, when neither command is giving any output to report on its progress.  If you&#8217;ve ever setup a pipe on the command line and wondered if it was actually doing anything, <code>pv</code> is the command you&#8217;ve been looking for.  You can use it not only when you need to know the speed of data moving through a pipe, but whether there is any data moving <em>at all</em>.</p>
<li class="sectionHeader">latencytop</li>
<p>I wanted to give a quick mention to <code>latencytop</code> since I&#8217;m sure someone will ask about it if I don&#8217;t mention it.  <code>latencytop</code> is a tool that shows you what resources a given process (or processes) are <em>waiting</em> for on your system.  For example, it can tell you that a program is waiting on disk I/O or waiting to get a file lock.  <code>latencytop</code> is a great tool, but on the whole it&#8217;s more useful for developers than end-users.  If you&#8217;re interested, this is what it looks like:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/07/latencytop.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/latencytop-300x205.png" alt="" title="latencytop" width="300" height="205" class="aligncenter size-medium wp-image-459" /></a></p>
<p>And this is how to install it:</p>
<p><span class="distroInstallName">Ubuntu:</span> <span class="distroInstallCommand">sudo apt-get install latencytop</span><br />
<span class="distroInstallName">Fedora:</span> <span class="distroInstallCommand">sudo yum install latencytop</span></p>
</ol>
<div class="sectionHeader">Sound off: what are your tools?</div>
<p>Did I miss your favorite tool?  What are your go-to commands when your system performance isn&#8217;t what it should be?  Leave your helpful tips in the comment section below!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/QJDYBi4UKgrQSVBT-ld1jzYGec4/0/da"><img src="http://feedads.g.doubleclick.net/~a/QJDYBi4UKgrQSVBT-ld1jzYGec4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/QJDYBi4UKgrQSVBT-ld1jzYGec4/1/da"><img src="http://feedads.g.doubleclick.net/~a/QJDYBi4UKgrQSVBT-ld1jzYGec4/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://techthrob.com/2010/07/21/three-apps-for-monitoring-performance-in-linux/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>5 things to look forward to in Ubuntu 10.10</title>
		<link>http://techthrob.com/2010/07/14/5-things-to-look-forward-to-in-ubuntu-10-10/</link>
		<comments>http://techthrob.com/2010/07/14/5-things-to-look-forward-to-in-ubuntu-10-10/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 13:04:30 +0000</pubDate>
		<dc:creator>Jonathan DePrizio</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[end-user]]></category>
		<category><![CDATA[Lists]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://techthrob.com/?p=413</guid>
		<description><![CDATA[Maverick Meerkat, the version of Ubuntu slated to be released later this year, brings with it several features and improvements that the Linux community has been eagerly looking forward to. I’ve taken a look at the blueprints for this next release, and picked out a few of the major items that Linux end-users will be [...]]]></description>
			<content:encoded><![CDATA[<p>Maverick Meerkat, the version of Ubuntu slated to be released later this year, brings with it several features and improvements that the Linux community has been eagerly looking forward to.  I’ve taken a look at the blueprints for this next release, and picked out a few of the major items that Linux end-users will be interested in.  Here are 5 things to look forward to in Ubuntu 10.10:</p>
<ol>
<li class="sectionHeader">Software Center enhancements</li>
<p>A major focus of Ubuntu 10.10 is improving the software center, addressing many of the usability problems that have been sources of complaints in the past.  Among these changes are:</p>
<ul>
<li class="subSectionHeader">Better Search</li>
<p>I’ve heard this complaint quite a bit, including in the comments of my article covering <a href=”/2010/06/12/5-things-new-linux-converts-should-know/”>things new Linux users need to know</a>.  I had posted a screenshot of an application there, and someone tried to find it in the software center by searching for “Disk Analyzer”, which is what’s displayed in the title bar of the program.  Unfortunately, no results were returned.  In the next version of Ubuntu, the Software Center will show suggested results when you search for something that gets no hits.</p>
<li class="subSectionHeader">Improved dependency display</li>
<p>Most users, even the more advanced members of the crowd, don’t particularly care about the package dependencies of a particular program.  Managing that kind of information is trusted to the package management program, and there’s really no reason for a user to be presented with that data unless she asks. In the next version of the software manager, everything but the application itself will be hidden, with the option to show “Technical items” only when the user specifically requests it.</p>
<li class="subSectionHeader">Add-on packages and media</li>
<p>Many packages offer “add-ons” which extend the feature-set or usability of the program.  A good example of this is the Firefox browser, which today has several add-ons available in the Software Center, such as the Ubuntu extension.  In the next version of the Software Center, add-ons will be much better organized.
</ul>
<li class="sectionHeader">OneConf: Sync your configuration between machines</li>
<p>OneConf will allow users to share their Ubuntu configurations between multiple machines.  Realizing that people work on more than one computer, and taking a cue from browser sync features, OneConf will allow you to store your installed application list and those applications’ settings to the UbuntuOne service.  You’ll then be able to migrate this list to another machine, or to use it as a configuration restore.  It will support multiple configuration specifications, allowing you to keep separate lists for different types of machines (home vs. work; desktop vs. netbook, etc..).</p>
<li class="sectionHeader">Post-Release application delivery</li>
<p>Developers and users alike will look forward to the ability for new packages to be introduced to the distribution <em>after</em> it has been released.  Although the process is not finalized, there will be a process by which developers can submit their packages for review and inclusion into the software repositories, even after a major release.  This means that Ubuntu users will be able to receive new packages without upgrading or manually seeking them out, which is the case today.</p>
<li class="sectionHeader">Chromium as the default netbook browser</li>
<p>Ubuntu 10.10 aims to improve netbook support (using its Ubuntu Netbook Edition release), and part of this is a migration to the light-weight Chromium browser.  Many Linux users are already familiar with Chromium, or its close Google-branded relative, Chrome, as a speedy alternative to Firefox.  </p>
<li class="sectionHeader">Better touchscreen support</li>
<p>Touchscreen support is another area where 10.10 should show significant improvements.  On the drawing-board for this release is to improve existing applications’ touch-friendlyness by tweaking GTK, icon settings, and other theme options.  Additionally, support for gestures in Compiz may also be included.  This is an area where you can expect to see improvements beyond the immediate future, as touchscreens become more common and Ubuntu moves to support this market.  In the future, we’ll likely see further enhancements, such as the inclusion of a built-in on-screen keyboard.
</ol>
<div class="sectionHeader">What do you look forward to?</div>
<p>Do any of these features make you excited for Ubuntu 10.10?  If so, which ones?  And if not, what would you want to see in Ubuntu 10.10?  Leave your opinions in the <a href="#commentbox">comment section below.</a></p>
<p>References<br />
1. <a href="https://blueprints.launchpad.net/ubuntu/+spec/desktop-maverick-software-center-front-end">Software Center Improvement Speclist</a><br />
2. <a href="https://blueprints.launchpad.net/ubuntu/+spec/desktop-maverick-oneconf">OneConf Spec</a><br />
3. <a href="https://wiki.ubuntu.com/PostReleaseApps/Process">PostReleaseApps Process Wiki</a><br />
4. <a href="https://blueprints.launchpad.net/ubuntu/+spec/desktop-maverick-chromium">Chromium as Default UNE Browser</a><br />
5. <a href="https://blueprints.launchpad.net/ubuntu/+spec/desktop-maverick-touch">Touchscreen Improvement</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/jE7-T2lyE32WPDUEqVb4VvefdWo/0/da"><img src="http://feedads.g.doubleclick.net/~a/jE7-T2lyE32WPDUEqVb4VvefdWo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jE7-T2lyE32WPDUEqVb4VvefdWo/1/da"><img src="http://feedads.g.doubleclick.net/~a/jE7-T2lyE32WPDUEqVb4VvefdWo/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://techthrob.com/2010/07/14/5-things-to-look-forward-to-in-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
		<item>
		<title>Five and a Half Reasons I Prefer Linux (as a power user)</title>
		<link>http://techthrob.com/2010/07/09/five-and-a-half-reasons-i-prefer-linux-as-a-power-user/</link>
		<comments>http://techthrob.com/2010/07/09/five-and-a-half-reasons-i-prefer-linux-as-a-power-user/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 12:00:01 +0000</pubDate>
		<dc:creator>Jonathan DePrizio</dc:creator>
				<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Lists]]></category>
		<category><![CDATA[operating systems]]></category>

		<guid isPermaLink="false">http://techthrob.com/?p=397</guid>
		<description><![CDATA[Linux is growing in popularity for many reasons, and as an operating system it is many things to many people. While we all have our own reasons for liking Linux and open source, here are my top five (and a half!) reasons why, as a power user, I prefer to use Linux. You’ll notice that [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/torpe/4687961840/"><img src="http://techthrob.com/wp-content/uploads/2010/09/4687961840_d834811594_b-300x199.jpg" alt="" title="Gears" width="300" height="199" class="alignright size-medium wp-image-406" /></a>Linux is growing in popularity for many reasons, and as an operating system it is many things to many people.  While we all have our own reasons for liking Linux and open source, here are my top five (and a half!) reasons why, as a power user, I prefer to use Linux.  You’ll notice that these reasons are quite a bit different from why I think <a href="/2010/03/29/ubuntu-as-moms-operating-system/">Ubuntu makes a great operating system for Mom</a>,  which just goes to show how versatile Linux can be. </p>
<ol>
<li class="sectionHeader">It puts you in charge</li>
<p>Between my day job at a software company and my work on TechThrob, I spend a lot of time on the computer, doing technical things.  Nothing compares to the power of Linux when it comes to managing technology, whether it be administering severs, writing code, or interfacing with computers in some other way.  </p>
<p>Windows intentionally puts a barrier between the user and the underlying machine, whereas Linux completely exposes every aspect of the system: all you have to do is open up a terminal.  As someone who works with technology on a daily basis, this is invaluable to me.</p>
<li class="sectionHeader">Software repositories</li>
<p>I don’t have time to manually search the Internet for the right tool to do a job.  When I need to download a new application and I don’t know which program is appropriate, it’s usually because I’ve hit some stumbling block that’s preventing me from moving on with my work.  The last thing I want to do is to start googling for reviews of shareware programs that may or may not work, and might even be harmful to my computer.</p>
<p>Having a centralized software repository completely solves this problem.  Instead of spending time searching the web for the appropriate application, I just execute a single “yum search” or “apt-cache search” command, and find precisely what I need in seconds.  It’s hard to appreciate just how priceless that can be until you are in a situation where you need to solve a problem <em>immediately</em> and you don’t have a software repository available.</p>
<li class="sectionHeader">Safety</li>
<p>A secondary advantage of centralized software repositories is that they are safe.  Even as someone who understands the dangerous parts of computing (trojans, worms, malware, etc..), I know that even the most well-educated, best-protected Windows user is still vulnerable due to the sheer number of exploits available.  When you’re using an operating system that’s under constant attack by virus writers and bot-net operators, you’re eventually going to get stung, no matter how well you protect yourself.</p>
<p>Using Linux alleviates most of this concern.  It’s important not to develop a feeling of invulnerability, because you still need to be careful (for example, don’t run scripts or programs from untrusted sources, or you’re just asking to get bitten) but there isn’t the ever-present danger that exists when you are using a Windows machine.</p>
<li class="sectionHeader">It’s got the apps</li>
<p>I have to admit that what I consider a “killer app” isn’t necessarily the same as what a graphics artist or a sound engineer would consider a &#8220;killer app.&#8221;  But as a power user, Linux gives me what I need to make my life easier and more productive.  From utilities that <a href="/2010/06/10/identifying-and-resolving-ip-address-conflicts-with-linux/"> track down IP address conflicts</a> to <a href="/2009/03/02/howto-delete-files-permanently-and-securely-in-linux/">programs that securely wipe my hard drive</a>, the toolset that you get when you run Linux is simply unrivaled by a standard Windows installation.  </p>
<p>Admittedly, Windows may very well have similar programs available for it, but that simply goes back to my second point about software repositories&#8211; on Windows, I’d have to hunt these applications down one by one, but on Linux, everything is a single command away.</p>
<li class="sectionHeader">It’s rock-solid</li>
<p>I don’t have the time to be rebooting my computer because it’s grown inexplicably slow.  I can’t be bothered trying to figure out why some application won’t close, and I certainly don’t feel like dealing with the frustration of having a single program lock up my entire machine.  I need my computer to work <em>for</em> me, not against me, and this is where Linux truly excels.</p>
<p>Windows tries to hold your hand when you use the computer; consequently, when it trips and falls, you wind up face-first in the mud along with it.  Linux doesn’t do this &#8212; if a process misbehaves, it rarely affects anything else on the system.  If it’s eating up too much CPU or memory, I can just kill it; on Windows, a run-away program might lock-up the machine to the point of requiring a reboot.</p>
<li class="sectionHeader">It&#8217;s what I know best</li>
<p>I&#8217;m only counting this as half a reason, but it&#8217;s important to point out that while a lot of the above applies to Linux because of the way it&#8217;s written and the way it works, I am also able to take advantage of Linux because I&#8217;ve had years of experience with it.</p>
<p>I know a handful of Windows power-users who are able to do some pretty impressive things with that OS because they&#8217;ve learned the best way to use and manipulate it.  But for me, it&#8217;s much easier, faster, and better to use Linux &#8212; precisely because I don&#8217;t <em>need</em> to manipulate it into doing what I need.
</ol>
<p><strong>Do you consider yourself a power user?</strong>  If so, what are some tools that are indispensable to you, and could you be as productive if you weren’t running Linux?  Share your favorite things about Linux in the comments below!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/DEhX8-3f-unFHOIIQ5rA9XxKAhw/0/da"><img src="http://feedads.g.doubleclick.net/~a/DEhX8-3f-unFHOIIQ5rA9XxKAhw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DEhX8-3f-unFHOIIQ5rA9XxKAhw/1/da"><img src="http://feedads.g.doubleclick.net/~a/DEhX8-3f-unFHOIIQ5rA9XxKAhw/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://techthrob.com/2010/07/09/five-and-a-half-reasons-i-prefer-linux-as-a-power-user/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Adding a Secure Delete Option to Nautilus File Manager in Linux</title>
		<link>http://techthrob.com/2010/07/07/adding-a-secure-delete-option-to-nautilus-file-manager-in-linux/</link>
		<comments>http://techthrob.com/2010/07/07/adding-a-secure-delete-option-to-nautilus-file-manager-in-linux/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 12:18:28 +0000</pubDate>
		<dc:creator>Jonathan DePrizio</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[end-user]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://techthrob.com/?p=363</guid>
		<description><![CDATA[I&#8217;ve previously written about how to securely and permanently delete files in Linux and Windows. The programs I mentioned in those tutorials were all command-line baed, but this tutorial will show you how to add a secure-delete option to the contextual menu in Ubuntu and Fedora Linux. Install the Nautilus Actions Configuration utility First, install [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve previously written about how to securely and <a href="/2009/03/02/howto-delete-files-permanently-and-securely-in-linux/">permanently delete files in Linux</a> and <a href="/2010/03/25/howto-delete-files-permanently-and-securely-in-windows/">Windows</a>.  The programs I mentioned in those tutorials were all command-line baed, but this tutorial will show you how to add a secure-delete option to the contextual menu in Ubuntu and Fedora Linux. </p>
<ol>
<li class="sectionHeader">Install the Nautilus Actions Configuration utility</li>
<p>First, install the nautilus-actions package, which provides a graphical utility for editing the Nautilus right-click menu.  We’ll use this utility to add the secure delete option.  You can install the nautilus-actions package by using the following command:</p>
<table border=1>
<tr>
<td>Fedora</td>
<td>Ubuntu</td>
</tr>
<tr>
<td>sudo yum install nautilus-actions</td>
<td>sudo apt-get install nautilus-actions</td>
</tr>
</table>
<p>Once installed, you can configure the new menu option.</p>
<li class="sectionHeader">Configure the new menu option</li>
<p>Now you should have an option in the Preferences menu called “Nautilus Actions Configuration.”  This will allow you to specify the new option for securely deleting files from the file manager.  Click the “define new action” button (or select it from the file menu).  Specify the information as shown below (feel free to use whatever text you want as the label and tooltip; this is up to you!):</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/07/shred_config_1.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/shred_config_1-300x216.png" alt="" title="Configure Action" width="300" height="216" class="aligncenter size-medium wp-image-366" /></a></p>
<p>Next, click the “Command” tab.  This is where you’ll specify what the new menu item will actually do when it’s clicked.  As you see below, I am using the shred program as my secure-delete method, which is located at /usr/bin/shred.  For the paramters, I need to specify -u in order to have shred delete the file once it’s been overwritten.  </p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/07/shred_config_2.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/shred_config_2-300x216.png" alt="" title="Configure Command" width="300" height="216" class="aligncenter size-medium wp-image-367" /></a></p>
<p>Clicking the “legend” button shows that the option to pass a list of files to the commandline is %M.  So my full paramters string becomes “-u %M”.  You should feel free to customize the command however you like, by reading the manpage for the command you are using, and by referencing the legend to figure out which substitution strings to use.  For example, you might want to use the “-z” option for shred, which will use a final pass of zeros, to “hide” that the file has been shredded, or the “-n” option to specify the number of passes to use.</p>
<p>Finally, you’ll want to set the conditions under which the menu item appears.  In the “Conditions” tab, I’ve selected for the secure delete option to appear only when files are selected, and to allow it to be used on multiple files at once.  Here is how my Conditions tab looks:</p>
<p><a href="http://techthrob.com/wp-content/uploads/2010/07/shred_config_3.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/shred_config_3-300x216.png" alt="" title="Configure Conditions" width="300" height="216" class="aligncenter size-medium wp-image-368" /></a></p>
<p>With that, double-check that you’ve entered everything correctly, and click “Save” in the file menu.</p>
<li class="sectionHeader">Test it out</li>
<p>That’s all you need to do &#8212; the only thing left is to test that it works.  Find some files you want to shred, or create a few dummy files (obviously don’t use this on data you need to keep!).  I used a <a href="/2010/03/22/the-basics-of-the-bash-for-loop/">bash &#8220;for&#8221; loop</a> to create a few test files, and then opened Nautilus to the directory where I put them.</p>
<div style="text-align: center;">
<a href="http://techthrob.com/wp-content/uploads/2010/07/deleting_multiple_files.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/deleting_multiple_files-300x214.png" alt="" title="Secure Delete in Nautilus" width="180" height="126" style="padding-right: 5px;" /></a> <a href="http://techthrob.com/wp-content/uploads/2010/07/shred_in_top.png"><img src="http://techthrob.com/wp-content/uploads/2010/07/shred_in_top-300x208.png" alt="" title="Showing Shred in Top" width="180" height="126" style="padding-left: 5px;" /></a>
</div>
<p>Selecting them all and right-clicking, I see the secure deletion option.  Clicking it and watching in “top” shows that it is working correctly.  Those files are gone!</p>
<li class="sectionHeader">You can use this for anything!</li>
<p>The nautilus-actions utility can be used for more than just adding secure-deletion options to the file manager; you can use it to execute any command-line operation you want.  What are some things that you might add to the Nautilus menu?  What other file manager hacks do you find useful?  Leave your ideas in the comments below!</p>
<p>8SQHVUP4GCZ8</p>

<p><a href="http://feedads.g.doubleclick.net/~a/n40aq0gKpid5B6SI0upIt8f_3QM/0/da"><img src="http://feedads.g.doubleclick.net/~a/n40aq0gKpid5B6SI0upIt8f_3QM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/n40aq0gKpid5B6SI0upIt8f_3QM/1/da"><img src="http://feedads.g.doubleclick.net/~a/n40aq0gKpid5B6SI0upIt8f_3QM/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://techthrob.com/2010/07/07/adding-a-secure-delete-option-to-nautilus-file-manager-in-linux/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
