diff options
| -rw-r--r-- | README.md | 45 |
1 files changed, 27 insertions, 18 deletions
@@ -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 [email protected]:~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 [email protected]: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 [email protected] > 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 -``` |
