Skip to content

Instantly share code, notes, and snippets.

@metahertz
Created December 2, 2013 11:47
Show Gist options
  • Select an option

  • Save metahertz/7748362 to your computer and use it in GitHub Desktop.

Select an option

Save metahertz/7748362 to your computer and use it in GitHub Desktop.
Quick NTP enable for temporary POC env
apt-get install ntp
cat << EOF > /etc/ntp.conf
driftfile /var/lib/ntp/ntp.drift
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 ntp.esl.cisco.com
server 0.pool.ntp.org
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
EOF
/etc/init.d/ntp restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment