From 23b11084515b49656ab10f517f51a7f6f00884cc Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Thu, 30 Nov 2017 19:51:55 +0100 Subject: gpg creation: added suggestion on how to set-up rngd (#6483) --- lib/spack/docs/getting_started.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/spack/docs/getting_started.rst b/lib/spack/docs/getting_started.rst index 9e59b28dac..186bff9ad1 100644 --- a/lib/spack/docs/getting_started.rst +++ b/lib/spack/docs/getting_started.rst @@ -1096,6 +1096,22 @@ they may use packages you have signed using the ``--export `` flag. Secret keys may also be later exported using the ``spack gpg export [...]`` command. +.. note:: + + Key creation speed + The creation of a new GPG key requires generating a lot of random numbers. + Depending on the entropy produced on your system, the entire process may + take a long time (even a few minutes). To speed it up you may install + tools like ``rngd``, which is usually available as a package in the host OS. + On e.g. an Ubuntu machine you need to give the following commands: + + .. code-block:: console + + $ sudo apt-get install rng-tools + $ sudo rngd -r /dev/urandom + + before generating the keys. + ^^^^^^^^^^^^ Listing keys ^^^^^^^^^^^^ -- cgit v1.2.3-70-g09d2