Selecting a UK keyboard in Solaris 10

Since I installed Solaris, I’ve been getting more and more annoyed with my keyboard pretending to be American (mostly with ” and @ being mixed up). Today, I needed to write a post which included a lot of UK currency symbols (£ – pounds sterling) and rather than switching to a Windows PC, I spent a considerable amount of my weekend researching the solution.

It seems that setting a UK keyboard within the Java Desktop System doesn’t make a blind bit of difference, and the answer is to use the kdmconfig utility. After running this and switching the Window system server from Xorg to Xsun (I haven’t a clue what the difference is), I was able to define my keyboard type (Generic UK-English) as well as selecting the correct display and pointing device settings. After restarting the graphical interface (logoff/logon), I was back in action with all the keys in the right place.

Incidentally, there is another setting which, although not related to the keyboard layout, will affect the display language – at logon, ensure that the language option is set to en_GB.ISO8559-15 – Great Britain (Euro) for an English language interface with European currency symbol (€€) support.

Phenomenal growth in UK e-commerce

Every year, it seems that retailers put out dire warnings of falling sales on the high street and Christmas 2005 was no exception. We’ve grown used to retailers starting the “new year” sales in late December (and I was amazed to hear a friend admitting to being one of the many reported to be queuing outside Next when their sale started in the early hours of the morning on 27 December 2005). BHS was discounting in mid-December this year – I bought one item at a 60% discount (reduced to half price from £12 and then another 20% off making it just £4.80 on the day I happened to be in town and making my final Christmas purchases).

It strikes me that falling high-street sales are only half the picture, and last Friday’s BBC Working Lunch programme confirmed that for me, outlining some amazing statistics on Internet shopping growth over the Christmas period, with online sales up 50% on the previous year to a total of £5bn in the 10 weeks up to Christmas 2005.

Whether or not people really are deserting the high street (I suspect it is all hype designed to get us into the shops), the Internet has become a core part of our lives (and therefore a significant channel to market for retailers) – unfortunately, not everyone is ready to take advantage of this.

In fact, according to Working Lunch, if you look at the growth in UK online shopping as a whole the e-commerce market has grown 2600% from £87m in April 2000 to £2.26bn in December 2005. Some high street retailers (e.g. Boots) are now taking more business through their website than even their largest brick and mortar stores (up 40% in Q3 2005 alone).

For those who doubt that people really do use the Internet, research by Forrester indicates that 33% of of people enjoy spending time online. Working Lunch reported that when asked “which of the following do you enjoy doing in your leisure time?” the results came back as follows:

  1. Listening to music (60%).
  2. Watching films (54%).
  3. Walking (47%).
  4. Travelling (45%).
  5. Gardening (41%).
  6. Restaurants/bars (35%).
  7. Surfing the Internet (33%).
  8. Watching TV soaps (31%).
  9. Sightseeing (29%).

(Maybe I’m not such a geek after all – I enjoy 8 out of those 9 activities, only finding watching TV soaps to be a bit dull).

To those who think that not that many people have fast enough Internet connections to take advantage of e-commerce sites, think again – the UK is third in a table of European online access levels and second when looking at how many people shop online regularly – both figures well above the European average:

  • Sweden: 77% have online access, 49% regularly shop online.
  • Netherlands: 73% have online access, 33% regularly shop online.
  • United Kingdom: 67% have online access, 48% regularly shop online.
  • Germany: 62% have online access, 37% regularly shop online.
  • France: 52% have online access, 28% regularly shop online.
  • Italy: 47% have online access, 12% regularly shop online.
  • Spain: 35% have online access, 7% regularly shop online.
  • Europe as a whole: 56% have online access, 29% regularly shop online.

Looking further at the UK, 60% of those Internet connections are classified as broadband.

It seems that the initial barrier to Internet sales – worries about online security – is no longer inhibiting consumers (my view is that it was always an issue of perception – people are perfectly happy to read their card details over an unsecured phone line) and the figures seem to confirm that it was more of an issue of unfamiliarity; however, as Working Lunch highlighted, there are still some issues for online retailers to overcome, for example:

  • Delivery times (how about evening deliveries?).
  • Quality of service (returns are often at the expense of the purchaser – even if the wrong item is shipped).
  • Product type (people want to try clothes/shoes for size, smell some items, and feel others).

Even if at first some items don’t seem to fit logically with the Internet, the statistics don’t seem to bear that out (and after all, catalogue sales were popular for many years) – when asked “which products have you bought online?”, consumers responded:

  1. Books (52%).
  2. Leisure/travel (41%).
  3. CDs (40%).
  4. Clothing (37%).
  5. Event tickets (36%).

Often, it is the items which have a personal touch that fit best with retailers who also have a shop front, allowing unsuitable items to be returned in store.

So, even if brick and mortar sales are slipping, Internet sales are looking extremely healthy, but as Lorraine Branch, of IT and business consultancy Conchango, says:

“Success will hinge on offering customers as many different ways to buy as possible while maintaining a consistent retail experience [and] retailers who fail to provide a fully integrated channel approach will find themselves left out in the cold”.

Configuring a Solaris 10 client to print to a network printer

For weeks now, I’ve been trying to configure my Solaris client to print to a network-attached HP LaserJet 2200dn printer and I finally got it working today. It’s probably really easy for an experienced systems administrator but there were a few gotchas that caught me out – hopefully my experiences will help someone else out.

In many ways the Solaris Print Manager makes setting up a printer easy, but there were some important settings I needed to use (I found some of this on an HP support document, but there was also a lot of trial and error involved as I don’t think the advice in HP’s document applies to Solaris 10 x86):

  1. For an HP LaserJet 2200, the recommended printer driver was Foomatic/Postscript – I didn’t use this but selected Foomatic/hpijs instead.
  2. The destination is more than just the IP address or hostname of the print server (i.e. the LPD service on the printer’s JetDirect card) – I needed to append :RAW (LPD queues can be configured through the printer’s own web administration console).
  3. The protocol is BSD (not TCP as I expected).

One really handy feature is the ability to show the command line console, on which all the commands issued by the print manager will be displayed. Using this, I was able to determine that the commands to configure my printer (now saved as a shell script) were:

lpadmin -p hplj2200dn -v /dev/null -A write -n /usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_2200-hpijs.ppd.gz -i /usr/lib/lp/model/netstandard_foomatic -o dest=printer1:RAW -o protocol=bsd -I postscript -u allow:all
lpadmin -p hplj2200dn -D "Laser printer in Mark's Den (duplex/network)"
lpadmin -d hplj2200dn
enable hplj2200dn
accept hplj2200dn

These will, of course, vary by model. Note that the first (very long) line will wrap on this web page – each of the first three commands should begin with lpadmin.

Don’t be put off by error messages after the enable and accept commands:

UX:enable: ERROR: Can’t establish contact with the LP print service. TO FIX: Either the LP print service has stopped, or all message channels are busy. If the problem continues, get help from your system administrator.
UX:accept: ERROR: Can’t establish contact with the LP print service. TO FIX: Either the LP print service has stopped, or all message channels are busy. If the problem continues, get help from your system administrator.

These fooled me for a while but I think the problem was just that the printer had not yet been established when I tried to enable it. By waiting a few seconds and re-issuing the last two commands, everything jumped into life.

I don’t know why there is a postscript reference in there – as far as I know this is a PCL printer, but it seems to work.

Finally, the commands to remove the printer (also now saved as a shell script) are:

reject hplj2200dn
lpadmin -x _default
lpadmin -x hplj2200dn

Configuring a Solaris 10 DHCP client to register with a Windows Server 2003 DNS server

Last week, I wrote about configuring a hostname for a Solaris 10 DHCP client. Alan Thompson very kindly left a comment on that post about using DHCP to set the hostname on the network (i.e. in the DNS) and I’m pleased to say that it works a treat on my Windows network.

I have a Windows Server 2003 server which acts as my domain controller, DNS server and DHCP server. DHCP is configured to update DNS (always dynamically update DNS A and PTR records, discard them on lease deletion, and to do this for clients that do not request updates) and this was working well for my Windows clients but although my Solaris client (laptop3) had been retrieving IP information from the DHCP server, the DHCP console showed no name for the lease (and so couldn’t update DNS).

By following Sun’s instructions for enabling a Solaris client to request a specific hostname, DHCP was able to register the client’s name in DNS, using the fully qualified domain name as set in the DHCP scope options (option 015 DNS Domain Name).

I tested this using the nslookup laptop3 command, which returned:

Server: dnsserveripaddress
Address:
dnsserveripaddress#53

Name: laptop3.domainname
Address:
laptop3ipaddress

It’s worth pointing out that Sun’s instructions are not quite correct for Solaris 10 x86, as step 1 is not necessary (the comments in the /etc/default/dhcpagent file explain that, by default, the DHCP agent will try to request the hostname currently associated with the interface performing DHCP); however the other steps were spot on (add inet hostname to /etc/hostname/interface, flush cached DHCP data using pkill dhcpagent and rm /etc/dhcp/ interface.dhc, then reboot), meaning that my Solaris client now participates in my Windows network name resolution.

Checking how much power a USB device requires

I have a number of USB-attached hard disks that I use for portable mass storage, backups, etc. Very occasionally, Windows XP will report that there has been a power surge on the USB port and that it has been shut down. This can happen when the total number of devices attached to a USB hub (internal or external) exceeds the total power available. I’ve always treated that as a minor annoyance (and as these disks have two USB connections and a Y-shaped cable, I can simply use two ports) but then a few days back I noticed something I’ve never see before – the ability to view power details for (or more precisely current drawn through) a USB root hub:

USB device power draw

As can be seen in the example above, my scanner is using the full 500mA on its port, but there is still a port available which could potentially provide another 500mA. To view this information, open Device Manager from the Computer Management MMC snap-in and expand the Universal Serial Bus Controllers node. There will normally be a number of controllers listed, along with some devices and USB root hubs. Each USB root hub should have include power details within its properties.

Checking my IEEE 1394 (FireWire/i.Link) controller doesn’t seem to offer the same facilities, presumably because it doesn’t have the same concept of a root hub.

A business case for an iPod?

Ever since the Apple iPod Nano was launched last September, I’ve been saying that I would like one (but can’t justify it because I only bought my iPod Mini in May last year).

Then, a few days back, I met up with a friend who is a professional photographer. He showed me his iPod with video and now that’s the one I want. I was always suspicious of how good a 2.5″ screen could be, but it really is clear and bright (even in daylight). My friend explained that by putting his portfolio onto his iPod he has already got two new commissions, meaning that it has effectively paid for itself already!

Now if only I could build a case for an IT Consultant to sell services via an iPod…

Windows XP service pack 3 delayed until after Windows Vista

We all know that Microsoft will have to pull out all the stops if they are going to meet their target of shipping the much hyped and severely delayed Windows Vista this calendar year. Well, it seems that desire to get a new version of Windows out is at the expense of existing Windows XP customers and Windows XP service pack 3 will not be here until late 2007 – that’s a full 3 years after service pack 2 was released.

As reported by Paul Thurrott in his Windows IT Pro magazine network WinInfo Daily Update, Microsoft’s Windows service pack roadmap states that service pack 3 for Windows XP Home/Professional Editions is currently planned for the second half of 2007 (preliminary date). Service pack 2 for Windows Server 2003 is still shown for the second half of this year (maybe Microsoft views server customers as more critical to it’s continued growth?).

That means that, based on the current published schedules (which I will concede are not always the most reliable source of information), Windows Vista will be here before the next Windows XP service pack! I know that Microsoft is disappointed at Windows XP service pack 2 adoption rates but for those of us who did get with the program, what happened to regular service pack releases? The fully-patched Windows XP machine on which I’m writing this post already has no less than 50 post-SP2 hotfixes, updates and security updates for Windows XP installed so how many more do I have to install before they get rolled up into a service pack?!!

Standalone QuickTime installer

Apple QuickTimeI have Apple iTunes installed on the PC where I synchronise my iPod. I don’t need it anywhere else, but for some reason if you try to download Apple’s QuickTime, it comes bundled with iTunes. Thanks to a Tech-Recipes Internet tip, I found the standalone QuickTime installer. Now all I need is for Apple to realise that I don’t want to install an English (United States) version – if there’s only one English option available, then please call it English.

Is Microsoft still a monopoly?

I spent a lot of time in the car yesterday, which means I got to catch up on some of my podcast listening – this time I was mostly listening to Slashdot Review. One of the items I picked up on was an interesting discussion on whether or not Microsoft is still a monopoly.

My view is that Microsoft probably does have a monopoly (in the legal sense) over the PC operating system and office productivity suite market (although that’s weakening rapidly, as major OEMs consider offering non-Microsoft operating systems on new PCs), but in many other markets they are just an also-ran. Not everyone agrees and the real issue is not really whether Microsoft is a monopoly (nothing wrong with that), but whether they abuse a position of power to restrict competition. My observation is that Microsoft is a company who are “damned if they do and damned if the don’t”. By that I mean that consumers and critics are constantly asking for new security features within the operating system, but if Microsoft dares to bundle any such middleware within the operating system, competitors cry foul.

Migrating e-mail from Mozilla Thunderbird to Microsoft Outlook

Since the end of November, I’ve been using the Mozilla Thunderbird client for my personal e-mail. It’s quite good (and in many ways better than Microsoft’s Outlook Express, which is no longer being developed), but it lacks many features that I used daily in the full Microsoft Outlook client (and quite frankly, Outlook was doing a better job of filtering out spam). The biggest drawbacks for me were a lack of calendar functionality, no longer being able to send SMS messages from within my e-mail client and that the address book only has space for two e-mail addresses per contact.

Anyway, sometime this afternoon, my laptop is due to be collected for repairs, so I needed to get my e-mail data out of Thunderbird and into a format that I could use on my work PC for a week or so (i.e. Microsoft Outlook personal folder – a .PST file).

Finding the Thunderbird data was easy enough – the Thunderbird FAQ pointed me to %appdata%\Thunderbird\Profiles\randomstring.default\; however, Thunderbird uses the standard Unix .MBOX format whilst Outlook Express uses proprietary .DBX files (but understands .EML, which are plain text files) and Outlook stores messages in binary proprietary .PST files.

Outlook can import data from Outlook Express, and Outlook Express claims to be able to read Eudora data (which is also in MBOX format); however I couldn’t get Outlook Express to read my Thunderbird files, instead displaying the following message:

Import Message
No messages can be found in this folder or another application is running that has the required files open. Please select another folder or try closing applications that may have files open.

A Google search turned up some anecdotal evidence of successful conversions using Eudora as an intermediary, but this was based on Eudora v5 (v7 is the current version available for download). After digging further, I found two articles which used third party utilities to convert the .MBOX data to .EML – one from Robert Peloschek (aka. Unic0der), and the other from Broobles. The principles are the same:

  1. Compact folders in Thunderbird (optional, but prevents conversion of deleted messages).
  2. Back up Thunderbird mail data (a simple file copy is fine).
  3. For each Thunderbird file without an extension (e.g. Inbox – but not Inbox.mfs), convert this to a series of .EML formatted files, for example using the Broobles IMAPSize utility (this is what I used) or Ulrich Krebs’ Mbox2eml (which relies on a Java runtime environment being present).
  4. Drag and drop the resulting files from the file system to Outlook Express.
  5. Import Outlook Express data to Outlook.

It worked for me, with one caveat – messages I had sent, but that were filed in locations other than in my Sent folder, all have the date stamp set to yesterday. I’ll live with that (after 2 hours of converting the data in each individual folder to a series of .EML files and the dragging and dropping them to the appropriate locations in a new folder structure, I’m just glad to have my data back where I want it) but I did read that this can be controlled by changing the sort order from received to sent before the file conversion and import.

So, that’s my Thunderbird experiment over. I’ll probably try out the e-mail and calendar client on my Solaris box soon (so will be back to .MBOX format I guess) but for a long while now I’ve been meaning to set up a mail server at home so that I can keep the mail there and use IMAP to access it online from whichever client I choose.