From 83248c3718d1ac04a331f0638cfa661aaf9ba3fa Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 28 Apr 2024 13:44:01 -0700 Subject: [PATCH] Stop systemd-timesyncd before masking Signed-off-by: Tommy --- Kali-Linux.sh | 1 + Ubuntu-22.04-Server.sh | 1 + Ubuntu-23.10-Desktop.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/Kali-Linux.sh b/Kali-Linux.sh index 8385281..69e25f5 100644 --- a/Kali-Linux.sh +++ b/Kali-Linux.sh @@ -47,6 +47,7 @@ sudo apt full-upgrade -y sudo apt install kali-linux-everything -y # Setup NTS +sudo systemctl disable --now systemd-timesyncd sudo systemctl mask systemd-timesyncd if [ "${parallels}" = "0" ]; then diff --git a/Ubuntu-22.04-Server.sh b/Ubuntu-22.04-Server.sh index 27cfd12..57ca1d9 100644 --- a/Ubuntu-22.04-Server.sh +++ b/Ubuntu-22.04-Server.sh @@ -47,6 +47,7 @@ sudo chmod 700 /home/* # Setup NTS sudo systemctl disable --now systemd-timesyncd +sudo systemctl mask systemd-timesyncd sudo apt install -y chrony unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf | sudo tee /etc/chrony/chrony.conf sudo systemctl restart chronyd diff --git a/Ubuntu-23.10-Desktop.sh b/Ubuntu-23.10-Desktop.sh index 1ceac56..c712562 100644 --- a/Ubuntu-23.10-Desktop.sh +++ b/Ubuntu-23.10-Desktop.sh @@ -64,6 +64,7 @@ sudo sed -i 's/USERGROUPS_ENAB yes/USERGROUPS_ENAB no/g' /etc/login.defs echo 'umask 077' | sudo tee --append /etc/profile # Setup NTS +sudo systemctl disable --now systemd-timesyncd sudo systemctl mask systemd-timesyncd if [ "${parallels}" = "0" ]; then