From owner-freebsd-questions Mon Apr 29 6:42:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc25.worldnet.att.net (mtiwmhc25.worldnet.att.net [204.127.131.50]) by hub.freebsd.org (Postfix) with ESMTP id CCF9E37B400 for ; Mon, 29 Apr 2002 06:42:27 -0700 (PDT) Received: from [192.168.20.22] ([12.76.82.55]) by mtiwmhc25.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020429134226.SELX2855.mtiwmhc25.worldnet.att.net@[192.168.20.22]> for ; Mon, 29 Apr 2002 13:42:26 +0000 User-Agent: Microsoft-Entourage/10.0.0.1309 Date: Mon, 29 Apr 2002 08:42:27 -0500 Subject: Re: Clock adjustment? From: SNFettig To: Message-ID: In-Reply-To: <1019994343.437.63.camel@chowder.dons.net.au> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 4/28/2002 6:45, "Daniel O'Connor" wrote: > What is the correct procedure for adjusting the PC clock? One of my PC's > loses about 120s per week which is being corrected by ntpdate. I would > like to tune the clock if possible instead. > > I've checked the handbook and FAQ but I couldn't find anything relevant > :( > > I believe you used to be able to run adjkerntz with an option which > would change the time added to the clock per tick but not longer. The way that I have set this up is by following the cheat-sheet from Dan O'Connor (http://www.mostgraveconcern.com/freebsd/ntp.html)*. Over time I have made tweaks from other howto areas on the net, but this is pretty much it: * Edit /etc/rc.conf: ### Network Time Services options: ### xntpd_enable="YES" xntpd_program="ntpd" xntpd_flags="-p /var/run/ntpd.pid" * Create /etc/ntp.conf: server time.nist.gov prefer server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /etc/ntp.drift * Reboot the computer, or start the daemon manually: # ntpd -p /var/run/ntpd.pid I would take a look at man ntpd to make sure you don't want to change any other settings. I find that this works great with all the servers I deal with - FreeBSD 4.3 and up. I would also take a look at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ntp.html This is basically what Dan suggests, but goes into more detail. -Steve * Dan makes the disclaimer that some of the information on his site may be out of date - but, free information is to be taken for what it is worth ;) . I thank him for putting things back up online again... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message