From 88df61ca0dd2456ba2d910a153ea09571511c5bc Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Sat, 3 Apr 2021 20:47:40 +0200 Subject: [PATCH] add wireguard to install --- scripts/install.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 213addb..1a33f0c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -39,6 +39,11 @@ deb-src http://deb.debian.org/debian ${DIST} main deb http://deb.debian.org/debian-security/ ${DIST}/updates main deb-src http://deb.debian.org/debian-security/ ${DIST}/updates main +# backports for wireguard +# https://www.wireguard.com/install/ +# https://backports.debian.org/Instructions/ +deb http://deb.debian.org/debian buster-backports main + deb http://deb.debian.org/debian ${DIST}-updates main deb-src http://deb.debian.org/debian ${DIST}-updates main EOF @@ -73,6 +78,7 @@ base_applications() { htop \ iotop \ locales \ + linux-headers-$(uname -r) \ make \ mount \ net-tools \ @@ -86,6 +92,7 @@ base_applications() { vim \ vpnc \ vpnc-scripts \ + wireguard \ zip \ --no-install-recommends @@ -93,6 +100,8 @@ base_applications() { $SUDO apt autoremove $SUDO apt autoclean $SUDO apt clean + + $SUDO ip link add dev wg0 type wireguard } install_server_base() { @@ -416,7 +425,7 @@ main() { local cmd=$1 if [[ -z "$cmd" ]]; then - echo "Usage: \n base | desktop | server | dotfiles | update-docker | go" + echo "Usage: \n base (includes docker+compose)| desktop | server | dotfiles | vscode | latex | update-docker | go" fi case "$cmd" in