My father is a Linux Mint convert over the last three years, and has been running Linux Mint 9 since 2009. Unfortunately he has to use MS Office for some work things, including writing and running macros, so he can’t can’t get away from it completely (it’s for state schools usually, so it should be available in some open format, but I digress). He loathes having to select to boot windows in grub.
Anyway, recently Windows has creaked to (even more of) a crawl on his old tosh satellite, probably infected with something horrible because he rarely boots it and something got in between AVG and Spybot updates. OpenOffice on Mint 9 is getting long in the tooth. He asked me if I could think of another way around the problem that could allow him to be able to get in and out of Windows quickly, cut and paste between Windows and Linux quickly, have a better OpenOffice version and not have to worry much about the infections.
Various solutions were discussed, researched, and discarded. Some of them were:
- Wine – MS Office is not too clever in any of the bottles yet
- Crossover office – ditto
- Full reinstall of Windows XP then Office 2010, then upgrade Linux Mint to 11 – going to be in same situation in x months time when XP grinds to a halt again
After a moment of clarity, we went with: upgrade to Linux Mint 11, install VirtualBox OSE, create a Windows XP VM with Office and take a snapshot, turn off networking on the VM, share a folder on the Linux box with the windows VM, and have Virus monitoring on the Linux box.
This solution gives us the fast switching between OSes; cut and paste (with the VirtualBox add-ins); the latest LibreOffice; and, when the Windows VM gets infected (pretty sure bet, even with networking turned off), rollback to the clean snapshot. Downsides are having to run an instance of Windows and MS Office. Money and sales target ticks for MS.
Here’s what we had to do. First the prep, which mostly took place before the big meetup. If we’d done all of it before, it would have saved us a couple of hours on the day.
- Backup /home
- Confirm nothing on the Windows partition needing backing up
- Torrent the Mint ISOs and select required version (we checked LXDE and Gnome standard. My father still prefers Gnome so we went with that)
- Find the Windows XP Pro install disk that came with your machine originally (you did get one, didn’t you?)
- Find the Windows licence code on the bottom or side of your machine
- Find your Office DVD and licence code
- Download Windows Service Pack 3
For the actual day I went a little further, just to make things more bearable:
- Persuade lovely wife to prepare and cook a topside of beef with all trimmings
- Get in sufficient wine and cheese for the day of the install
On the day, here’s the actions we went through:
- Confirm /home backup is ballpark.
du -hs /home; du -hs /media/backupDisk/home
- Fire up Linux Mint 11 Live DVD and install Linux Mint 11. We have a diddy 60GB HDD so partitions were:
- 14GB primary, mount point / – system, etc (too big, but playing for the long haul)
- 2GB swap – logical, at end of disk
- Rest logical (44GB-ish), mount point /home
- Restore /home from the backup.
- In Software Manager install
- VirtualBox OSE
- VirtualBox Add-ins ISO image
- In VirtualBox:
- create a new VM for Windows XP. Give a dynamic growth to 15GB. More than enough, but you have a lot of upgrading and installing to do and nothing is worse than a windows machine with a rammed full system disk
- Install Windows XP Pro (don’t even think about XP Home). Hope you have SP2 at least
- Install Windows Service Pack 3
- Install Windows Updates – there were 64 for us, the 48th was IE 8 and needed questions answering, so don’t walk away
- Install MS Office 2010
- Flag the network adapter with “cable unplugged”
- Start Word and fill in all the author blurb
- Mount a shared folder in the linux /home/username/ area (with AV protection on it). Make it permanent mount.
- Full screen the VM and take a snapshot
- Give yourself a pat on the back (and swing your pants)
It took a long, long time, most of it getting Windows installed right, but we won’t have to do it again (I don’t think). Mint will look after itself largely, with upgrades being pretty simple now. If windows goes slow, my father can just rollback to the pristine VM image.
Other things we wanted to do but didn’t have time:
- Setup sshd for remote admin access
- Setup LVM so we grow the disk space onto a PCMCIA card HDD at some point
- Setup dropbox for remote doc backups – need to investigate as last I heard dropbox had been compromised, not sure what resolution was.
- Setup Picasa for picture admin and remote backup
- Drink Bowmore