diff options
author | EuAndreh <eu@euandre.org> | 2018-03-23 20:38:44 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-03-23 20:49:09 -0300 |
commit | 4e734232c611890f616194ed5cfade2549e4491b (patch) | |
tree | 38e74c5f28aaa8ecc8c6cbff7836d919c8fa7a1b /README.org | |
parent | Initial commit: add git-crypt .gitattributes file (diff) | |
download | dotfiles-4e734232c611890f616194ed5cfade2549e4491b.tar.gz dotfiles-4e734232c611890f616194ed5cfade2549e4491b.tar.xz |
Initial commit: now public (again)
Diffstat (limited to 'README.org')
-rw-r--r-- | README.org | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/README.org b/README.org new file mode 100644 index 0000000..081b492 --- /dev/null +++ b/README.org @@ -0,0 +1,53 @@ +* dotfiles +** Instructions - setting up a new installation (NixOS) +*** 1. Download NixOS image from [[https://nixos.org/][the website]]. +*** 2. Follow USB ISO installation steps in =nixos/os-installation.sh= +*** 3. Put =private.gpg= and =public.gpg= files in UTCLOUD (the actual HD drive) +#+BEGIN_SRC shell +gpg --export -a EuAndreh > public.gpg +gpg --export-secret-keys -a EuAndreh > private +gpg --cipher-algo AES256 -c private +rm private +mv public.gpg ~/UTCLOUD/public.gpg +mv private.gpg ~/UTCLOUD/private.gpg +#+END_SRC +*** 4. Import GPG keys in new OS +#+BEGIN_SRC shell +gpg -o private -d private.gpg +gpg --import public.gpg +gpg --import private +gpg --edit-key EuAndreh + +# Inside GPG prompt +trust +5 +quit + +# end of GPG prompt +rm private +rm private.gpg +rm public.gpg +#+END_SRC +*** 5. Clone annex repo from HD and setup remotes +#+BEGIN_SRC shell +git clone gcrypt::/media/andreh/UTCLOUD/annex.git +cd annex +git annex describe here "repo description" +git annex enableremote hd +git annex enableremote gitlab +git annex enableremote rsyncnet +git annex enableremote s3 +#+END_SRC +** Paperkey +Paperkey generate using: +#+BEGIN_SRC shell +cat <<EOF +# Paper key +gpg --export-secret-keys eu@euandre.org | paperkey > paperket.txt + +# QR codes of paper key +gpg --export-secret-keys eu@euandre.org | paperkey | qrencode -o out.png -S -v 16 +montage *.png -tile 1x2 -geometry +0+0 concatenate-out.png +rm out* +EOF +#+END_SRC |