gpg with Raspberry Pi

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

gpg with Raspberry Pi

Postby shinagan » Fri Dec 05, 2014 5:51 am

Hi everyone,

I've tried to get gpg to work but I'm stuck in the process. I've followed the tutorial here :
https://wiki.archlinux.org/index.php/GnuPG
And after the installation I've noticed that a folder .gnupg had been created in /root/ but not in ~/.
So I did:
Code: Select all
export GNUPGHOME="/root/.gnupg"

to link gpg to the right folder. I then appended the following lines to gpg.conf, following the tutorial:
Code: Select all
personal-digest-preferences SHA512
cert-digest-algo SHA512
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
personal-cipher-preferences TWOFISH CAMELLIA256 AES 3DES

as advised by the tutorial. Then I typed:
Code: Select all
# gpg --gen-key


But after answering a few questions I always get this error message:
Code: Select all
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: agent_genkey failed: No pinentry
Key generation failed: No pinentry


I've reinstalled gpg, made sure that pinentry was installed too, created ~/.gnupg with the same files etc... -> same error. Does anyone knows what's wrong with "pinentry"?

Thanks!

Alex
shinagan
 
Posts: 5
Joined: Fri Dec 05, 2014 5:31 am

Re: gpg with Raspberry Pi

Postby moonman » Fri Dec 05, 2014 6:52 am

I glanced through arch wiki, and says pinentry is a symlink that by default points to gtk2 binary. Are you running a DE? If not point it to pinentry-curses
Pogoplug V4 | GoFlex Home | Raspberry Pi B 512 | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | |[armv5] How to install my.pogoplug.com service | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3048
Joined: Sat Jan 15, 2011 3:36 am
Location: Calgary, Canada

Re: gpg with Raspberry Pi

Postby shinagan » Mon Dec 08, 2014 5:47 am

Hi!
Thanks for the reply. I was not running a DE, and modifying the symlink was indeed the right solution.
Thanks!

Alex
shinagan
 
Posts: 5
Joined: Fri Dec 05, 2014 5:31 am


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 1 guest