If you are a client then you can run ntpdate via a cronjob.

eg

crontab -e

00 1 * * * /usr/sbin/ntpdate <server>

You should be able to install ntp with apt-get and start it with /etc/init.d/ntp start

after you have edited /etc/ntp.conf 

running ntpq to test it,

then at the > prompt type ep then as, these should give you outputs.


eg,

[EMAIL PROTECTED]:~$ ntpq
ntpq> as
ind assID status  conf reach auth condition  last_event cnt
===========================================================
  1 15004  9124   yes   yes  none falsetick   reachable  2
  2 15005  9424   yes   yes  none  candidat   reachable  2
  3 15006  9624   yes   yes  none  sys.peer   reachable  2
  4 15007  9424   yes   yes  none  candidat   reachable  2
ntpq> pe
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
xmu-relay2.masse tick.usno.navy.  2 u  860 1024  377   44.740   75.290   8.830
+orthanc.otago.a buzzybee.its.wa  2 u  817 1024  377   61.753    0.696   3.386
*amp-gw.compass. bigben.clix.net  2 u  831 1024  377   36.793    0.581   0.556
+gen2.ihug.co.nz bigben.clix.net  2 u  922 1024  377   43.803   -2.286   3.600

regards

Thing

-----Original Message-----
From: JoeHill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 22 September 2004 11:18 a.m.
To: Debian Users
Subject: How to start NTPD?



In installed the NTP, as well as the ntp-docs, and for the life of me I can't
figure out how to start ntpd. There does not even appear to be an 'ntpd'
anywhere (tried 'which'), and from going over the docs I cannot find a section
on how to start/stop/restart the service, and there is no seperate 'ntpd'
package.

I already have an NTP service running on this box, I just want my little Debian
box to be in sync with it.

On a related note, to start/stop/restart a service on my Mandrake machine, I use
the 'service' command. I somehow ended up with the impression that the
analagous command on Debian was 'dpkg-reconfigure'. I'm way off, I suspect.
Clarification on that also appreciated.

Thanks.

-- 
JoeHill RLU #282046 /  www.freeyourmachine.org
19:10:29 up 48 days, 18:57, 5 users, load average: 0.32, 0.17, 0.07
+++++++++++++++++++++++++++
"It is the world that has been pulled over your eyes, to blind you from the
truth..." -- Morpheus, in The Matrix, describing Fox News


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to