From 96ca9e5403af3f93828e4f46d5394990ce0252f8 Mon Sep 17 00:00:00 2001 From: Edwin Lyon Date: Wed, 20 Sep 2023 13:49:39 -0700 Subject: [PATCH] Update 'cloud_setup.sh' --- cloud_setup.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cloud_setup.sh b/cloud_setup.sh index 116c50d..8d2e42a 100644 --- a/cloud_setup.sh +++ b/cloud_setup.sh @@ -63,8 +63,11 @@ EOF sudo systemctl disable unattended-upgrades.service sudo systemctl stop unattended-upgrades.service +# Check for Updates +sudo apt update + # Install needed programs -apt install curl jq apt-transport-https htop debhelper ccze tree debsums ca-certificates software-properties-common dh-make dh-systemd neofetch apparmor apparmor-profiles libpam-cgroup libpam-apparmor libpam-tmpdir apparmor-utils apparmor-easyprof haveged auditd libpam-cracklib +sudo apt install -y curl jq apt-transport-https htop debhelper ccze tree debsums ca-certificates software-properties-common dh-make dh-systemd neofetch apparmor apparmor-profiles libpam-cgroup libpam-apparmor libpam-tmpdir apparmor-utils apparmor-easyprof haveged auditd libpam-cracklib # Setup NTP timedatectl set-ntp true @@ -239,10 +242,10 @@ EOF echo 'session optional pam_apparmor.so order=user,group,default' > /etc/pam.d/apparmor # Enable Services -systemctl enable auditd -systemctl enable apparmor -systemctl enable haveged -systemctl enable unattended-upgrades +sudo systemctl enable auditd +sudo systemctl enable apparmor +sudo systemctl enable haveged +sudo systemctl enable unattended-upgrades # Setup SSH Host Keys rm /etc/ssh/ssh_host_*