From owner-freebsd-questions@FreeBSD.ORG Mon Aug 30 06:04:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4689116A4CE for ; Mon, 30 Aug 2004 06:04:26 +0000 (GMT) Received: from cgpf2.cgp.netins.net (f2phy.netins.net [167.142.229.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A06343D3F for ; Mon, 30 Aug 2004 06:04:25 +0000 (GMT) (envelope-from NewsGroups@US-Webmasters.com) Received: from [216.248.109.28] (HELO xyz) by cgpf2.cgp.netins.net (CommuniGate Pro SMTP 4.1.8) with SMTP id 637403237; Mon, 30 Aug 2004 01:04:22 -0500 Message-ID: <4132C360.386D@US-Webmasters.com> Date: Mon, 30 Aug 2004 01:04:17 -0500 From: "W. D." Organization: Start Here to Find It Fast!(TM) -> http://www.US-Webmasters.com/best-start-page/ X-Mailer: Mozilla 3.04Gold (Win95; U) MIME-Version: 1.0 Newsgroups: comp.protocols.time.ntp References: <412F8064.353E@US-Webmasters.com> <413108CA.6826@US-Webmasters.com> <413124A7.476@US-Webmasters.com> <41317FC5.3B5C@US-Webmasters.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: stenn@ntp.org cc: Harlan Stenn cc: david-taylor@blueyonder.co.uk cc: freebsd-questions@FreeBSD.org cc: Danny Mayer Subject: Re: ntpd as broadcastclient - not working? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: NewsGroups@US-Webmasters.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 06:04:26 -0000 Thanks Harlan for your reply. More below... At 01:52 8/29/2004, Harlan Stenn wrote: >I'd recommend the latest ntp-dev tarball Why the ntp-dev? >From what Danny Mayer says, there was a broadcastclient bug that was fixed for -Nix on 2004 March 25: http://Bugzilla.NTP.org/show_bug.cgi?id=267 According to this listing: http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ there is a 'stable' version as new as 2004 Jun 17. I am looking for a simple and reliable solution to use my existing NTP broadcasts (using Tardis) to synch up my FreeBSD box. Using a 'development' version implies that it hasn't been certified to be used in a production environment, correct? >once you have it: > > % tar xvzf ntp-dev-whatever.gz > % cd ntp-dev-whatever > % mkdir A.x > % cd A.x > % ../configure > % make > % su > # make install > # /usr/local/bin/ntpd -gN -D2 (or whatever) Thanks for this procedure list. I actually did the following: # cd /usr/ports/net/ntp/ # make deinstall (went to /etc/rc.conf and commmented out lines concerning NTP, then rebooted to disallow the ntpd program from running) # mkdir ntp-stable-4.2.0a-20040617 cd /usr/ports/distfiles/ #ftp ftp> open ftp.starhub.net.sg ftp> cd /pub/funet/unix/tcpip/ntp/xntp/udel/ntp4/ ftp> get ntp-stable-4.2.0a-20040617.tar.gz ftp> exit # cp -p ntp-stable-4.2.0a-20040617.tar.gz /usr/ports/net/ntp/ntp-stable-4.2.0a-20040617/ # cd /usr/ports/net/ntp/ntp-stable-4.2.0a-20040617/ # tar xvzf ntp-stable-4.2.0a-20040617.tar.gz # mkdir A.x # Why 'A.x'? Would 'temp' work? # cd A.x # ../configure # make # make install The 'make install' seemed to go smoothly , but I cannot find the new executables for NTP. The old ones from 2003 Oct 27 are still in /usr/sbin/. When I try to find any files modified in the past day and run: find ./ -name "*.*" -mtime 1 I don't find 'ntpd' or any other new NTP related executables. Does anyone know why I can't find the executables, and why the old ones are still here? Where should the new ones be? >And remember that you need to use authentication by default if you >are using broadcast. > >If you do not want to use authentication you will either need a line >in your ntp.conf file (I forget what it is, but it should be easy to find) >or use -A on the command line. Right. This is what I have been using in rc.conf: xntpd_enable="YES" xntpd_flags="-A -c /etc/ntp.conf -p /var/run/ntpd.pid -l /var/log/ntpd.log" > >It's pretty easy to set up authentication. Well, I am sure it should be, but I can't find a clear, step-by-step procedure for it. ;^) Again, Tardis does not have the option for authentication--as far as I know. >H At 02:46 8/29/2004, Harlan Stenn, wrote: >How about you replace tardis with ntpd? > >H Well, I thought it would be just a simple matter to get my FreeBSD box to listen to the existing Tardis NTP broadcasts. I was hoping to avoid all the complications of setting up NTP on a FreeBSD box to duplicate what Tardis is already doing. As an aside, I am very dissapointed that that there isn't more clear and simple documentation for FreeBSD/Unix software. I've found 'man' pages to be almost useless. They rarely give examples, and when they do, they are extremely complicated. Criminy, why make it easy for Bill Gates to keep his stranglehold? W. D. wrote: > > Harlan Stenn wrote: > > > > The timeout on ntpq is strange. > > > > broadcast requires auth. Are you starting ntpd with -A (bad idea) to get > > around this requirement? > > Yes, here are the lines that I added to /etc/rc.conf: > > xntpd_enable="YES" > xntpd_flags="-A -c /etc/ntp.conf -p /var/run/ntpd.pid -l > /var/log/ntpd.log" > > What else can I do? Tardis doesn't have the > authentication option--as far as I know. > > Although I have some Pentium III boxes laying around, > I was hoping to not have to build a complete time > server--just wanted to use the existing NTP > broadcasts that Tardis puts out. > > > > > H > -- Start Here to Find It Fast!™ -> http://www.US-Webmasters.com/best-start-page/ $8.77 Domain Names -> http://domains.us-webmasters.com/