cd /etc/apt/sources.list regards
Steven -----Original Message----- From: Stephen Liu [mailto:[EMAIL PROTECTED] Sent: Wednesday, 22 September 2004 12:59 p.m. To: Debian Users Subject: RE: How to start NTPD? Hi Steven, Tks for your advice. > run this, apt-get update ; apt-get -y dist-upgrade > > and hold on to your hat while the box patches itself > (assuming you have a WAN connection in place and > sources.list is correct) This workstation is connected to a 3MB broadband. Could you please advise where to lookup the sourc.list? I have been away from Debian for sometimes. # find / -name source.list No printout # ls /etc/init.d/ ...... nfs-common ntp-simple # cat /etc/ntp.conf ...... driftfile /var/lib/ntp/ntp.drift statsdir /var/log/ntpstats/ statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable server ntp.cuhk.edu.hk server ntp.debian.org server pool.ntp.org server stdtime.gov.hk > afterwards, > > apt-get install ntp > > Should either install ntp or say the latest is > installed. > > For a client you run crontab -e to add a similar > line that I supplied, Which line in your previous posting? Tks > you then do a :wq to exit and > the cron job will run at the time specified. > > If ntpq says "connection refused" then it doesnt > look like ntp is running. Noted with tks. B.R. Stephen > -----Original Message----- > From: Stephen Liu [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 22 September 2004 12:26 p.m. > To: Debian Users > Subject: RE: How to start NTPD? > > > Hi Steven, > > I just took out this Debian box for testing. It has > not been used for more than a year. I believe I > have > ntp installed and running on this box, IIRC. > > > If you are a client then you can run ntpdate via a > > cronjob. > > > > eg > > > > crontab -e > > # crontab -e > > only displaying an empty table. > > > running ntpq to test it, > > > > then at the > prompt type ep then as, these should > > give you outputs. > > # ntpq > ntpq> as > ntpq: read: Connection refused > ntpq> > > Kindly advise how to fix it. TIA > > B.R. > Stephen Liu > > > > [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. > > > -- > To UNSUBSCRIBE, email to > [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]