From b7c2f8d945e348b5e2b745a150b1b29fbd61f7ad Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 10 Jun 2021 13:16:22 +0200 Subject: Update the instructions and move to srht --- README.md | 45 +++++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index db7d83a..3f9b285 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Install xcode and homebrew ```bash xcode-select --install -git clone https://github.com/a14m/.rc.git ~/.rc +git clone https://git.sr.ht/~a14m/.rc ~/.rc cd ~/.rc ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" @@ -39,6 +39,13 @@ mkdir -p ~/.config/htop ~/.config/wtf ln -sf ~/.rc/.config/htop/htoprc ~/.config/htop/htoprc ln -sf ~/.rc/.config/wtf/config.yml ~/.config/wtf/config.yml +git remote remove origin +git remote add origin git@git.sr.ht:~a14m/.rc +``` + +## MacOS ++ GPG setup +```bash mkdir -p ~/.gnupg ln -sf ~/.rc/.gnupg/gpg-agent.conf ~/.gnupg/gpg-agent.conf ln -sf ~/.rc/.gnupg/sshcontrol ~/.gnupg/sshcontrol @@ -46,14 +53,16 @@ ln -sf ~/.rc/.gnupg/sshcontrol ~/.gnupg/sshcontrol gpg-connect-agent killagent /bye gpg-connect-agent updatestartuptty /bye gpg-connect-agent /bye +``` ++ Bash shell default +```bash sudo bash -c 'echo /usr/local/bin/bash >> /etc/shells' chsh -s /usr/local/bin/bash - -git remote remove origin -git remote add origin git@github.com:a14m/.rc.git ``` +## GPG smart key + - Load pgp key from card and trust it ```bash gpg --edit-card @@ -63,6 +72,20 @@ gpg --edit-key a14m@pm.me > trust ``` +## Debian Linux + +- Add missing dependencies +```bash +sudo apt update -y +sudo apt upgrade -y +sudo apt install scdaemon vim htop tmux pass pass-extension-otp git-crypt -y +ln -sf ~/.rc/.bashrc ~/.bashrc +ssh-add -L > ~/.ssh/.authorized_keys +sudo systemctl enable ssh +sudo ufw enable +sudo ufw allow from 192.168.0.0/24 to any port 22 +``` + ## Languages - Setup ruby/rbenv @@ -135,17 +158,3 @@ ln -sf ~/.rc/.powconfig ~/.powconfig # Uninstall pow curl get.pow.cx/uninstall.sh | sh ``` - -## Debian Linux - -- Add missing dependencies -```bash -sudo apt update -y -sudo apt upgrade -y -sudo apt install scdaemon vim htop tmux pass pass-extension-otp git-crypt -y -ln -sf ~/.rc/.bashrc ~/.bashrc -ssh-add -L > ~/.ssh/.authorized_keys -sudo systemctl enable ssh -sudo ufw enable -sudo ufw allow from 192.168.0.0/24 to any port 22 -``` -- cgit v1.2.3