1 |
On Thursday 10 November 2005 18:15, abhay wrote: |
2 |
> Hello, |
3 |
> |
4 |
> I am trying to setup KMail to use GnuPG. I have emerged unstable gnupg |
5 |
> (1.9.19), gpg-agent (1.9.19) and pinentry (0.7.2-r1). |
6 |
|
7 |
I don't think you need unstable versions of gnupg and pinentry. I'm using |
8 |
stable versions and they work ok. gpg-agent OTOH is still ~x86 masked I |
9 |
guess. |
10 |
|
11 |
> I am now trying to |
12 |
> setup gpg-agent and have followed documentation on gentoo site but the |
13 |
> problem is that even after setting the agent-startup.sh the way it |
14 |
> explains, the environment is not getting updated. I get the following |
15 |
> results when trying to know about gpg agent's env |
16 |
> |
17 |
> $ $GPG_AGENT_INFO |
18 |
> bash: /tmp/gpg-roleYu/S.gpg-agent:8297:1: No such file or directoryg |
19 |
|
20 |
that's normal. the variable contains the location of a fd socket with some |
21 |
extra info. |
22 |
|
23 |
pjlv@archon ~ $ ls -l $GPG_AGENT_INFO |
24 |
ls: /tmp/gpg-K6J5z2/S.gpg-agent:25227:1: No such file or directory |
25 |
pjlv@archon ~ $ ls -l /tmp/gpg-K6J5z2/S.gpg-agent |
26 |
srwxr-xr-x 1 pjlv users 0 Nov 10 23:51 /tmp/gpg-K6J5z2/S.gpg-agent |
27 |
|
28 |
there it is! gpg-agent seems to be working ok. |
29 |
|
30 |
please note that you're trying to execute that file by issuing $VARIABLE. |
31 |
you'd want to do something more like echo $VARIABLE to see if it's defined. |
32 |
then you could look for the file. |
33 |
|
34 |
> Now, even though gpg-agent is working as daemon, KMail asks for password |
35 |
> everytime I try to send a signed mail and complains that gpg-agent is not |
36 |
> running. I have googled but can not find a solution so if someone who is |
37 |
> running KMail and gpg-agent could give some insights then I will be highly |
38 |
> thankful. |
39 |
|
40 |
have you checked that gpg-agent is indeed running? do a ps -C gpg-agent? |
41 |
|
42 |
pjlv@archon ~ $ ps -C gpg-agent |
43 |
PID TTY TIME CMD |
44 |
25227 ? 00:00:00 gpg-agent |
45 |
pjlv@archon ~ $ |
46 |
|
47 |
it it is not running (this will sound ugly but it has a purpose) have you |
48 |
tried logging out and in again from kde? the gpg-agent is started when users |
49 |
log into kde sessions (remember /usr/kde/3.4/env/agent-startup.sh?). |
50 |
|
51 |
IIRC my installation was very simple. |
52 |
|
53 |
1. emerge pinentry and gpg-agent |
54 |
2. uncommented some lines from /usr/kde/3.4/env/agent-startup.sh |
55 |
and /usr/kde/3.4/shutdown/agent-shutdown.sh (as instructed). when I log into |
56 |
kde it starts gpg-agent automatically. |
57 |
3. tweaked ~/.gnupg/gpg-agent.conf with |
58 |
pinentry-program /usr/bin/pinentry-qt |
59 |
no-grab |
60 |
default-cache-ttl 1800 |
61 |
4. make sure kmail was correctly configured to handle my gpg keys. |
62 |
|
63 |
regards, |
64 |
pedro venda. |
65 |
-- |
66 |
|
67 |
Pedro João Lopes Venda |
68 |
email: pjvenda at pjvenda org |
69 |
http://www.pjvenda.org |