From 14244a4d3ddae0018ca6e1f681f7afe8ce7f6a57 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Sun, 8 Dec 2024 14:18:41 -0800 Subject: [PATCH] make sure systemd-timesyncd is installed as the time-daemon, remove unwanted packages --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index af52601..18b5e4b 100644 --- a/install.sh +++ b/install.sh @@ -37,11 +37,19 @@ if [[ ! -f /etc/sysctl.d/60-swappiness.conf ]]; then /sbin/sysctl --quiet --system fi +# remove unwanted packages +DEBIAN_FRONTEND=noninteractive apt-get -y purge snapd cryptsetup ufw iptables popularity-contest ntpsec +DEBIAN_FRONTEND=noninteractive apt-get -y autoremove +systemctl daemon-reload + # update system DEBIAN_FRONTEND=noninteractive apt-get -y update # special dpkg options needed for things like nointeractive grub updates DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade +# Install systemd-timesyncd as the time-daemon. It may already be installed, or ntpsec (purged above) may have been in it's place. +DEBIAN_FRONTEND=noninteractive apt-get -y install systemd-timesyncd + # configure unattended upgrades with automatic reboots DEBIAN_FRONTEND=noninteractive apt-get -y install unattended-upgrades apt-listchanges sed -i 's|// "origin=Debian,codename=${distro_codename}-updates";| "origin=Debian,codename=${distro_codename}-updates";|g' /etc/apt/apt.conf.d/50unattended-upgrades