aboutsummaryrefslogtreecommitdiff
path: root/README.org
blob: eebad02dba5efa92b75d4e679cc474de54dd88d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
* dotfiles
[[https://builds.sr.ht/~euandreh/dotfiles][file:https://builds.sr.ht/~euandreh/dotfiles.svg]]
** 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
  shred private
  mv public.gpg ~/UTCLOUD/public.gpg
  mv private.gpg ~/UTCLOUD/private.gpg
  cp $DOTFILES/encrypted/password-hash.txt ~/UTCLOUD/password-hash.txt
#+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
shred private
shred 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 EuAndreh | paperkey > paperket.txt

# QR codes of paper key
gpg --export-secret-keys EuAndreh | paperkey | qrencode -o out.png -S -v 16
montage *.png -tile 1x2 -geometry +0+0 concatenate-out.png
rm out*
EOF
#+END_SRC