Skip to content

I use these to configure my computers

License

Notifications You must be signed in to change notification settings

hutchic-org/ansible_playbooks

Repository files navigation

unlicense licensed Libraries.io for GitHub

What

Ansible playbooks that control my various computers

Bootstrapping Personal Development Desktop

sudo apt update
sudo apt install python3-pip python3.11-venv
export PATH=$HOME/.local/bin:$PATH
USER=ubuntu make development_environment

sudo tailscale up

# set the zsh default shell
chsh -s $(which zsh) # might work
sudo vi /etc/passwd # horrible alternative

# setup keybase

https://gist.github.com/mcattarinussi/834fc4b641ff4572018d0c665e5a94d3

export GPG_TTY=$(tty)
keybase login
keybase pgp export -q=EF080FC8D67F84BC | gpg --import
keybase pgp export -q=EF080FC8D67F84BC --secret > /tmp/key.secret
gpg --allow-secret-key-import --import < /tmp/key.secret
gpg --list-keys --keyid-format SHORT
gpg --expert --edit-key SHORTID
addkey
8
S E A Q
4096
5y
y
y
quit
y
keybase pgp update --all
echo enable-ssh-support > ~/.gnupg/gpg-agent.conf

# Start or re-use a gpg-agent
gpgconf --launch gpg-agent

# Ensure that GPG Agent is used as the SSH agent
# add to bottom of .zshrc
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
  export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
echo EAB0A4B4A6E3099EDA8D7E7982CAD0E2635DDBD9 >> ~/.gnupg/sshcontrol
ssh-add -l

gpg --export-ssh-key Colin

git config --global user.signingkey [email protected]
git config --global commit.gpgsign true
git config --global user.name "Colin Hutchinson"
git config --global push.default current
git config --global init.defaultBranch main

Setup ssh private key

https://security.stackexchange.com/a/9635

Setup 1password

op account add
eval $(op signing)
export GITHUB_TOKEN=$(op read op://private/GITHUB_TOKEN/notes)

About

I use these to configure my computers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •