<?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>Life with Linux</title>
	<atom:link href="http://linux.ioerror.us/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux.ioerror.us</link>
	<description>I've been using Linux since 1995. Now I'm sharing tips, tricks and things you need to know.</description>
	<lastBuildDate>Wed, 30 Jul 2008 07:26:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Printing with Linux made easy</title>
		<link>http://linux.ioerror.us/2008/07/printing-with-linux-made-easy/</link>
		<comments>http://linux.ioerror.us/2008/07/printing-with-linux-made-easy/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 07:26:02 +0000</pubDate>
		<dc:creator>Michael Hampton</dc:creator>
				<category><![CDATA[Fedora Core]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[printer]]></category>

		<guid isPermaLink="false">http://linux.ioerror.us/?p=24</guid>
		<description><![CDATA[Those of us who have been using UNIX based systems since the Dark Ages remember that printing was one of the most annoying, obnoxious, difficult to set up things about the whole thing. Those days are long gone. Today, printing with Linux is even easier than with Windows.]]></description>
			<content:encoded><![CDATA[<p>Those of us who have been using UNIX based systems since the Dark Ages remember that printing was one of the most annoying, obnoxious, difficult to set up things about the whole thing. Those days are long gone. Today, printing with Linux is even easier than with Windows.</p>
<p>I&#8217;m serious.</p>
<p>Go out, buy a printer, throw away the driver CD that came with it, and just plug it in to your Linux system. This is what will happen:</p>
<div id="attachment_25" class="wp-caption alignnone" style="width: 480px"><a href="http://linux.ioerror.us/wordpress/wp-content/uploads/2008/07/printing.png"><img src="http://linux.ioerror.us/wordpress/wp-content/uploads/2008/07/printing.png" alt="Plug in your printer and start printing!" title="'ML-2010' is ready for printing." width="470" height="169" class="size-full wp-image-25" /></a><p class="wp-caption-text">Plug in your printer and start printing!</p></div>
<div id="attachment_28" class="wp-caption alignnone" style="width: 310px"><a href="http://linux.ioerror.us/wordpress/wp-content/uploads/2008/07/screenshot-print.png"><img src="http://linux.ioerror.us/wordpress/wp-content/uploads/2008/07/screenshot-print-300x285.png" alt="Firefox Print dialog" title="Firefox Print dialog" width="300" height="285" class="size-medium wp-image-28" /></a><p class="wp-caption-text">Firefox Print dialog</p></div>
<p>That&#8217;s right, no messing with drivers, no installing any stupid software that&#8217;s going to slow down your computer and cause you all sorts of headaches down the road, no extra drivers to install, you just plug it in and <em>it works</em>. Try <em>that</em> with Windows.</p>
<p>(This ease of use demonstration was performed on <a href="http://www.fedoraproject.org/">Fedora</a> 9. Almost every printer manufactured through early 2008 is supported. For information overload, see <a href="http://www.linuxprinting.org/">LinuxPrinting.org</a>.)</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.ioerror.us/2008/07/printing-with-linux-made-easy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Migrating from Apache to nginx</title>
		<link>http://linux.ioerror.us/2008/07/migrating-from-apache-to-nginx/</link>
		<comments>http://linux.ioerror.us/2008/07/migrating-from-apache-to-nginx/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 03:46:47 +0000</pubDate>
		<dc:creator>Michael Hampton</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Distributions]]></category>
		<category><![CDATA[Fedora Core]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SMF]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://linux.ioerror.us/?p=17</guid>
		<description><![CDATA[Yesterday I changed out the web server software on this server, replacing the venerable Apache with a web server almost nobody's ever heard of except for, ironically, Russian spammers.]]></description>
			<content:encoded><![CDATA[<p>Yesterday I changed out the web server software on this server, replacing the venerable <a href="http://httpd.apache.org/">Apache</a> with a web server almost nobody&#8217;s ever heard of except for, ironically, Russian spammers.</p>
<p>Well, OK, more people than that have heard of <a href="http://nginx.net/">nginx</a>, a lightweight, high-performance HTTP server and reverse proxy which was written by Russian coder <a href="http://sysoev.ru/en/">Igor Sysoev</a>. nginx is supposed to be able to handle as many as 8,000 to 10,000 requests per second using comparatively little memory, and while I get nowhere near that level of traffic, Apache has been a bit of a dog for quite a while, eating up all my memory and on occasion just taking my server out entirely.</p>
<p>So it had to go.</p>
<p>Now if you&#8217;re a web server administrator and you&#8217;re thinking of replacing Apache (and if you aren&#8217;t, you should think about it) the first thing you have to know is that there is no drop-in replacement for Apache. Things you&#8217;ve been accustomed to for years are suddenly going to be entirely different. For instance, nginx has no facility comparable to Apache&#8217;s .htaccess files, so it&#8217;s not going to work for shared hosting providers where multiple users have web sites on a single server. But I don&#8217;t have this problem, since I run all my sites on my own CentOS-based servers.</p>
<p>The first thing I did was to get a copy of the nginx-0.6.31 source RPM from the Fedora repository, update it to the latest version (0.7.6 as of this writing) and rebuild RPMs on my CentOS box. RPM may not be the perfect packager, but it at least keeps track of everything, so I try to use RPMs to install software whenever possible. If they aren&#8217;t available in CentOS repositories, I&#8217;ll grab a Fedora RPM and rebuild it.</p>
<p>After spending several hours Sunday writing up configuration files for my 16 HTTP virtual hosts and two SSL hosts, adding in customized nginx rewrite rules for software such as WordPress that I run, writing my own Red Hat init script to start PHP in FastCGI mode, and testing as much as I could, I stopped Apache and started nginx around midnight. I had a few problems with an SMF forum that I have, and caught a problem where I put the wrong document root in one virtual host, but the cutover went largely without incident.</p>
<p>I&#8217;d never used FastCGI before, and all my previous experiences with PHP in CGI mode were disappointing. I liked having it as an Apache module. And FastCGI doesn&#8217;t address my number one complaint about CGI, that it mangles HTTP headers. so I can&#8217;t tell in PHP exactly what came in on the wire. But I can&#8217;t argue with the results: With nginx, the site is much faster, memory usage has dropped significantly, the site is much faster, my server is running cooler, the site is much faster, and did I mention the site&#8217;s much faster?</p>
<p>I can probably even get away with downgrading my server and still have much more capacity to serve requests than I did with Apache. It&#8217;s that much smaller and faster.</p>
<p>I do have two complaints about missing features in nginx, though. The first is the lack of IPv6 support. I&#8217;m told that Igor plans to add this in the near future, and if he doesn&#8217;t, I may do it myself.</p>
<p>The second is the lack of content negotiation. This is where the server dynamically picks a file based on one or more possible alternatives. For instance if you request /index then the server looks for all files starting with /index and serves whichever one it thinks is most appropriate given whatever information the user has supplied (e.g. language, content encoding, and so forth). I used this little trick to <a href="http://www.w3.org/Provider/Style/URI">remove</a> the &#8220;.php&#8221; from some of my URLs in some custom PHP scripts, and all of those broke. Fortunately I was able to work around this with a simple configuration file change which I share here in case it helps someone else. Add this in the relevant <kbd>location</kbd> section:</p>
<p><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (-e $request_filename.php) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^(.+)$ $1.php last;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</code></p>
<p>This will serve a file <kbd>/example.php</kbd> when you request the file <kbd>/example</kbd>.</p>
<p>Overall I&#8217;m quite impressed with nginx so far. I expect that now this server will stand up to anything that digg or slashdot can throw at it without even blinking. And now that I have room to grow, it&#8217;s time to actually start growing until I am getting 8,000 hits a second.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.ioerror.us/2008/07/migrating-from-apache-to-nginx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Encrypted root partitions in Fedora 9</title>
		<link>http://linux.ioerror.us/2008/02/encrypted-root-partitions-in-fedora-9/</link>
		<comments>http://linux.ioerror.us/2008/02/encrypted-root-partitions-in-fedora-9/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 07:42:49 +0000</pubDate>
		<dc:creator>Michael Hampton</dc:creator>
				<category><![CDATA[Fedora Core]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[computer security]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[Fedora 9]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://linux.ioerror.us/2008/02/encrypted-root-partitions-in-fedora-9/</guid>
		<description><![CDATA[Well, after some two years, we&#8217;ve finally gotten encrypted root filesystem support into Fedora. (And it&#8217;s been far too long since I&#8217;ve updated this site; sorry.)
The good news is you&#8217;ll be able to set up encryption during the installation of a new system. You don&#8217;t have to install and then convert it anymore.
The bad news [...]]]></description>
			<content:encoded><![CDATA[<p>Well, after some two years, we&#8217;ve finally gotten encrypted root filesystem support into Fedora. (And it&#8217;s been far too long since I&#8217;ve updated this site; sorry.)</p>
<p>The good news is you&#8217;ll be able to set up encryption during the installation of a new system. You don&#8217;t have to install and then convert it anymore.</p>
<p>The bad news is it&#8217;s got bugs. Though I suspect they will be worked out before release.</p>
<p>Here&#8217;s a quick walkthrough of what installation with encrypted partitions is going to look like in Fedora.</p>
<p><a href='http://linux.ioerror.us/wordpress/wp-content/uploads/2008/02/fedora-9-alpha-installation-1.png' title='Fedora 9 Installation Screenshot 1'><img style="float: left; clear: left; margin: 0 10px 10px 0" src='http://linux.ioerror.us/wordpress/wp-content/uploads/2008/02/fedora-9-alpha-installation-1.thumbnail.png' alt='Fedora 9 Installation Screenshot 1' /></a>First thing to do is decide whether you want the system encrypted in the first place.</p>
<p>In the installer as it is now, encryption is enabled by default. If you bypass this screen without looking, you may wind up surprised later. But, if you&#8217;re reading this, probably you won&#8217;t be.</p>
<p>Then you select your desired passphrase. (If you want to store a key on external media, such as USB stick, you can delete the passphrase and set this up after first boot.)</p>
<p><a href='http://linux.ioerror.us/wordpress/wp-content/uploads/2008/02/fedora-9-alpha-installation-2.png' title='Fedora 9 Installation Screenshot 2'><img style="float: left; clear: left; margin: 0 10px 10px 0" src='http://linux.ioerror.us/wordpress/wp-content/uploads/2008/02/fedora-9-alpha-installation-2.thumbnail.png' alt='Fedora 9 Installation Screenshot 2' /></a>One thing to note is that Fedora prompts very early in the boot process for the encryption passphrase, and at the time the prompt is shown, no keymap has been loaded, so the system is using the default U.S. keymap. This means you <a href="https://bugzilla.redhat.com/show_bug.cgi?id=429358">won&#8217;t be able to type the passphrase correctly</a> if you have a non-U.S. keyboard. You can probably work around this issue by selecting a U.S. keymap during installation, avoiding any odd characters in the passphrase you set, and selecting the keyboard map you really want during first boot.</p>
<p><a href='http://linux.ioerror.us/wordpress/wp-content/uploads/2008/02/fedora-9-alpha-installation-3.png' title='Fedora 9 Installation Screenshot 3'><img style="float: left; clear: left; margin: 0 10px 10px 0" src='http://linux.ioerror.us/wordpress/wp-content/uploads/2008/02/fedora-9-alpha-installation-3.thumbnail.png' alt='Fedora 9 Installation Screenshot 3' /></a>If you select to review your partition layout, you&#8217;ll notice that the entire LVM PV is encrypted. This was done for ease of use and some <a href="https://bugzilla.redhat.com/show_bug.cgi?id=124789">other reasons</a>.</p>
<p>But if you&#8217;re one of the 5 or 6 people (like me) who have been testing this functionality for the last two years, you probably have encrypted LVs instead. These will continue to be supported, and the installer should read them and prompt you for your passphrase when you perform your upgrade to Fedora 9. If not, it&#8217;s a reportable bug, so please test this.</p>
<p><a href='http://linux.ioerror.us/wordpress/wp-content/uploads/2008/02/fedora-9-alpha-installation-4.png' title='Fedora 9 Installation Screenshot 4'><img style="float: left; clear: left; margin: 0 10px 10px 0" src='http://linux.ioerror.us/wordpress/wp-content/uploads/2008/02/fedora-9-alpha-installation-4.thumbnail.png' alt='Fedora 9 Installation Screenshot 4' /></a>Unfortunately, anaconda (the installer) still has some bugs.</p>
<p>Here, we see that it&#8217;s failed to create the encrypted PV. This bug has been <a href="https://bugzilla.redhat.com/show_bug.cgi?id=434737">reported</a> already and should hopefully be fixed by the time Fedora 9 is released.</p>
<p>(By the way, anaconda can dump that traceback to a remote host via ssh. This is a nice touch; the last time I saw anaconda break, there was no way to get the traceback saved.)</p>
<p><a href='http://linux.ioerror.us/wordpress/wp-content/uploads/2008/02/fedora-9-alpha-installation-5.png' title='Fedora 9 Installation Screenshot 5'><img style="float: left; clear: left; margin: 0 10px 10px 0" src='http://linux.ioerror.us/wordpress/wp-content/uploads/2008/02/fedora-9-alpha-installation-5.thumbnail.png' alt='Fedora 9 Installation Screenshot 5' /></a>As you probably know, I&#8217;ve been using an encrypted root filesystem (using encrypted LVs; the encrypted PV functionality is very recent) for a couple of years now. I&#8217;m looking forward to this installation issue to get sorted out so that I can more thoroughly test it and convert my own system to encrypted PV. (And I have to repartition the disk to reinstall Windows Vista with BitLocker anyway, but that&#8217;s another story.)</p>
<p>Aside from the keymap issue, there are some other caveats to using the feature right now, though. You may have <a href="https://bugzilla.redhat.com/show_bug.cgi?id=429614">trouble if you use a right-to-left language</a>, such as Arabic or Hebrew. You also <a href="https://bugzilla.redhat.com/show_bug.cgi?id=247794">can&#8217;t hibernate your Fedora 9 system</a>, even though the Hibernate button is shown; the computer won&#8217;t resume correctly. You must suspend, or shut down, until this functionality is added.</p>
<p>Even with the bugs and missing features needing to be added, I&#8217;m glad to see this feature finally come to fruition. Fedora is, unfortunately, one of the last major Linux distributions to gain <a href="http://fedoraproject.org/wiki/Releases/FeatureEncryptedFilesystems">this long-demanded capability</a>, and I&#8217;m glad I don&#8217;t have to make RPMs for people anymore.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.ioerror.us/2008/02/encrypted-root-partitions-in-fedora-9/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Encrypting your root partition on Fedora Core 5 and 6</title>
		<link>http://linux.ioerror.us/2006/09/encrypting-your-root-partition-on-fedora-core-5/</link>
		<comments>http://linux.ioerror.us/2006/09/encrypting-your-root-partition-on-fedora-core-5/#comments</comments>
		<pubDate>Thu, 21 Sep 2006 20:32:31 +0000</pubDate>
		<dc:creator>Michael Hampton</dc:creator>
				<category><![CDATA[Fedora Core]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://linux.ioerror.us/2006/09/encrypting-your-root-partition-on-fedora-core-5/</guid>
		<description><![CDATA[For a variety of reasons I use Fedora Core 6 as my primary operating system, both at home and on my laptop. And for security reasons, I need to have my filesystem encrypted, so that in the event that my laptop is lost or stolen, my confidential data does not fall into the wrong hands.
Unfortunately, [...]]]></description>
			<content:encoded><![CDATA[<p>For a <a href="http://www.newsforge.com/article.pl?sid=06/05/15/2059205">variety of reasons</a> I use Fedora Core 6 as my primary operating system, both at home and on my laptop. And for security reasons, I need to have my filesystem encrypted, so that in the event that my laptop is lost or stolen, my confidential data does not fall into the wrong hands.</p>
<p>Unfortunately, while Fedora Core 5 and 6 support an encrypted swap partition, it doesn&#8217;t yet support encrypted root filesystems. (Due to release timing, official support is currently targeted for Fedora Core 7.) However, that doesn&#8217;t mean it&#8217;s impossible. In fact, I&#8217;ve done it. This is the second of a two-part series on encrypting your Fedora Core system.</p>
<p><span id="more-10"></span>(Read Part 1: <a href="http://linux.ioerror.us/2006/09/encrypting-your-swap-partition-on-fedora-core/">Encrypting your swap partition on Fedora Core</a>)</p>
<p>Before we get started, I must make one thing perfectly clear: This code is still experimental, and it could eat your files for breakfast, your children for lunch, drink all your beer, or do worse things. It works perfectly for me, but I can&#8217;t be responsible for your system, especially if you screw something up yourself. So follow along carefully. Read through the whole thing once before trying it, so you know what to expect.</p>
<p>Currently neither the Fedora Core installer nor the Fedora Core installation media support encrypted filesystems, so in order to create an encrypted system, you will need an already installed system, as well as a second hard drive (or partition) large enough to hold all the files on your root partition. For this reason, it&#8217;s best to do this just after you install the system, as you won&#8217;t yet have any sensitive files on the computer. Even if you do, though, we&#8217;ll securely erase the drive to help prevent recovery of your data.</p>
<p>In addition, you&#8217;ll need a Linux rescue CD which does support encrypted filesystems. For this example, I use the Gentoo minimal Live CD, as it has all the necessary kernel and userspace support to create an encrypted filesystem.</p>
<p>First, download the Gentoo minimal <a href="http://gentoo.osuosl.org/releases/x86/2006.1/installcd/install-x86-minimal-2006.1.iso">Live CD from OSUOSL</a> or <a href="http://www.gentoo.org/main/en/mirrors.xml">another mirror</a>. (Currently the latest Live CD is /releases/x86/2006.1/installcd/install-x86-minimal-2006.1.iso.) Then burn it to a CD. It&#8217;s small enough to fit on a business card size CD. You can use another Linux live CD as long as it has a recent kernel and recent <a href="http://luks.endorphin.org/">LUKS</a> userspace utilities.</p>
<p>I am going to assume that you accepted all the partitioning defaults when you installed Fedora Core, and that your root partition is located at <code>/dev/VolGroup00/LogVol00</code>. If you installed it elsewhere, you&#8217;ll have to substitute the correct device. Also, I&#8217;ll assume that your second hard drive (or partition) which we&#8217;ll use temporarily will be at <code>/dev/sdb1</code>. Substitute your actual partition when running the commands below. Keep in mind that anything on that drive or partition will be destroyed!</p>
<p>The first thing you need to do is boot your (freshly installed?) Fedora Core system. You&#8217;ll need to obtain a patched copy of mkinitrd that understands encrypted root filesystems and can prompt you for the password. You can either get the patch yourself from <a href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=124789">Red Hat&#8217;s bugzilla</a> and build RPMs yourself, or you can use the ones I&#8217;ve built for my own use. If you&#8217;re extremely paranoid, I suggest you build your own, but the instructions on how to integrate patches into and build RPMs are beyond the scope of this article.</p>
<p>Download the mkinitrd RPM and its dependency, libbdevid-python (and nash on FC6). The mkinitrd-devel package is optional. I&#8217;ve also provided the source RPM, with patch included, in case you really want to rebuild the packages yourself.</p>
<p>Fedora Core 5:</p>
<ul>
<li><a href="/download/libbdevid-python-5.1.15-1.i386.rpm">libbdevid-python-5.1.15-1.i386.rpm</a> (required)</li>
<li><a href="/download/mkinitrd-5.1.15-1.i386.rpm">mkinitrd-5.1.15-1.i386.rpm</a> (required)</li>
<li><a href="/download/mkinitrd-devel-5.1.15-1.i386.rpm">mkinitrd-devel-5.1.15-1.i386.rpm</a></li>
<li><a href="/download/mkinitrd-5.1.15-1.src.rpm">mkinitrd-5.1.15-1.src.rpm</a> (source)</li>
</ul>
<p>Fedora Core 6: <strong>(This is currently BROKEN on Fedora Core 6. Do not proceed until an update has been posted and this notice removed.)</strong></p>
<ul>
<li><a href="/download/libbdevid-python-5.1.19-1.i386.rpm">libbdevid-python-5.1.19-1.i386.rpm</a> (required)</li>
<li><a href="/download/mkinitrd-5.1.19-1.i386.rpm">mkinitrd-5.1.19-1.i386.rpm</a> (required)</li>
<li><a href="/download/nash-5.1.19-1.i386.rpm">nash-5.1.19-1.i386.rpm</a> (required)</li>
<li><a href="/download/mkinitrd-devel-5.1.19-1.i386.rpm">mkinitrd-devel-5.1.19-1.i386.rpm</a></li>
<li><a href="/download/mkinitrd-5.1.19-1.src.rpm">mkinitrd-5.1.19-1.src.rpm</a> (source)</li>
</ul>
<p>Then install the packages. On Fedora Core 5, you may need to use the <code>--nodeps</code> option with these files as they were built against rawhide (but they work fine).</p>
<p>Fedora Core 5:</p>
<blockquote><p><samp>[root@fedora ~]#</samp> <code>rpm --nodeps --replacefiles --replacepkgs -Uvh mkinitrd-5.1.15-1.i386.rpm libbdevid-python-5.1.15-1.i386.rpm</code></p></blockquote>
<p>Fedora Core 6:</p>
<blockquote><p><samp>[root@fedora ~]#</samp> <code>rpm --replacefiles --replacepkgs -Uvh mkinitrd-5.1.19-1.i386.rpm libbdevid-python-5.1.19-1.i386.rpm nash-5.1.19-1.i386.rpm</code></p></blockquote>
<p>The next thing you&#8217;ll need to do is update everything. Among other things this will pull in the latest kernel, which you&#8217;ll need for encrypted filesystem support. The patched mkinitrd will, when the kernel update installs, create an initrd which understands encrypted root filesystems. The patched mkinitrd requires at least kernel version 2.6.17-2174. (2.6.18-2200 is current in FC5 at the time of this writing, and 2.6.18-2798 is current in FC6.)</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>yum upgrade</code></p></blockquote>
<p>Connect your second hard drive to the system, which we&#8217;ll use temporarily to encrypt all your files, and then boot from the Gentoo live CD or other live CD. Eventually you&#8217;ll get a root shell prompt. The first thing we&#8217;ll do is create mount points to mount our partitions:</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>mkdir -p /mnt/disk1 /mnt/disk2</code></p></blockquote>
<p>Next we need to load up the logical volumes:</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>vgchange -ay</code><br />
<samp>&nbsp;&nbsp;2 logical volume(s) in volume group &#8220;VolGroup00&#8243; now active</samp></p></blockquote>
<p>Next we&#8217;ll create the temporary partition on your second drive. It will be created at <code>/dev/mapper/temp</code>. We&#8217;ll also encrypt it using a throw-away key so that the data can&#8217;t easily be recovered later. (The <code>/tmp</code> directory is in RAM on the Gentoo live CD.)</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>dd bs=32 count=1 if=/dev/random of=/tmp/temp-key</code><br />
<samp>root@livecd ~ #</samp> <code>cat /tmp/temp-key | cryptsetup luksFormat /dev/sdb1</code><br />
<samp>root@livecd ~ #</samp> <code>cryptsetup -d /tmp/temp-key luksOpen /dev/sdb1 temp</code></p></blockquote>
<p>Now we&#8217;ll mount both the original partition and the temporary partition.</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>mount /dev/VolGroup00/LogVol00 /mnt/disk1</code><br />
<samp>root@livecd ~ #</samp> <code>mke2fs -j /dev/mapper/temp</code><br />
<samp>root@livecd ~ #</samp> <code>mount /dev/mapper/temp /mnt/disk2</code></p></blockquote>
<p>Then we&#8217;ll copy all the files over to the temporary partition, then unmount the original partition.</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>cp -ax /mnt/disk1/* /mnt/disk2</code><br />
<samp>root@livecd ~ #</samp> <code>umount /mnt/disk1</code></p></blockquote>
<p>The next step is to securely erase the original parititon which contained the unencrypted files. By default this command will write <a href="http://www.cs.auckland.ac.nz/~pgut001/pubs/secure_del.html">25 different known and random patterns</a> to the entire partition, which should leave the data formerly on it unrecoverable. Depending on the size of your drive, this may take several hours. You can add the <code>-v</code> option to see a progress report.</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>shred /dev/VolGroup00/LogVol00</code></p></blockquote>
<p>If you didn&#8217;t have any sensitive data on the disk, or you don&#8217;t care very much, then you can just write one pass of random data to the drive, which you&#8217;ll need to do anyway to help frustrate any future cryptanalysis. If you fail to do this, an attacker could be able to determine what data on your drive is encrypted, and what is garbage, and have an advantage in trying to recover your data.</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>shred -n 1 /dev/VolGroup00/LogVol00</code></p></blockquote>
<p>Finally, it&#8217;s time to set up the real encrypted filesystem and move your files back to your hard drive. First, you need to decide whether you want to use a passphrase to encrypt (an intermediate key which will then encrypt) your data, and boot directly from the hard drive, or whether you want to boot from a USB stick which contains your encryption key. I won&#8217;t be covering the USB stick method here, as right now it&#8217;s much more complex, the code isn&#8217;t well tested, and it&#8217;s <em>much</em> more inconvenient to use and maintain. As the code develops, I may post an update in the future.</p>
<p>Whether using a passphrase or a USB stick containing the key is the best method depends on your particular situation and the threats you are likely to face. For most people, the passphrase should be quite sufficient (provided it&#8217;s long enough). People who choose the USB stick method are those rare people who face torture or death if their data is compromised, and where simply losing the USB stick is sufficient to protect the data; since you don&#8217;t know the key, it can&#8217;t be rubber-hosed out of you. At the same time, though, you risk being captured with the USB stick still in your possession, which means all your efforts are for nothing. So there&#8217;s no one best solution for everyone.</p>
<p>The good news is you can start out with a passphrase now, and switch to a key on a USB stick later (when the code is better tested), without having to copy all your files around again.</p>
<p>So let&#8217;s encrypt your filesystem. Choose a long passphrase that&#8217;s easy for you to remember, but very difficult for anyone else to guess.</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>cryptsetup -y -d aes-cbc-essiv:sha256 luksFormat /dev/VolGroup00/LogVol00</code><br />
<samp>Enter LUKS passphrase: </samp><br />
<samp>Verify passphrase: </samp></p></blockquote>
<p>Now we&#8217;ll map the encrypted device at /dev/mapper/root, create the filesystem and then mount it.</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>cryptsetup luksOpen /dev/VolGroup00/LogVol00 root</code><br />
<samp>Enter LUKS passphrase: </samp><br />
<samp>Verify passphrase: </samp><br />
<samp>root@livecd ~ #</samp> <code>mke2fs -j /dev/mapper/root</code><br />
<samp>root@livecd ~ #</samp> <code>mount /dev/mapper/root /mnt/disk1</code></p></blockquote>
<p>Then we&#8217;ll copy all the files back from the temporary filesystem.</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>cp -ax /mnt/disk2/* /mnt/disk1</code></p></blockquote>
<p>One last thing. The Gentoo live CD doesn&#8217;t have support for SELinux, so if you use SELinux, (it&#8217;s enabled in the default Fedora Core installation) then everything on the new filesystem needs to be relabeled. So we&#8217;ll ask for that to happen on the next reboot.</p>
<blockquote><p><samp>root@livecd ~ #</samp> <code>touch /mnt/disk1/.autorelabel</code></p></blockquote>
<p>That just about covers it. Reboot the system, take out the live CD, and boot into your freshly encrypted new Fedora Core system! You&#8217;ll almost immediately be prompted to enter your passphrase. You have to get it right the first time; if you don&#8217;t, then you must hard reset the machine before trying again.</p>
<p>You can now erase the temporary hard drive you used for transferring your files around, if you like. The encryption key for it was random data which resided only in memory, and by this point will be long gone. Just to be safe, you can overwrite the disk partition you used again with some random data:</p>
<blockquote><p><samp>[root@fedora ~]# </samp><code>shred -n 1 /dev/sdb1</code></p></blockquote>
<p>That should cover it. This thing has gotten just about as long as I&#8217;m comfortable making a post, so for the USB stick instructions, you&#8217;ll have to wait for part 3 (you can read the <a href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=124789">bugzilla</a> for hints, but the instructions there are for PowerPC platforms). I also plan a quick tutorial on encrypting non-root partitions, in case you&#8217;re one who made your disks into multiple partitions and put different parts of your system on each partition. So I&#8217;ll wrap both of those into the update in probably a week or two.</p>
<p>If you find anything confusing, or catch any technical errors, please let me know and I&#8217;ll get them cleared up or corrected as soon as possible. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.ioerror.us/2006/09/encrypting-your-root-partition-on-fedora-core-5/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Encrypting your swap partition on Fedora Core</title>
		<link>http://linux.ioerror.us/2006/09/encrypting-your-swap-partition-on-fedora-core/</link>
		<comments>http://linux.ioerror.us/2006/09/encrypting-your-swap-partition-on-fedora-core/#comments</comments>
		<pubDate>Thu, 14 Sep 2006 21:24:26 +0000</pubDate>
		<dc:creator>Michael Hampton</dc:creator>
				<category><![CDATA[Fedora Core]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://linux.ioerror.us/2006/09/encrypting-your-swap-partition-on-fedora-core/</guid>
		<description><![CDATA[For a variety of reasons I use Fedora Core 5 as my primary operating system, both at home and on my laptop. And for security reasons, I need to have my filesystem encrypted, so that in the event that my laptop is lost or stolen, my confidential data does not fall into the wrong hands.
Unfortunately, [...]]]></description>
			<content:encoded><![CDATA[<p>For a <a href="http://www.newsforge.com/article.pl?sid=06/05/15/2059205">variety of reasons</a> I use Fedora Core 5 as my primary operating system, both at home and on my laptop. And for security reasons, I need to have my filesystem encrypted, so that in the event that my laptop is lost or stolen, my confidential data does not fall into the wrong hands.</p>
<p>Unfortunately, while Fedora Core 5 does support an encrypted swap partition, it doesn&#8217;t yet support encrypted root filesystems. (It&#8217;s looking like the support won&#8217;t make it into Fedora Core 6 either, due to release timing.) However, that doesn&#8217;t mean it&#8217;s impossible. In fact, I&#8217;ve done it. This is the first of a two-part series on encrypting your Fedora Core system.</p>
<p><span id="more-9"></span>(Read Part 2: <a href="http://linux.ioerror.us/2006/09/encrypting-your-root-partition-on-fedora-core-5/">Encrypting your root partition on Fedora Core 5</a>)</p>
<p>In this part I&#8217;ll explain how to encrypt your swap space (it&#8217;s easy) and in the next part I&#8217;ll explain how to encrypt your root filesystem and everything else on your Fedora Core system (it&#8217;s a little harder, but not much).</p>
<p>Encrypting your swap space is vital even if you don&#8217;t encrypt your entire system, because applications which run on your computer sometimes get swapped out to disk, and with them, sensitive personal information such as passwords could be written into your swap space. And while you don&#8217;t have to encrypt your root filesystem in order to encrypt your swap space, it&#8217;s listed last because you do have to have a completed installation before encrypting your swap space.</p>
<p>To encrypt your swap space, first shut down any unnecessary applications to free up memory. You&#8217;ll have to temporarily turn off swap to complete the process, and if you don&#8217;t have very much memory in your computer, you may not be able to turn off swap if too many things are running. (In worst case, you can boot the system to single user mode using <code>/sbin/telinit s</code> which will shut down virtually everything except a single root shell.)</p>
<p>To begin, open a root shell by clicking Applications &gt; Accessories &gt; Terminal, and typing <code>su -</code> at the shell prompt. (If you booted your system to single-user mode, you can skip this, because you&#8217;re already at a root shell.)</p>
<blockquote><p><samp>[user@fedora ~]$ </samp><code>su -</code><br />
<samp>Password: </samp><br />
<samp>[root@fedora ~]# </samp></p></blockquote>
<p>Next, turn off the swap space.</p>
<blockquote><p><samp>[root@fedora ~]# </samp><code>swapoff -a</code></p></blockquote>
<p>Now, just in case anything sensitive was written to your swap space, we&#8217;ll overwrite the entire swap partition with random data using the <code>shred</code> command. This will help prevent recovery of anything that was written in that space before. Even if you&#8217;ve just freshly installed your system onto a brand new hard drive and nothing was in that space before, you should do this, because the random data will help obscure the fact that there is encrypted data in the partition. Expect this process to take about 30 minutes to an hour on newer hard drives.</p>
<p>If you installed your system without changing the default partitioning scheme, then your swap partition is located at <code>/dev/VolGroup00/LogVol01</code>. If you changed this during your installation, then you&#8217;ll need to substitute your actual swap partition below. If you aren&#8217;t sure, then you&#8217;ll find the partition listed in your <code>/etc/fstab</code> file; look in there to confirm where it&#8217;s located.</p>
<blockquote><p><samp>[root@fedora ~]# </samp><code>shred -v /dev/VolGroup00/LogVol01</code></p></blockquote>
<p>Next, we&#8217;ll create a file to tell Fedora Core that the swap partition should be encrypted. Use your favorite text editor to create a new file named <code>/etc/crypttab</code> and enter the following data into it, separated by tabs:</p>
<blockquote><p><code>swap&nbsp;&nbsp;&nbsp;&nbsp;/dev/VolGroup00/LogVol01&nbsp;&nbsp;&nbsp;&nbsp;/dev/random&nbsp;&nbsp;&nbsp;&nbsp;swap,cipher=aes-cbc-essiv:sha256</code></p></blockquote>
<p>This will cause a new device <code>/dev/mapper/swap</code> to be created at next boot which uses the default AES encryption and highly random data for the encryption key. Each time you reboot, the swap space will be re-created using a different random key.</p>
<p>Finally, you need to modify <code>/etc/fstab</code> to point to the new encrypted swap device. Open the file in your favorite text editor, and you&#8217;ll find a line such as this:</p>
<blockquote><p><code>/dev/VolGroup00/LogVol01&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;defaults&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;0</code></p></blockquote>
<p>Change it to this:</p>
<blockquote><p><code>/dev/mapper/swap&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;defaults&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;0</code></p></blockquote>
<p>Finally, reboot your system (if in single-user mode, use the <code>reboot -n</code> command). You&#8217;ll then be using encrypted swap space! But if you don&#8217;t want to reboot, create the encrypted swap partition for the first time manually using the following commands:</p>
<blockquote><p><samp>[root@fedora ~]# </samp><code>cryptsetup -d /dev/random create swap /dev/VolGroup00/LogVol01</code><br />
<samp>[root@fedora ~]# </samp><code>mkswap /dev/mapper/swap</code><br />
<samp>Setting up swapspace version 1, size = 2147479 kB</samp><br />
<samp>[root@fedora ~]# </samp><code>swapon -a</code></p></blockquote>
<p>Don&#8217;t add those commands to any startup files, because they&#8217;ll be done for you automatically when your system boots.</p>
<p>I have tested and verified that this works on Fedora Core 5. It should also work on Fedora Core 4 and Fedora Core 3, after you download the available kernel updates for them, if what I read on the Internet is accurate. But what I read also hints that it may not be cryptographically secure on Fedora Core 2 because the startup scripts don&#8217;t initialize the random number generator before enabling swap. If you want to be sure, check the <code>/etc/rc.d/rc.sysinit</code> file, and make sure it seeds the random number generator before activating swap. (It does in recent releases.)</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.ioerror.us/2006/09/encrypting-your-swap-partition-on-fedora-core/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Where should you install GRUB?</title>
		<link>http://linux.ioerror.us/2006/01/where-should-you-install-grub/</link>
		<comments>http://linux.ioerror.us/2006/01/where-should-you-install-grub/#comments</comments>
		<pubDate>Mon, 30 Jan 2006 13:13:16 +0000</pubDate>
		<dc:creator>Michael Hampton</dc:creator>
				<category><![CDATA[Distributions]]></category>
		<category><![CDATA[GRUB]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://linux.ioerror.us/2006/01/where-should-you-install-grub/</guid>
		<description><![CDATA[When you are installing Linux, regardless of which distribution you choose, one question is always the same. How do you boot your system?]]></description>
			<content:encoded><![CDATA[<p>When you are installing Linux, regardless of which distribution you choose, one question is always the same. How do you boot your system?<br />
<span id="more-8"></span><br />
You&#8217;ll invariably be presented with two options for installing GRUB, the Grand Unified Bootloader. This is the tiny piece of software responsible for starting up your computer and getting Linux &#8212; or Windows, if you dual-boot &#8212; loaded into memory. Because the PC architecture has undergone dramatic changes in the last 25 years, the boot process has become more complicated, and requires a small piece of software to handle getting your chosen operating system loaded into memory.</p>
<p>With Windows XP, this piece of software is called NTLDR. On Linux, it&#8217;s called GRUB. (There was also another bootloader called LILO, but it&#8217;s been obsolete for years and is not recommended for new installations, even if your distribution gives you the option.) Both of them do the same thing: they get the operating system loaded into memory, and optionally, present you a menu with different choices on how you would like to boot your system.</p>
<p>As I mentioned, there are two options for installing GRUB. First, you can install it to the Master Boot Record of your first hard drive. Second, you can install it to the boot sector of the active (bootable) hard drive partition. Which one is the right one? It depends.</p>
<p>If you intend to dual-boot Windows, then you should avoid installing GRUB to the MBR. The reason for this is that Windows occasionally overwrites the MBR, for instance, when you reinstall it, and that could be quite often. When that happens, your Linux system will seem to disappear as your system starts booting directly into Windows, bypassing the boot menu altogether. To avoid this, install GRUB to the boot sector of the active partition instead.</p>
<p>There&#8217;s an exception to that rule: If you are installing Linux to a secondary hard drive, and no part of it will be on your main hard drive, then you must install GRUB to the MBR, and take your chances with Windows overwriting the MBR with its own at some future date. If this happens, you&#8217;ll have to use a Linux rescue CD to get GRUB reinstalled. (I&#8217;ll cover this procedure in the future.)</p>
<p>If, however, Linux will be the only operating system on your computer, it&#8217;s perfectly safe to &#8212; and you must &#8212; install GRUB to the MBR.</p>
<p>Some special circumstance notes: If you run OS/2, you MUST NOT install GRUB to the MBR under any circumstances, or you won&#8217;t be able to boot OS/2! You will have to install it to the boot sector of the Linux /boot partition on your primary (first) hard drive. If you don&#8217;t have any free unpartitioned space on your first hard drive, you will have to use a resizing tool such as Partition Magic to create some space and have your Linux installation create the Linux /boot partition in that space. The space must be within the first 1024 cylinders of the hard drive. And it will have to be a primary partition as well, not a logical partition. Many computers can&#8217;t boot from logical partitions, only primary ones. The root (/) partition can be elsewhere, even on a secondary hard drive. You&#8217;ll then need to add the /boot partition to OS/2&#8217;s Boot Manager menu once you&#8217;ve completed the Linux installation.</p>
<p>If you have multiple Windows versions on your computer, and use a Windows boot menu to access them, you can add Linux to the Windows boot menu, but the process for this is somewhat complex, and I don&#8217;t intend to cover it here. Install GRUB to the boot sector instead, creating a /boot partition on the primary hard drive if necessary (see the OS/2 note above).</p>
<p>As you&#8217;ve probably gathered, the simple everyday act of booting up your PC is much more complex than you thought it was. This has a lot to do with the way your computer&#8217;s BIOS accesses internal hard drives. The BIOS is the very first bit of software which starts when you turn on your computer, and it&#8217;s located on a physical ROM chip inside the machine.</p>
<p>Twenty years ago, hard drives of 5 to 20 MB were common, and many PCs even shipped without a hard drive! Even as late as ten years ago, most computer BIOS software could not access more than the first 528 MB of a hard drive, creating booting problems. Eventually a solution called LBA (logical block addressing) raised this limit, first to 8 GB, and in more recent computers, to 137 GB. This is the range that the so-called first 1024 cylinders can access through the BIOS, before your operating system loads (using GRUB, NTLDR, or what have you). As hard drives exceed 137 GB now, and computers with 1TB of hard drive space are just now becoming available to consumers, the 20 year old BIOS design will again make trouble for the seemingly simple task of starting your computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.ioerror.us/2006/01/where-should-you-install-grub/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Macromedia Flash Player for Linux</title>
		<link>http://linux.ioerror.us/2006/01/macromedia-flash-player-for-linux/</link>
		<comments>http://linux.ioerror.us/2006/01/macromedia-flash-player-for-linux/#comments</comments>
		<pubDate>Sat, 07 Jan 2006 03:48:47 +0000</pubDate>
		<dc:creator>Michael Hampton</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://linux.ioerror.us/2006/01/macromedia-flash-player-for-linux/</guid>
		<description><![CDATA[One of the first things you may notice, the first time you use Linux and start up Firefox to get on the Web, is that you aren't seeing Flash animations. Flash is a technology by Macromedia that's used to distribute many different types of multimedia. Usually they are cartoons such as Homestar Runner or Invasion of the Gabber Robots, though Flash is used to distribute other kinds of multimedia presentations, as well. For instance, CBS News uses Macromedia Flash to show video news clips on its own and its affiliate stations' Web sites. If you're new to Linux and you're missing those nice Flash movies, this is what you do.]]></description>
			<content:encoded><![CDATA[<p>One of the first things you may notice, the first time you use Linux and start up Firefox to get on the Web, is that you aren&#8217;t seeing Flash animations. Flash is a technology by Macromedia that&#8217;s used to distribute many different types of multimedia. Usually they are cartoons such as Homestar Runner or Invasion of the Gabber Robots, though Flash is used to distribute other kinds of multimedia presentations, as well. For instance, CBS News uses Macromedia Flash to show video news clips on its own and its affiliate stations&#8217; Web sites. If you&#8217;re new to Linux and you&#8217;re missing those nice Flash movies, this is what you do.<br />
<span id="more-7"></span><br />
How you install Macromedia Flash Player depends on which distribution of Linux you&#8217;re using, though in all cases it will be similar to installing any other software for that same platform. Just find your distribution and follow the simple instructions.</p>
<dl>
<dt>Debian</dt>
<dd>Install the <code>flashplugin-nonfree</code> from the contrib unstable repository.</dd>
<dt>Fedora/Red Hat Enterprise/CentOS</dt>
<dd>The Mid-Pacific Linux User&#8217;s Group distributes <a href="http://macromedia.mplug.org/">RPMs for Flash Player 7</a> which you can download and install.</dd>
<dt>Gentoo</dt>
<dd>Run this command as root: <code>emerge netscape-flash</code></dd>
<dt>Ubuntu</dt>
<dd>Install the <code>flashplayer-mozilla</code> package. Run the following command: <code>sudo apt-get install flashplayer-mozilla</code></dd>
</dl>
<p>Did I forget your Linux distribution? Still can&#8217;t install it? Drop a note below.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.ioerror.us/2006/01/macromedia-flash-player-for-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Firefox users can&#8217;t access Internet Explorer only web sites?</title>
		<link>http://linux.ioerror.us/2006/01/firefox-users-cant-access-internet-explorer-only-web-sites/</link>
		<comments>http://linux.ioerror.us/2006/01/firefox-users-cant-access-internet-explorer-only-web-sites/#comments</comments>
		<pubDate>Mon, 02 Jan 2006 23:47:07 +0000</pubDate>
		<dc:creator>Michael Hampton</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://linux.ioerror.us/2006/01/firefox-users-cant-access-internet-explorer-only-web-sites/</guid>
		<description><![CDATA[As a new Linux user, one of the first things you're likely to discover during your daily Web browsing is a small number of sites which refuse to let you in because you aren't using Internet Explorer. Today I'm going to show you how you can deal with sites such as this.]]></description>
			<content:encoded><![CDATA[<p>As a new Linux user, one of the first things you&#8217;re likely to discover during your daily Web browsing is a small number of sites which refuse to let you in because you aren&#8217;t using Internet Explorer. Today I&#8217;m going to show you how you can deal with sites such as this.<br />
<span id="more-6"></span><br />
Most Linux users use the excellent Firefox web browser for their daily Web browsing, and this is what I&#8217;ll be covering here. Firefox, unlike Internet Explorer, is a standards-compliant browser, and one of the amazing things about Firefox is that it&#8217;s extensible. You can download and install extensions which add features to Firefox &#8212; only the features you want and need.</p>
<p>But some poorly trained Web developers intentionally block out people who don&#8217;t use Internet Explorer, even when their sites work perfectly well with Firefox. Gap.com is one such site, and I&#8217;m sure there are many others.</p>
<p>A Firefox extension is available for you which lets you get in to sites like this. Named <a href="https://addons.mozilla.org/extensions/moreinfo.php?id=59&#038;application=firefox">User Agent Switcher</a>, its purpose is to cause Firefox to identify itself as Internet Explorer (or almost anything else) when you visit one of these Web sites.</p>
<p>After you install it and restart Firefox, you&#8217;ll have a new item on your Tools menu, called User Agent Switcher. Whenever you want to visit a site that blocks out Firefox users, go to <strong>Tools &raquo; User Agent Switcher</strong> and then select <strong>Internet Explorer 6 (Windows XP)</strong> from the menu. Then reload the page you were going to, and you&#8217;ll get in.</p>
<p>Once you&#8217;re done with the site, though, you should turn User Agent Switcher off, by going back to <strong>Tools &raquo; User Agent Switcher</strong> and then select <strong>Default</strong>. This way, other sites know you&#8217;re using Firefox, and the web developers of those sites know not to design sites that block you out if you aren&#8217;t using Internet Explorer.</p>
<p>If you want, you can also add a User Agent Switcher icon to your toolbar, by choosing <strong>View &raquo; Toolbars &raquo; Customize</strong> and then dragging the User Agent Switcher icon (it looks like a gray Earth) to wherever you want it. I personally have placed it between the Go button and the search box. Whenever you are faking out your user agent, the earth will be in color; otherwise it will be gray.</p>
<p>Finally, if you run across a site that blocks out non-Internet Explorer users, you should complain loudly to them about being locked out, and also consider doing your shopping elsewhere if they continue to lock you out. Remember that companies pay attention to their bottom line, and the idea of losing even a few percent of their revenues could be enough to get them to begin paying attention to Web standards.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.ioerror.us/2006/01/firefox-users-cant-access-internet-explorer-only-web-sites/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Which Linux?</title>
		<link>http://linux.ioerror.us/2005/12/which-linux/</link>
		<comments>http://linux.ioerror.us/2005/12/which-linux/#comments</comments>
		<pubDate>Sat, 31 Dec 2005 01:01:40 +0000</pubDate>
		<dc:creator>Michael Hampton</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Distributions]]></category>
		<category><![CDATA[Fedora Core]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Knoppix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://linux.ioerror.us/2005/12/which-linux/</guid>
		<description><![CDATA[If you're considering making the switch to Linux, you almost certainly will have discovered that there are hundreds of Linux distributions, all of which are different from each other in subtle ways.

So how do you figure out which one to use?]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re considering making the switch to Linux, you almost certainly will have discovered that there are hundreds of Linux distributions, all of which are different from each other in subtle ways.</p>
<p>So how do you figure out which one to use?<br />
<span id="more-5"></span><br />
Perhaps the best place to start is with yourself. Make an honest assessment of exactly how comfortable you are with computers in general, and how much effort you want to put into learning new things, as Linux is full of them. Many of the ways of Windows that you are accustomed to simply don&#8217;t apply in the Linux world, and some argue that that&#8217;s because Windows has them wrong. Whether that&#8217;s true remains to be seen, but the fact is that even trying out Linux is going to expose you to a completely new way of doing things.</p>
<p>With that in mind, I&#8217;ll make the following suggestions and comments.</p>
<p>Regardless of your experience or comfort level with computers, Ubuntu is a great first choice. You can try it out directly from CD without having to install anything on your computer. If you decide Ubuntu is for you, then you can install it later. Knoppix also lets you run Linux from a CD without installing anything, but the installation process is a little more complicated, if you do choose to install it.</p>
<p>If you&#8217;re fairly comfortable with computers, and you foresee using Linux for business or to &#8220;get things done,&#8221; then check out Fedora Core and CentOS. While these don&#8217;t offer a live CD option, they do closely track Red Hat&#8217;s enterprise offerings, which are what you would most likely see in a business setting. CentOS is a free version of Red Hat Enterprise Linux and is considered a stable platform, while Fedora Core is the community-driven version on which it is based, and usually has more up-to-date software.</p>
<p>You should probably not try Debian, Slackware or Gentoo as your first Linux distribution if you have never used Linux before or are not extremely comfortable with digging yourself out of large holes. As you gain more experience with Linux, though, you may want to investigate these options.</p>
<p>In addition, as I said, there are hundreds of Linux distributions out there, most of which are highly specialized for particular circumstances. This means there&#8217;s a Linux for virtually every scenario. <a href="http://distrowatch.com/">Distro Watch</a> is updated daily with the release announcements for most known Linux distributions and is the best place to start if you are looking for a specialized Linux distribution.</p>
<p>If you&#8217;re already using Linux, which distribution did you try first? What did you like about it? What really annoyed you? Did you switch to another distribution later, and did it work out any better?</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.ioerror.us/2005/12/which-linux/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Yet another reason Internet Explorer sucks</title>
		<link>http://linux.ioerror.us/2005/12/yet-another-reason-internet-explorer-sucks/</link>
		<comments>http://linux.ioerror.us/2005/12/yet-another-reason-internet-explorer-sucks/#comments</comments>
		<pubDate>Tue, 27 Dec 2005 08:01:07 +0000</pubDate>
		<dc:creator>Michael Hampton</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://linux.ioerror.us/2005/12/yet-another-reason-internet-explorer-sucks/</guid>
		<description><![CDATA[A study of 2004 browser security data shows that Internet Explorer is the least secure of the three major browser platforms: IE, Mozilla and Opera.]]></description>
			<content:encoded><![CDATA[<p>A study of 2004 browser security data shows that Internet Explorer is the least secure of the three major browser platforms: IE, Mozilla and Opera.</p>
<p>To conduct the study, the Browser Security Test people simply looked at how many days of 2004 each major browser had an unpatched remote code execution bug, that is, a problem which would let an attacker do whatever he wanted with your computer.<br />
<span id="more-4"></span><br />
Internet Explorer had such a bug for all but seven days of 2004.</p>
<blockquote><p>Actually there was only one period in 2004 when there were no publicly known remote code execution bugs &#8211; between the 12th and the 19th of October &#8211; 7 days in total. That means that a fully patched Internet Explorer installation was known to be unsafe for 98% of 2004. And for 200 days (that is 54% of the time) in 2004 there was a worm or virus in the wild exploiting one of those unpatched vulnerabilities. . . .</p>
<p>Mozilla and the family (including Firefox, Netscape Navigator and Camino browsers) display a much shorter window of opportunity for a prospective attacker. There were 56 days (15%) in 2004 when there was a publicly known remote code execution in Mozilla and no patched release. . . .</p>
<p>In 2004 Mozilla was not targeted by malware writers . . .</p>
<p>In total, in 2004 Opera had publicly known unpatched remote code execution vulnerabilities for 65 days (17%) &#8211; the two &#8220;unpatched periods&#8221; happened to intersect. There was no malware exploiting Opera bugs in the wild. &#8212; <a href="http://bcheck.scanit.be/bcheck/page.php?name=STATS2004">Browser Security Test</a></p></blockquote>
<p>If you&#8217;re still using Windows, you need to stop using Internet Explorer immediately &#8212; well, after you&#8217;ve installed an alternative such as Firefox or Opera &#8212; and then disable access to it. Otherwise you&#8217;re just contributing to the security problem.</p>
<p>(Props to <a href="http://www.schneier.com/blog/archives/2005/12/internet_explor.html">Schneier on Security</a>.)</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.ioerror.us/2005/12/yet-another-reason-internet-explorer-sucks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
