Category Archives: Linux

Easy Script To Get And Install PPA GPG Keys

If you use Ubuntu then it’s possible you’ll enable a PPA or two, to install software not in the standard Ubuntu Repositories.

This is a fairly simple process, but there’s a little fiddly bit of work to install the GPG key that goes along with each PPA. If you’re the kind of person that plays around with a lot of PPAs, or uses PPAs on a lot of machines then you’ll probably find yourself doing the GPG key dance a lot.

All round top-man Dominic Evans has crafted a neat little script which automates this process.

His script will not enable the PPAs, but for any PPA already enabled on your system it will go and get the necessary key and install it. If you have lots of PPAs enabled then this is a great way to do all the keys in one hit.

Here’s what happens when you have added a PPA to your Ubuntu sources list, but haven’t done the GPG key dance:-

alan@hactar:~$ sudo apt-get update
[sudo] password for alan:
Hit http://archive.canonical.com jaunty Release.gpg
Ign http://archive.canonical.com jaunty/partner Translation-en_GB
Get: 1 http://ppa.launchpad.net jaunty Release.gpg [307B]

snip

Get: 31 https://private-ppa.launchpad.net jaunty/main Sources [1543B]
Fetched 388kB in 3s (121kB/s)
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A9BF3BB4E5E17B5
W: GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B22AB97AF1CDFA9
W: You may want to run apt-get update to correct these problems

Similarly if you use Update Manager then you’ll get a dialog box titled “An error occurred. The following details are provided:” followed by:-

W: GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A9BF3BB4E5E17B5
W: GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B22AB97AF1CDFA9

Of course the number of these, and the keys that you will see displayed will be different depending upon which PPAs you have enabled. Whilst they are only warnings, they’re annoying enough for most people to want them to go away.

To fix this quickly and easily, just grab the script and save it somewhere like /usr/local/bin or (preferably for me) ~/bin (that’s /home/alan/bin on my system). Finally make it executable by right clicking the file in nautilus and go to properties, then select the Permissions tab and enable ‘Allow executing file as a program’. If you like the terminal then you can use the chmod command to do that bit.

Whenever you add a PPA simply run the script in a terminal. Here’s what happens when you run Dominic’s funky script.

alan@hactar:~$ launchpad-update
Grabbing key 4E5E17B5 for archive ppa by ~chromium-daily
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg
 --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com 4E5E17B5
gpg: requesting key 4E5E17B5 from hkp server keyserver.ubuntu.com
gpg: key 4E5E17B5: public key "Launchpad PPA for chromium-daily" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
Grabbing key AF1CDFA9 for archive x-updates by ~ubuntu-x-swat
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg
 --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com AF1CDFA9
gpg: requesting key AF1CDFA9 from hkp server keyserver.ubuntu.com
gpg: key AF1CDFA9: public key "Launchpad PPA for Ubuntu-X" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
Already have key 3E731F79 for archive ppa by ~siretart
DONE

That’s it. Now when I update…

alan@hactar:~$ sudo apt-get update
Hit http://archive.canonical.com jaunty Release.gpg
Ign http://archive.canonical.com jaunty/partner Translation-en_GB

..snip..

Hit https://private-ppa.launchpad.net jaunty/main Sources
Fetched 617B in 2s (240B/s)
Reading package lists... Done
alan@hactar:~$

No warnings! Lovely. Big hugs for Dominic.

I understand that for Ubuntu Karmic (9.10) this script may become redundant as other changes come in, but for now, and for releases before 9.10 this is awesome!

Also posted in Advocacy, Ubuntu | 33 Comments

Countdown to LUGRadio Live 2009

Looking forward to another weekend in Wolverhampton! No, really!

Lugradio Live 2009, 24th October 2009,  Newhampton Arts Centre Wolvehampton

See you there?

Also posted in Advocacy, Ubuntu | Leave a comment

OMG Ubuntu One

(Insert disclaimer here)

(Insert misinformed, misguided vitriol here)

Sorted, time for coffee!

Also posted in Advocacy, Ubuntu | 12 Comments

Asus, The Fair Weather Friend

Dear Asus,

I write to you as a customer of your Eee PC line of computers.

I’d never really considered buying any of your hardware up until you released your Eee PC line of products. When I discovered that the Eee 701 was pre-loaded with (Xandros) Linux and came pre-configured with all the usual applications that I am familiar with on my Linux Desktop I was delighted.

I bought two, a white one for my wife and a stylish black one for myself. Since then I’ve purchased a further two Eee PCs (900) and influenced a small number of others to buy similar machines. I love mine and my wife loves hers. Hers runs the standard Xandros Linux install (still) which works just fine. She connects securely to wireless networks, prints to our networked printer, reads data off USB memory devices and cameras and was delighted to find the 3g dongle we tried just worked. How great is that!? Thanks!

Mine on the other hand has seen various operating systems. For a long while I used Xandros, then moved briefly to Ubuntu 8.04 then back to Xandros again. After a brief flirt with Ubuntu 8.10 and Crunchbang Linux – all very good – again I came back to Xandros. I loved that your partnership with Xandros Corp resulted in a system that was fast to boot, ran software I knew, had its roots in Debian (always a plus point for a geek like me) and was robust & dependable.

I’ve used my Eee PC on planes and trains, in pubs and restaurants (whilst waiting for take-out), indoors and outdoors, and pretty much all that time I’ve loved the experience. Yes, the keyboard takes getting used to and yes it’s not the fastest machine ever but I knew that when I bought it, so that was a concession I was willing to make.

One concession I wasn’t willing to make is buying the machine with Microsoft Windows installed so I bought one with Xandros. Personally I don’t care for Windows. I’ve used it and I’m pretty good at fixing it when it goes wrong (ask my accountant, my in-laws, customers, neighbours and friends) but I prefer not to use it. So I was happy that you made laptops that didn’t require me to pay for an operating system that I was never (I really mean that, never) going to use on the device. You scored a great home run with that decision. Thanks again!

Now 18 months have passed and I notice new models are on the horizon carrying the Eee PC moniker. A friend of mine pointed out the Eee PC Seashell (1008HA) for example, which looks very nice on the website http://www.asus.co.uk/eeepc/1008HA/features.html. But hang on, what’s this. I’m now told by your marketing department that “It’s better with Windows®”, and I am invited to find out more by clicking a link to http://www.itsbetterwithwindows.com/.

The site you link to is not new to me, but it’s the first time I’ve seen a vendor link to it, indeed it’s the first time I’ve seen a vendor of hardware that runs Linux link to it. Forgive me for saying this but it seems that you’ve kicked the Linux community squarely in the teeth with this one. I applaud you for bringing Linux to the mass market with the Eee 701, but that good work is all but undone with this stunt. I can only presume it’s a stunt of course.

Lets take a look at “It’s better with Windows”. I presume you’re referring to Windows XP (released in 2001) given that’s the logo on the above page. I guess you can’t possibly be referring to Vista as that barely runs on most of your Eee PC range, and Windows 7 isn’t even released yet, so it can’t be that.

Apparently Windows is “Trusted”, it “..delivers a dependable experience..”. Do you honestly believe that? An OS which is insecure by default with viruses, malware, unexplained and untraceable crashes, required (and un-requested) reboots and a vendor who keeps telling us the OS is dead makes for a dependable platform in your eyes does it? I don’t think I have ever heard anyone say Windows XP was ‘dependable’ unless under duress or contractual agreement. Which is it with you?

I note with interest from that site that I “can be up and running right away”. Of course that’s after I have entered the product key you conveniently put on the underside of the laptop. Then I have to apply the usual updates or service pack to Windows itself, grab office updates (or indeed an entire decent office package [no, Microsoft Works is not in this category]), get new virus definitions and update or installed a malware detector. What else, oh I should scan the machine for viruses (you know these hardware vendors, sending out machines with viruses on them. Tsk!), search for malware, download a PDF viewer, download or update a java stack, flash and various codecs, and all the other basic stuff you need to be “up and running right away”. What’s your definition of ‘right away’ in this instance?

I also see that Windows is “Compatible”, and that I can be “confident” my devices and applications will work. Ok, lets see. My HP Printer, digital camera, 3G dongle, sound card, mobile phone and wireless stick all refuse to work on a Windows XP machine without navigating some obtuse vendor websites or chugging through a load of vendor supplied CDs. It does have a CD-ROM drive, right?

You make some nice kit, and were instrumental in the rise of the netbook form factor all around the world. I can completely understand you pandering to the masses clawing for Windows XP because they don’t know any better. But don’t insult my intelligence by telling me it’s ‘better’, because it flat out isn’t, and a patronising, condescending pro-Windows website isn’t going to convince me otherwise.

Linux was good enough for you at the launch of your Eee PC models two years ago, and it’s even better now. How quickly you changed your allegiance when the hardware caught up with the requirements of Windows. We now know who our real friends are. Maybe you never really were our friend, maybe you just used us to steal a march on the competition. If that’s the case then you suck.

It was nice knowing you, when you didn’t suck.

Alan Pope
An ex-customer.

Also posted in Advocacy, Rant, Ubuntu | 53 Comments

Power Save Now – Ask Me How!

I’ve recently been testing some cool new software on Linux. It claims to be able to save more energy than the standard power saving utilities available on Linux, and in a way that doesn’t negatively impact system performance. The software is Linux-only right now, and runs on netbooks, laptops, desktops and servers. They have packages for Debian, Ubuntu, Fedora, Red Hat and SLES, all in 32-bit and 64-bit versions.

It’s now moved into an invite-only beta phase, and I’d like to invite more people to use it. I’ve already asked some friends if they’d like an invite, and sent one to those that want them. But I’m not going to send out invites to everyone I know without asking first, because I know some people might not be interested, and some don’t like their contact details being shared.

So I’m posting this to say if anyone would like an invite, just contact me with an email address I can send the invite to, and I’ll buzz one over, no obligation.

Once you get the invite and install the software, you can really help out by reporting back technical details about your system. They provide a little utility which sends information like your cpu & kernel version securely to their server. It clearly states what it’s sending before you send the data, so if you’re uncomfortable sending that data, you can choose not to.

Full disclosure: I’m not involved in the company itself other than being a friend of one employee, and a tester and happy user of the products. I get points for inviting people which might result in a prize. You will too if you join. You also get points for submitting the feedback, so make sure you do that! :)

Also posted in Ubuntu | 13 Comments