Posts tagged ‘gnupg’

Random stuff, 2007-06-14

Just after being added to Planet Haskell I changed the theme of WPi but as always with themes there were things I didn’t really like. I was happy to notice that this time I’d chosen a theme written by someone who knew English which was a relief since the previous theme was commented and even contained id names in Spanish. Still, modifying the theme, especially the style sheet, is a pain. Then I found Firebug. Let’s just say I’m never going to bother looking through the style sheet for a theme again without first having found the exact line number by using Firebug. It’s simply a brilliant add-on for Firefox.

After talking to a mate I dropped enable-ssh-support in ~/.gnupg/gpg-agent.conf and stopped using ssh-agent altogether. The Debian developers seem to have anticipated this and there’s full support for this in the scripts in /etc/X11/Xsession.d/. Excellent!

I’ve finally taken the time to look into getting the webcam that I bought from OpenForEveryone working. After a false start with spca5xx–it doesn’t build on recent kernels–I built a kernel module for gspca. Firing up Camorama revealed that the cam was indeed working, however colours, contrast and brightness was all screwed up and couldn’t be changed. Later that turned out to be a problem with Camorama rather then with the cam itself; it works perfectly well in Ekiga.

I’ve also signed up for a SIP account at ekiga.net. I can now be reached on sip:magnus.therning@ekiga.net.

  1. I had made a manual change to the old theme that really didn’t belong on a Planet. It can only be described as discrimination against IE users.[back]

Getting Mutt-NG and gpg-agent to play nice

The last time I tried getting gpg-agent to work I gave up. That was on Ubuntu, and I only spent about 5 minutes on it. This time around I spent 10 minutes on it, and it’s working like a charm.

After installing gnupg-agent and pinentry-gtk2 I fired up the following line to ~/.gnupg/gpg.conf

use-agent

I then ran gpg-agent --daemon --sh from the command line. It printed a shell command line for setting $GPG_AGENT_INFO. I copy pasted it in the shell and executed it. Then I signed two files, the first time I got a pretty dialogue (GTK2) and the second time nothing.

The gnupg-agent package comes with a script in /etc/X11/Xsession.d/ that will execute the agent on X login. Logging out and then back in, firing up an xterm and echo $GPGP_AGENT_INFO verified that it worked properly.

Next step was to get Mutt-NG to play nice. Adding set pgp_use_gpg_agent = yes didn’t quite do it. A few searches on Google revealed that I needed to remove --passphrase-fd 0 from my pgp_*_commands.