#!/bin/bash ######################################################## ### bash <(curl -fsSL https://raw.lhy.life/ntp.sh) ######################################################## apt update && apt install systemd-timesyncd -y cp /etc/systemd/timesyncd.conf /etc/systemd/timesyncd.conf.bak cat << 'EOF' > /etc/systemd/timesyncd.conf [Time] NTP=time.apple.com FallbackNTP=time.windows.com RootDistanceMaxSec=3 EOF systemctl restart systemd-timesyncd systemctl enable systemd-timesyncd timedatectl set-ntp true timedatectl