Skip to content

Instantly share code, notes, and snippets.

@SourLemonJuice
Last active August 16, 2025 20:46
Show Gist options
  • Save SourLemonJuice/dde88d0cffc20d5f1119f8a10e5b51e9 to your computer and use it in GitHub Desktop.
Save SourLemonJuice/dde88d0cffc20d5f1119f8a10e5b51e9 to your computer and use it in GitHub Desktop.
Some example configs of Chrony NTP client. Those config files come from ArchWiki and Fedora default configurations.
# /etc/chrony.conf
# cloudflare time server with NTS
server time.cloudflare.com iburst nts
driftfile /var/lib/chrony/drift
rtcfile /var/lib/chrony/rtc
# storage UTC time to RTC
rtconutc
# trim RTC time if the offset over then 3s
rtcautotrim 1
# don't gradually correct time offset in the first three adjustments,
# if that offset is greater then 0.1s
makestep 0.1 3
# /etc/sysconfig/chronyd
# -F to setup Linux secure computing(seccomp)
# level 1 is the most stringent, 2 is casual, 0 is off
# -s -r allows devices with failed RTC to recover accurate time faster
OPTIONS='-F 1 -s -r'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment