Score:2

What are required environment variables for GPG?

jp flag

I'm trying to setup the docker credentials, and it requires to initialize the gpg first.

Here are my steps:

root@remote_machine:~# gpg --gen-key                                                                   
gpg (GnuPG) 2.2.4; Copyright (C) 2017 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Note: Use "gpg --full-generate-key" for a full featured key generation dialog.

GnuPG needs to construct a user ID to identify your key.

Real name: NeededUser
Email address: [email protected]
You selected this USER-ID:
    "NeededUser <[email protected]>"

Change (N)ame, (E)mail, or (O)kay/(Q)uit? O
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: Required environment variable not set
Key generation failed: Required environment variable not set
root@remote_machine:~# 

I have tried to set up the GPG_TTY variable, and it is set to /dev/pts/0. What variables are necessary for GPG?

Score:1
jp flag

I was using kitty as the terminal emulator. Switching to the konsole resolved it to me

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.