Update 'cloud_setup.sh'

main
Edwin Lyon 2 years ago
parent 475210c87c
commit 96ca9e5403
  1. 13
      cloud_setup.sh

@ -63,8 +63,11 @@ EOF
sudo systemctl disable unattended-upgrades.service sudo systemctl disable unattended-upgrades.service
sudo systemctl stop unattended-upgrades.service sudo systemctl stop unattended-upgrades.service
# Check for Updates
sudo apt update
# Install needed programs # 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 # Setup NTP
timedatectl set-ntp true timedatectl set-ntp true
@ -239,10 +242,10 @@ EOF
echo 'session optional pam_apparmor.so order=user,group,default' > /etc/pam.d/apparmor echo 'session optional pam_apparmor.so order=user,group,default' > /etc/pam.d/apparmor
# Enable Services # Enable Services
systemctl enable auditd sudo systemctl enable auditd
systemctl enable apparmor sudo systemctl enable apparmor
systemctl enable haveged sudo systemctl enable haveged
systemctl enable unattended-upgrades sudo systemctl enable unattended-upgrades
# Setup SSH Host Keys # Setup SSH Host Keys
rm /etc/ssh/ssh_host_* rm /etc/ssh/ssh_host_*

Loading…
Cancel
Save