Tim Anderson’s ITWriting

Tech writing blog

April 24th, 2009

Ubuntu 9.04 not so jaunty

I still love Ubuntu, but it’s hard to find much to enthuse about in the latest release, 9.04 also known as Jaunty Jackalope. As this post observes, most of the changes are under the hood, so users will not notice much difference from the previous release, Intrepid Ibex or 8.10. Well, there’s faster start-up, and Open Office 3.0 – but then again, I installed Open Office 3.0 as soon as Intrepid came out, so this is not really exciting.

My own upgrade went better than the last one, but I’ve still had problems. Specifically:

  • I had to edit Grub’s menu.lst manually after the upgrade. I always have to do this, since it detects the hard drive configuration incorrectly.
  • My Adobe AIR installation was broken and had to be re-installed
  • I’ve lost hardware graphics acceleration and desktop effects. This is a laptop with embedded Intel graphics; apparently this is a common problem and Intel graphics support in Jaunty is work in progress. See here for more details an experimental suggested fix, which is not for the faint-hearted.

There are other updates, of course, and I was glad to see Mono 2.0.1 and MonoDevelop 2.0 available in the repository, for .NET development on Linux. If Jaunty is the same as before, but faster and more stable, that is no bad thing, though the shaky Intel graphics support undermines that argument.

My question: why is Canonical persevering with its policy of supposedly major releases every six months? This looks to me like a minor update; would it not be better presented as updates to 8.10, and focusing efforts on 9.10 in October? Six-monthly releases must be a heavy burden for the team.

I don’t mean to put you off Ubuntu. It is well worth trying either as a companion or alternative to Windows and Mac.

Update:

I have fixed my desktop effects. How? First, a little more about the problem. DRI (Direct Rendering Infrastructure) was not enabled. My graphics card (from lspci –nn | grep VGA) is:

Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03)

The problem I had before was reported in Xorg.0.log as:

Xorg.0.log:(EE) intel(0): [dri] DRIScreenInit failed. Disabling DRI.

I also noticed that /dev/dri/card0 did not exist on my system.

Well, I tried the technique described here. That is, I booted into an older version of the kernel; the oldest available on my system being 2.6.22.14. DRI magically started working. Then I rebooted into the latest version of the kernel, 2.6.28.11. DRI still works. So I am sorted. I’d be interested to know why this works.

November 13th, 2008

Reasons to love Linux #1: package management

I posted recently about a difficult Ubuntu upgrade, drawing the comment “What do you prefer to do on Linux that you don’t on Windows?”

Today I patched the Debian server which runs this blog. APT upgraded the following applications:

MySQL 5

Apache 2.2

Clam AntiVirus

Time Zone data (tzdata)

Some of these involve several packages, so 16 packages were updated.

Bear in mind that this is a running system, and that MySQL and Apache are in constant heavy use, mostly by WordPress.

I logged on to the terminal and typed a single command:

apt-get upgrade

The package manager took less than a minute to upgrade all the packages, which had already been downloaded via a scheduled job. Services were stopped and started as needed. No reboot needed. Job done.

I guess a few people trying to access this site got a slow response, but that was all.

Now, how long would it take to upgrade IIS, SQL Server and some server anti-virus package on Windows? What are the odds of getting away without a restart?

Admittedly this is not risk-free. I’ve known package management to get messed up on Linux, and it can take many hours to resolve – but this usually happens on experimental systems. Web servers that stick to the official stable distribution rarely have problems in my experience.

I realise that the comment really referred to desktop Linux, not server, and here the picture is less rosy. In fact, this post was inspired by a difficult upgrade, though in this case it was the entire distribution being updated. Even on the desktop though, the user experience for installing updates and applications is generally much better.

Let’s say I’m looking for an image editor. I click on Add/Remove and type a search:

I like the way the apps show popularity. I’d like a few more things like ratings and comments; but it’s a start. Inkscape looks interesting, so I check it, click Apply Changes, and shortly after I get this dialog:

I double-click, and there it is:

I admit, I did take a few moments to download an example SVG file from the W3C, just to make the screen grab look better. But provided you have broadband, and the app you want is in the list, it is a great experience.

Windows Vista has had a go at this. From Control Panel – Programs and Features you can get to Windows Marketplace, where you might search and find something like The Gimp (free)  or Sketsa SVG Editor (costs). I tried The Gimp, to be more like-with-like. I had to sign in with a Live ID even though it is free. I went through several web dialogs and ended up with a download prompt for a zipped setup. That was it.

In other words, I went through all these steps, but I still do not have The Gimp. OK, I know I have to extract the ZIP and run the setup; but Ubuntu’s Add/Remove spares me all that complication; it is way ahead in usability.

App Store on the iPhone also has it right. For the user, that is. I detest the lock-in and the business model; but usability generally wins. The online stores on games consoles, like XBox Live Marketplace, are good as well. I guess one day we will install or buy most applications this way.

October 31st, 2008

A painful upgrade to Ubuntu Intrepid Ibex

I’m writing a piece on Ubuntu – makes a change from all that Windows at Microsoft’s PDC. I wanted to be up-to-date, so I upgraded my laptop from Hardy Heron (8.4) to Intrepid Ibex (8.10), released just yesterday. I followed the officially recommended procedure. Currently I only have a wi-fi connection, which is not ideal, but I reckoned it might work. Before upgrading, I applied all available updates to the existing 8.04 installation.

The update manager started off confidently enough, though it sat for a long time on ldconfig deferred processing. Then it asked for a restart, and things started going wrong. Ubuntu could only boot to a terminal prompt, since it was missing packages needed for X, the graphical server, to start. I tried to fix this with apt-get; but I had another problem: the wifi connection was down. I managed to get this working with ifconfig and iwconfig, and repaired my system with apt-get update and apt-get dist-upgrade. This downloaded and installed some 340MB of packages, after which I could boot to the desktop.

I was not done yet. On startup, Ubuntu was pausing when configuring the network. When the desktop appeared, I had the problem usually expressed as nm-applet not appearing in the panel. This actually meant that the network manager had crashed. If I tried to restart it, it said ”no connections defined” and hung with some other errors. Once again, I could only restore wifi by fidding with console commands. I discovered I was not alone with the nm-applet problem. The fix that worked for me was to remove all references to network devices other than loopback in /etc/network/interfaces, as described here. Restarted, the network applet returned, and I could finally connect conveniently.

I got a surprise when I tried to browse the web. The upgrade had removed most of my applications, including FireFox and OpenOffice. I had to reinstall these using Add/Remove applications. I did find that FireFox had remembered my settings, once reinstalled, for which I was grateful.

Now that Intrepid Ibex is up and running, it will probably be as stable, fast and capable as Hardy Heron before it – really, it was. Linux is great, honest.

July 30th, 2008

Eee 901 problems – does Asus still care about Linux?

I am reviewing the Asus Eee PC 901, the one with the Intel Atom processor. Of course I asked to see the Linux version. In my view Linux is better suited than Windows for a device with limited storage; and it is more interesting to me since the original Eee PC 701 was something of a breakthrough for desktop Linux.

No problem with the hardware; but the OS is a bit of a mess. The first problem is that the wireless card does not work properly for me. Asus have used a less common Ralink card – maybe it saved a few pennies over the Atheros it used to have – but out of the box it is not set up right. When I try to connect with WPA encryption I get:

Error for wireless request “Set Frequency” (8B04)
SET failed on device ra0; network is down
ioctl[SIOCSCIWAUTH]: Operation not supported

Looks like an update is needed. Here’s where the big problems start. With the 701 I had no problems updating, whether using the Synaptic GUI, or apt-get in a console. The new Eee currently offers me two updates in its “Updates and New Software” applet, one for “StarOffice Mime Types” which installs fine, and the other for “Webstorage Update”, which fails. Click Details and it is blank; no error message.

Trying apt-get instead is equally frustrating. Thanks to dependencies, updating almost any package results in a huge download – taking over an hour over broadband. Then the update fails because it runs out of disk space. That, and some packages are returning a 404; I also got size mismatch errors. Note: use apt-get clean after one of these exercises as that will free disk space.

The fact is, update is broken. One solution is not to update – though security is always a concern – but that still leaves the wireless problem unsolved.

This is careless of Asus. Part of the idea with the Eee is that it is an appliance, it just works, it hides all that Linux gunk. Except it is failing to do so, because of errors in the package management. Here’s what one user says:

This is sad. The thing that really helped launch the original 701 into reality is gone, and that’s Linux…I know my way around computers, and I know where to look to fix stuff, but this would leave a horrible taste in anyone’s mouth that wasn’t accustomed to finessing Linux (that’s the nice way of saying it)…I can’t say I see much of a future for Linux on the Eee.

It’s early days for the 901; maybe it will all be fixed soon. Still, at the very least it is being pushed out before the software is ready; which is a shame because there is a lot to like as well.

The best advice for those who don’t mind tweaking may be to install Ubuntu or some other distribution.

Update: I fixed the wi-fi issue eventually – see here.

Technorati tags: , ,
July 2nd, 2008

What’s new in Subversion 1.5

The team behind the open source SCM (Software Configuration Management) tool Subversion released version 1.50 last month. Karl Fogel, president of the Subversion Corporation, says:

Measuring by new features alone, Subversion 1.5 is our biggest release since version 1.0 became available in February 2004.

I am a contented Subversion user, so took a look at the changes. Top of the list is “merge tracking”, though it is described as “foundational” which means that although the basic support is there, there is performance and feature work which remains to be done. From the user’s perspective, the difference is that branching and merging is just easier than before, as explained by Ben Sussman:

Notice how I never had to type a single revision number in my example: Subversion 1.5 knows when the branch was created, which changes need to be synced from branch to trunk, and which changes need to be merged back into the trunk when I’m done. It’s all magic now. This is how it should have been in the first place.

Other changes include sparse checkouts (when you only want to grab a small part of a repository), and changelists, a client feature which lets you tag a set of files under a changelist name and work on them as a group. There are also improvements aimed at making Subversion better suited to large-scale deployments using multiple servers. Subversion is still a centralized rather than a distributed SCM system, but 1.5 is better suited for use in a distributed manner. No doubt the Subversion team is aware of the increasing interest in Git, a distributed system. There are also numerous bug-fixes and performance tweaks. The changes are described here.

I want to move to Subversion 1.5 but it is not that easy. Compatibility is good, in that older clients work with 1.5 servers and vice versa, the main proviso being that you cannot mix several versions of the Subversion client with the same working copy. That is not likely to be a problem for most users.

The difficulty I encountered is that mainstream Linux distributions still have older versions of Subversion in their stable repositories. Ubuntu, for example, has version 1.4.4. My most-used Subversion repositories are on a Debian server, which also has an old version. I don’t want to switch the server to sid, Debian’s development distribution, and mixing packages is often problematic. I could do a manual installation I guess; but instead I will be patient.

I did install 1.50 on Windows, for an intranet repository. I used the Collabnet download. All I needed to do was to inform the installer of the location of my existing repository, and then copy a few lines from the old Apache 2.0 configuration file to the new Apache 2.2 configuration file. Everything works fine. I also updated TortoiseSVN on the Windows clients.

One of the advantages of Subversion (or any SCM) repositories over synched folders like those in Microsoft’s Live Mesh or Apple’s MobileMe (as I understand it) is that you get version history. I regard this as a key feature. The problem with synchronization is that you might overwrite a good copy with a bad one. It is easy to do; it might be caused by user error, or a bug in your word processor, or a failing hard drive. Automatic synch (un)helpfully replicates the bad copy all over. Versioning means you can just rollback to the good one.

April 25th, 2008

What to say about Ubuntu Hardy Heron?

I installed Ubuntu Hardy Heron, a “long term support” release which went final yesterday.

It’s a tricky thing to assess. There are in general two things to say about Linux. First, you can take the line that it is a wonderful thing: free, fast, responsive and capable. You can do your work on this, even run a business on it. You can write applications in Java, C# or any number of other languages. You can have fun with it too – it’s great for multimedia, just a shame that few games support it. Finally, it is nice to know that most of the world’s malware is targetting someone else’s operating system.

Alternatively, you can argue that Linux is fiddly, perplexing, over-complicated, inconsistent, and still not ready for the general public.

It is tempting to give Ubuntu an easy ride because it is free and because we so much want it to succeed; we need an alternative to the Microsoft tax or the Apple tax. Unfortunately you never have to look far to find little problems or things that should be easy but end up consuming considerable effort.

Here’s one thing I noticed today. Close FireFox. Open  the Help Centre, and click a web link. The Help Centre opens FireFox with the link you requested, but then cannot be used until you close the FireFox instance. Trying to close it brings up a “Not responding” message. If FireFox was already running when you clicked the link, it is fine.

Here is another. Open Help Centre, click Playing Music, then Listen to online audio streams. It says I can install Real Player 10 and that it is available from the “commercial respository”. What is the “commercial” repository? This page describes four Ubuntu repositories: main, restricted, universe and multiverse. Real Player is not in any of them. Further, if you try and install it using apt get, the following message appears:

Package realplayer is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package realplayer has no installation candidate

Hey, it’s Linux. Just Google and you’ll find a way. Who needs Real Player anyway? But that’s not the point … the point is that these little issues crop up and make running Linux less fun for non-geeks.

Here’s another one: I tried GNU Chess. I poked around in Preferences and chose the 3D view. It said:

You are unable to play in 3D mode due to the following problems:
No Python OpenGL support
No Python GTKGLExt support

Please contact your system administrator to resolve these problems, until then you will be able to play chess in 2D mode.

Fair enough; it is a clear, accurate and informative message – aside from the bit about “contacting your system administrator” which sounds like it was borrowed from Windows. You can just about forgive it in business software, but this is a game.

I still love Ubuntu. This one installed easily and updates nicely; the fancy graphics effects work smoothly; and most important, the same machine which felt slow with Vista now seems more like a high-performance workstation.

In other words, it it easy to support either line of argument. Personally I veer towards the favourable view; but I doubt fear of Ubuntu is keeping anyone in Redmond awake at nights.

February 24th, 2008

How long should it take to set up a laptop?

So you need a new laptop. Ignoring those irritating voices that say you should go Apple, you select a value-for-money offering from one of the big names like Toshiba or HP, hit the buy button at Ebuyer or the like, and a day or so later a van is at the door and you have your shiny new laptop. You slit the tape, pull the thing out of the box, plug it in and turn it on. How long should it take before you are happily typing away in Word or enjoying a DVD?

The answer I guess is as short a time as possible. In principle, I don’t see why it should take more than 5 or 10 minutes. The manufacturer has pre-installed the operating system and can ensure that all the right drivers are in place.

Here’s what actually happened when I did this for a friend yesterday. Toshiba Satellite Pro A200 with Vista Business. Not a bad machine, great value. We also had a key to activate Office 2007, which came pre-installed as part of Microsoft’s Office Ready scheme.

I started mid-morning. Turned on. It takes ages before it lets you in. I lost count of the reboots. There is some sort of partitioning dance, then when Vista itself starts up it goes through an optimisation process, then various Toshiba and third-party utilities install themselves, sometimes requiring a reboot. I broke for lunch.

After lunch I connected to the Internet. Vista immediately set about downloading updates. Needed reboots, naturally. Then I ran the Office Activation Wizard. Microsoft’s Office-Ready program is great marketing, but fairly annoying, because typically you don’t want to purchase all of it. In our case we had purchased Office Small Business, but not Access. In consequence, you end up with an installation that is partially a trial version, even though you have paid. I’ve heard of this scenario actually preventing a machine from passing “Genuine Office Validation” when trying to download updates from Microsoft. Not a good way to treat customers. The solution is to uninstall the bits of Office you are not actually buying.

At this point I could have declared “job done”, but I knew that it wasn’t. I applied Vista SP1, which takes ages. I applied Office 2007 SP1, which is fairly quick. I removed a few things that I knew would not be needed, like Outlook’s Business Contact Manager.

I uninstalled Toshiba’s ConfigFree utility. This is a thing that is meant to “simplify” managing wireless (and wired) networks. It hijacks Vista’s perfectly good built-in wireless configuration utility. Now, it is possible that ConfigFree genuinely offers some added value, but even if it does this kind of thing is still a nuisance. First, because people like myself know how the Windows version works, and are disinclined to learn the foibles of an unnecessary replacement. Second, because the official item will be maintained and updated through Windows update, rather than at the whim of Toshiba (or whomever).

If you are really unlucky, the supplier of your wireless card, or wireless router, or your ISP, will persuade you to install yet more network configuration software. Once two or three of these guys are fighting to manage and diagnose your wireless connection, you have little chance of connecting successfully to anything.

There there is anti-virus to think about. Personally I reckon the practice of installing trial versions of Norton’s anti-virus suite (or similar) is a disgrace. It makes for a lousy user experience because the first thing you see after enduring setup is a nag screen assuring you that your new computer is insecure. It is a disgrace because if you accept the trial but don’t pay up, you end up with an out-of-date anti-virus utility, which leaves you vulnerable. Let’s not forget that basic anti-virus software is available for free from AVG and a few others – if Toshiba really cared about the security of its customers, it would pre-install that. I have zero confidence in anti-virus software anyway, but this is not the place.

Result overall: three to four hours spent on something that should take a few minutes.

I have a good understanding of the commercial, technical and political reasons for these hassles, and I don’t regard Toshiba as the worst offender. Nevertheless, Microsoft and its partners have failed to tackle the problem effectively, and this is a factor behind Apple’s resurgence. Frankly, Ubuntu and other Linux distros are more fun to install, though with Linux you inevitably end up Googling to solve one or more strange issues so overall it is no better for the non-technical user.

Recently I’ve been working with Windows Server 2008, which is a delight by comparison. The concept is simple: pre-install the bare bones, and make all the features optional. So Microsoft can do it. Why can’t consumer Windows work the same way? Install a clean, fast, basic version of Windows, and then let the user decide what else they require?

October 20th, 2007

Gutsy Ubuntu and Precipice Computing

The good news: I’ve successfully upgraded two machines from Ubuntu 7.4 (Feisty Fawn) to the new 7.10 (Gutsy Gibbon). I followed the instructions here. The bad news: neither upgrade was without incident.

I’ll start with the server. I use this for SlimServer and for experimenting with interesting Linux-based software; it has no GUI installed. Towards the end of the upgrade I got this message:

Message saying Could not install the upgrades. The upgrade aborts now. Your system could be in an unusable state. 

Not good. I call this “precipice computing”. In the UK a few months back there was some fuss about “precipice bonds”. These are a type of savings bond that guarantees at least your money back, unless certain conditions are met, usually to do with stock market growth. The conditions do not look likely to occur, but if they do, all bets are off and you could lose heavily.

Computing is like this sometimes. You tinker with your system and safe, user-friendly options guide you every step of the way. Except that under certain circumstances they do not, and then you may be deep in the mire.

It turned out to be not so bad. Ubuntu automatically ran dpkg, a package management tool. It reported some dependency issues and suggested how I might fix them. This worked. It is all because I have been messing around with Fuppes, a promising UPnP media server that is not quite done yet. I had to compile this manually, which entailed installing a bunch of multimedia development packages, and it was two of these that tripped up the upgrade. I doubt this would have happened on a production server, and in any case one would not upgrade a production server so soon and so casually. Even so, it was a scary message.

How about the other PC? This one is a Toshiba laptop which I have written about before. I had it running sweetly, and there was really no need to fiddle with it, except that I need to try new stuff for my work. I ran the upgrade. I was presented with some difficult dialogs offering to remove “obsolete” packages. Naturally I had no idea whether these were really obsolete or not, but I allowed the upgrade to remove them on the grounds that I could always put them back later if necessary.

All went smoothly until the inevitable restart. Unfortunately the machine would not longer boot. It reported “Drive does not exist”, if I remember rightly. Fortunately I had seen this before. The upgrade restored the same wrong settings that it used on initial installation, and I had to edit the grub boot menu.

After that is was fine, except for a disappointing lack of 3D desktop effects, normally the most visible new feature in Gutsy. The desktop had gone a slightly deeper shade of brown (I don’t much care for Ubuntu brown) but otherwise little seemed to have changed. The Appearance Preferences did not offer anything exciting, like the rotating 3D cube effect when switching desktops.

I investigated. I went into the Synaptic Package Manager and installed compizconfig-settings-manager, following a tip from the Ubuntu forums. That helped; I now have an option called Advanced Desktop Effects Settings, and can select the Desktop Cube and more. Something is not quite right though. After the upgrade, I only had one workspace instead of 4. Apparently there is an interaction between the Workspace Switcher and the Compiz desktop effects. To add workspaces when Compiz is running, it seems you have to use the General Options in the Advanced Desktop Effects dialog, under Desktop Size. I set this to 4, then restarted the X server.

Now I had 4 desktops, and could sometimes, but not always, switch between them with a rotating cube effect. What was odd is that I actually seemed to have more than 4 desktops, but could not switch between all of them using Ctrl-Alt-Arrow. To do this I had to use the Workspace switcher. Even then, I managed to get into a state where I knew Open Office was running, but could not switch to it at all.

At this point I reminded myself that I don’t much like the 3D cube effect anyway. Disabling it again was no great loss.

Just a few minor problems, then. The next question: does the upgrade deliver anything of value? I’ll let you know.

|