ntpdate and ntpd questions

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu May 8 08:02:34 PDT 2003


On Thu, May 08, 2003 at 02:28:37PM +0000, How Can ThisBe wrote:
> ntpdate works perfectly for setting the local clock time using the 
> following syntax:
> ntpdate ntp1.t-online.de
> 
> However `man ntpdate' states that ntpdate will be removed 'soon' and that I
> should use `ntpd -q' instead. So I read up on ntpd but I can not seem to 
> get it to
> work at all. ntpdate is perfectly simple and I'm guessing ntpd is just as 
> simple so I
> must be missing something, I just have no idea at all what that 'something' 
> could
> be.
> 
> I just want to be able to set the time :]

ntpd gets the information about what servers it will synch your clock
to out of /etc/ntp.conf, so in your case, just create the
/etc/ntp.conf file containing minimally:

    server ntp1.t-online.de

and then run:

    # ntpd -g -q

Check out http://www.eecis.udel.edu/~mills/ntp/ for all things NTP
related.

	Cheers,

	Matthew

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030508/8b5ecebd/attachment.bin


More information about the freebsd-questions mailing list