I wanted to get my time accurately set from a ntp server.
Turns out it is pretty dang easy.
apt-get install ntp
apt-get install ntp-doc (if you want it)
Check the list of available time servers and try to find one close by:
and then edit your /etc/ntp.conf file to include the servers you choose.
I happend to live in the U.S. so I edited ntp.conf and added/changed the servers to:
server 0.us.pool.ntp.org iburst
server 1.us.pool.ntp.org iburst
server 2.us.pool.ntp.org iburst
server 3.us.pool.ntp.org iburst
I then purposely changed the time to the incorrect time:
Then, to check it out and have it fix it I ran:
Check the time:
Bam! It works.
Has anyone tried to run a ntp server themselves and gotten it working?
P.S. If your time is still off (by a nice round number of hours) you prolly have to make sure your timezone is set properly.