From 32b2f41a5dfe5f5170a39ea8c0564b1dc31011a8 Mon Sep 17 00:00:00 2001 From: Sun Knudsen Date: Thu, 12 Nov 2020 11:42:14 -0500 Subject: [PATCH] Improved guides --- .../README.md | 6 +++--- .../README.md | 2 +- .../README.md | 6 +++--- .../README.md | 6 +++--- .../README.md | 6 +++--- .../README.md | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/how-to-backup-and-encrypt-data-using-rsync-and-veracrypt-on-macos/README.md b/how-to-backup-and-encrypt-data-using-rsync-and-veracrypt-on-macos/README.md index efc7d83..9d86b80 100644 --- a/how-to-backup-and-encrypt-data-using-rsync-and-veracrypt-on-macos/README.md +++ b/how-to-backup-and-encrypt-data-using-rsync-and-veracrypt-on-macos/README.md @@ -217,9 +217,9 @@ veracrypt --text --mount --pim 0 --keyfiles "" --protect-hidden no "\$volume_pat mkdir -p "\$mount_point/Versioning" files=( - "/Users/$(whoami)/.gnupg" - "/Users/$(whoami)/.ssh" - "/Users/$(whoami)/Library/Keychains" + "/Users/$USER/.gnupg" + "/Users/$USER/.ssh" + "/Users/$USER/Library/Keychains" ) for file in "\${files[@]}"; do diff --git a/how-to-clean-uninstall-apps-on-macos-using-appcleaner-open-source-alternative/README.md b/how-to-clean-uninstall-apps-on-macos-using-appcleaner-open-source-alternative/README.md index 99e9cf6..35563f5 100644 --- a/how-to-clean-uninstall-apps-on-macos-using-appcleaner-open-source-alternative/README.md +++ b/how-to-clean-uninstall-apps-on-macos-using-appcleaner-open-source-alternative/README.md @@ -18,7 +18,7 @@ Listed: true ```shell sudo mkdir -p /usr/local/bin -sudo chown $(whoami):admin /usr/local/bin +sudo chown $USER:admin /usr/local/bin ``` ### Step 2: download [app-cleaner.sh](app-cleaner.sh) ([PGP signature](./app-cleaner.sh.sig), [PGP public key](https://sunknudsen.com/sunknudsen.asc)) diff --git a/how-to-configure-self-hosted-vpn-kill-switch-using-pf-firewall-on-macos/README.md b/how-to-configure-self-hosted-vpn-kill-switch-using-pf-firewall-on-macos/README.md index 22c4dc9..3df11da 100644 --- a/how-to-configure-self-hosted-vpn-kill-switch-using-pf-firewall-on-macos/README.md +++ b/how-to-configure-self-hosted-vpn-kill-switch-using-pf-firewall-on-macos/README.md @@ -30,11 +30,11 @@ Listed: true Open “System Preferences”, click “Security & Privacy”, then “Firewall” and enable “Turn On Firewall”. -![firewall](firewall.png?shadow=1) +![firewall](firewall.png?shadow=1&width=668) Then, click “Firewall Options…”, disable all options except “Enable stealth mode”. -![firewall-options](firewall-options.png?shadow=1) +![firewall-options](firewall-options.png?shadow=1&width=668) ### Step 2: confirm PF is enabled @@ -256,7 +256,7 @@ sudo pfctl -F all -f /etc/pf.conf ```shell sudo mkdir -p /usr/local/sbin -sudo chown $(whoami):admin /usr/local/sbin +sudo chown $USER:admin /usr/local/sbin ``` ### Step 11: source `/usr/local/sbin` folder diff --git a/how-to-disable-ipv6-on-ios-cellular-only-and-macos/README.md b/how-to-disable-ipv6-on-ios-cellular-only-and-macos/README.md index 800a04e..ce65114 100644 --- a/how-to-disable-ipv6-on-ios-cellular-only-and-macos/README.md +++ b/how-to-disable-ipv6-on-ios-cellular-only-and-macos/README.md @@ -28,7 +28,7 @@ Listed: true Open “Settings“, then “Cellular“, then “Cellular Data Network“. -![ios-cellular-data-network](./ios-cellular-data-network.png?shadow=1&width=240) +![ios-cellular-data-network](./ios-cellular-data-network.png?shadow=1&width=375) ### Step 5 (on Mac): configure “Cellular” settings @@ -50,7 +50,7 @@ Open “Settings“, then “Cellular“, then “Cellular Data Network“. Open “Settings”, then “Profile Downloaded” and tap “Install” -![ios-install-profile](./ios-install-profile.png?shadow=1&width=240) +![ios-install-profile](./ios-install-profile.png?shadow=1&width=375) ## macOS guide @@ -82,7 +82,7 @@ networksetup -setv6off "Thunderbolt Ethernet" Open “Settings”, then “General”, then “Profile”, and tap provisioning profile, then “Remove Profile”. -![ios-remove-profile](./ios-remove-profile.png?shadow=1&width=240) +![ios-remove-profile](./ios-remove-profile.png?shadow=1&width=375) ### Step 2 (on Mac): set network interfaces to automatic diff --git a/how-to-self-host-a-hardened-strongswan-ikev2-ipsec-vpn-server-for-ios-and-macos/README.md b/how-to-self-host-a-hardened-strongswan-ikev2-ipsec-vpn-server-for-ios-and-macos/README.md index 9d2f1b5..ce520bb 100644 --- a/how-to-self-host-a-hardened-strongswan-ikev2-ipsec-vpn-server-for-ios-and-macos/README.md +++ b/how-to-self-host-a-hardened-strongswan-ikev2-ipsec-vpn-server-for-ios-and-macos/README.md @@ -27,7 +27,7 @@ Listed: true ## Guide -### Step 1: create SSH key pair +### Step 1: create SSH key pair (on Mac) When asked for file in which to save key, enter `vpn-server`. @@ -146,9 +146,9 @@ sed -i -E 's/(#)?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh systemctl restart ssh ``` -### Step 10: update APT index files and upgrade packages +### Step 10: update APT index and upgrade packages -#### Update apt index files +#### Update APT index ```shell apt update diff --git a/how-to-spoof-your-mac-address-and-hostname-automatically-at-boot-on-macos/README.md b/how-to-spoof-your-mac-address-and-hostname-automatically-at-boot-on-macos/README.md index cd693bc..6e7567f 100644 --- a/how-to-spoof-your-mac-address-and-hostname-automatically-at-boot-on-macos/README.md +++ b/how-to-spoof-your-mac-address-and-hostname-automatically-at-boot-on-macos/README.md @@ -25,7 +25,7 @@ Listed: true ```shell sudo mkdir -p /usr/local/sbin -sudo chown $(whoami):admin /usr/local/sbin +sudo chown $USER:admin /usr/local/sbin ``` ### Step 2: source `/usr/local/sbin` folder