Click to See Complete Forum and Search --> : Putzed around with NTP today...


Bokkenka
06-13-2002, 10:25 PM
I'm a bit of a chronophile... I track satellites and the space shuttle, whenever it's up, so knowing the precise time is important to me. I've gone through a few Windows time-sync programs, Analog X's (http://www.analogx.com) Atomic TimeSync, and ThinkMan's (http://www.thinkman.com) Dimension 4 (D4), to mention a couple. I had finally settled on Atomic TimeSync because it was small, simple, and I tend to like Mark's programs. I had never done anything with Linux other than ntpdate every now and then.

I built a router/file-server (RH7.2) box for work this week. It serves a few Win2000 and WinXP boxes. I had aome time as I was transferring over gigabytes of data, so I decided to mess around with NTP to serve the LAN.

The biggest problem was going through the list of secondary servers at NTP.org (http://www.ntp.org) to find some that would respond. Most didn't for some reason. Didn't take too long after that and the Linux box was keeping time. I found a LOT of pages that said don't use XNTP.

Then, I ran across a page that said Windows programs couldn't sync with NTP. I searched for awhile and came across a page that said you could work-around with Samba... Just set "timeserver = yes" in your smb.conf, and run "net time \\smbservername /set /yes" from a Windows command prompt. That worked, but I didn't really like it.

I finally found a page that said D4 could get time from NTP. I downloaded it and it worked on the Win2000 boxes, but not the WinXPs. I then found a page that said WinXP has it's own time-sync, so you have to disable it to get D4 to work. Of course, I can't find that page right now, but you have to turn off internet time checking in control panel \ date and time, and in control panel \ admin tools \ services \ windows time. Now everything is in sync.

The files were still transfering, so I OpenSSHed (http://www.openssh.org) to my home router, also RH7.2, and set up NTP on my home LAN. From the router, I jumped around to my other couple Linux boxes and did the same. Just had to scp D4 over to my home LAN and install on my new laptop when I got off work. I'll be installing Linux on that in a couple weeks.

Oh, safety feature... I have to dial-in to open the ssh port to the outside world. Then I can get in through the broadband.

Bokkenka
06-24-2002, 06:41 PM
<STRONG>...I ran across a page that said Windows programs couldn't sync with NTP....</STRONG>

Well, I don't seem to be able to find that page again. Anyway, it must have been old, or just plain wrong... There's quite a bit of software that will do it. Check the NTP homepage

I picked up [url="http://nettime.sourceforge.net/"]NetTime (www.ntp.org). It works pretty good. You can set five servers for it to check against. It also allows you to set it as a service, and allow other computers to check against it. I now have a pretty good round-robin between the Win boxes, with only the Linux server going out to the internet to check time. That way, instead of six different boxes checking the second-class servers, I have only one. Even if I had Linux box checking three times as often, I'd still only bother the external servers half as much as before.