From 92773bf7bc3f561c0e1f8368d263c3f668c1925c Mon Sep 17 00:00:00 2001 From: Aney Date: Wed, 14 Jul 2021 20:08:17 +0100 Subject: [PATCH] [WIP] Add some additional bits to debain server install --- server/base_debian_install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/base_debian_install.sh b/server/base_debian_install.sh index 62cbfbf..562f71c 100644 --- a/server/base_debian_install.sh +++ b/server/base_debian_install.sh @@ -10,6 +10,7 @@ apt install wget curl -y # zsh # Firewall systemctl --now enable ufw # Should be automatic, but in case +ufw enable ufw default deny incoming ufw default allow outgoing @@ -18,3 +19,12 @@ ufw allow 22 # Allow SSH port # Filesystems apt install cifs-utils -y + +# Tools +apt install gzip zip tar -y +apt install rsync -y + +# For laptops +# Prevent the laptop from shutting down when the lid is down +sudo sh -c 'echo "HandleLidSwitch=ignore" >> /etc/systemd/logind.conf' && sudo shutdown -r now +