kdmurray.blog

The crossroads of life and tech

Five Step Guide to Restoring Your Computer

broken_computerThere are lots of reasons that we fall out of love with our computers.  Slow performance, viruses. spyware and just plain too-much-crap-all-over-the-place syndrome.  The only way you can be sure to solve these issues is to wipe and re-load your system.  If you have all the install disks for Windows (or your OS of choice) and your software, the process is fairly straightforward.  Mac/Linux fanboy warning: I’m going to use Windows examples and software in most cases… deal with it.

After the tutorial, I’ve included a list of applications that you can use to make your computing life better.  The list contains free and open-source software from the original developers that you can trust on your newly cleaned system.  I highly recommend reading over the list, and even trying a few of them out on your current system before installing any of your old apps and tools.

Things you’ll need

  • Infected (or otherwise underperforming computer)
  • OS re-install disks (and product keys!!)
  • External hard drive (strongly recommended) -or-
  • Backup media (CDs, DVDs)

Step 1: Backup your data

backupYou should already have a backup process in place to keep all of your data secure.  If you do, good for you but that doesn’t mean you can skip this step.  If you have, or have been able to purchase an external hard drive use that to backup the data. It’s much faster, and far more convenient than trying to backup to external media like CDs and DVDs.  Make sure that you take everything you want to have on your new system. Often overlooked folders include your bookmarks (favourites) and desktop.  These won’t be captured in your Documents folder by default.

Step 2: Reinstall your system

This is the part that makes everyone queasy. The “delete everything and re-install” part.  But fear not, it isn’t as daunting as it sounds.  Once all the data has been backed up, put the Windows (or other OS) disk in the drive and reboot the computer.  Once the system comes back up, follow the prompts.

Select the partition to install Windows on.  In most cases, if you want to restore the system the way that it was, you can select the C: drive where the old Windows  install was located.  If you want to get into partitioning strategies that’s for another post.

If you’re in doubt format the drive using the NTFS system. It’s the default for most contemporary Windows systems and will work for 99% of people.  Yes, Mac/Linux fanboys, I realize that it’s a Windows specific file format.  You guys can use HFS+ (Mac) or ext3 (Linux).

Believe it or not that’s the “tricky” part.  Follow the remaining prompts through the text portion, and GUI portion of the setup to choose your username, password, time-zone settings, network settings etc.  These are pretty well all common sense.

Step 3: Patching and Packing

Unless you’ve learned the secrets to Slipstreaming prior to this re-install (in which case you probably don’t need this tutorial) you’ll need to install all the latest updates, patches and service packs for your system.

The majority of these can be installed through the Microsoft Update (Windows Update) site.  The updater can be run from your Start menu, or by pointing a browser at http://update.microsoft.com/.

It’s really important to get these updates in as quickly as possible because typically the CD you’re using to install the system is a couple of years old (particularly with Windows XP disks) and will be missing a ton of important security updates.  You may need to run this process a number of times before it catches everything.  Just continue the process until the update program tells you that there are no further updates available for your system.

Step 4: Re-install your applications

Here we go. Putting back all that was lost.  The first step is to install your heavy hitters installed.  Office, Visual Studio, Adobe Creative Suite — the things that take up Gigabytes of space on the disk.  After that, the smaller things, utilities, tools, games.  Check out the software list at the bottom of this post.

Once everything else is done, install your anti-virus or security software. This may be a controversial decision for most but I base the logic on the following: AV programs make software installation painfully slow.  The chances you’ll be infected while you’re doing the updates are minimal, so save yourself a bunch of time and do this last.

Step 5: Restore your data

Copy back all of the data you backed up in step 1.  This includes your bookmarks (you did back those up, right?), and anything you wanted to keep on your desktop.  Putting these pieces back is the last step to making the system your own again.

Realistically you’re looking at killing a full day with the whole process, depending how much data you have the backup/restore can take a few hours, but the process is pretty straightforward if you stay organized.  :)

Free software to help you out

Once you’re in the application re-install stage, there are lots of free tools that you can use to get your system working the same, or better than it was before.  The other reason is that these applications are great alternatives to trying to find pirated applications off the Internet.  Here they are, in no particular order:

  • 7Zip – an archiving / compression utility supporting a wide range of formats
  • ISO Recorder – Write ISO images directly from Windows explorer
  • Avast – Free anti-virus application with regular updates
  • Paint.NET – Photoshop-like image & graphic editing program
  • Firefox – Alternative (?) web browser
  • Thuderbird – Email client
  • Feed Demon – Powerful full-featured RSS reader & aggregator
  • FileZilla – FTP/SFTP/SCP client
  • Open Office – Alternative word processor, spreadsheet, presentation & database
  • VLC – Media player that supports nearly every format known to mankind
  • Evernote – Note taking/keeping application that sync’s with the web
  • Notepad++ – Tabbed notepad application
  • Visual Studio Express – Free versions of the Microsoft development tools

I hope this guide has proven informative, and will help you to move forward with your computing life.  Bring back that computer that has lost its lustre and make it uber-useful again.

Photo credits: wysz, S Baker on Flickr.

FREE Software :: CrossOver Free Today Only!

If you’re a fan of being able to run Windows applications on your Mac, listen up! CodeWeavers Windows-to-Mac application CrossOver is being offered for FREE today only.

If you’re interested in the offer, visit the CodeWeavers website to sign up.

If you want to read more about the background of this story, check out Michael Rose’s post on TUAW.

The long and the short of it: You have George W. Bush to thank (sorta) for your opportunity to buy free software.

How To Slipstream Windows XP SP3

I’ve decided to go with Windows XP for my dual-boot environment on the MacBook.  Partly due to familiarity, but mostly due to the lower resource requirement.

In setting up this new environment, I needed to decide how to cope with my Windows XP disc being an original, pre SP1 disc.  The solution: Slipstream.

Slipstreaming allows you to create a Windows XP CD that has updates like the most current Service Packs.  In this case, I’ll be adding Service Pack 3.

There are lots of guides on how to do the Slipstream process, including these two on HowToHeaven and Invisibill.  These are great step-by-step tutorials that show you everything involved in the process.  But they’re also very manual.

The tool I’ve chosen to go with is nLite.  This slick little application provides the ability to not only Service Pack your XP installation, but apply lots of other custom features as well.  Here are the steps I went through for my Slipstreaming adventure.  (There is also a step-by-step guide on the nLite Website)

Installation Screen ShotStep 1: When running nLite is to show it where the Windows installation is located.  After that, you’ll need to specify a location for nLite to perform it’s magic.  I chose C:slipstream.

Windows Slipstream ScreenshotStep 2: The next phase is to select the options for your installation.  I’m a whole-hog kinda guy, so I elected to go with every option if for no other reason than to browse the options and screens.

Windows Slipstream Screenshot

Step 3: Pick your Service Pack.  Once you’ve selected a service pack and applied it, nLite will perform the Slipstream operation and integrate the service pack.

Windows Slipstream ScreenshotStep 4: Updates & Hotfixes.  The more that you can download and apply here, the fewer there will be to apply once the windows installation is completed.

Windows Slipstream ScreenshotStep 5: Select components to remove.  nLite gives you the opportunity to eliminate components from the final installation.  This can lighten not only the ISO, but also the final installation.  Beware removing too many options.  By eliminating support for hardware or drivers the usage of the installation will become more limited.  However, if you have a specific application in mind it can help to streamline the process.


Step 6: Unattended Install. The next screen provides the ability to streamline the installation for a smooth unattended install.  If you want to use this option, you’ll need your Windows XP CD key at this stage.

Step 7: Installer Options. This screen allows you to customize some of the behaviours of the installation process including boot-time messages and BIOS backup retention.  If you don’t understand an option, take the default.

Windows Slipstream ScreenshotStep 8: Tweaks. Wow.  This section has dozens upon dozens of options to tweak and adjust virtually every major setting in Windows.  And a whole bunch that aren’t so major.  Take your time with this and make sure to read the little captions for each option.  There are so many possibilities.

Step 9: Integrate all the changes.  nLite will begin to create the installation image, merging together all the changes you’ve selected.  This process will take quite a while.  On my machine it took about 10 minutes.

Windows Slipstream ScreenshotStep 10: Burn the ISO.  Set any last settings you want for the ISO, and click the Create ISO button to start writing the image.  Once the image is written, it can be installed to a VM (VMWare/VirtualServer) or burned to a disk for installation at a later time.

Command Line 101 – Windows: Backup, Remote Desktop and More

I’ve been working on some things for work recently which have me deeply buried in the Windows command line again, both writing applications and scripting/automating actions against various systems on our network.

Backup your Files to a Remote Computer

One of the things we all need to do is keep backups of our data.  It’s easy enough to re-install your OS and all your apps, but if your system dies and you lose your data, the results can be heartbreaking to say the least.  So be proactive and schedule yourself a backup using xcopy.

xcopy "c:documents and settings<username>My Documents" "f:<username>" /C /D /E /H /Y

So lets examine what this does.  Normally the copy command can only copy single files, and doesn’t handle large file structures very gracefully. This is where xcopy steps up to fill the void.

  • /C — Continue to perform the backup even if an error is encountered (like a file that’s currently open/locked by another program)
  • /D — Copy only files which are newer than the ones on the destination drive (Don’t copy that 1.2GB movie file that you backed up last week)
  • /E — Copy all files and sub-directories under the one you’ve selected including empty ones (To exclude empty directories, use /S instead)
  • /H — Copy Hidden and System files (use this to make sure you catch those thumbs.db files that hold thumbnail caches for your pictures)
  • /Y — Automatically override destination files without prompting

Get a list of all your MP3 files (or anything else!)

Once in a while you may want to generate a list of files from your system.  This isn’t always an easy thing to do, particularly if those files are buried in a large series of well-organized subfolders.  But there is a way.

dir /B /S "c:documents and settings<username>my music*.mp3" > "c:documents and settings<username>my documentsAllMyMusic.txt"

The dir command is used to get a list of files and typically display it to the screen.  By changing where the output of the command goes using the greater-than (>) symbol you can print the output of the dir command (or any other command for that matter) to a file.

  • /B — Show a bare directory listing, files only no other information or headers
  • /S — Recurse through sub-directories to find all instances that match

In this case we set the search up to look through the My Music folder.  If you had already pointed your command prompt to the location you wanted, you could leave off the folder location, and just use a file string (*.mp3, *.doc, DSCN*.jpg) to search for the files you want.

Find out who’s logged in

This tip is aimed squarely at administrators that would like to know who (if anyone) is connected to a given computer.  If that computer is running Windows XP, Windows Server 2003 or a later OS this can be discovered by way of a couple of Terminal Services commands.

qwinsta /server:<hostname or IP address>

This will return a list of user IDs and will also indicate which session they’re connected to.  The console session (session 0) is the physical UI of the server.  That means that a person who is using the console session may in fact be in physical contact with the system (they may not too, as this access can be achieved remotely as well).  Session IDs higher than 0 indicate a connection using a MS Terminal Services client (mstsc).

If a user is connected to a computer, but has simply left the session disconnected (consider this an un-tidied session that’s no longer wanted.

If you find that you want to terminate a user’s session, this can be acheived through another command:

rwinsta /server:<hostname or IP address> [0|1|2|...|n]

By entering the name of the server, and the numeric session ID you can forcibly terminate a user’s session.  This can be much easier than trying to attempt a reboot of the server… particularly if the server is providing other services on your network.

So there you go, a few quick command line tips to help you become more productive with the Windows command line.

Virus Hunting — Avast + Unlocker

After a somewhat brief Aikido class tonight I was enlisted by Crow to help rid a Vista machine of the Vundo trojan which found it’s way onto the machine (prior to Avast being installed).

Avast did a great job of finding most things and cleaning them up.  What it had trouble with was a few DLLs that were in use by the executing trojan.  I was pointed toward Unlocker to free the DLL’s of their executing process and remove the lock that windows places on these files.  Once the file was unlocked, it was able to be deleted by Avast and all was well.

(Photo Credit: bigux on Flickr)

4.5 Ways to Pimp Out Windows Vista

As some of you may already know, I run Windows Vista on my Macbook.  Not full time, mind you, I’m a fan of virtualization.  :)   I’ve been trying to give my ol’ Vista install a bit more of a “wow” factor recently, and I’ve come across some great tips to help make your PC unique.

1. Lively Logon

This app’s not Vista specific, but Logon Studio will allow you to completely customize the way that your login screen looks.  Make your Windows Vista look like Mac OS X or Fedora Core 6.  The only downside to the Vista version is that it will only allow you to change the background, whereas previous versions provided a finer degree of cotrol.

Logon Studio is maintained by the Stardock folks.  For a bit more detailed review, you can check out GGP #79.

2. Gadgets Galore

Much like some other operating systems that shall remain nameless, Windows Vista has a sidebar to help you pimp-out your desktop with all sorts of fun and useful gadgetry.  Everything from traffic monitors, to CPU monitors, to gadgets that will do a slideshow of your favourite Facebook pics.  You can pretty much do anything with a sidebar gadget because it’s written using HTML and CSS.  Microsoft hosts a site called the Windows Live Gallery which will allow you to download dozens of these great free gadgets.

3. Wicked Wallpaper

Wallpaper is the quintessential customization that nearly everyone seems to know how to do.  As soon as we get our new computers almost the first thing that most people do is change their wallpaper.  Popular choices are the family pet, children, or “that beach” that you’ll get to… someday.

There are tons of sites out there that produce great wallpaper.  But one that most people forget about is good old photo-sharing site Flickr.  A simple query for “Vista Wallpaper” yields thousands of potential wallpaper candidates.  Here are a few of my favourites:


Photo Credit: wvs on Flickr


Photo Credit: janusz on Flickr


Photo Credit: spitfirelas on Flickr


Photo Credit: creativesam on Flickr

4. Spectacular Screen Savers

After the wallpaper, the next most common customization is changing one’s screen saver.  Sure, Windows has a dozen or so “interesting” screen savers, but really how many more times can we watch the starfield, or pour over those same photos again and again.

A great application called InstantStorm will allow you to turn any flash file (.swf) into its own screen saver.  This tool will take the flash file, and compile it into a self-installing screen saver ready to deploy on your computer.  This has the added bonus of being easily distributable and makes for a great screen saver to use at trade shows, or to distribute to clients on one of those funky business card CDs.

Instant storm was also reviewed on GGP #77.

side note: I borrowed the flash file of the pug licking a monitor to do my demo.  Worked out pretty well!

5. Theme Theory

This is the half-tip… I really wanted to include some detailed theme information for Vista but I couldn’t.  Here’s why:

Windows themes have been a topic that for many users lays shrouded in mystery.  How come there are people with better looking versions of Windows than me?  Where can I get that?  Well, I have some answers for you here.  A theme is a way of customizing everything in your Windows UI in one fell swoop.  This includes colours and wallpaper for a start, but often will include new icons, application skins or screen savers as well.

In Windows Vista theming really has a long way to go.  After seven years, there are tons of great theming devices for Windows XP, but for Vista many of the third-party theme options are limited and buggy.

Plug: If you’re still using XP and like high-tech looking themes… go get AlienGUIse.

Updates: Windows vs. Apple

I realize that many of you reading this are well aware of the tediousness of regularly performing your windows updates.  Hopefully it’s not as bad as this guy… I mean hell we’ve all done it.  Reload your Windows PC and spend 30-60 minutes running Windows Update multiple times to make sure you’ve covered everything.

So why, prey tell, would it be any different on the Mac?

Well, it isn’t.  At least not entirely.  When I bought Leopard last week, there were two software updates for me to do when I installed it… a mere 4 hours after its release!  2 updates in four hours?  That has to be some kind of record.