diff options
Diffstat (limited to 'Debian.md')
| -rw-r--r-- | Debian.md | 99 |
1 files changed, 65 insertions, 34 deletions
@@ -1,41 +1,36 @@ -# Prerequisites : -- Add missing dependencies +# TailsOS +## GPG restore smart key ```bash -sudo apt remove neovim -y -sudo apt update -y -sudo apt upgrade -y -sudo reboot -sudo apt install scdaemon vim htop tmux pass pass-extension-otp git-crypt pinentry-tty -y -git clone https://git.sr.ht/~a14m/.rc ~/.rc -ln -sf ~/.rc/.bashrc ~/.bashrc +zbarcam -1 --raw > key.asc +gpg --import key.asc +gpg --edit-key --expert <key_id> +gpg> trust +gpg> keytocard +Really move the primary key? (y/N) y +Please select where to store the key: + (1) Signature key + (3) Authentication key +Your selection? 1 +... +gpg> key 1 +gpg> keytocard +Please select where to store the key: + (2) Encryption key +Your selection? 2 +... +gpg> key 1 +gpg> key 2 +gpg> keytocard +Please select where to store the key: + (3) Authentication key +Your selection? 3 +... -sudo ln -sf /usr/bin/pinentry-tty /usr/local/bin/pinentry-tty -sudo ln -sf /usr/bin/pinentry-curses /usr/local/bin/pinentry-curses -ln -sf ~/.rc/.gnupg/gpg.conf ~/.gnupg/gpg.conf +gpg> quit +Save changes? (y/N) y ``` -# Installation : -## Essentials -```bash -ln -sf ~/.rc/.editorconfig ~/.editorconfig -ln -sf ~/.rc/.inputrc ~/.inputrc -ln -sf ~/.rc/.screenrc ~/.screenrc -ln -sf ~/.rc/.tmux.conf ~/.tmux.conf - -ln -sf ~/.rc/.gitconfig ~/.gitconfig -ln -sf ~/.rc/.gitconfig.work.inc ~/.gitconfig.work.inc -ln -sf ~/.rc/.gitignore_global ~/.gitignore_global - -mkdir -p ~/.ssh - -mkdir -p ~/.config/htop -ln -sf ~/.rc/.config/htop/htoprc ~/.config/htop/htoprc -cd ~/.rc -git remote remove origin -git remote add origin [email protected]:~a14m/.rc -``` - -## ParrotOS (extras) +# ParrotOS ```bash # Allow ssh into the machine curl https://meta.sr.ht/~a14m.keys > ~/.ssh/authorized_keys @@ -69,3 +64,39 @@ sudo mv ~/dotdotpwn /opt/ sudo pip3 install thefuck ``` +# Extras : +## Essentials +- Add missing dependencies +```bash +sudo apt remove neovim -y +sudo apt update -y +sudo apt upgrade -y +sudo reboot +sudo apt install scdaemon vim htop tmux pass pass-extension-otp git-crypt pinentry-tty -y +git clone https://git.sr.ht/~a14m/.rc ~/.rc +ln -sf ~/.rc/.bashrc ~/.bashrc + +sudo ln -sf /usr/bin/pinentry-tty /usr/local/bin/pinentry-tty +sudo ln -sf /usr/bin/pinentry-curses /usr/local/bin/pinentry-curses +ln -sf ~/.rc/.gnupg/gpg.conf ~/.gnupg/gpg.conf +``` + +- Configure rc files +```bash +ln -sf ~/.rc/.editorconfig ~/.editorconfig +ln -sf ~/.rc/.inputrc ~/.inputrc +ln -sf ~/.rc/.screenrc ~/.screenrc +ln -sf ~/.rc/.tmux.conf ~/.tmux.conf + +ln -sf ~/.rc/.gitconfig ~/.gitconfig +ln -sf ~/.rc/.gitconfig.work.inc ~/.gitconfig.work.inc +ln -sf ~/.rc/.gitignore_global ~/.gitignore_global + +mkdir -p ~/.ssh + +mkdir -p ~/.config/htop +ln -sf ~/.rc/.config/htop/htoprc ~/.config/htop/htoprc +cd ~/.rc +git remote remove origin +git remote add origin [email protected]:~a14m/.rc +``` |
