From 46af010d7d245e146bab00fc0afc00a5843d37e7 Mon Sep 17 00:00:00 2001 From: Tianshu Wang Date: Sun, 6 Oct 2024 23:20:07 +0800 Subject: [PATCH] Update and rename README.org to README.md --- README.md | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.org | 45 ------------------------------------------- 2 files changed, 56 insertions(+), 45 deletions(-) create mode 100644 README.md delete mode 100644 README.org diff --git a/README.md b/README.md new file mode 100644 index 0000000..e17ca23 --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# Dotfiles + +``` {.bash org-language="sh"} +git clone --recurse-submodules https://github.com/tshu-w/dotfiles.git +``` + +## macOS + +1. Ensure iCloud Unison folder downloaded + +2. Grant terminal Full Disk Access + +3. `make` + +4. Finish *TODO* and *FIXME* in [macOS.sh](darwin/macOS.sh) + +5. Link Documents to Dropbox and lock it + +```shell +sudo rm -rf ~/Documents && ln -s ~/Library/CloudStorage/Dropbox/Documents ~ +sudo chflags -h uchg ~/Documents +``` + +6. Set youdao appID and key for Launchbar (\~ ID) + +7. Import GPG subkeys + +```shell +gpg --import private-subkeys.asc +gpg --edit-key [key-id] +gpg> trust +``` + +8. Authenticate Github CLI + +```shell +gh auth login +gh extension install github/gh-copilot +``` + +## Server + +1. Import GPG public key + +```shell +gpg --search-keys mail@address +gpg --export-ssh-key mail@address > ~/.ssh/authorized_keys +gpg --import .config/gnupg/public.asc +``` + +2. Authenticate Github CLI + +```shell +gh auth login +gh extension install github/gh-copilot +``` diff --git a/README.org b/README.org deleted file mode 100644 index 4696f2a..0000000 --- a/README.org +++ /dev/null @@ -1,45 +0,0 @@ -* Dotfiles -#+begin_src sh -git clone --recurse-submodules https://github.com/tshu-w/dotfiles.git -#+end_src - -** macOS -*** *ensure iCloud Unison downloaded* -*** grant terminal Full Disk Access -*** make -*** ~TODO~ and ~FIXME~ in [[file:darwin/macOS.sh][macOS.sh]] -*** link Documents to Dropbox and lock it -#+begin_src sh -sudo rm -rf ~/Documents && ln -s ~/Library/CloudStorage/Dropbox/Documents ~ -sudo chflags -h uchg ~/Documents -#+end_src - -*** set youdao appID and key for Launchbar -~ ID -*** import GPG subkeys -#+begin_src sh -gpg --import private-subkeys.asc -gpg --edit-key [key-id] -gpg> trust -#+end_src -*** authenticate Github CLI -#+begin_src sh -gh auth login -gh extension install github/gh-copilot -#+end_src - -** Server -*** import GPG public key -#+begin_src sh -gpg --search-keys mail@address -gpg --export-ssh-key mail@address > ~/.ssh/authorized_keys -gpg --import .config/gnupg/public.asc -#+end_src - - - -*** authenticate Github CLI -#+begin_src sh -gh auth login -gh extension install github/gh-copilot -#+end_src