From 9a59d651b0f70039e19b5ff1ba5012b523fdbdfa Mon Sep 17 00:00:00 2001 From: drduh Date: Fri, 29 Mar 2024 08:17:24 -0700 Subject: [PATCH] Tidy style and formatting --- README.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 20fb5d6..5986c05 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ $ doas dd if=debian-live-*-amd64-xfce.iso of=/dev/rsd2c bs=4m 1951432704 bytes transferred in 139.125 secs (14026448 bytes/sec) ``` -Power off, disconnect internal hard drives and all unnecessary devices, such as the wireless card. +Power off, remove internal hard drives and all unnecessary devices, such as the wireless card. # Install software @@ -388,7 +388,7 @@ KEYID=$(gpg -k --with-colons "$IDENTITY" | awk -F: '/^pub:/ { print $5; exit }') KEYFP=$(gpg -k --with-colons "$IDENTITY" | awk -F: '/^fpr:/ { print $10; exit }') -echo $KEYID $KEYFP +printf "\nKey ID: %40s\nKey FP: %40s\n\n" "$KEYID" "$KEYFP" ``` # Create Subkeys @@ -465,6 +465,8 @@ Zero the header to prepare for encryption: sudo dd if=/dev/zero of=/dev/sdc bs=4M count=1 ``` +Remove and re-connect the storage device. + Erase and create a new partition table: ```console @@ -610,7 +612,7 @@ doas mount /dev/sd3i /mnt/encrypted-storage doas cp -av $GNUPGHOME /mnt/encrypted-storage ``` -Unmount and disconnect the encrypted volume: +Unmount and remove the encrypted volume: ```console doas umount /mnt/encrypted-storage @@ -723,7 +725,7 @@ ADMIN_PIN=$(LC_ALL=C tr -dc '0-9' < /dev/urandom | fold -w8 | head -1) USER_PIN=$(LC_ALL=C tr -dc '0-9' < /dev/urandom | fold -w6 | head -1) -echo "\nAdmin PIN: $ADMIN_PIN\nUser PIN: $USER_PIN" +printf "\nAdmin PIN: %12s\nUser PIN: %13s\n\n" "$ADMIN_PIN" "$USER_PIN" ``` Change the Admin PIN: @@ -770,11 +772,8 @@ Or use predetermined values: gpg --command-fd=0 --pinentry-mode=loopback --edit-card <