Tom Duerbusch wrote:
I'm back on the GPG 2.0.2 project.
When doing a gpg2 --gen-key, I get:
You need a Passphrase to protect your secret key. <==note, it never
gave me a chance to respond
Gtk-WARNING **: cannot open display:
<snip>
"cannot open display:"....sounds like I need to be on a x-terminal.
The program this is being sent from, seems to be "pinentry-0.7.2" which
required gtk and glib (1.2.10) to be installed.
I have seen this happen with SSH key passphrases. On some systems the
default SSH-ASKPASS pointed to is something like "gnome-ssh-askpass",
which will want to open a GUI password prompt. It shouldn't happen that
way if you don't have a DISPLAY environment, though...
I don't know how to get around this. I think I should be able to
generate gpg keys with a VT100 type terminal. Perhaps gpg 2.0 is a
gui-only product?
I believe that something is giving this pinentry program the impression
that there should be an X display available. This would be the first
thing to check; perhaps you are connecting from a Windows machine using
PuTTY, and the session config is set to forward X, but you're not
running your X server right now?
Another alternative might be to see where the system nominates
"pinentry" as the program to run to receive passphrases. The solution
might be to just switch to a different prompter, such as the one used by
ssh-askpass. Or have a look at this fellow's experience, which I found
via Google, to see if it's relevant:
http://brondsema.net/blog/index.php/2007/02/06/keychain_gpg_agent_pinentry_problems
Cheerio,
Vic Cross
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390