Home > boot, opensuse, post, script, sicurezza, xfce > openSUSE 12.1: xfce and gpg, gpg-agent, enigmail, thunderbird

openSUSE 12.1: xfce and gpg, gpg-agent, enigmail, thunderbird

 

  1. nano -w ~/.gnupg/gpg-agent.conf
    
    pinentry-program /usr/bin/pinentry-gtk-2
    no-grab
    default-cache-ttl 1800
  2. # nano -w /etc/profile.d/gpg-agent.sh
    
    #!/bin/sh
    
    envfile="${HOME}/.gnupg/gpg-agent.env"
    if test -f "$envfile" && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null; then
        eval "$(cat "$envfile")"
    else
        eval "$(gpg-agent --daemon --write-env-file "$envfile")"
    fi
    export GPG_AGENT_INFO  # the env file does not contain the export statement

     
    (from ArchLinux wiki)

  3. # chmod +x /etc/profile.d/gpg-agent.sh
  4. logout and login (thanks to Klaus)
  5. gpg-agent 
    gpg-agent: gpg-agent running and available
    

 
(related post)
 

About these ads
  1. Klaus
    December 6, 2012 at 10:19 pm | #1

    Thanks for sharing. This also works for OpenSUSE 12.2. One comment though on step 4: It should not be necessary to reboot your system, log out and log in again is sufficient.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

%d bloggers like this: