Category Archives: Open Source

Jarndyce and Jarndyce

To follow up on my recent posting where I mentioned the SCO/Linux fiasco, Eben Moglen, in a recent episode of the FLOSS Weekly podcast, estimated the overall costs of SCOs unsuccessful action as between $100-150M! And he’s pretty well qualified to make a good estimate.

So if you’re thinking of investing in a company because they’ve suddenly discovered they have a great IP claim, as many people appear to have done with SCO, just remember where most of that money will be going… Unfortunately, SCO wasn’t the only one paying.

One of the best things about the UK legal system, I think, is that if you bring an action against somebody which is unsuccessful, you are generally liable for their legal costs as well as your own. It’s one of the best barriers against an over-litigious society. May we never lose it…

What a strange world…

It’s quite bizarre, I think, the whole world of anti-virus and security software. Fixing the failings in Microsoft’s products has become such a huge business for the likes of Symantec and McAfee that they are complaining bitterly about Microsoft’s attempt to fix the failings itself.

This is because Microsoft is getting into this business itself, and charging for software which is supposed to fix its own security holes – another slightly bizarre concept, but not, I suppose, much worse than a car dealer charging for repairs on a car he sold you, if you subscribe to the concept of ‘normal wear and tear’ being applied to software. It’s interesting, but Windows does seem to degrade over time in a way that other software doesn’t, so perhaps this model is valid! I’ve often wondered how many new PCs are sold because the old one is “getting very slow”, and the process of wiping the hard disk and starting again from a fresh install is just too scary…

Anyway, competitors worry that they won’t be able to compete with the official car dealerships because they won’t have the tools, and the same is true in the software world.

I worry about what incentives Microsoft will have to make a secure system, when they directly profit from its insecurities. Especially when some of the insecurities will only be fixable by them.

It’s about as far from the Linux model as you can get…

NeoOffice 2

Those splendid chaps over at NeoOffice have released the first completely free beta of version 2.0.

NeoOffice is OpenOffice with a Java-based Mac front-end; this means that you don’t need to run X11 to use it, and it integrates rather better with many Mac features – most notably the native Mac fonts and printing.

NeoOffice has been around for some time, but it is now based on OpenOffice v2, which means that it’s the best solution for Mac users wanting to embrace the increasingly-important OpenDocument formats.

The nice thing about standards…

…is that there are so many to choose from. Especially when it comes to Linux distributions.

Here’s a nice timeline & family tree of distributions, which makes one realise how hard the decision could be for somebody starting Linux from scratch. And this isn’t complete, by any means.

My own favourite at present is Ubuntu, because it has a clean minimalism to it and I don’t care whether or not my desktop looks like Windows. Novell’s new SUSE Linux Enterprise Desktop is very slick and probably worth paying the $50 over the openSUSE version. Interestingly, where many distros have copied features from Windows in the past, SLED, as it’s known, is now copying more from the Mac.
Fedora goes from strength to strength too, and is a solid, standard option, though less exciting. You see, even I am undecided…

Here’s a slightly scaled-down version of the image, for those who don’t havce a shiny new 1920×1200 monitor like me, hee hee…

Linux tree

This is, of course, a fork of the original image…

Network-boot a Parallels Workstation client

Warning: Geeky stuff ahead!

The Parallels Workstation virtual machine software for the Intel Macs has a BIOS which doesn’t support network booting.

I wanted to simulate an LTSP workstation, which would boot over the network from our Linux server. Here’s how I did it:

On the ThinStation project site, I found a link to a Universal Network Boot package – a zip file containing disk images for floppy, CD and HD.

From this I grabbed the ISO CD-ROM image eb-net.iso and set up my virtual machine to use this as the CD instead of the physical CD drive. I also configured it to boot from CD first, and, for my purposes, I removed the hard disk from the config as well.

Sure enough, it boots up just fine and I have an LTSP terminal in a window. Much easier for experimentation than rebooting my embedded device all the time.

Flashblock

Another good reason for using the Firefox web browser: the FlashBlock extension gets rid of most of those annoying Flash-based advertisements and shows a nice static placeholder icon on the page instead. If you actually want to see the Flash content, you can just click on it.
One click to install.

Getting the big picture

I saw my first 100 Mpixel display today, on a visit to Calit2 at UCSD.

2006_05_16-09_23_40

It’s 55 standard displays, with a bank of Linux machines to drive them. So the pixels are the same size as on your normal display, but you need to walk around to examine the whole image. Very cool.

Click the picture for a couple more images.

Portable Apps

Here’s an interesting site:

A portable app is a computer program that you can carry around with you on a portable device and use on any Windows computer. When your USB thumbdrive, portable hard drive, iPod or other portable device is plugged in, you have access to your software and personal data just as you would on your own PC. And when you unplug, none of your personal data is left behind.

There are portable versions of most of the current Open Source apps – Firefox, GAIM, Thunderbird, Abiword, OpenOffice…

Using Linux to upgrade a Windows machine

A rather long post intended for geeks…

The Problem

My father has an elderly Dell Inspiron laptop running Windows 2000. His 4GB hard disk was almost completely full, it was heavily fragmented, it didn’t have enough space to do a proper defragment, and it was starting to get quite tricky to install Windows updates etc. It was also crawling because of all the layers of Norton antivirus and firewall stuff that those lucky Windows users need.

So I wanted to replace the disk with a 40GB drive I had taken out of my old Powerbook, and do some tidying up at the same time. Tempting as it would have been to do a fresh installation of the OS and applications on the new disk, that would have been impractical; there were just too many bits. And though I had successfully switched my father-in-law’s machine to Linux in the summer, my father is rather more dependent on Microsoft Office at present. So I had to come up with a way to move the current system, intact, to a new disk with a larger partition. This post is really a record, for me, of what I did in case I ever want to repeat it, but in the unlikely event, gentle reader, that you find yourself in a similar situation, the following may be of use to you too…

Getting started

The first thing I did was to get a USB hard disk enclosure so that whichever disk was inside the machine could talk to the one on the outside! I managed to find one for £22 at a local computer store. The laptop only has USB v1, so this wasn’t very fast, but it worked fine.

I also had some space on a Firewire drive and an old PCMCIA Firewire adaptor. So I had the idea that I would connect this drive up, image the existing partition onto it, swap the internal disk, restore the image onto the new one, and resize the partition to make use of the new extra space.

This would have been fairly easy on the Mac, where the ability to do things like booting from external devices and creating images of drives all comes as standard. And where, if you want to, you can just copy applications from one drive to another by dragging and dropping. On Windows it’s a lot more challenging. I could have bought copies of DriveImage and PartitionMagic. They’re good tools and they would have done the job nicely, but I didn’t feel like spending too much money when I don’t have any other Windows machines and didn’t expect this one to live very much longer. And the shops were shut. And besides, there must be a way to do this for free…

Just using Windows?

My first thought was that I could use the Backup program that comes with Windows 2000. I’d backup onto the Firewire drive, put in the new hard disk and install a basic copy of Win2K, then restore from that backup. I did all of this, which took two or three hours, but when I’d finished all sorts of applications wouldn’t run. I think, as might be expected, that Windows cannot restore onto the system disk from which it’s running. It didn’t give me any error messages or anything; it just didn’t work properly afterwards. I blame the registry…

So I had to come up with another solution.

Using Linux

I was curious to see how well Linux would run on this machine, so I grabbed my trusty Ubuntu CD, created a small partition at the end of the disk, and installed Ubuntu there, leaving space for an eventual Windows partition before it.

I had never installed Ubuntu on a laptop before, and on this one it was as smooth as you could possibly imagine. Not only did it deduce the somewhat non-standard screen resolution correctly, and work perfectly with the external USB drive, it also had out-of-the-box support for:

  • My PCMCIA Firewire card (That really surprised me)
  • My old Orinoco PCMCIA wi-fi card
  • My old Xircom PCMCIA ethernet card

Amazing. I now had a solid, virus-free operating system, which was nice and fast, and getting it installed, up and running and connected to the net was much easier and quicker than Windows 2000 had been. A round of applause for the Ubuntu guys, please.

OK, so, now I needed to transfer the old operating system from the old disk (now in the external USB enclosure) into a partition on the new disk. I would need a few utilities, but these were all freely available and easy to install using the standard Ubuntu package manager.

First, I used PartImage to create a file which was a compressed copy of the old partition. I then created a FAT32 partition on the new disk of about the right size and expanded the image into that. Sure enough, I could mount the filesystem in Linux and see all the files. Looks good.

So now the only thing was that the partition was the same size as the original 4GB I had on the old hard disk, and it had about 30GB of unused space after it. I used Parted, a partition editor, to resize it without deleting the data. (If it had been an NTFS-format partition, I would have needed NTFS Resize).

Everything looked OK, so I needed to configure GRUB (a Linux bootup system thing) to allow me to boot either into Windows or into Linux. This was just a case of editing /boot/grub/menu.lst and uncommenting the example configuration for Windows.

I restarted, and Windows booted! Well, almost. It got most of the way there and then came up with a message saying that my pagefile was missing or the wrong size, and I would need to recreate it. But it never got beyond that – it just kept cycling around and showing the error to me again. Bother. So close and yet so far…

Fixing the boot sector

I did some Googling on the error message and discovered, for reasons that I don’t quite understand, that this problem can be fixed by booting from DOS or a Windows recovery disk and doing FDISK /MBR, which overwrites the master boot record on the disk. I knew that this operation wouldn’t damage my Linux partition, but it would overwrite GRUB and so delete the menu which allowed me to boot into Linux.

Fortunately, GRUB is a very small but very flexible tool. So before I did this, I created a bootable floppy with GRUB on it (Here’s how to do it).

Then I rebooted from a Win95 Recovery Disk – almost any kind of DOS-like system will work – and did FDISK /MBR, after which I could reboot into Windows and everything was hunky-dory.

I could also use my GRUB floppy to boot into Linux, run grub-install /dev/hda, and I had my dual-boot menu back. Hoorah!

Closing remarks

All I had to do then was tidy up the Windows world, which meant virus-scanning, defragmenting, and reinstalling Internet Explorer, which had managed to become somewhat confused even before I started. I think the package from my father’s ISP had done some funny configuration on it.

I didn’t really need IE, because I’d installed Firefox and it worked just fine, in fact rather better. But other packages, like Windows Update, tend to depend upon IE so I wanted to get that fixed. It was just a small download of the basic installer from the Microsoft site and it seemed to set things to rights.

So now I hope to gently wean my dad off IE and Outlook Express, onto Firefox and Thunderbird, and show him that his files open just fine in OpenOffice, and, who knows, the next shift may be on to Linux. At which point he’ll be able to ditch his subscription to Norton Antivirus, which was the most expensive part of the entire operation!

Where ‘ave Ubuntu?

Some of you will have read my distressed posts last month from my in-laws’ house as I tried to deal with their virus-ridden PCs (here and here), so I just thought I’d bring the story up to date.

One of the machines, the Win98 one, was not only really dead, but really most sincerely dead. And we had no original CDs to reinstall the OS, and no real budget to buy a new OS. So it seemed like the ideal time to make use of a free one!

Fortunately, we now had broadband, so I downloaded Knoppix, which is a version of Linux that can run from a CD. I burned one on my Mac, used it to boot up the dead machine, and managed to copy off the documents, photos emails and address book onto a flash drive. I then downloaded and made an install CD of Ubuntu, probably the first Linux distribution that comes close to being usable by normal people, and with great relief I reformatted the disk and obliterated all traces of Windows 98 from the machine, never to darken its hard disk again. Ubuntu installed beautifully, and we had a working machine again.

We then needed to connect it to the network, and, sadly, the new NetGear wifi card that was in it was not supported. I had checked this in advance, and knew that I needed to get and build some new drivers, which, with the aid of these instructions and a few flash-drive transfers from my Mac, I was able to do. This goes to prove that ordinary users may be able to use Linux now, but they probably wouldn’t be able to install it. The same is true of Windows too, though; the scale of difficulty may be different, but either would be equally unthinkable for many people.

So now my father-in-law runs Linux. His demands don’t extend much beyond email, solitaire and some occasional web-browsing and simple word processing, and it’s just fine for that. I can connect in from the other side of the world and install updates etc, and thanks to the VNC support built in to GNOME, I can view his desktop and help him with problems, and I sometimes leave post-it notes there for him after I’ve adjusted something in the middle of the night. It hasn’t been rebooted since I left a month ago.

I also gave the other machine – a Windows XP one – a good spring clean. I ran lots of checks, installed Windows security patches, paid for and installed a new Norton Antivirus with the very latest updates, and so forth. And it’s now behind a firewall.

A week after I left it had a new virus on it. We’re still trying to get rid of it.

How Linux Could Overthrow Microsoft

How Linux Could Overthrow Microsoft – a well-written article in MIT’s Technology Review.

OpenOffice 2.0 preview released

This Inquirer article lists some of the good things coming up in OpenOffice 2.0. The most important new feature is probably the database facility. The two most critical things missing in the Open Source world, I think, have been a good alternative to Microsoft Access, and a good accounts package. It will be interesting to see how close this comes to dealing with the first one.

Link from LWM

© Copyright Quentin Stafford-Fraser