Added tailscale & nvm.fish install scripts

This commit is contained in:
Mike Heier 2024-08-26 02:14:04 +00:00
commit ef7308b3ba
2 changed files with 26 additions and 0 deletions

6
install-nvm-fish.sh Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/fish
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
fisher install jorgebucaran/nvm.fish
echo "Successfully installed nvm on fish!"

20
install-tailscale.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
set -ex
curl -fsSL https://tailscale.com/install.sh | sh
sudo apt install -yq networkd-dispatcher
# Setup forwarding
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf
# setup UDP improvements
printf '#!/bin/sh\n\nethtool -K %s rx-udp-gro-forwarding on rx-gro-list off \n' "$(ip route show 0/0 | cut -f5 -d" " | head -n1)" | sudo tee /etc/networkd-dispatcher/routable.d/50-tailscale
sudo chmod 755 /etc/networkd-dispatcher/routable.d/50-tailscale
sudo /etc/networkd-dispatcher/routable.d/50-tailscale
test $? -eq 0 || echo 'An error occurred.'
echo "Successfully installed tailscale!"