Add YubiKey script and wireguard docs
This commit is contained in:
parent
3a3a27dede
commit
1d0a48f32d
|
@ -0,0 +1,6 @@
|
|||
sudo apt install wireguard
|
||||
|
||||
# Copy peer config from fortress to /etc/wireguard/wg0.conf
|
||||
|
||||
sudo wg-quick up wg0
|
||||
sudo wg-quick down wg0
|
|
@ -0,0 +1,63 @@
|
|||
################################################################################
|
||||
################################################################################
|
||||
################################################################################
|
||||
# Check for local apt proxy, and enable if available
|
||||
|
||||
APT_PREFIX='#'
|
||||
|
||||
nslookup apt.mlaga97.space
|
||||
if [ $? -eq 0 ]; then
|
||||
APT_PREFIX=''
|
||||
fi
|
||||
|
||||
sudo tee /etc/apt/apt.conf.d/00mlaga97space <<- EOM
|
||||
$(APT_PREFIX)Acquire::HTTP::Proxy "http://apt.mlaga97.space:3142";
|
||||
$(APT_PREFIX)Acquire::HTTPS::Proxy "http://apt.mlaga97.space:3142";
|
||||
EOM
|
||||
|
||||
################################################################################
|
||||
################################################################################
|
||||
################################################################################
|
||||
# Update and install base packages
|
||||
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
|
||||
sudo apt install git scdaemon qtpass vim
|
||||
|
||||
################################################################################
|
||||
################################################################################
|
||||
################################################################################
|
||||
# Configure GPG
|
||||
|
||||
gpg --receive-keys 5F78261B65C565041662A3B7FF8FC3C735BD4A51 # Matieu Luc Lagarde
|
||||
gpg --receive-keys CB2DA92C06453ADDEDDD49C60458D1300C09CC73 # Ashley Funkhouser
|
||||
|
||||
mkdir -p ~/.gnupg
|
||||
cat > ~/.gnupg/gpg-agent.conf <<- EOM
|
||||
enable-ssh-support
|
||||
EOM
|
||||
|
||||
cat >> ~/.bashrc <<- EOM
|
||||
export SSH_AUTH_SOCK=\$(gpgconf --list-dirs agent-ssh-socket)
|
||||
gpgconf --launch gpg-agent
|
||||
EOM
|
||||
|
||||
mkdir -p ~/.ssh
|
||||
cat >> ~/.ssh/config <<- EOM
|
||||
Host git.mlaga97.space
|
||||
Port 2222
|
||||
ProxyJump fortress.mlaga97.space
|
||||
EOM
|
||||
|
||||
################################################################################
|
||||
################################################################################
|
||||
################################################################################
|
||||
# Reload .bashrc and download a few important repos
|
||||
|
||||
. ~/.bashrc
|
||||
|
||||
cd
|
||||
git clone git@git.mlaga97.space:mlaga97/.vim
|
||||
git clone git@git.mlaga97.space:mlaga97/public-notes
|
||||
git clone git@git.mlaga97.space:mlaga97/.password-store
|
Loading…
Reference in New Issue