Can I synchronise local time with some NTP-server?
jez.hancock at munk.nu
Wed Jun 4 14:45:58 PDT 2003
On Wed, Jun 04, 2003 at 03:37:11PM -0400, Constantine wrote:
> I am running FreeBSD 4.8. How can I synchronise my clock with some NTP
> server? The time on my server right now is 4 minutes fast, and I do not
> like that... Can I set up a script that would automatically synchronise
> the time with some available server?
xntpd_flags="-l /var/log/ntpd.log" # with logging
to /etc/rc.conf (this flag is different in 5.0 mind for anyone else that
tries this on 5.0) and then configure ntpd in /etc/ntpd.conf:
server ntp2a.mcc.ac.uk # choose a server near you obviously :)
I think you might have to 'touch /etc/ntp.drift' initially - same with
> My server is located in the USA, in case one would like to suggest some
> good servers to synchronise with. :-)
As mentioned above check the official ntpd site - or even just google
for 'ntpd server usa'.
More information about the freebsd-questions