[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnupg-users
Subject:    Re: Pinentry curses fallback for gpg
From:       Ville_Määttä <mailing-lists () asatiifm ! net>
Date:       2014-10-16 20:23:01
Message-ID: 58A357A4-E471-499A-A371-E24148852933 () asatiifm ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi John,

You could try the following environment variable:

export PINENTRY_USER_DATA="USE_CURSES=1”

If that’s no good maybe something in following thread helps:

http://lists.gnupg.org/pipermail/gnupg-users/2009-June/036583.html

-- 
Ville

On 16 Oct 2014, at 23:02, John Lane <gnupg@jelmail.com> wrote:

> Hello, I am trying to work out a few things with GnuPG that aren't clear
> to me after reading the available documentation. I hope it's ok to ask
> for some help?
> 
> Here's my first problem:
> 
> I cannot work our how to tell my desktop-less system to use the curses
> pinentry program. I can see that is is configurable for gpg-agent.conf
> but I see no equivalent for gpg.conf. The only way I have been able to
> do this is to re-point a symlink /usr/bin/pinentry to point to
> /usr/bin/pinentry-curses instead of /usr/bin/pinentry-gtk.
> 
> I have read the pinentry readme and see the configure options for it. I
> have cross checked with how the package is built for Arch Linux, which
> is the Linux distribution that I use. The configure options are
> 
> ./configure --prefix=/usr \
>        --enable-pinentry-curses \
>        --disable-pinentry-gtk \
>        --disable-pinentry-qt \
>        --enable-pinentry-gtk2 \
>        --enable-pinentry-qt4 \
>        --enable-fallback-curses
> 
> The installed binaries are like this:
> 
> lrwxrwxrwx 1 root root     14 May  6  2013 /usr/bin/pinentry ->
> /usr/bin/pinentry-gtk2
> -rwxr-xr-x 1 root root  48216 May  6  2013 /usr/bin/pinentry-curses
> -rwxr-xr-x 1 root root 107384 May  6  2013 /usr/bin/pinentry-gtk-2
> -rwxr-xr-x 1 root root 153064 May  6  2013 /usr/bin/pinentry-qt4
> 
> It isn't possible to launch the gtk-2 or qt4 versions without the
> requisite libraries being installed, so both fail rather than fall back
> to the curses version:
> 
> # /usr/bin/pinentry-qt4
> /usr/bin/pinentry-qt4: error while loading shared libraries:
> libQtCore.so.4: cannot open shared object file: No such file or directory
> 
> # /usr/bin/pinentry-gtk-2
> /usr/bin/pinentry-gtk-2: error while loading shared libraries:
> libgtk-x11-2.0.so.0: cannot open shared object file: No such file or
> directory
> 
> The curses version works fine. Now, as far as I understand, the gnupg
> binary uses the symlink "/usr/bin/pinentry" and, with the above
> configuration that means the gtk2 version. And, if the system doesn't
> have that installed then it fails.
> 
> I can obviously change the symlink to point to the curses version but,
> if I do, it'll eventually get reset by my distributions package manager.
> 
> As far as I can tell, it's the pinentry package's "make install" that
> creates this symlink rather than something distribution-specific.
> 
> So, what is the correct, approved way to get gpg to use the curses
> pinentry ?
> 
> Thanks.
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users


["signature.asc" (signature.asc)]

-----BEGIN PGP SIGNATURE-----

iQGcBAEBCgAGBQJUQCklAAoJECmhoRw3rLd5PisMAJdnytrsxv59FK45f2lQ5BDz
DqiFV+ITsaPAc1mP7R+Y9269Jad89rhbfOPth19a0JAUYR9t9JuChBWLH3OcVRQ9
OBWzqGVflSeHC7sXH5BKWM0M/SPYbXbyz373n0e91rPxympYjaRfzhArzhVTMuPy
QC6JfbybAD4qWYFKUmyjw3KhcVjyjqn2HQn9fKRVhf7p0nRQobTCWvRVnTA/KpKN
flarl3aWatHfyx4sfjRZMbeVXkpJ35T1YpmGDsWElTtYfY8S6ZY4+czIKfQR5Dxq
EuXuO9rTHEBtMyogYYCnFK7gJCuFPYA9GA9CvJsEgfPOuApD1/2OBkOY9IwBG8cZ
GpeNw4748cTrDpGGLrrU85qSIAzRVBoTxUz2JUTb3CCpzkwR+PwfzVZy+PxTBHb+
nS/qXEiRWGI5hoBaZy66+It6XVIy3XbopYfi5mL0ZBjs4BtG4CXj3UDxTojgLIvZ
3ubbv8HXLraxfYyH4yw48hVoAPcAjOGD7uXDTWq7oQ==
=/XqI
-----END PGP SIGNATURE-----


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic