You are not logged in.
I need help in understanding the wiki.
Directory location
$GNUPGHOMEis used by GnuPG to point to the directory where its configuration files are stored. By default
$GNUPGHOMEis not set and your
$HOMEis used instead; thus, you will find a
~/.gnupgdirectory right after installation.
To change the default location, either run gpg this way$ gpg --homedir path/to/fileor set the
GNUPGHOMEenvironment variable.
export GNUPGHOME="${GNUPGHOME}:/etc/.gnupg add it to: ~/.bash_profileIs the above the correct way to set the environment variable? and will that create a config file for gnupg in
/etc.gnupgand set that as the default location for gnupg? If that is correct, why is it necessary to change the directory where the configuration files are stored?
Also, I don't have these two files:
~/.gnupg/gpg.confand
~/.gnupg/dirmngr.confI'm thinking that, the first time gpg is run I'll get those two files, is that correct?
Originally I wanted to add:
keyserver-options auto-key-retrieveto:
gpg.confThat's what got me started with this topic. Once I've used gpg and the skeleton files (not too sure exactly what they are) get copied to
.gnupg will that create the
.gnupg/gpg.conf? If that is correct, if I then paste
keyserver-options auto-key-retrieveto:
/.gnupg/gpg.confWould that then mean I won't in the future need to go hunting for keys? as
Adding keyserver-options auto-key-retrieve to gpg.conf will automatically fetch keys from the key server as needed
I've done my utmost trying to understand the Wiki, any help would be much appreciated.
Last edited by Straight-path (2020-10-24 10:36:01)
Offline
Yup, you mostly got all right, except that you don't have to touch GNUPGHOME at all, unless you want it to live somewhere else INSIDE your user home...
/etc is not a good place for your user gpg files...
Offline
Are you saying that it's not necessary to change the location and I don't need to set any environment variables?
If that's the case, lol jokes for all the struggle reading etc. At least I think I learnt a few things.
Also how, lol I don't know what it means when the first time gpg is run. Does that mean the first time I try to get a gpg key?
If thats the case then I have to wait until I need to get a key so the
gpg.confgets generated and then I can add
keyserver-options auto-key-retrieveso in the future I won't need to search for gpg keys?
Offline
lol, you saying I mostly got it all right, gives me hope that I can learn from the wiki and use Arch.
Offline
Sometimes you might need to search, but it should work pretty allright...
Note that eventually you might™ need to change the keyserver, since the default is quite overloaded...
An example is:
dirmngr.conf
keyserver hkp://keys.gnupg.netBut there are other keyservers, like ubuntu's or debian, the wiki covers them, and wikipedia has an article too.
That one works ok for me in the tests. So you should be fine with that one.
Offline
Thank you very much. Could just confirm exactly how I get the two configuration files to be generated?
~/.gnupg/gpg.confand
~/.gnupg/dirmngr.confOffline
I'm not too sure exactly what/how to run gpg means
Offline
The files aren’t autogenerated...
You must create the files.
The directory should be there already.
Then you add the configs with a text editor, ex: nano
Offline
uhah.
Lol. wicked.
good I asked. I would have been waiting a long time.
Thank you very much for your time and patience.
Offline