Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.25 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.25 KB

A Reproducible Workstation based on Pop!_OS

WIP

Motivation

Usage

First, install a couple of essential packages:

sudo apt-get update
sudo apt-get install gnupg2 git curl ansible

Setup GnuPG

Next, I restore my GPG keys using some simple scripts. See this gist for more information. One for exporting (this needs to be run on a machine where you have you have gpg2 set up.)

#!/usr/bin/env bash
set -euo pipefail

cp ~/.gnupg/pubring.kbx .
cp ~/.gnupg/trustdb.gpg .

gpg2 --export --armor <yourkey@id> ><yourkey@id>.pub.asc
gpg2 --export-secret-keys --armor <yourkey@id> ><yourkey@id>.priv.asc
gpg2 --export-secret-subkeys --armor <yourkey@id> ><yourkey@id>.sub_priv.asc
gpg2 --export-ownertrust >ownertrust.txt

Then, on the new machine, simply import using the following

#!/usr/bin/env bash
set -euo pipefail

cp ./*.kbx ~/.gnupg/
cp ./*.gpg ~/.gnupg/

gpg2 --import <yourkey@id>.pub.asc
gpg2 --import <yourkey@id>.priv.asc
gpg2 --import <yourkey@id>.sub_priv.asc
# You only need to uncomment this if your trustdb became corrupted
# gpg2 --import-ownertrust ownertrust.txt