Sunday 26 May 2019

Reinstalling BPT

HMRC provide a handy PAYE program so that we can pay our taxes quickly and accurately. This is available for Windows, Mac, and Linux, and is called HMRC-BPT. I was running it on my main workstation before it crashed.

Obviously, I do a backup each month, to my central server (and it gets copied from there to the backup servers). So there should not have been a problem.

Except that they provide BPT for 32 bit linux. Not 64 bit Fedora linux, which is what I'm running. And then  you try to run the program, it just exits, because it realises that it's on a 64 bit system.

This is bad news - I'll be needing to run this program on June 1, 5 days away. And it's puzzling, because I've been running it on a 64 bit linux for years. And, of course, I dn't remember how several years ago, I got it working.

When I stopped panicking, I realised that, if the worst came to the worst, I could install BPT on the only Windows box that I keep (rather like a tame snake). So I did that, restored my data backup, and it worked. Whew!

But then I tried it on the 64 bit linux box. First, I ran the install program, and to my surprise, that worked. But when I came to run BPT itself, it didn't work.

So I went to the directory where rti.linux lives, and ran that. It helpfully told me that I was missing So I ferreted around and found a copy of that, put it in place, and tried again. This time, it said that I was missing So again, I found a copy of that
and put it into the /usr/lib directory (which is where the 32 bit libraries are). At this point, I was expecting that I'd be going through this procedure several more times. At least.

Then I tried it again, and to my surprise and delight, it worked!

So, if you have a 64 bit Fedora linux system and want to run BPT, don't despair. Even though HMRC don't tell you how to do it, it's actually pretty easy.

Saturday 25 May 2019

A crash, and a recovery

My main workstation needed a reboot, so I rebooted it ... and it didn't reboot. It came back with the dreaded "grub-rescue" prompt. And I couldn't work out how to rescue it.

So I decided to reinstall linux (Fedora 30). That didn't go as smoothly as I would have liked.
The first five drives that I tried to install to, were recognised by the HP xw6600, but not by linux. Eventually, I tried a 160gb drive, and that worked. I have no idea why.

So I also connected up the drive that wouldn't boot as the second drive, hoping that I'd be able to copy all the configuration files across.

That worked. I mounted it using mount /dev/mapper/fedora-root temp2 and all the files were there, so I was able to copy them to the newly installed drive. That meant that all my bookmarks, and ftp bookmarks, were preserved!

So why did it fail? I just don't know. Computers fail all the time. Just keep making backups!

Thursday 23 May 2019


Is throwing a milkshake at someone, an acceptable form of protest?

Absolutely not!

Saying what you think is acceptable. Holding up a placard is acceptable. Joining in a protest march is acceptable.

Throwing a milkshake is bullying. Legally, it's common assault. It is not NOT political discourse, it is not legally protected free speech. If you think that throwing a milkshake is an acceptable form of protest, then you also think that an appropriate reply to your milkshake, would be a milkshake thrown at you.

What happened to polite, civilised disagreement?

Wednesday 22 May 2019

Your personal information

They leak. They all leak.

I've been getting huge amounts of spam from people claiming to know my password. They give an old password that I used at one time on LinkedIn (long since changed, but I keep a record of past passwords). Clearly, LinkedIn had a leak at one time. It's annoying (but my spam filter removes the spam from my inbox).

Twitter leaked 32 million account details.

Facebook leaked hundreds of million account details.

Now Instagram has leaked 49 million names and phone numbers.

I'm not surprised. When you have systems as large and complex as that, there's likely to be security lapses.

So, what do you do when one of these social media sites asks you for your personal information? Me - I make up something for them. A fake name, a fake date of birth, a fake phone number. The email address is one that I create just for that purpose. And I record all of this, in case they ask me to prove that I am who I say I am.

It's surprising what they accept as proof. Facebook commonly asks people to prove identity by giving a phone number, which they then text a code to, and you type the code into Facebook, thus proving ... proving that you own a phone. Why they think that this proves that you are who you say you are, is beyond my feeble brain to fathom.

So that when all this gets leaked, and becomes available on the various sites that offer such information, I haven't lost anything that would allow impersonation (modern parlance is "identity theft").

Eventually, Facebook might ask me to prove my identity - a passport, or a driving licence, perhaps? NO WAY. It's bad enough if you leak my name, phone and birthday. I'm not going to give you something which, if leaked, will cause me SERIOUS inconvenience. And yes, I do see all the promises that you make that you'll take very great care over this information.

But I don't believe that you are able to.

Fedora 30 upgrade problem

There's a nasty little problem when you upgrade to Fedora 30. If your original install was Fedora 20 or older, then when you upgrade to Fedora 30 and reboot, it doesn't reboot. You find yourself looking at the grub> prompt.

This is because when you upgrade Linux, that doesn't upgrade grub.

The answer is to do grub2-install before you upgrade to Fedora 30.

If you don't, then fix it thus:

grub> configfile /grub2/grub.cfg.rpmsave 
and then  grub2-install /dev/sda1 (or whatever the boot partition is).