<?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>sigma.squared &#187; How To&#8217;s</title>
	<atom:link href="http://www.sigmasquared.co.za/category/how-tos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sigmasquared.co.za</link>
	<description>Random Thoughts and Inconsistencies</description>
	<lastBuildDate>Sun, 26 Jun 2011 11:19:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Efficient Formatting &#8211; Windows</title>
		<link>http://www.sigmasquared.co.za/2011/06/efficient-formatting-windows/</link>
		<comments>http://www.sigmasquared.co.za/2011/06/efficient-formatting-windows/#comments</comments>
		<pubDate>Sun, 26 Jun 2011 11:14:50 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[General Geekery]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.sigmasquared.co.za/?p=433</guid>
		<description><![CDATA[Having been in the IT techie game for some time, I&#8217;ve lived through some pretty hairy formats where data has been forgotten, excluded or just plain ignored, all at the client&#8217;s expense. To this end, I&#8217;ve developed my own little formula over the years when it comes to doing this. 1. Make a checklist of [...]]]></description>
			<content:encoded><![CDATA[<p>Having been in the IT techie game for some time, I&#8217;ve lived through some pretty hairy formats where data has been forgotten, excluded or just plain ignored, all at the client&#8217;s expense.   To this end, I&#8217;ve developed my own little formula over the years when it comes to doing this.</p>
<p align="right"><span id="more-433"></span></p>
<p><strong>1. Make a checklist of your programs</strong></p>
<p>This may sound silly at first, but make yourself a checklist. The easiest way to start this list, is by opening your Start menu and moving from top to bottom. I will use my machine as an example. Go through your start menu and list everything you need and everything you want on a reinstall. Leave out anything you don&#8217;t want or need. Below is my list.</p>
<ul>
<li>Adobe Reader</li>
<li>Microsoft Security Essentials</li>
<li>Mozilla Firefox</li>
<li>Windows Live Mail</li>
<li>7-Zip</li>
<li>Air Video Server</li>
<li>BlackBerry Device Manager</li>
<li>Dropbox</li>
<li>Evernote</li>
<li>FileZilla FTP Client</li>
<li>GIMP</li>
<li>Google Chrome</li>
<li>Google Talk</li>
<li>Handbrake</li>
<li>iTunes</li>
<li>K-Lite Codec Pack</li>
<li>MediaMonkey</li>
<li>Microsoft Headset</li>
<li>Microsoft Mouse</li>
<li>Microsoft Office 2007</li>
<li>Microsoft Rich Tools</li>
<li>Microsoft SQL Server 2008 Express</li>
<li>MySQL Workbench</li>
<li>Notepad++</li>
<li>OpenTTD</li>
<li>Picasa 3</li>
<li>PuTTY</li>
<li>QuickTime</li>
<li>Skype</li>
<li>Speccy</li>
<li>Sun VirtualBox</li>
<li>Torchlight</li>
<li>WebEx Recorder and Player</li>
<li>Windows Virtual PC</li>
<li>WinSCP</li>
<li>X-Lite</li>
</ul>
<p>So that&#8217;s quite a list, however this covers me in all aspects of the software I use.</p>
<p><strong>2. Break your checklist down</strong></p>
<p>This is starting to sound like work, isn&#8217;t it? You will thank me later&#8230; Following this process and getting to know what you want on your PC will allow you to reinstall in a fraction of the time it would have taken, the best part is you can keep the list and use it again at a later stage.</p>
<p>So following on, we need to break the list down. I break my software list into three aspects;</p>
<ul>
<li>Downloadable and free software</li>
<li>Software that contains my data</li>
<li>Proprietary software</li>
</ul>
<p><em>Downloadable and free software</em></p>
<p>For the downloadable software, in general this is free software or software I have bought a license for etc. Going from the list above, the downloadable list would be as follows;</p>
<ul>
<li>Adobe Reader</li>
<li>Microsoft Security Essentials</li>
<li>Mozilla Firefox</li>
<li>Windows Live Mail</li>
<li>7-Zip</li>
<li>Air Video Server</li>
<li>BlackBerry Device Manager</li>
<li>Dropbox</li>
<li>Evernote</li>
<li>FileZilla FTP Client</li>
<li>GIMP</li>
<li>Google Chrome</li>
<li>Google Talk</li>
<li>Handbrake</li>
<li>iTunes</li>
<li>K-Lite Codec Pack</li>
<li>MediaMonkey</li>
<li>Microsoft Headset</li>
<li>Microsoft Mouse</li>
<li>MySQL Workbench</li>
<li>Notepad++</li>
<li>OpenTTD</li>
<li>Picasa 3</li>
<li>PuTTY</li>
<li>QuickTime</li>
<li>Skype</li>
<li>Speccy</li>
<li>Sun VirtualBox</li>
<li>WebEx Recorder and Player</li>
<li>WinSCP</li>
<li>X-Lite</li>
</ul>
<p>Please excuse the fact that it is almost an identical list, most of the things I use are all readily downloadable.   From this point, the idea is to go to each piece of software&#8217;s website and to download the latest version of the software, saved on a flash disk or DVD. This will ensure that you do as little automatic updating as possible post-install.</p>
<blockquote><p><em>Tip</em>: For software that uses a downloader to install, generally there will be an &#8220;Administrator&#8221;, &#8220;Network&#8221; or &#8220;Business&#8221; edition available as well. Download this instead of the installer. This allows you to have a copy on hand, as well as the fact that these editions generally leave out all the free toolbars and other vacuous crap that come with the sponsored download. Skype is a prime example of having a business edition available (Skype thankfully is not an example of bundling software with the downloader, they get it right).</p></blockquote>
<p><em>Software that contains my data</em></p>
<p>Go through your list and see what you do with each piece of software. If it is a viewer of some kind, like Adobe Reader, leave it out, however if is is something that contains your own data, for example my photos in Picasa, put it on this list (you can leave out anything that stores files online or in a cloud, Dropbox and Evernote for example).   From the list above, I use the following software for the following reasons;</p>
<ul>
<li>Mozilla Firefox &#8211; Browsing and saving bookmarks</li>
<li>Windows Live Mail &#8211; Email</li>
<li>FileZilla FTP Client &#8211; FTP Logins</li>
<li>Google Chrome &#8211; Browsing and saving bookmarks</li>
<li>iTunes &#8211; Purchased iPad applications</li>
<li>Microsoft Office 2007 &#8211; Documents</li>
<li>Microsoft SQL Server 2008 Express &#8211; Databases</li>
<li>OpenTTD &#8211; Saved games</li>
<li>Picasa 3 &#8211; My photos</li>
<li>Sun VirtualBox &#8211; My VM&#8217;s</li>
<li>Torchlight &#8211; Saved games</li>
<li>Windows Virtual PC &#8211; My VM&#8217;s</li>
</ul>
<p>From the reasons next to the software, I can easily work out what data of mine I need to back up, often the programs themselves allow you to do so.   Basically I can see from the above that the following needs to be backed up from how I use my computer.</p>
<ul>
<li>My Bookmarks</li>
<li>My Emails</li>
<li>My FTP Credentials</li>
<li>My iTunes applications</li>
<li>My Documents</li>
<li>My Databases</li>
<li>My Photos</li>
<li>My Virtual Machines</li>
<li>My Saved games</li>
</ul>
<p>If you noticed a pattern in the above, then that is a good thing.   In Windows, it&#8217;s very easy to backup most of your stuff by simply backing up anything with a &#8220;My&#8221; in front of it.   All of the above can be easily backed up either from the corresponding &#8220;My&#8221; folders on the hard drive, or through the application itself (Chrome and Firefox are prime examples). Email outside of Microsoft Outlook can get kind of tricky to transfer, but that&#8217;s another topic for another time.</p>
<p><em>Proprietary software</em></p>
<p>This is software that you generally would own, and would most likely be on its own media.   All that you need to do here is ensure that you have the CD&#8217;s/DVD&#8217;s on hand and off you go.</p>
<ul>
<li>Microsoft Office 2007</li>
<li>Microsoft SQL Server 2008 Express</li>
</ul>
<blockquote><p><em>Tip</em>: To save on your time spent updating, hop online and download the latest service packs for each piece of software, particularly those from the Microsoft stable.</p></blockquote>
<blockquote><p><em>Note</em>: Some proprietary software comes pre-installed on your machine. If you do not have your media from purchasing your machine, contact the reseller and/or manufacturer to discuss the way forward for your format.</p></blockquote>
<p><strong>3. Back up all folders starting with a &#8220;My&#8221;</strong></p>
<p>Following on from the second section, go into the users&#8217; folder (either Document &amp; Settings or Users, depending on which version of Windows you are running), and copy any &#8220;My&#8221; folders that have not been backed up already.   A prime example of this from this article so far, is that nowhere have I mentioned &#8220;My Music&#8221;.   Once you have backed this up you are pretty much good to go.</p>
<p><strong>4. Format the PC and re-install</strong></p>
<p>Pop your Windows disc in and follow the instructions.   When you are done, insert any driver discs that you require loading, these would have come with your PC.   In the case of Windows 7, drivers have been greatly simplified and should download automatically just after installation.</p>
<p><strong>5. Reload downloaded software</strong></p>
<p>Grab the initial list you have and start moving through one by one, installing each one of the packages you have already downloaded.   Note how quick the installation is going now.</p>
<p><strong>6. Reload proprietary software</strong></p>
<p>Pop in the discs for your proprietary software and follow their installation procedures, once they have finished, install any service packs you may have downloaded earlier.</p>
<p><strong>7. Restore your data</strong></p>
<p>All the items you backed up from the &#8220;My&#8221; section can now be restored, as well as anything else garnered from the &#8220;My&#8221; exercise above.</p>
<p><strong>8. Get to use your PC two hours after hitting the format button</strong></p>
<p>No need for an explanation here, point 8 says it all&#8230;</p>
<p>So that about covers a relatively efficient methodology for re-formatting a PC, perhaps it becomes a mainstream standard, or perhaps one little store adopts it, either way I hope it helped someone.</p>
<p>Best part is, if something goes wrong shortly after the re-install, you already have relatively recent copies of all the software and can reload quickly.   A much better method would be to create an image directly after, however this, as with backing up mail, is another topic for another time.</p>
<p>Enjoy your format!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigmasquared.co.za/2011/06/efficient-formatting-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>Speed Up Windows 7 Booting</title>
		<link>http://www.sigmasquared.co.za/2010/07/speed-up-windows-7-booting/</link>
		<comments>http://www.sigmasquared.co.za/2010/07/speed-up-windows-7-booting/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 18:02:52 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[General Geekery]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.sigmasquared.co.za/?p=361</guid>
		<description><![CDATA[Well, I&#8217;ve been scarce for a while, mostly due to work.   Recently while on holiday I was reading up on a great little feature on Windows 7 for speeding up your initial boot time.   This is going to be as short and sweet as my boot time which is now 7 seconds&#8230; First, [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;ve been scarce for a while, mostly due to work.   Recently while on holiday I was reading up on a great little feature on Windows 7 for speeding up your initial boot time.   This is going to be as short and sweet as my boot time which is now 7 seconds&#8230;</p>
<p align="right"><span id="more-361"></span></p>
<ul>
<li>First, run msconfig (hit the start button and type it in)</li>
<li>Next, select boot.</li>
<li>Then select &#8216;Advanced Options&#8217;</li>
<li>Up the number of processors to the number of cores you have in your system, in my case this is 4.</li>
<li>Hit OK</li>
<li>Hit OK again on the System Configuration window.</li>
<li>Reboot and see how quickly you boot!</li>
</ul>
<p align="center"><img class="aligncenter size-full wp-image-363" title="msconfig" src="http://www.sigmasquared.co.za/wp-content/uploads/2010/07/msconfig.png" alt="" width="393" height="391" /></p>
<p>And that&#8217;s it.   Told you it would be short and sweet!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigmasquared.co.za/2010/07/speed-up-windows-7-booting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>Disaster Recovery for Hyper-V Snapshots</title>
		<link>http://www.sigmasquared.co.za/2010/04/disaster-recovery-for-hyper-v-snapshots/</link>
		<comments>http://www.sigmasquared.co.za/2010/04/disaster-recovery-for-hyper-v-snapshots/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 19:53:14 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[General Geekery]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.sigmasquared.co.za/?p=308</guid>
		<description><![CDATA[Situation: You have a bunch of VM&#8217;s on a Server 2008 R2 RC instance. The RC expires and dies a horrible death at the hands of the IT manager, who complains for more time than it takes to reinstall the server about someone actually loading an RC onto the server. You now have a working [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Situation</strong>: You have a bunch of VM&#8217;s on a Server 2008 R2 RC instance. The RC expires and dies a horrible death at the hands of the IT manager, who complains for more time than it takes to reinstall the server about someone actually loading an RC onto the server.   You now have a working server, but an empty Hyper-V manager, zero snapshots and no config file backups.   In the rush to reinstall, VM&#8217;s were not exported, but instead just had their VHD and AVHD files copied&#8230;</p>
<p align="right"><span id="more-308"></span></p>
<p><strong>Post Situation Analysis</strong>: Bye bye snapshots, bye bye VM configs. In other words quite bleak.</p>
<p><strong>Rushed Solution</strong>: Mount the original VHD, create a blank snapshot, rename the snapshot files, and launch!</p>
<p align="center"><em>Rushed Solution == Bad Idea</em></p>
<p>If you have one base VHD with no snapshot, great!   Mount it and off you go.   If you have snapshots, you could be in for a rocky ride (you are already 25% stuffed transferring an RC hosted VM to RTM).   True, it may work when mounting the last image as described in the rushed solution.   What I found was that I got a BSOD on login, but after booting into safe mode and then rebooting again it was ok.   The problem I encountered on VM&#8217;s with many snapshots (5+) was that at the point of booting up normally and logging in, the registry corrupted.   Windows restored the registry, however this left the networking components and drivers for Windows in a completely unusable state (even legacy adapters), and the VM&#8217;s needed to be reloaded from scratch after copying data to new VHD&#8217;s, and mounting those in new VM&#8217;s.</p>
<p>Snapshots use a hierarchical structure (Each VHD/AVHD is basically appended onto the previous one) to keep track of changes without duplicating entire drives.   The following info won&#8217;t get you to a state where you can flip between snapshots (it&#8217;s a sacrifice), but it will give you a working machine at the point that you needed it for data recovery purposes, with all data from all snapshot points.</p>
<p><em> </em></p>
<p><em></p>
<ol>
<li><span style="font-style: normal;"><em><strong>BACKUP YOUR VHD&#8217;s</strong></em>, merging <span style="text-decoration: underline;">will</span> erase each snapshot on completion, an expensive thing to realise too late!</span></li>
<li><span style="font-style: normal;">Launch the Hyper-V manager, and select &#8220;Edit Disk&#8221;</span></li>
<li><span style="font-style: normal;">Click &#8220;Next&#8221;</span></li>
<li><span style="font-style: normal;">Select the last snapshot in the directory (this can be done by viewing the last modified date of the AVHD files, the most recent is most likely your latest snapshot. You can also make use of the &#8220;Inspect Disk&#8221; option to check.)</span></li>
<li><span style="font-style: normal;">Select &#8220;Merge&#8221; &#8211; Another step will appear in the bar on the left</span></li>
<li><span style="font-style: normal;">Opt to merge the changes to the parent disk. (Don&#8217;t panic as I did at the lack of control from this step, Hyper-V will select the correct parent disk for you.)</span></li>
<li><span style="font-style: normal;">Complete the wizard</span></li>
</ol>
<p></em></p>
<p>This will merge the latest snapshot into the previous one.   Repeat steps 2-7 for each snapshot level.   Once you have merged all the snapshots and the parent disk is listed as the original VHD, you have everything ready to to complete the wizard for the last time. You now have the original VHD containing the complete snapshot tree. Finally set up a new machine with the VHD, and recover your data from the VM.</p>
<blockquote><p>Note: Only Hyper-V in R2 recognises AVHD files in the Edit Disk wizard, if you are using 2008 R1, rename the AVHD extension to VHD.</p></blockquote>
<blockquote><p>Note #2: Thank you to all the various Hyper-V related sites that I trawled through to get to this information, unfortunately I cannot remember you all, by far the most informative in content and comments was on &#8220;<a href="http://blogs.msdn.com/robertvi/archive/2008/08/26/howto-recover-snapshots.aspx">Hyper-V notes from the field</a>&#8220;, thanks Robert!   Please visit this site too, as he has outlined a couple more ways in getting the VHD&#8217;s merged, I simply covered what I find to be the easiest method in my own terms for my own situation.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sigmasquared.co.za/2010/04/disaster-recovery-for-hyper-v-snapshots/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<price></price>	</item>
		<item>
		<title>DIY Webserver from Scratch</title>
		<link>http://www.sigmasquared.co.za/2010/02/diy-webserver-from-scratch/</link>
		<comments>http://www.sigmasquared.co.za/2010/02/diy-webserver-from-scratch/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 17:08:16 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[General Geekery]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.sigmasquared.co.za/?p=205</guid>
		<description><![CDATA[Following on from a post by John Lufadeju on his blog regarding hosting your WordPress blog locally, and Robert Bravery&#8216;s post on using WordPress on Vista and IIS 7.0 I thought I&#8217;d do the geek thing and go one step further and describe how to setup your own dedicated Linux web server (among other services) [...]]]></description>
			<content:encoded><![CDATA[<p>Following on from a post by <a href="http://twitter.com/johnluffa" target="_blank">John Lufadeju</a> on his blog regarding <a href="http://yourblogtools.com/2010/02/host-wordpress-locally/" target="_blank">hosting your WordPress blog locally</a>, and <a href="http://twitter.com/robertbravery" target="_blank">Robert Bravery</a>&#8216;s post on <a href="http://www.integralwebsolutions.co.za/Blog/EntryId/420/Using-Wordpress-on-Vista-and-IIS-7-0.aspx" target="_blank">using WordPress on Vista and IIS 7.0</a> I thought I&#8217;d do the geek thing and go one step further and describe how to setup your own dedicated Linux web server (among other services) running WordPress for home use, and also to let you know that it is not as difficult as it may seem!   I warn you that this post is a long one, but it is bound to be an informative one!</p>
<p align="right"><span id="more-205"></span></p>
<h3>1. Obtaining the Software</h3>
<p>Everyone assumes that setting up Apache has to be a nightmare, and requires you to install Linux first, then customise it, then know how to use the command line interface to configure it and and and and&#8230;</p>
<p>The above used to be completely true, however quite a few places realised this and started offering all-in-one solutions that are incredibly quick and easy to configure.   My personal favourite has to be ClarkConnect Community Edition, which is now known as <a href="http://www.clearcenter.com/Software/clearos-enterprise-downloads.html" target="_blank">ClearOS Enterprise</a>.   This is an open source system, based on Linux, which installs with a wizard, and offers such features as a caching web proxy, firewall, antivirus, antispam, file sharing (even for Windows!), printer sharing, bandwidth management and of course, MySQL and Apache (for a complete list, please check out ClearCenter&#8217;s <a href="http://www.clearcenter.com/Software/clearos-enterprise-features.html" target="_blank">website</a>).</p>
<p>As with most things that are free, there is a catch, albeit not a very big one.   When you install the software, it will be completely active, however to receive software and security updates for your server, you will need to subscribe to ClearSDN, for the whopping price of <strong>nothing</strong>.   Only if you require corporate support do you pay, and for a home system, its pretty cut and dried that you don&#8217;t really need to have an immediate turnaround on support.   Also, if you are simply configuring a webserver, security updates are for the most part completely unnecessary.</p>
<p>So all you need to do, is visit the <a href="http://www.clearcenter.com/Software/clearos-enterprise-downloads.html" target="_blank">download page at ClearCenter</a> and download the ISO file.   At 689MB, yes it&#8217;s big, but bear in mind its an ENTIRE operating system plus software.</p>
<h3>2. Burning the CD</h3>
<p>Next step is to burn the ISO to a CD, if you are on Windows 7 this can be done straight off the bat by inserting a blank CD into your drive.   It may be possible to do so in Vista as well, but I am proud to say I only used Vista for about 45 minutes when it came out and then I reformatted my machine and put XP back on.   Failing this, you will need to use something like Nero or Roxio to burn the ISO.</p>
<h3>3. Obtaining the Hardware</h3>
<p>This is always the expensive part of getting a server up and running (unless you are buying licenses).   If you take a look on Dell&#8217;s website, you will be greeted with price tags of over $1,000.   Don&#8217;t let this despair you!   ClearOS is really not that hungry, what with being Linux and all that, so you do not need a huge server.   If you don&#8217;t have a spare computer tucked away in a cupboard from a few years back, your best bet is to find a company that resells leased equipment that has reached end-of-life, I personally buy through <a href="http://www.rentworks.co.za/" target="_blank">RentWorks</a>.   Here I picked up 2x Pentium 3 1Ghz rackmount servers (I gutted one to make the other more powerful) for the awesome price of R400, which is about $50 US, not bad huh?</p>
<p>An alternate to actually buying physical hardware, is to download VirtualBox, Sun Microsystem&#8217;s alternative to Virtual PC (and so much more flexible).   Install this, and you will be able to create multiple virtual PC&#8217;s within your own computer.   You can read more about it at <a href="http://www.virtualbox.org/" target="_blank">VirtualBox.org</a>.   For the record, this is how I will be doing my installation for the purposes of this post.</p>
<h3>4. First Bootup</h3>
<blockquote>
<h4><strong>NOTE OF EXTREME WARNING (OR WARNING OF EXTREME NOTE)</strong>! INSTALLING ClearOS WILL <span style="text-decoration: underline;">WIPE</span> OUT <span style="text-decoration: underline;">EVERY</span> STORAGE DEVICE ON THE COMPUTER IT IS BEING INSTALLED ON (INCLUDING USB AND FIREWIRE)! MAKE SURE YOU ARE USING A SPARE COMPUTER THAT YOU ARE NOT GOING TO MISS ANY DATA ON!</h4>
</blockquote>
<p>Pop in the CD and boot off it.   The installer is very straight forward in a wizard type format, with every step explained.   You will get to a point where you are asked which mode ClearOS should operate in, Standalone or Gateway.</p>
<p>This is an important bit, if you have 2 network cards in your machine, you can select Gateway mode; what this does is allow you to use this server as a router/firewall/webserver/gateway onto the Internet, so you can actually use the ClearOS box to cache web content (and save you bandwidth!), filter out who sees what and provide you with network security for your home computers.   Should you just wish to host web content for internal testing, then Standalone should suffice.   For this example I am using Standalone.   In Gateway mode, it is worth noting that you can actually expose your server to the web and browse to it, which makes for a nice way of demoing sites to people for other opinions, however this takes a bit more knowledge of networking and IP address configuration.</p>
<blockquote><p>If you already use a router to connect to the Internet, I would recommend setting your ClearOS machine to use DHCP to obtain its IP address automatically, but if you use a modem and this is the only network computer you have, set its IP address to 192.168.0.1, it will become a DHCP server in that case, and automatically configure your computer!</p></blockquote>
<p>You will see that once you get to the software modules selection, that this system is quite complete and quite powerful!   With over 20 different modules ranging from VPN to mail to antivirus, you&#8217;re sure to be able to do quite a lot.   If you wish to play around, why not select every option?   Selecting all the options will only use around 1GB of hard drive space, so if you have that to play with, it really doesn&#8217;t hurt to install everything.   Just follow the on-screen instructions, and if you aren&#8217;t sure of something, just go with the defaults.   This system is quite robust, and is pretty difficult to break!</p>
<h3>5. Finalising Install</h3>
<p>Once the system is installed and you have rebooted, you will come to a red logon screen.   At this point, the system is ready to go.   Make sure you <a href="http://www.sigmasquared.co.za/2010/02/what-is-my-ip-address/" target="_blank">know the box&#8217;s IP address</a> before you go back to your normal PC.   When you get back to your PC, open your web browser, and go to https://[your-servers-ip-address]:81/.   This will bring you to a login screen, enter the username &#8216;root&#8217; and the password you selected in the install to log in.   You will now be guided through a 5-step wizard that will finish off your installation!</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-241" title="login" src="http://www.sigmasquared.co.za/wp-content/uploads/2010/02/login-475x356.jpg" alt="" width="475" height="356" /></p>
<blockquote><p>You may get a certificate warning when going to the management site, that is only because the certificate is self signed, there is nothing to worry about!</p></blockquote>
<h3>6. Web Management</h3>
<p>Here is where the fun starts, you get to manage your server!   For the purposes of this post, I will only be briefly covering the Apache and MySQL portion of it, but as you can see there are MANY options to choose from.   Feel free to go through them and play around!</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-238" title="dashboard" src="http://www.sigmasquared.co.za/wp-content/uploads/2010/02/dashboard-475x356.jpg" alt="" width="475" height="356" /></p>
<h3>7. Enabling Apache</h3>
<p>From the dashboard of your server, select the &#8216;Server&#8217; option from the left, and select the &#8216;Web Server&#8217; sub-option.</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-237" title="dashboard select web" src="http://www.sigmasquared.co.za/wp-content/uploads/2010/02/dashboard-select-web-475x356.jpg" alt="" width="475" height="356" /></p>
<p>From the Web Server option, there are two buttons you now need to select, first select &#8216;To Auto&#8217;, this will start Apache automatically each time the system starts.   Next, select the &#8216;Start&#8217; button to start the web server.   You will notice that the &#8216;On boot&#8217; option changes to &#8216;Automatic&#8217; and the &#8216;Status&#8217; changes to &#8216;Running&#8217;.</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-242" title="web management" src="http://www.sigmasquared.co.za/wp-content/uploads/2010/02/web-management-475x356.jpg" alt="" width="475" height="356" /></p>
<p>Apache is now enabled!</p>
<h3>8. Enabling MySQL</h3>
<p>Next, select the MySQL sub-option from the menu on the left.</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-236" title="dashboard select mysql" src="http://www.sigmasquared.co.za/wp-content/uploads/2010/02/dashboard-select-mysql-475x356.jpg" alt="" width="475" height="356" /></p>
<p>From the MySQL option, there are two buttons you now need to select, first select &#8216;To Auto&#8217;, this will start MySQL automatically each time the system starts.   Next, select the &#8216;Start&#8217; button to start the MySQL server.   You will notice that the &#8216;On boot&#8217; option changes to &#8216;Automatic&#8217; and the &#8216;Status&#8217; changes to &#8216;Running&#8217;, as per the web server options.</p>
<blockquote><p>You will be prompted to enter a database password, do not lose this!</p></blockquote>
<p>MySQL is now enabled!   (Are you sensing a pattern here as to how easy it is to enable the different services?)</p>
<h3>9. Creating the Database</h3>
<p>From the MySQL screen, you will see that there is a little notice stating that you can manage your MySQL database through another web interface</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-240" title="launch phpmyadmin" src="http://www.sigmasquared.co.za/wp-content/uploads/2010/02/launch-phpmyadmin-475x37.jpg" alt="" width="475" height="37" /></p>
<p>Select &#8216;Go&#8217; to launch phpMyAdmin in a new window (your login username will be &#8216;root&#8217;).   From there you can create your new database from the &#8216;Create new database&#8217; option.</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-235" title="create db" src="http://www.sigmasquared.co.za/wp-content/uploads/2010/02/create-db-475x117.jpg" alt="" width="475" height="117" /></p>
<h3>10. Deploying WordPress</h3>
<blockquote><p>The easiest way of deploying anything to a Linux server from Windows is to use WinSCP, it is leaps and bounds ahead of FTP as far as security goes.   You can download WinSCP from <a href="http://winscp.net/eng/download.php" target="_blank">here</a> (incidentally, it handles FTP as well).   The following install is based on the <a href="http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install" target="_blank">Famous 5-minute Install</a>.</p></blockquote>
<p>Next, download the latest version of WordPress <a href="http://wordpress.org/download/" target="_blank">here</a> and unzip it to a folder on your machine.  Navigate to the folder and rename the &#8216;wp-config-sample.php&#8217; to &#8216;wp-config.php&#8217;.   Edit the wp-config.php file and enter your database details as follows:</p>
<ul>
<li>&#8216;putyourdbnamehere&#8217; will be replaced with whatever you named your database in step 9</li>
<li>&#8216;usernamehere&#8217; will be replaced with &#8216;root&#8217;</li>
<li>&#8216;yourpasswordhere&#8217; will be replaced with whatever password you chose in step 8</li>
</ul>
<p>Save the file and close it.</p>
<p>Next, launch WinSCP.   From the initial window, select &#8216;New&#8217; from the right hand side, then enter your new server&#8217;s details and select login.</p>
<p>The first time you log in to your new server, you will get a warning that the server&#8217;s host key was not found in the cache, simply select &#8216;Yes&#8217; to connect and place the host key in the cache.</p>
<p>You will now be greeted with a window similar to most FTP programs.   To get to the web folder, following the following steps in the right hand pane:</p>
<ol>
<li>Double click the &#8216;..&#8217; folder</li>
<li>Double click the &#8216;var&#8217; folder</li>
<li>Double click the &#8216;www&#8217; folder</li>
<li>Double click the &#8216;html&#8217; folder</li>
<li>You are now in your website&#8217;s root folder (/var/www/html/)</li>
</ol>
<p>In the left pane, navigate to the location where you unzipped WordPress, and drag it across to the right hand pane.   A popup will open, select &#8216;Copy&#8217; to begin.</p>
<p>Now you can navigate to your server&#8217;s WordPress installation by going to http://[your-servers-ip-address]/wordpress/, there you can complete the standard WordPress installation!</p>
<blockquote><p>Read the <a href="http://codex.wordpress.org/Installing_WordPress" target="_blank">documentation on WordPress&#8217; site</a> to get a more comprehensive breakdown of installing to a subfolder or to the root.</p></blockquote>
<h3>Conclusion</h3>
<p>So there you have it, you now have your own server AT HOME to run any form of staging or muckabout site!   I trust this post was informative and easy to use, I would appreciate any comments regarding it!</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-239" title="final product" src="http://www.sigmasquared.co.za/wp-content/uploads/2010/02/final-product-475x356.jpg" alt="" width="475" height="356" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigmasquared.co.za/2010/02/diy-webserver-from-scratch/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<price></price>	</item>
		<item>
		<title>What is my IP address?</title>
		<link>http://www.sigmasquared.co.za/2010/02/what-is-my-ip-address/</link>
		<comments>http://www.sigmasquared.co.za/2010/02/what-is-my-ip-address/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 15:15:12 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[General Geekery]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.sigmasquared.co.za/?p=214</guid>
		<description><![CDATA[While typing out another post, I figured I&#8217;d put in this very quick little post on obtaining your IP address for different operating systems. Windows XP Click on Start Click on Run Type in &#8220;cmd&#8221; (without the quotes) Press Enter When the little black box opens, type in &#8220;ipconfig&#8221; (again without the quotes) Your IP [...]]]></description>
			<content:encoded><![CDATA[<p>While typing out another post, I figured I&#8217;d put in this very quick little post on obtaining your IP address for different operating systems.</p>
<p align="right"><span id="more-214"></span></p>
<h3>Windows XP</h3>
<p></p>
<ol></p>
<li>Click on Start</li>
<li>Click on Run</li>
<li>Type in &#8220;cmd&#8221; (without the quotes)</li>
<li>Press Enter</li>
<li>When the little black box opens, type in &#8220;ipconfig&#8221; (again without the quotes)</li>
<li>Your IP address will be displayed in the box</li>
</ol>
<p></p>
<h3>Windows Vista and Windows 7</h3>
<p></p>
<ol>
<li>Click on Start</li>
<li>Select the &#8220;Search Programs and Files&#8221; bar</li>
<li>Type in &#8220;cmd&#8221; (without the quotes)</li>
<li>Press Enter</li>
<li>When the little black box opens, type in &#8220;ipconfig&#8221; (again without the quotes)</li>
<li>Your IP address will be displayed in the box</li>
</ol>
<p></p>
<h3>Linux</h3>
<p></p>
<ol>
<li>Login to linux via the console (if you aren&#8217;t at the console, press ALT+F2, or F3, or F4 etc&#8230; until you get to the console!)</li>
<li>Type in &#8220;ifconfig&#8221; (without the quotes)</li>
<li>Your IP address will be displayed</li>
</ol>
<blockquote><p><em>should you need to scroll up in the Linux console, hold down SHIFT and press PG UP</em></p></blockquote>
<p>That should about do it for now, hope this helps!   If you know Macs well, please pop us a comment on how to check there!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigmasquared.co.za/2010/02/what-is-my-ip-address/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<price></price>	</item>
		<item>
		<title>The driver may be corrupted or missing. (Code 39)</title>
		<link>http://www.sigmasquared.co.za/2010/01/the-driver-may-be-corrupted-or-missing-code-39/</link>
		<comments>http://www.sigmasquared.co.za/2010/01/the-driver-may-be-corrupted-or-missing-code-39/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 10:19:33 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[General Geekery]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.sigmasquared.co.za/?p=155</guid>
		<description><![CDATA[This little issue can be quite annoying on any Windows machine.   You have a device that suddenly stops working, and device manager just shows you its famed little yellow exclamation mark.   When you open the device, you are greeted with the error: Windows cannot load the device driver for this hardware. The driver [...]]]></description>
			<content:encoded><![CDATA[<p>This little issue can be quite annoying on any Windows machine.   You have a device that suddenly stops working, and device manager just shows you its famed little yellow exclamation mark.   When you open the device, you are greeted with the error:</p>
<blockquote><p>Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)</p></blockquote>
<p align="right"><span id="more-155"></span></p>
<p>No matter how often you uninstall the device and reinstall it, or update the drivers (as per Microsoft&#8217;s knowledge base), nothing seems to change the little exclamation mark.   Herewith a solution that worked for me based on a CD-ROM fix also found in the MS KB.</p>
<ol>
<li>Open <strong>regedit</strong></li>
<li>Make a backup of your registry before you continue</li>
<li>Browse to the following branch: <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\</strong></li>
<li>Browse through the keys there, you will notice that on the <strong>(Default)</strong> value in most, it names the categories from device manager, ie <em>Sound, video and game controllers</em>, <em>Mice and other pointing devices</em> etc.   Browse through the keys until you find the category that your particular device falls under.</li>
<li>Delete any values called <strong>UpperFilters </strong>or <strong>LowerFilters</strong>.</li>
<li>Restart the computer</li>
<li>Reinstall / reinsert the device</li>
<li>Voila!</li>
</ol>
<p>This provided an instant solution for me, and did not appear to affect any other devices on the machine, however you may have to reinstall any software that uses that class of device (for example burning software for CD and DVD ROMs) after removing the filters.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigmasquared.co.za/2010/01/the-driver-may-be-corrupted-or-missing-code-39/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>DIY WordPress Social Media Icons</title>
		<link>http://www.sigmasquared.co.za/2010/01/diy-wordpress-social-media-icons/</link>
		<comments>http://www.sigmasquared.co.za/2010/01/diy-wordpress-social-media-icons/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 20:52:38 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[General Geekery]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.sigmasquared.co.za/?p=144</guid>
		<description><![CDATA[So, I was using a third party plugin to handle all my social media sharing, which was very cool at first, but it started slowing my site down (as it connected to another site), so a few hours ago I ventured out onto the web trying to find the code to do this all myself. [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was using a third party plugin to handle all my social media sharing, which was very cool at first, but it started slowing my site down (as it connected to another site), so a few hours ago I ventured out onto the web trying to find the code to do this all myself.</p>
<p align="right"><span id="more-144"></span></p>
<p>The majority of what I used is copied and pasted from various sources, but also customised for WordPress and its functions.   Speaking of functions, that is where you should head off to first.</p>
<h3>Shortening your URLs</h3>
<p>There is a wicked little URL shortening service that has an openly usable API which is very easy to implement.   To edit functions, browse to your current theme&#8217;s folder, and edit the <strong>functions.php </strong>file.   At the end of the file, add the following lines:</p>
<blockquote>
<div id="_mcePaste">&lt;?php</div>
<div id="_mcePaste">function CompressURL($url) {</div>
<div id="_mcePaste">$ch = curl_init();</div>
<div id="_mcePaste">curl_setopt($ch, CURLOPT_URL, &#8220;http://to.ly/api.php?longurl=&#8221;.urlencode($url));</div>
<div id="_mcePaste">curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);</div>
<div id="_mcePaste">curl_setopt($ch, CURLOPT_HEADER, 0);</div>
<div id="_mcePaste">$shorturl = curl_exec ($ch);</div>
<div id="_mcePaste">curl_close ($ch);</div>
<div id="_mcePaste">return $shorturl;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">?&gt;</div>
</blockquote>
<p>This will allow you to share shortened URLs using the to.ly service.   This code was taken from the <a href="http://to.ly/api_info.php" target="_blank">to.ly API documentation</a>.</p>
<p>For the rest of the steps in this document, you will need to edit <strong>single.php.  <span style="font-weight: normal;"> I placed the code within a &lt;div class=&#8221;SocialIcons&#8221;&gt; [code for sharing] &lt;/div&gt; block.</span></strong></p>
<h3>Facebook</h3>
<p>This was the easiest of the lot, which I got from trawling through the design of<a href="http://www.nomnomnom.co.za/" target="_blank"> nomnomnom.co.za</a> (thanks to <a href="http://www.battica.co.za" target="_blank">battica</a> for the code in there!).   Here is the code used for Facebook:</p>
<blockquote><p>&lt;a target="_blank" title="Facebook" href="http://www.facebook.com/sharer.php?u=&lt;?php $turl = CompressURL(get_permalink($post-&gt;ID)); echo $turl; ?&gt;&amp;t=&lt;?php the_title(); ?&gt;" rel="nofollow" class="social-bookmark"&gt;<br />
&lt;img alt="Facebook" src="&lt;?php bloginfo('template_directory'); ?&gt;/images/facebook.jpg"/&gt;<br />
&lt;/a&gt;</p></blockquote>
<p>This should work off the bat (make sure you have an image ready in your theme's images folder).</p>
<h3>Twitter</h3>
<p>This one was a bit more complex, and took me a while because I had many many issues with the URL compression that was originally suggested in the site I used (cannot remember the site as I closed the tab by accident).   Turned out that it wasn't as plug and play as the author had stated, and I had to play with this for a good hour or more...   Here is the Twitter code I ended up using, any variables that you would need to change for your blog are in <strong><em>bold italic</em></strong>.</p>
<blockquote><p>&lt;a target="_blank" title="Twitter" href="http://twitter.com/home?status=Reading: &lt;?php the_title(); ?&gt; - &lt;?php $turl = CompressURL(get_permalink($post-&gt;ID)); echo $turl; ?&gt; (via @<strong><em>nightwulfe</em></strong>)" rel="nofollow" class="social-bookmark"&gt;<br />
&lt;img alt="Twitter" src="&lt;?php bloginfo('template_directory'); ?&gt;/images/twitter.jpg"/&gt;<br />
&lt;/a&gt;</p></blockquote>
<p>Again, make sure you have the required images in your theme folder.   Replace the name after the '@' with your Twitter account name.</p>
<h3>LinkedIn</h3>
<p>This one was a difficult one, in fact, it still is.   Tonight was my <em>first attempt </em>at php.   Thankfully I have the equivalent of an SCJP, so I could read code and play with functions/methods etc, and be able to understand the <a href="http://codex.wordpress.org/Function_Reference" target="_blank">WordPress function API</a>.   Having said that, this one is still messing me about.   Don't get me wrong, it does work.   However, I believe it could work better.   The code for this is based on the <a href="http://www.linkedin.com/static?key=developers_widget_shareonlinkedin" target="_blank">LinkedIn developer</a> widgets (<em>note that there is a license agreement involved with LinkedIn!</em>).   Again, variables to change are in <em><strong>bold italic</strong></em>.</p>
<blockquote><p>&lt;a target="_blank" title="LinkedIn" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;source=<strong><em>add_your_url_here</em></strong>" class="social-bookmark"&gt;<br />
&lt;img alt="LinkedIn" src="&lt;?php bloginfo('template_directory'); ?&gt;/images/linkedin.jpg"/&gt;<br />
&lt;/a&gt;</p></blockquote>
<p>Yet again, make sure your image is there...   Now, the thing that got me.   As stated with the LinkedIn widgets, there is a variable in the URL called &amp;summary=.   In here, I was hoping to place my post excerpt from within WordPress for that particular post.   I tried various degrees of <em>&lt;?php wp_trim_excerpt("&lt;?php get_the_content(); ?&gt;); ?&gt;</em>, just plain <em>&lt;?php get_the_content(); ?&gt;</em>, and a whole bunch of other methods I no longer care to remember, however all I could get generated in the output string was nothing.   It always stayed at <em>'...&amp;summary=&amp;source=www.sigmasquared.co.za...'</em>.   So, if you know how I can extract my excerpt from a post, please please, let me know in a comment!</p>
<h3>RSS 2.0</h3>
<p>Last but not least, I wanted my whole site to have a link to the RSS 2.0 feed.   I placed this in my <strong>header.php</strong>, but really, it is up to you where you want it.</p>
<blockquote><p>&lt;a title="&lt;?php _e('RSS 2.0 Feed'); ?&gt;" href="&lt;?php bloginfo('rss2_url'); ?&gt;"&gt;<br />
&lt;img src="&lt;?php bloginfo('template_directory'); ?&gt;/images/rss.jpg" alt="RSS 2.0 Feed" /&gt;</p></blockquote>
<p>And, yet again, make sure you have the image in the right place...</p>
<p>So that was my entire afternoon/evening, and I have such a feeling of accomplishment from it!</p>
<p>In hindsight, I could have done this by copy pasting the whole lot from the site I eventually found <a href="http://blogs.business.com/b2b-online-marketing/2009/create-share-buttons/" target="_blank">here</a> at B2B Online Marketing, but as Murphy would have it, I would only find that site once I had finished everything else...</p>
<p><strong>Note</strong>: If the code above does not work for you, please leave me a comment, I neatened it up in the article above here and may have wiped out a space or two in the process.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigmasquared.co.za/2010/01/diy-wordpress-social-media-icons/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<price></price>	</item>
		<item>
		<title>How to restore a corrupt Windows XP registry</title>
		<link>http://www.sigmasquared.co.za/2009/12/how-to-restore-a-corrupt-windows-xp-registry/</link>
		<comments>http://www.sigmasquared.co.za/2009/12/how-to-restore-a-corrupt-windows-xp-registry/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 10:29:06 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[General Geekery]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.sigmasquared.co.za/?p=103</guid>
		<description><![CDATA[Every now and again, you come across a machine that has the registry die completely, coupled with an error message along the lines of Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM To restore the registry is relatively easy albeit drawn out, providing Windows Restore is enabled. Insert the [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and again, you come across a machine that has the registry die completely, coupled with an error message along the lines of</p>
<blockquote><p>Windows XP could not start because the following file is 		  missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM</p></blockquote>
<p>To restore the registry is relatively easy albeit drawn out, providing Windows Restore is enabled.</p>
<p><span id="more-103"></span></p>
<ol>
<li>Insert the Windows XP boot CD and boot off it.</li>
<li>Press &#8216;R&#8217; to enter the recovery console</li>
<li>Select the Windows instance you wish to repair (remember to type the number and not just hit enter)</li>
<li>Make a temp directory by typing &#8220;md tmp&#8221;.</li>
<li>Create a backup of the current Windows registry by typing the following commands:
<ul>
<li>copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak</li>
<li>copy c:\windows\system32\config\security c:\windows\tmp\security.bak</li>
<li>copy c:\windows\system32\config\system c:\windows\tmp\system.bak</li>
<li>copy c:\windows\system32\config\software c:\windows\tmp\software.bak</li>
<li>copy c:\windows\system32\config\default c:\windows\tmp\default.bak</li>
</ul>
</li>
<li>Delete the current Windows registry by typing the following commands:
<ul>
<li>delete c:\windows\system32\config\sam</li>
<li>delete c:\windows\system32\config\security</li>
<li>delete c:\windows\system32\config\system</li>
<li>delete c:\windows\system32\config\software</li>
<li>delete c:\windows\system32\config\default</li>
</ul>
</li>
<li>Copy the Windows repair registry by typing the following commands:
<ul>
<li>copy c:\windows\repair\sam c:\windows\system32\config\sam</li>
<li>copy c:\windows\repair\security c:\windows\system32\config\security</li>
<li>copy c:\windows\repair\system c:\windows\system32\config\system</li>
<li>copy c:\windows\repair\software c:\windows\system32\config\software</li>
<li>copy c:\windows\repair\default c:\windows\system32\config\default</li>
</ul>
</li>
<li>The type &#8216;exit&#8217; to reboot the computer.</li>
<li>Get into safe mode by pressing F8 before the Starting Windows screen comes up.</li>
<li>Log in as Administrator</li>
<li>Open My Computer and then the C drive</li>
<li>Click on Tools &gt; Folder Options</li>
<li>Under the &#8216;View&#8217; tab, select &#8216;Show hidden files and folders&#8217; and uncheck &#8216;Hide protected operating system files&#8217;</li>
<li>Close the Folder Options window</li>
<li>Open the System Restore folder (if you cannot open the folder, please use this link to find out how to unlock it: <a href="http://support.microsoft.com/kb/309531/" target="_blank">http://support.microsoft.com/kb/309531/</a>)</li>
<li>Open the &#8216;_restore{lotsofnumbers}&#8217; folder that is <strong>not </strong>the current time (use detail view)</li>
<li>Inside the &#8216;_restore&#8217; folder, select a recent &#8216;rp{number}&#8217; folder, these are your restore points, use detail view for dates.</li>
<li>Inside the &#8216;rp{number}&#8217; folder, open the &#8216;snapshots&#8217; folder</li>
<li>Copy the following files to c:\windows\tmp
<ul>
<li>_REGISTRY_USER_.DEFAULT</li>
<li>_REGISTRY_MACHINE_SECURITY</li>
<li>_REGISTRY_MACHINE_SOFTWARE</li>
<li>_REGISTRY_MACHINE_SYSTEM</li>
<li>_REGISTRY_MACHINE_SAM</li>
</ul>
</li>
<li>Navigate to c:\windows\tmp and rename the files to the following:
<ul>
<li>DEFAULT</li>
<li>SECURITY</li>
<li>SOFTWARE</li>
<li>SYSTEM</li>
<li>SAM</li>
</ul>
</li>
<li>Reboot the computer</li>
<li>Using the boot CD, get back into the Recovery Console as described above</li>
<li>Run the following commands to delete the repair registry:
<ul>
<li><span>del c:\windows\system32\config\sam<br />
</span></li>
<li><span>del c:\windows\system32\config\security<br />
</span></li>
<li><span>del c:\windows\system32\config\software<br />
</span></li>
<li><span>del c:\windows\system32\config\default<br />
</span></li>
<li><span>del c:\windows\system32\config\system </span></li>
</ul>
</li>
<li><span>Run the following commands to restore the registry you copied from the restore point:<br />
</span></p>
<ul>
<li><span>copy c:\windows\tmp\software      c:\windows\system32\config\software<br />
</span></li>
<li><span>copy c:\windows\tmp\system       c:\windows\system32\config\system<br />
</span></li>
<li><span>copy c:\windows\tmp\sam      c:\windows\system32\config\sam<br />
</span></li>
<li><span>copy c:\windows\tmp\security       c:\windows\system32\config\security<br />
</span></li>
<li><span>copy c:\windows\tmp\default      c:\windows\system32\config\default </span></li>
</ul>
</li>
<li><span>Type &#8216;exit&#8217; to reboot the computer with the restored registry.</span></li>
</ol>
<p>You have now manually restored your Windows XP registry!   On a previous attempt at this a machine did need to re-activate with Microsoft, so ensure that you have an active internet connection or a phone handy in order to activate before you log on.</p>
<blockquote><p>Update (2011/06/12) &#8211; To make your life easier, after step 10, open up System Restore from Start > Programs >  Accessories > System Tools (or select the option when prompted), and restore to the previous restore point available.   If you want to show off though, by all means use the above.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sigmasquared.co.za/2009/12/how-to-restore-a-corrupt-windows-xp-registry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
	</channel>
</rss>

