Skip to content

Instantly share code, notes, and snippets.

@identityclash
Forked from genediazjr/debian-time-sync.sh
Created November 11, 2015 06:13
Show Gist options
  • Select an option

  • Save identityclash/3f044d9eac160a1c3132 to your computer and use it in GitHub Desktop.

Select an option

Save identityclash/3f044d9eac160a1c3132 to your computer and use it in GitHub Desktop.
Keep server time updated
sudo apt-get install ntp
sudo nano /etc/ntp.conf
logfile /var/log/xntpd
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server 0.pool.ntp.org iburst dynamic
server 1.pool.ntp.org iburst dynamic
server 2.pool.ntp.org iburst dynamic
server 3.pool.ntp.org iburst dynamic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment