From d9799899cc2d35c10f9767349378012918592fba Mon Sep 17 00:00:00 2001 From: Edwin Lyon Date: Mon, 15 Jul 2024 14:32:46 -0700 Subject: [PATCH] Update 'cloud_setup.sh' Changed timedatectl to UTC, removed libpam-tmpdir to fix issues with MySQL server installs and set TCP Forwading in SSH config to no. --- cloud_setup.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cloud_setup.sh b/cloud_setup.sh index 0703fc6..0b5a1c2 100644 --- a/cloud_setup.sh +++ b/cloud_setup.sh @@ -56,7 +56,7 @@ Subsystem sftp internal-sftp UseDNS no UsePAM yes X11Forwarding no -AllowTcpForwarding yes +AllowTcpForwarding no EOF # Disable unattended-upgrades to prevent it from holding the dpkg frontend lock @@ -67,11 +67,13 @@ sudo systemctl stop unattended-upgrades.service sudo apt update # Install needed programs -sudo apt install -y curl jq apt-transport-https htop debhelper ccze tree debsums ca-certificates software-properties-common dh-make neofetch apparmor apparmor-profiles libpam-cgroup libpam-apparmor libpam-tmpdir apparmor-utils apparmor-easyprof haveged auditd audispd-plugins libpam-cracklib +sudo apt install -y curl jq apt-transport-https htop debhelper ccze tree debsums ca-certificates software-properties-common dh-make neofetch apparmor apparmor-profiles libpam-cgroup libpam-apparmor apparmor-utils apparmor-easyprof haveged auditd audispd-plugins libpam-cracklib # Setup NTP timedatectl set-ntp true -timedatectl set-timezone America/Los_Angeles +timedatectl set-timezone PST +timedatectl set-timezone UTC +#timedatectl set-timezone America/Los_Angeles echo 'servers=0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org' >> /etc/systemd/timesyncd.conf date