<?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>Roo&#039;s View &#187; Computing</title>
	<atom:link href="http://lowtek.ca/roo/category/computing/feed/" rel="self" type="application/rss+xml" />
	<link>http://lowtek.ca/roo</link>
	<description>A clever tagline should go here</description>
	<lastBuildDate>Thu, 02 Feb 2012 02:33:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>8GB Memory Upgrade / PAE Mode</title>
		<link>http://lowtek.ca/roo/2012/8gb-memory-upgrade-pae-mode/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=8gb-memory-upgrade-pae-mode</link>
		<comments>http://lowtek.ca/roo/2012/8gb-memory-upgrade-pae-mode/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 02:33:29 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://lowtek.ca/roo/?p=1070</guid>
		<description><![CDATA[I&#8217;ve been doing more video processing lately, some of it HDTV quality, this was really demonstrating that 2GB was not nearly enough RAM for my system. Memory prices have dropped a lot since I did my frugal upgrade, at the time (early 2010) I spent $54 on a single 2GB stick. The other day I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lowtek.ca/roo/wp-content/uploads/2012/01/IMG_2591.jpg"><img class="aligncenter size-full wp-image-1072" title="IMG_2591" src="http://lowtek.ca/roo/wp-content/uploads/2012/01/IMG_2591.jpg" alt="" width="500" height="197" /></a></p>
<p>I&#8217;ve been doing more video processing lately, some of it HDTV quality, this was really demonstrating that 2GB was not nearly enough RAM for my system. Memory prices have dropped a lot since I did my <a href="http://lowtek.ca/roo/2010/core-i3-frugal-upgrade/">frugal upgrade</a>, at the time (early 2010) I spent $54 on a single 2GB stick. The other day I picked up 2x4GB for a mere <a href="http://canadacomputers.com/product_info.php?cPath=24_311_312_611&amp;item_id=042395">$35 from CanadaComputers</a>. Sure we&#8217;re now 2 years later, but to get four times the RAM for less?</p>
<p>In general I&#8217;ve had good luck with Patriot products<a href="http://lowtek.ca/roo/wp-content/uploads/2012/01/IMG_2584.jpg"><img class="alignright size-full wp-image-1071" title="IMG_2584" src="http://lowtek.ca/roo/wp-content/uploads/2012/01/IMG_2584.jpg" alt="" width="239" height="300" /></a>, and looking at their <a href="http://patriotmemory.com/support/producttermsp.jsp?nav=terms">warranty</a> it looks like the have the standard limited lifetime warranty you&#8217;d expect.</p>
<p>My <a href="http://www.gigabyte.com/products/product-page.aspx?pid=3444#ov">motherboard</a> has 4 slots for RAM, so I could have left the 2GB stick in and added the two additional &#8211; but I decided against mixing things up. I figured 8GB was plenty for now, I can easily change my mind later. Installation was a snap, literally under 10mins including juggling all those cables.</p>
<p>Amazingly I got it right the first time, the BIOS showed me 8GB. Now as I&#8217;m running a 32bit version of Linux, I wasn&#8217;t surprised that the operating system couldn&#8217;t see all of my new RAM.</p>
<p><code>$ cat /proc/meminfo<br />
MemTotal: 3482728 kB</code></p>
<p>So Linux can only see 3.3GB, I suspect why the value isn&#8217;t 4GB is due to the onboard video stealing some away from the OS.</p>
<p>The obvious upgrade path is to install the 64bit version of Ubuntu. It seems the <a href="http://askubuntu.com/questions/5018/is-it-possible-to-upgrade-from-a-32bit-to-a-64bit-installation">smart path forward</a> is to wipe and start again, however given that I&#8217;ve got a 1TB drive and it&#8217;s 60% full that&#8217;s going to be a long copy / install process. I mentioned this to a friend at work and he suggested that instead I use the PAE kernel, I&#8217;m glad he suggested it.</p>
<p><a href="http://en.wikipedia.org/wiki/Physical_Address_Extension">Physical Address Extension</a> (PAE) is very <a href="https://help.ubuntu.com/community/EnablingPAE">easy to add to an existing 32bit Ubuntu installation</a>. Assuming you&#8217;ve got a CPU that supports the feature (and with any current hardware you will), it&#8217;s a simple one line install.</p>
<p><code>$ sudo aptitude install linux-generic-pae linux-headers-generic-pae</code></p>
<p>After the install, a quick reboot and we&#8217;re running the new kernel. If you&#8217;re doing a clean install, recent versions of Ubuntu automatically add the PAE kernel if you&#8217;ve got enough RAM.</p>
<p>Now we can see all of the RAM</p>
<p><code>$ cat /proc/meminfo<br />
MemTotal: 8072420 kB<br />
</code><br />
This works out to 7.7GB, again some I believe is donated to the onboard video.</p>
<p>Why might you want to use PAE instead of running a 64bit version? If you elect to use 64bit mode, then all of your memory pointers need to be 64bits wide (aka double the 32bit size). This can cause some serious memory bloat depending on the type of application.</p>
<p>It should be no great surprise, but there is some work involved in getting applications to work in 64bit environments. For some applications, recompiling is all that is needed &#8211; however many have hidden dependencies on certain data structures being 32bit in size. It is for this reason that lots of software is still stuck back in 32bit &#8211; the mitigation is to run <a href="https://help.ubuntu.com/community/32bit_and_64bit#How_to_Make_32-bit_Applications_Work_on_a_64-bit_Operating_System">32bit compatibility libraries</a>.</p>
<p>With PAE, while the kernel can see all of the memory (up to 64GB) &#8211; each process is still limited to 32bit addressing (4GB max). You also miss out on some of the 64bit extensions to the instruction set, so you are leaving a little bit of performance on the table.</p>
<p>When I get around to doing a full wipe and re-install, I&#8217;ll likely move to a 64bit version of Ubuntu as it seems to be the recommended approach. I&#8217;m certainly glad I can put that off for a while longer and use PAE to get access to the increased memory with almost no effort.</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2012/8gb-memory-upgrade-pae-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Apache2 &#8220;trusted&#8221; SSL Certificate from StartSSL</title>
		<link>http://lowtek.ca/roo/2012/ubuntu-apache2-trusted-ssl-certificate-from-startssl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-apache2-trusted-ssl-certificate-from-startssl</link>
		<comments>http://lowtek.ca/roo/2012/ubuntu-apache2-trusted-ssl-certificate-from-startssl/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 04:09:19 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lowtek.ca/roo/?p=1049</guid>
		<description><![CDATA[I own the domain lowtek.ca and host a couple of personal projects as well as this blog on it. One of the areas is behind a password and that part of the site I redirect over to https to ensure that the communication is encrypted. While the whole Certificate Authority infrastructure has currently become questioned, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lowtek.ca/roo/wp-content/uploads/2012/01/https_lowtek.png"><img class="aligncenter size-full wp-image-1050" title="https_lowtek" src="http://lowtek.ca/roo/wp-content/uploads/2012/01/https_lowtek.png" alt="" width="500" height="81" /></a></p>
<p>I own the domain <a href="https://lowtek.ca">lowtek.ca</a> and host a couple of personal projects as well as this blog on it. One of the areas is behind a password and that part of the site I redirect over to <a href="http://en.wikipedia.org/wiki/Https">https</a> to ensure that the communication is encrypted. While the whole Certificate Authority infrastructure has currently become questioned, the value of having a <a href="http://en.wikipedia.org/wiki/Secure_Sockets_Layer">SSL</a> connection between your browser and (hopefully) a specific destination machine still has value. I found a humorous <a href="http://www.youtube.com/watch?v=SJJmoDZ3il8">youtube video</a> that describes SSL basics if this is new to you.</p>
<p>If you were watching the tech news, you&#8217;ll have seen several of the CA&#8217;s had <a href="http://tech.slashdot.org/story/11/10/28/1954201/four-cas-have-been-compromised-since-june">security breaches</a>. Even <a href="http://en.wikipedia.org/wiki/StartCom">StartSSL</a> which this post will talk about using had <a href="http://www.eweek.com/c/a/Security/Another-Certificate-Authority-Compromised-No-Fake-SSL-Certificates-Issued-107625/">some</a> <a href="http://www.theregister.co.uk/2011/06/21/startssl_security_breach/">issues</a>, but it seems that <a href="https://github.com/diaspora/diaspora/issues/2099">it wasn&#8217;t as bad</a> as the others. There has even been some <a href="http://www.phreedom.org/research/rogue-ca/">research into how to attack / break SSL</a> entirely. The web is a scary place if you think too much about this stuff. Today SSL is the most convenient web security story there is, and for the most part it works well enough.</p>
<p>For most people hosting personal websites the simple path is to use a<a href="http://en.wikipedia.org/wiki/Self-signed_certificate"> self signed certificate</a>.  The one downside to this is that whatever browser you are using will not recognize the certificate as valid, you&#8217;ll either be prompted to download and remember it &#8211; or just trust it for this one session. The manner in which browsers trust commercial web sites https connections is the certificates are issued by one of the root CA&#8217;s (<a href="http://en.wikipedia.org/wiki/Certificate_authority">Certificate Authority</a>). The CA is a trusted 3rd party which the browser can check with to validate the certificate the website is offering up.</p>
<p>Ubuntu has some guides on <a href="https://help.ubuntu.com/11.10/serverguide/C/certificates-and-security.html">creating certificates</a>. What I&#8217;ll try to do here is provide a specific example of using StartSSL to generate a free certificate that is accepted by most web browsers. <a href="http://jasoncodes.com/posts/startssl-free-ssl">Much of the details come from another blog</a> that I referenced when creating my <a href="http://en.wikipedia.org/wiki/StartCom">StartSSL</a> certificate.</p>
<p>You&#8217;ll probably want to use <a href="http://en.wikipedia.org/wiki/Firefox">FireFox</a>. The web interface at <a href="http://www.startssl.com/">StartSSL.com</a> can be a bit finicky and FireFox is known to work &#8211; I used the somewhat old 3.6.25 version. Of course the first step is to sign-up and create an account on StartSSL. They use email confirmation and my <a href="http://lowtek.ca/roo/2011/greylisting-with-postfix-and-ubuntu/">greylisting</a> caused a bit of a hiccup here, waiting a few minutes and resubmitting the sign-up succeeded just fine. Then there will be a wizard that takes you through the rest of the sign-up process.</p>
<p>At the end of your account sign up you&#8217;ll be encouraged to back up the client certificate that has been installed into your browser. As I understand it, they use the client certificate as a form of authentication that it is really you they are connected to. The FAQ has details on <a href="https://www.startssl.com/?app=25#4">backing up the client certificate</a>. If for some reason you lose your client certificate they have a <a href="https://www.startssl.com/?app=25#14">FAQ for that too</a>.</p>
<p>Next we want to return to the &#8220;<a href="https://www.startssl.com/?app=11&amp;action=true">Control Panel</a>&#8221; and use the &#8220;Validations Wizard&#8221; to do the &#8220;Domain Name Validation&#8221;. This will require another email validation to ensure that you are the owner of the domain (you&#8217;ll need to be able to receive email for that domain).</p>
<p>Now we can actually create a certificate. There are pay options for certificates, but we want to use the free version. Use the &#8220;Certificates Wizard&#8221; to create a &#8220;Web Server SSL/TLS Certificate&#8221;. Again I&#8217;ll reference the <a href="http://jasoncodes.com/posts/startssl-free-ssl">very useful blog post from jasoncodes.com</a> that describes this set of steps (I will replicate here for completeness).</p>
<p>The first step of creating a certificate we can skip, as we plan to create our own Certificate Signing Request (<a href="http://en.wikipedia.org/wiki/Certificate_signing_request">CSR</a>) locally. Execute the follwoing on your server, obviously replacing mydomain.ca with your domain name:</p>
<p><code>openssl req -new -newkey rsa:4096 -days 380 -nodes -keyout mydomain.ca.key -out mydomain.ca.csr<br />
</code><br />
There will be several questions posed to you during this, here is a dump of the questions and some example answers:</p>
<p><code>Country Name (2 letter code) [AU]:CA<br />
State or Province Name (full name) [Some-State]:YourStateOrProvince<br />
Locality Name (eg, city) []:YourCity<br />
Organization Name (eg, company) [Internet Widgits Pty Ltd]:SomeName<br />
Organizational Unit Name (eg, section) []:<br />
Common Name (eg, YOUR name) []:mydomain.ca<br />
Email Address []:secret_email@mydomain.ca</code></p>
<p><code>Please enter the following 'extra' attributes<br />
to be sent with your certificate request<br />
A challenge password []:<br />
An optional company name []:</code></p>
<p>Some of the answers can be blank as should be evident above. If you&#8217;re having trouble with the 2 letter country codes, <a href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">check on wikipedia</a>. I did find a reference that suggested that the c<a href="http://www-uxsup.csx.cam.ac.uk/~jw35/courses/using_https/html/x280.htm">ommon name must exactly match the host name of your server</a>, you might note that I&#8217;m not using a www prefix here. This will allow me to re-use this same certificate for email and other things in theory, it also follows the <a href="http://lowtek.ca/roo/2011/no-www/">no-www</a> approach. I opted to <a href="http://www.mail-archive.com/openssl-users@openssl.org/msg35862.html">leave the challenge password blank</a>.</p>
<p>The second step of the wizard on StartSSL for creating a certificate will ask for a cut &amp; paste of the <code>mydomain.ca.csr</code> we just created. Paste the entire contents of the file in, and move on to the next step where you should see that the request was received.</p>
<p>Moving along the next step is to &#8220;Add Domains&#8221;, since we&#8217;ve only validated one domain this should be easy. As part of this process it will ask for one sub domain. I used &#8220;www&#8221; since that will still resolve correctly to the lowtek.ca domain.</p>
<p>The remainder of the steps should be straight forward, you&#8217;ll arrive at the &#8220;Save Certificate&#8221; screen. You&#8217;ll want to save three things: 1) Text box contents as mydomain.ca.crt, then save-as the 2) intermediate and 3) root CA certificates (last two should be sub.class1.server.ca.pem and ca.pem respectively).</p>
<p>Now we need to install into Apache2. I&#8217;ll assume you&#8217;re running Ubuntu.</p>
<p>We&#8217;ll start by copying the <code>.crt</code> and <code>.pem</code> files we saved from the final step on StartSSL into the <code>/etc/apache2/ssl</code> directory. We also want the <code>.key</code> file that was created when we made our CSR copied to the same directory.</p>
<p>Again I must credit <a href="http://jasoncodes.com/posts/startssl-free-ssl">jasoncodes.com</a>, this is almost verbatim from his site. Run the following as root.</p>
<p><code>cd /etc/apache2/ssl<br />
mv ca.pem startssl.ca.crt<br />
mv sub.class1.server.ca.pem startssl.sub.class1.server.ca.crt<br />
cat startssl.sub.class1.server.ca.crt startssl.ca.crt &gt; startssl.chain.class1.server.crt<br />
cat mydomain.ca.{key,crt} startssl.chain.class1.server.crt &gt; mydomain.ca.pem<br />
ln -sf mydomain.ca.pem apache.pem<br />
chown root:root *.crt *.key *.pem<br />
chmod 640 *.key *.pem<br />
</code><br />
Now we need to modify the apache config file /etc/apache2/sites-available/ssl and add the following within the &lt;VirtualHost&gt; block:</p>
<p><code>SSLEngine On<br />
SSLCertificateFile /etc/apache2/ssl/mydomain.ca.crt<br />
SSLCertificateKeyFile /etc/apache2/ssl/mydomain.ca.key<br />
SSLCertificateChainFile /etc/apache2/ssl/startssl.chain.class1.server.crt</code></p>
<p>Check that your Apache config parses as valid:</p>
<p><code>apache2ctl -t</code></p>
<p>And then restart Apache with the new config:</p>
<p><code>sudo /etc/init.d/apache2 reload</code></p>
<p>Here is the the verification process verbatim from <a href="http://jasoncodes.com/posts/startssl-free-ssl">jasoncodes.com</a>:</p>
<blockquote><p>Run the following after restarting Apache to check the certificate chain:</p>
<p><code>echo HEAD / | openssl s_client -connect localhost:443 -quiet &gt; /dev/null</code></p>
<p>You should see something like:</p>
<p><code>depth=2 /C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Certification Authority<br />
verify error:num=19:self signed certificate in certificate chain<br />
verify return:0</code></p>
<p>A depth of 2 and a return value of 0 is good. If the certificate chain is wrong, you&#8217;ll probably see something like:</p>
<p><code>depth=0 /description=12345-ABCDEF123456/C=XX/O=Persona Not Validated/OU=StartCom Free Certificate Member/CN=host.example.com/emailAddress=hostmaster@example.com<br />
verify error:num=20:unable to get local issuer certificate<br />
verify return:1<br />
depth=0 /description=12345-ABCDEF123456/C=XX/O=Persona Not Validated/OU=StartCom Free Certificate Member/CN=host.example.com/emailAddress=hostmaster@example.com<br />
verify error:num=27:certificate not trusted<br />
verify return:1<br />
depth=0 /description=12345-ABCDEF123456/C=XX/O=Persona Not Validated/OU=StartCom Free Certificate Member/CN=host.example.com/emailAddress=hostmaster@example.com<br />
verify error:num=21:unable to verify the first certificate<br />
verify return:1</code></p></blockquote>
<p>I was pleased to see that it all verified correctly for me. Visiting <a href="https://lowtek.ca">https://lowtek.ca</a> resulted in a green lock icon under <a href="http://en.wikipedia.org/wiki/Google_Chrome">Google Chrome</a>.</p>
<p>The StartSSL certificate expires in 1 year, so next year around this time I&#8217;ll be doing the same process. There is another CA (<a href="http://www.affirmtrust.com/">AffirmTrust</a>) I came across that offers free 3 year certificates, I have no experience with them but would be interested to hear if anyone tries them out. There is <a href="http://www.cacert.org">CACert</a> as well, but it doesn&#8217;t appear to be included in any of the browsers &#8211; limiting the usefulness of a certificate from them.</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2012/ubuntu-apache2-trusted-ssl-certificate-from-startssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 11.10 Oneiric Ocelot</title>
		<link>http://lowtek.ca/roo/2011/ubuntu-11-10-oneiric-ocelot/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-11-10-oneiric-ocelot</link>
		<comments>http://lowtek.ca/roo/2011/ubuntu-11-10-oneiric-ocelot/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 03:59:48 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://lowtek.ca/roo/?p=1035</guid>
		<description><![CDATA[I&#8217;ve been running Ubuntu as my home desktop for quite some time, and it&#8217;s been at least a couple of years since I did a clean install. I&#8217;ve moved motherboards and drives over that time and upgraded the distribution many times. Generally the upgrades resulted in improvements. Moving to 11.04 (Natty Narwhal) resulted in a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lowtek.ca/roo/wp-content/uploads/2011/12/11-10.png"><img class="aligncenter size-full wp-image-1036" title="11-10" src="http://lowtek.ca/roo/wp-content/uploads/2011/12/11-10.png" alt="" width="500" height="350" /></a></p>
<p>I&#8217;ve been running <a href="http://www.ubuntu.com/">Ubuntu</a> as my home desktop for quite some time, and it&#8217;s been at least a couple of years since I did a clean install. I&#8217;ve moved motherboards and drives over that time and upgraded the distribution many times. Generally the upgrades resulted in improvements. Moving to 11.04 (Natty Narwhal) resulted in a change to the new Unity interface, I had seen and used it previously on a netbook so it wasn&#8217;t completely new to me. Having only recently upgraded to 11.10 a few things busted which I&#8217;ll write about here. I&#8217;ll focus on things that I noticed breaking between 11.04 and 11.10, but some of the tips will apply in general.</p>
<p>Some of these issues will be due to my avoidance of doing a fresh install, if you&#8217;re really stuck &#8211; make a backup and do a fresh install and work forwards. One day I&#8217;ll get organized enough to build a script that lets me restore my preferred state &#8220;fresh&#8221; from a clean install &#8211; a lot of that script could likely be built by introspecting the current install. More likely is that people will push most of their data into &#8220;the cloud&#8221; and the desktop will become pretty much throw-away. My <a href="http://www.android.com/">Android</a> phone is starting to work a lot like that it seems (but I rebuild it from a clean install more often than I want to admit).</p>
<p><strong>Issue 1</strong> &#8211; Automatic login. I rarely reboot my machine, but when I do I don&#8217;t want to be bothered with a login. For my personal desktop I&#8217;m ok with the less secure mode (work is a different story). This busted in 11.10, fortunately <a href="http://askubuntu.com/questions/67694/how-can-i-enable-autologin-in-ubuntu-11-10-unity">the fix was out there</a>.</p>
<p><code>Search for "User Accounts" application. Select the account you want to autologin Toggle the Automatic Login switch to On</code></p>
<p><strong>Issue 2</strong> &#8211; Suspend stopped working in 11.10, well as I rarely reboot/power off &#8211; I need my machine to suspend. Attempts to suspend would appear to almost suspend, but immediately resume to the lock screen. Looking at the log file /var/log/pm-suspend.log helped me spot something odd:</p>
<p><code>Running hook /etc/pm/sleep.d/05_xhci resume suspend:<br />
FATAL: Module xhci not found.</code></p>
<p>The log didn&#8217;t indicate this was causing a problem, but it seemed suspicious. I had added this file when I got the <a href="http://lowtek.ca/roo/2010/ubuntu-on-core-i3/">Core i3</a> as suspend wasn&#8217;t working. Well, it turns out removing this file fixes my suspend problem.</p>
<p><strong>Issue 3</strong> &#8211; I now needed to disable the lock screen on resume. This took a bit more digging to <a href="http://askubuntu.com/questions/17157/how-do-i-stop-the-screen-from-being-locked-on-suspend">find the solution</a> to, but again it was very simple once I found it. Simply run the following in a terminal.</p>
<p><code>gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'</code></p>
<p>In 11.10 the default mail application is now <a href="http://www.mozilla.org/projects/thunderbird/">Thunderbird</a>, which I used to use back when I was on Windows XP but stuck it out with <a href="http://projects.gnome.org/evolution/">Evolution</a> when I moved to Ubuntu. I haven&#8217;t switched so I&#8217;m still on Evolution, but it&#8217;s clear Evolution isn&#8217;t quite right in 11.10 or the settings migration due to change in db shape was busted. I&#8217;ll have to sort that out at one point.</p>
<p>When I moved over to Unity in 11.04, I was missing a couple of the nice task bar indicators. I found <a href="https://launchpad.net/caffeine">Caffeine 2.2</a> to give me support for disabling auto sleep, and <a href="https://launchpad.net/indicator-multiload/+milestone/0.2">System Load Indicator 0.2</a> for some stats on the task bar.</p>
<p>I&#8217;ll toss out one other <a href="https://plus.google.com/u/0/100275307499530023476/posts/4zSho8S1BMz">link to tweaks by Steve Klondik</a>, I didn&#8217;t use any but it was a good reference.</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2011/ubuntu-11-10-oneiric-ocelot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>no-www</title>
		<link>http://lowtek.ca/roo/2011/no-www/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=no-www</link>
		<comments>http://lowtek.ca/roo/2011/no-www/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 04:26:48 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://lowtek.ca/roo/?p=1030</guid>
		<description><![CDATA[This blog is hosted on my own domain, ever since the start I&#8217;ve supported finding my site as lowtek.ca or www.lowtek.ca. WordPress allows you to do some simple URL rewriting to push people to whatever you want, and I had configured things to push visitors to www.lowtek.ca/roo since the &#8216;www&#8217; seemed like the right thing [...]]]></description>
			<content:encoded><![CDATA[<p>This blog is hosted on my own domain, ever since the start I&#8217;ve supported finding my site as <a href="http://lowtek.ca">lowtek.ca</a> or <a href="http://www.lowtek.ca">www.lowtek.ca</a>.</p>
<p><a href="http://wordpress.org/">WordPress</a> allows you to do some simple <a href="http://httpd.apache.org/docs/2.0/misc/rewriteguide.html">URL rewriting</a> to push people to whatever you want, and I had configured things to push visitors to www.lowtek.ca/roo since the &#8216;www&#8217; seemed like the right thing to do. I never really thought much about it until I came across <a href="http://no-www.org">no-www.org</a>.</p>
<blockquote><p>No-www.org strives to make the Internet and communications about it as fruitful as possible. To that end, we make the modest proposal that website makers configure their main sites to be accessible by <em>domain.com</em> as well as <em>www.domain.com</em>.</p></blockquote>
<p>This makes a lot of sense, and any site that supports they consider a <a href="http://no-www.org/faq.php?q=class_a">Class A</a> site. They define a further level of no-www support as <a href="http://no-www.org/faq.php?q=class_b">Class B</a>, and consider this optimal no-www compliance level. There is also <a href="http://no-www.org/faq.php?q=class_c">Class C</a>, but is not recommended.</p>
<p>Thus lowtek.ca has been a Class A compliant no-www site all along. However just the other day I switched things around to be Class B &#8211; allowing both www.lowtek.ca and lowtek.ca to work, but redirecting people who visit www.lowtek.ca to simply lowtek.ca. I had two reasons that motivated me: 1) lowtek.ca is shorter 2) I&#8217;m working on getting a <a href="http://en.wikipedia.org/wiki/Transport_Layer_Security">SSL certificate</a> and having the short name allows me to reuse it for other things (like mail) if I want.</p>
<p>To make the change I needed to address a couple of things. First step was to go to all of the wordpress blogs I host and change the General Settings to make sure wordpress wasn&#8217;t going to try to rewrite the URL to have a www prefix. Failure to do this will result in a broken site as you get a rewrite/redirect loop.</p>
<p>Next I had to do battle with my apache configuration. This is something I&#8217;m sure would be easier if I was a better web server admin. I ended up adding the rewrite rules to the sites-available definition(s) I use, one for normal <a href="http://en.wikipedia.org/wiki/Http">HTTP</a> and the other for <a href="http://en.wikipedia.org/wiki/Https">HTTPS</a>. Many suggest using .htaccess but I would rather this was codified in my actual apache config files.</p>
<p>The no-www.org FAQ has a rewrite rule, but I ended up using</p>
<p><code>RewriteCond %{HTTP_HOST} ^www.lowtek.ca$ [NC]<br />
RewriteRule ^(.*)$ http://lowtek.ca$1 [R=301,L]</code></p>
<p>The [NC] specifies &#8216;no case&#8217;, ie: case insensitive. The R=301 specifies that we&#8217;re redirecting, and the <a href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes">HTTP code</a> is 301 &#8216;<a title="HTTP 301" href="http://en.wikipedia.org/wiki/HTTP_301">Moved Permanently</a>&#8216;. The L indicates this is the last rule, as you can have multiples.</p>
<p>Now my domain validates with no-www.org as a Class B implementation.</p>
<p>There is <a href="http://stackoverflow.com/questions/7466370/is-this-an-architecture-limitation-of-no-www">a downside to the no-www movement</a>, but only for larger sites. This is likely why Google continues to have a www prefix. Cookies that are set from domain.com can be read by anything.domain.com. For small sites like mine, this has no impact, for larger sites it could be a problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2011/no-www/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Migrate from Raid1 to Raid5</title>
		<link>http://lowtek.ca/roo/2011/how-to-migrate-from-raid1-to-raid5/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-migrate-from-raid1-to-raid5</link>
		<comments>http://lowtek.ca/roo/2011/how-to-migrate-from-raid1-to-raid5/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 00:35:36 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.lowtek.ca/roo/?p=986</guid>
		<description><![CDATA[Recently I discovered that the iPhoto data was actually stuffed under a deleted user that existed as part of the Mac migration process, this meant it wasn&#8217;t being seen by my rsnapshot backup of the active user directory. Fixing the location of the iPhoto library was relatively easy to do, but having an extra 130GB [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lowtek.ca/roo/wp-content/uploads/2011/11/IMG_2415.jpg"><img class="aligncenter size-full wp-image-987" title="IMG_2415" src="http://www.lowtek.ca/roo/wp-content/uploads/2011/11/IMG_2415.jpg" alt="" width="500" height="313" /></a>Recently I discovered that the iPhoto data was actually stuffed under a deleted user that existed as part of the Mac migration process, this meant it wasn&#8217;t being seen by my rsnapshot backup of the active user directory. Fixing the location of the iPhoto library was relatively easy to do, but having an extra 130GB of data to back up immediately ran me into storage problems.</p>
<p>I had <a href="http://www.lowtek.ca/roo/2010/mirrored-drives-with-ubuntu/">setup a RAID1 system</a> using two 1TB volumes, I had decided to split the 1TB mirrored volume into 300Gb/700Gb so I could limit the space used by backups to 300Gb. In hindsight this was a silly idea, and it also made the migration process more complicated. If I had placed the 300Gb volume second, it might have been feasible to move that data somewhere then expand the 700Gb volume to fill the remainder of the drive &#8211; but I had put the 300Gb volume first. One day someone will write the utility to allow you to shift the start of a volume to the left (towards the start of a drive).</p>
<p>Instead of sticking with a <a href="http://en.wikipedia.org/wiki/RAID">RAID</a>1 setup, I decided to move to RAID5. While there is a little less redundancy with RAID5, the additional flexibility seems like a good trade off to me at this point. I&#8217;ll avoid getting into the religious debate over <a href="http://www.techrepublic.com/blog/datacenter/choose-a-raid-level-that-works-for-you/3237">which type of RAID</a> you should use, or <a href="http://www.zdnet.com/blog/storage/why-raid-5-stops-working-in-2009/162">if RAID makes sense at all with large sized drives</a>. Also there are some good off the shelf solutions now such as <a href="http://www.drobo.com/">Drobo</a> or <a href="http://www.qnap.com/USEng/">QNAP</a>.</p>
<p>With a project like this it is a good idea to make a plan in advance, then log your steps as you go along. Migration of 100&#8242;s of Gb of data will take time, lots of time. I did the work over about 5 days, some of it while on a trip outside the country (remote access!). Here was my plan:</p>
<ol>
<li>install new drive &#8211; ensure system is happy</li>
<li>break mirrored set &#8211; run in degraded mode</li>
<li>repartition new drive &amp; unused mirrored drive</li>
<li>create degraded raid 5 (2 drives only)</li>
<li>copy data from degraded mirror onto degraded raid5</li>
<li>decommission degraded mirror &amp; repartition</li>
<li>add volume to raid5 set</li>
</ol>
<p>I also was careful to check that the new volume had the same capacity as the other two having been <a href="http://www.lowtek.ca/roo/2010/how-to-resize-a-mirrored-volume/">bit by that in the past</a>. (I used <code>fdisk -l /dev/sde</code> to get the stats of the drive)(...)<br/>Read the rest of <a href="http://lowtek.ca/roo/2011/how-to-migrate-from-raid1-to-raid5/">How To: Migrate from Raid1 to Raid5</a> (535 words)</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2011/how-to-migrate-from-raid1-to-raid5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kingston RAM</title>
		<link>http://lowtek.ca/roo/2011/kingston-ram/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=kingston-ram</link>
		<comments>http://lowtek.ca/roo/2011/kingston-ram/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 00:41:07 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Soap Box]]></category>

		<guid isPermaLink="false">http://www.lowtek.ca/roo/?p=959</guid>
		<description><![CDATA[RAM is one of the most important aspects of your computer system, but spending a lot on fast RAM is usually not worth it &#8211; better to get more RAM that is cheaper. I&#8217;ll frequently just buy whatever is cheapest that meets the specs I need. Back in 2006 when I bought a refurbished Mac [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lowtek.ca/roo/wp-content/uploads/2011/10/IMG_2412.jpg"><img class="aligncenter size-full wp-image-960" title="IMG_2412" src="http://www.lowtek.ca/roo/wp-content/uploads/2011/10/IMG_2412.jpg" alt="" width="500" height="342" /></a></p>
<p><a href="http://en.wikipedia.org/wiki/Random-access_memory">RAM</a> is one of the most important aspects of your computer system, but spending a lot on fast RAM is usually not worth it &#8211; better to get more RAM that is cheaper. I&#8217;ll frequently just buy whatever is cheapest that meets the specs I need.</p>
<p>Back in 2006 when I bought a refurbished <a href="http://en.wikipedia.org/wiki/Mac_Mini#Mac_Mini_G4">Mac Mini (G4)</a> from Apple it came with 512MB of RAM. The <a href="http://en.wikipedia.org/wiki/PowerPC">PPC</a> Mini was limited to a single RAM slot, and 512MB was ok &#8211; but not really enough.</p>
<p>For Macs there was RAM specially tagged as compatible, or I could go the aftermarket route and just buy some RAM with the same specifications. If my memory is correct, the price delta was 30% or so. In the end, even at the premium price (about $100) the 1Gb of RAM I needed wasn&#8217;t a huge expense so I went for the guaranteed to work. The memory arrived, it worked fine until just recently.</p>
<p>The mini stopped booting, running a memory test resulted in it indicating the RAM was bad (I thought maybe the hard drive had gone). As <a href="http://www.kingston.com/company/warranty.asp">Kingston has a lifetime warranty</a> I figured it was worth seeing if I could get a free replacement (vs. a $30 price for a new unit at todays RAM cost).</p>
<p><strong>Wow! Kingston&#8217;s support/warranty process is amazingly good.</strong></p>
<p>I called and almost immediately got a real live person. It was really hassle free, they asked why I thought the RAM was bad and I said I had run a self test on it &#8211; and that was it. I was immediately in line for a <a href="http://en.wikipedia.org/wiki/Return_merchandise_authorization">RMA</a> #.</p>
<p>The RMA process is really slick. Once you get the right documentation from Kingston (via email!) &#8211; you only need to package the RAM and drop it off at a FedEx location. Kingston picks up the cost of shipping it both ways.</p>
<p>The shipping was fast (and free to me):<br />
<code>Oct 4, 2011 9:45 AM Delivered FOURNTAN VALLEY, CA<br />
Oct 4, 2011 8:57 AM On FedEx vehicle for delivery COSTA MESA, CA<br />
Oct 4, 2011 8:03 AM At local FedEx facility COSTA MESA, CA<br />
Oct 4, 2011 5:59 AM In transit LOS ANGELES, CA<br />
Oct 4, 2011 4:04 AM Departed FedEx location INDIANAPOLIS, IN<br />
Oct 4, 2011 2:04 AM International shipment release INDIANAPOLIS, IN<br />
Oct 4, 2011 12:27 AM Arrived at FedEx location INDIANAPOLIS, IN<br />
Oct 3, 2011 10:44 PM In transit MIRABEL, PQ<br />
Oct 3, 2011 8:04 PM In transit OTTAWA, ON<br />
Oct 3, 2011 6:23 PM Left FedEx origin facility OTTAWA, ON<br />
Oct 3, 2011 5:16 PM Picked up OTTAWA, ON<br />
</code></p>
<p>A brand new stick of RAM arrived on my doorstep on October 12th (again via FedEx). It was amusingly over packaged (as you can tell from the photo at the top of this post). Of course it works perfectly.</p>
<p>Sure I paid Kingston a premium form Mac specific RAM, but that was back in 2006. To get such red carpet service 5 years after I bought something is really amazing. Their warranty also covers the regular ValueRAM etc, so you should get similar great service. They usually have very good pricing on their RAM, but given my experience with the warranty even if they aren&#8217;t the best price it will be tempting to spend a few bucks more to get Kingston.</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2011/kingston-ram/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

