This repository has been archived by the owner on Oct 25, 2018. It is now read-only.
forked from nyarly/simplekey
-
Notifications
You must be signed in to change notification settings - Fork 5
gnupg 2.0 Migrate
Dashamir Hoxha edited this page Jun 6, 2016
·
2 revisions
testuser@laptop:~$ rm -rf ~/.egpg/
testuser@laptop:~$ egpg init
Appended the following lines to '/home/testuser/.bashrc':
---------------8<---------------
### start egpg config
export EGPG_DIR="/home/testuser/.egpg"
#export GNUPGHOME="/home/testuser/.egpg/.gnupg"
# Does ".gpg-agent-info" exist and points to gpg-agent process accepting signals?
if ! test -f "$EGPG_DIR/.gpg-agent-info" \
|| ! kill -0 $(cut -d: -f 2 "$EGPG_DIR/.gpg-agent-info") 2>/dev/null
then
gpg-agent --daemon --no-grab --quiet \
--options "$EGPG_DIR/gpg-agent.conf" \
--pinentry-program /usr/bin/pinentry \
--write-env-file "$EGPG_DIR/.gpg-agent-info" > /dev/null
fi
### end egpg config
--------------->8---------------
Please reload it to enable the new config:
source "/home/testuser/.bashrc"
testuser@laptop:~$ source "/home/testuser/.bashrc"
testuser@laptop:~$ egpg migrate
Importing key from: /home/testuser/.gnupg
Importing contacts from: /home/testuser/.gnupg