Growing a WindowsXP VMWare GuestOS in Ubuntu

vmware_ubuntuMy desktop at home is based on Ubuntu and generally its a good end user experience.  The bonus to running Linux is it gives me a unix system to hack around with and I avoid some of the malware nonsense the plagues the much more popular Windows operating system.  Of course, Linux is a poor second cousin and there is a lot of software that is only for Windows.  The suite of work-alike applications under Linux is improving, but most people can’t quite get away from Windows entirely.

For my part, one of the key applications is iTunes.  Sure you can sort of get by with pure Linux, buts its still pretty messy.  Running the real application is much easier.  There are a few other less frequently used applications that require me to have a Windows install around too.

Quite some time ago, I took a physical install of WindowsXP Home and virtualized it to run under VMWare Player (you can also choose to use VMWare Server).  I’ve lost track of the specific steps I did, but the following how to seems to cover basically what I did.  One footnote to this process is that it appears to Windows as if you’ve changed the hardware significantly enough to require revalidation of your license – this shouldn’t be a big deal if you’ve got a legitimate copy.

Now back then, I figured that a 14Gb disk would be plenty of space for Windows.  (Ok, stop laughing now).  So this worked fine for a couple of years, but the cruft has built up to the point where I’m getting regular low disk warnings in my WindowsXP image.  Time to fix it.

You’ll need to get a copy of VMWare Server.  This is a free download, but requires a registration that gives you a free key to run it.  You actually don’t need the key – as we only need one utility out of the archive:  vmware-vdiskmanager.  This will allow us to resize the .vmdk file – which will take a little while.


./vmware-vdiskmanager -x 36Gb WindowsXP.vmdk

The vmware server archive also contains another very useful tool: vmware-mount.  This allows you to mount your vmware disk and access the NTFS partitions under Linux.  Very nice for moving data in or out of your virtualized Windows machine.

I need to credit the blog post which pointed me at the vmware-vdiskmanager, but it goes on to talk about using the Windows administration tools to change the type of the disk from basic to dynamic.  This is a feature not available in XP Home.

The .vmdk file represents the raw disk, so we’ve now got more drive space avilable but the Windows partition is still stuck at 14Gb.  No problem, the Ubuntu live CD contains a copy of GParted which can resize NTFS for us.  We need to edit the .vmx file to add the .iso file and boot from it.

ide0:0.present = "TRUE"
ide0:0.fileName = "/MyData/ISOs/ubuntu-9.04-desktop-i386.iso"
ide0:0.deviceType = "cdrom-image"

I did also have to fiddle with the VMWare BIOS (F2 on boot) to enable booting from the CDRom.  You may or may not need to do this step.

Once you have the Ubuntu Live CD running, run the partition editor under System->Adminstration->Partition Editor.  This is GParted and its got a pretty friendly graphical UI.  It may take some time to apply the change.

WindowsXP_Growing

Once you are done, you need to re-edit your .vmx file to remove the .iso and boot Windows once again.  Don’t Panic.  Windows will detect that there is something amiss on your file system and want to run a check / repair on it.  This is normal.  Let it run through this process, it is a one time fix up and you’ll boot clean afterwards.

WindowsXP-Chkdsk

Start to end it takes a couple of hours, but most of that is waiting for longish disk operations.  Worth it to now have plenty of drive space available for my Windows VMware image.

Hacking Scrubbing Bubbles Automatic Shower Cleaner

img_2757Like many, I enjoy a clean house.  There are plenty of gadgets out there that help you keep on top of the various cleaning duties – Scrubbing Bubbles: Automatic Shower Cleaner being one of them.  While some of the gadgets you pick up are really gimmicky, this one seems to help reduce some of the heavy cleaning the shower needs with minimal effort.

Now this doesn’t eliminate the need to clean the shower, and I should be honest here – when it does need cleaning I manage to neatly avoid doing the dirty work, but I can say that the Scrubbing Bubbles cleaner seems to lengthen the time between shower cleanings.

The only bummer is that the bottles are not refillable.  We stretch ours out by only using it every 2nd day or so (instead of every day as is recommended).  It still would be nice to be able to refill with a concentrate and dilute with water.  The catch is – the caps do not screw off, so you can’t open the bottles.

Let’s take a look at how the cap works:

img_2758img_2760

So on the left you can see a close-up of the threaded part of the bottle. Very sneaky, they’ve put a pair of small ‘ratchet’ nubs – there is another pair on the other side as well.  Looking at the cap, you can see the corresponding teeth.  Once tightened down, the cap is very solidly locked onto the bottle.

To hack this – you’ll need two of the scrubbing bubbles empty containers.  From one you will recover a cap, from the other the bottle.  To remove (destroy) the cap, I used a pair of wire cutters and a pair of needle nose pliers.  I started a cut up the side of the cap, then grabbed the edge of the cut with the pliers and peeled it back.  I used 2 or three cuts until I managed to free the cap from the bottle.  Removing (destroying) the bottle to recover a cap was easier, but I used the same basic approach: a small cut, followed by the pliers to twist the material away.  Go slow (and carefully with sharp tools!) since you want to avoid any damage to the part you are trying to keep.

img_2761

The bottle must be modified to removing the nubs.  The plastic is a hard plastic which seemed to respond nicely to a coarse file I had in my workshop.  A few minutes of work and I had smoothed over the two pairs of nubs – the cap now opens and closes easily.  Now we’ve got a refillable container.

HP Colour Laser Printer (CP1518NI) Review

1518niSo school is coming, and that gives me an excuse to buy a new printer. Back in 2005 I was tired of feeding my inkjet printer new printer cartridges at nearly $70 a pop, so I bought a B&W Samsung Laser printer which has served us very well.  So far I’ve only had to refill it once.

Since 2005, colour laser printer prices have fallen steadily.  You can now pick up one around the $150 mark if you do a little shopping.  However, toner cartridges are still very expensive – and it almost makes sense to buy a new printer when you run out.  Of course laser printers are not immune to the same “starter” cartridge trick that is played with inkjet printers – giving you a fraction (1/2 or worse) the toner that a full refill would.

Based on my previous experience with refilling the Samsung, I was keen to get another refill compatible printer.  The Samsung CLP-135 can be found very cheaply, but the toner cartridge has a chip which prevents refills from working (this may change in the future).  The HP CP1518ni can be refilled, but requires reset chips which come as part of 0f the refill kit. (I’ll probably get my refill kit via eBay closer to when I need to refill the printer)

I purchased the CP1518ni from FutureShop.ca (free shipping over $39), unfortunately there are no more left at this price ($230) currently.  They also had the description incorrect, as it indicated that the unit came with only 1 toner (black) cartridge – the printer in fact had all 4 toners installed.  I was comfortable shopping with FS due to their easy return it to the brick and mortar store policy.

If you’re keen to pick one of these up, CostCo.ca has them for $250, and staples.ca has a similar (but not as good) sale on.  I’m a bit surprised that the US prices for the same printer are quite a bit higher (basically $400).  Rarely are Canadian prices for this type of thing better than US prices.  If you want to go cheaper, the HP CP1215 is similar but lacks the network interface and only has drivers for Windows.

Shipping was fast – ordered on Sunday, was here by Wednesday.  The printer itself is quite heavy (40lbs), and quite a bit larger (15.7 x 17.8 x 10.0 inches) than the B&W laser we have.   Setting it up was a breeze, as it is a network printer it just needed power and a net cable.  The software (driver) was Mac OSX compatible, and the printer advertises itself using Bonjour on the network.  I haven’t tried to print from Linux, but searching on the net seems to indicate it can be done without too much pain.

The first colour print was a full page photo onto regular paper.  If you haven’t seen a colour laser print out, then the best description is that it looks like a picture from the newspaper.  Jenn later printed out an activity chart (in colour) and that looked really good – and this is more typical of what I’d expect to print (think business graphics).  I’m sure school projects will end up looking sharp (and colourful).  Alison was very excited that we had a new printer, but we had to explain to her that the colour printer would not do the colouring of a B&W colouring page from the net.