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.
main
Edwin Lyon 10 months ago
parent 0d52a34d2b
commit d9799899cc
  1. 8
      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

Loading…
Cancel
Save