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