add wireguard to install

This commit is contained in:
Frieder Schlesier 2021-04-03 20:47:40 +02:00
parent 9415d0a685
commit 88df61ca0d
1 changed files with 10 additions and 1 deletions

View File

@ -39,6 +39,11 @@ deb-src http://deb.debian.org/debian ${DIST} main
deb http://deb.debian.org/debian-security/ ${DIST}/updates main deb http://deb.debian.org/debian-security/ ${DIST}/updates main
deb-src 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 http://deb.debian.org/debian ${DIST}-updates main
deb-src http://deb.debian.org/debian ${DIST}-updates main deb-src http://deb.debian.org/debian ${DIST}-updates main
EOF EOF
@ -73,6 +78,7 @@ base_applications() {
htop \ htop \
iotop \ iotop \
locales \ locales \
linux-headers-$(uname -r) \
make \ make \
mount \ mount \
net-tools \ net-tools \
@ -86,6 +92,7 @@ base_applications() {
vim \ vim \
vpnc \ vpnc \
vpnc-scripts \ vpnc-scripts \
wireguard \
zip \ zip \
--no-install-recommends --no-install-recommends
@ -93,6 +100,8 @@ base_applications() {
$SUDO apt autoremove $SUDO apt autoremove
$SUDO apt autoclean $SUDO apt autoclean
$SUDO apt clean $SUDO apt clean
$SUDO ip link add dev wg0 type wireguard
} }
install_server_base() { install_server_base() {
@ -416,7 +425,7 @@ main() {
local cmd=$1 local cmd=$1
if [[ -z "$cmd" ]]; then 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 fi
case "$cmd" in case "$cmd" in