From owner-freebsd-questions@FreeBSD.ORG Wed Jun 4 14:45:58 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2057F37B401 for ; Wed, 4 Jun 2003 14:45:58 -0700 (PDT) Received: from mail.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8083D43FAF for ; Wed, 4 Jun 2003 14:45:57 -0700 (PDT) (envelope-from munk@mail.munk.nu) Received: from munk by mail.munk.nu with local (Exim 4.20) id 19Ng4x-000PLI-Ce for freebsd-questions@freebsd.org; Wed, 04 Jun 2003 22:45:55 +0100 Date: Wed, 4 Jun 2003 22:45:55 +0100 From: Jez Hancock To: freebsd-questions@freebsd.org Message-ID: <20030604214555.GB97099@users.munk.nu> Mail-Followup-To: freebsd-questions@freebsd.org References: <3EDE4A67.3@rbcmail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EDE4A67.3@rbcmail.ru> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: Can I synchronise local time with some NTP-server? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2003 21:45:58 -0000 On Wed, Jun 04, 2003 at 03:37:11PM -0400, Constantine wrote: > Hello! > > 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? Add: xntpd_enable="YES" 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 :) driftfile /etc/ntp.drift I think you might have to 'touch /etc/ntp.drift' initially - same with /var/log/ntpd.log. > 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'. Cheers, Jez