From owner-freebsd-questions@FreeBSD.ORG Sat Feb 7 01:12:45 2004 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 608FC16A4CE for ; Sat, 7 Feb 2004 01:12:45 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id A78F643D1D for ; Sat, 7 Feb 2004 01:12:44 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i179CZ9D097589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 7 Feb 2004 09:12:35 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i179CZl8097518; Sat, 7 Feb 2004 09:12:35 GMT (envelope-from matthew) Date: Sat, 7 Feb 2004 09:12:35 +0000 From: Matthew Seaman To: Earl Message-ID: <20040207091235.GA7043@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Earl , freebsd-questions@freebsd.org References: <4024690B.4090205@cox.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline In-Reply-To: <4024690B.4090205@cox.net> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: clock not keeping time 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: Sat, 07 Feb 2004 09:12:45 -0000 --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 06, 2004 at 10:26:51PM -0600, Earl wrote: > I change the clock to the correct time. And the next day when I log in=20 > the time is worng. How can I fix this. So that it will keep the correct= =20 > time. In general, use ntpd(8) to synch your sytem clock to various time servers on the net. This works well on a broadband or always-on connection, but be warned that it will bring up a dial-up line about every twenty minutes, so it's probably not what you want in that situation -- an alternative in that case is to use ntpdate(8) out of your /etc/ppp/ppp.linkup script. Here's a sample /etc/ntp.conf that you can probably just drop into your system. See http://fortytwo.ch/time/ for details of the 'pool.ntp.org' system. Replace the nework number and netmask in the 3rd line with the ones appropriate to your site: restrict default nomodify nopeer # Restrict access ... restrict 127.0.0.1 # ... except for me ... restrict 192.168.0.0 mask 255.255.255.0 # ... an the local net server pool.ntp.org server pool.ntp.org server pool.ntp.org pidfile /var/run/ntpd.pid driftfile /var/ntp/ntp.drift See also the lists of public stratum 2 servers at http://www.eecis.udel.edu/~mills/ntp/clock2a.html for some more servers if you need them. Plus consult your ISP -- most will make NTP servers available for their customers. To turn on NTP using the ntp.conf above in your system add: ntpdate_enable=3D"YES" ntpdate_flags=3D"-b -s pool.ntp.org" xntpd_enable=3D"YES" xntpd_flags=3D"" to your /etc/rc.conf (The 'xntpd' bit is historic -- ntpd(8) was called xntpd(8) for some time). Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --sm4nu43k4a2Rpi4c Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAJKwDdtESqEQa7a0RApuCAJ4ocBur1owYZKq0OfpwVr1ZBDYeTgCgmtCo D1hf7zq/38+u7W218qlGNKs= =4Oty -----END PGP SIGNATURE----- --sm4nu43k4a2Rpi4c--