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-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