[KLUG Members] clock synch
members@kalamazoolinux.org
members@kalamazoolinux.org
Fri, 23 Aug 2002 21:12:25 -0400
FYI,
If you really *Must* use ntpd then:
'grep ntp /etc/services' will show the ports then :
/sbin/iptables -A INPUT -p tcp --dport 123 -s ip.addy.of.server -j ACCEPT
/sbin/itables -A INPUT -p udp --dport 123 -s ip.addy.of.server -j ACCEPT
matt
On Fri, Aug 23, 2002 at 08:21:24PM -0400, bill wrote:
> That's the ticket. Works fine. The ntpd wasn't working, even though I tried to set it
> several ways (from command line and from gui). Makes me wonder if it isn't the firewall
> blocking it.
>
> As long as I'm root, the rdate works fine. Putting it in cron is perfect. I'm thinking
> that if I want to use more than one timeserver, just add a few more lines to cron.
>
> I also got around to replacing the CMOS battery. When your clock is -way- off, using
> cron to fix your clock is rather circular reasoning.
>
> thanks,
>
> bill
>
> matt@abernackie.com wrote:
>
> > rdate works too.. cool thing about this is there is really no configuration
> > and you can run it via cron.
> >
> > ie:
> >
> > 0 0 * * * /usr/bin/rdate -s -l ip.addy.of.server
> >
> > This will via cron, and set systime and log errors to /var/log/messages,
> > rdate uses tcpip and does not leave a daemon running w/an open port .
> >
> > any questions? run 'man rdate'
> >
> > Matt
> >
> > On Fri, Aug 23, 2002 at 06:53:20PM -0400, Dennis wrote:
> > > bill wrote:
> > > >
> > > > In Windows, I had a program I could use to sync the internal clock (which is
> > > > always a bit off, regardless of OS) with some time servers. I could schedule
> > > > the program to go online once a day and sync the computer's clock against up to
> > > > 15 time servers (I used all of them as some were always down or unavailable on
> > > > the web). I'm looking to do something similar in Linux.
> > > >
> > > > On Linux RH 7.3 (in gnome) there is a program on the menu called Date/Time
> > > > properties that has an option called "Network Time Protocol" that, if checked,
> > > > allows you to select a single time server. I tried all the different servers
> > > > for at least 24 hours each while my CMOS battery was dying but none of them
> > > > seemed to work.
> > > >
> > > > Question: does this method work but is somehow failing behind my firewall (using
> > > > an odd port or something)? Or is there another method to do the same thing,
> > > > maybe find a program to schedule in cron?
> > > >
> > > > kind regards,
> > > >
> > > > bill hollett
> > > >
> > >
> > > I think you might like ntp. It was kind of a bear for this newbie to set
> > > up but it works well once it is set up and working. Lots to read, I read
> > > a lot before I started and still had to have help. If you have any
> > > problems with the config, post again.
> > >
> > > http://www.eecis.udel.edu/~ntp/
> > >
> > > Read, read, read...
> > > --
> > > Dennis
> > > _______________________________________________
> > > Members mailing list
> > > Members@kalamazoolinux.org
> > >
> >
> > --
> > Matthew Terry
> > matt@abernackie.com
> >
> > .... The cable had passed us by; the dish was the only hope, and eventually
> > we were all forced to turn to it. By the summer of '85, the valley had more
> > satellite dishes per capita than an Eskimo village on the north slope of
> > Alaska.
> >
> > Mine was one of the last to go in. I had been nervous from the start about
> > the hazards of too much input, which is a very real problem with these
> > things. Watching TV becomes a full-time job when you can scan 200 channels
> > all day and all night and still have the option of punching Night Dreams
> > into the video machine, if the rest of the world seems dull.
> > -- Hunter Thompson, "Full-time scrambling", _Generation of Swine_
> > _______________________________________________
> > Members mailing list
> > Members@kalamazoolinux.org
> >
>
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
>
--
Matthew Terry
matt@abernackie.com
The only cultural advantage LA has over NY is that you can make a right
turn on a red light.
-- Woody Allen