FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 08-12-2011, 02:14 PM
gene heskett
 
Default Launchpad insanity runs rampant

On Friday, August 12, 2011 09:38:54 AM Nils Kassube did opine:

> gene heskett wrote:
> > On Friday, August 12, 2011 04:20:45 AM Nils Kassube did opine:
> > > gene heskett wrote:
> > > > Just one comment: It says it is starting the NTP SERVER... Here
> > > > I always thought ntpd was a client... Picky picky.
> > >
> > > Well, ntpd is client _and_ server.
> >
> > With precious little docs on how to go about setting it up as a
> > server, the net result being that every machine on my local network
> > is pestering pool.ntp.org, whereas it should be only the router,
> > dd-wrt on a stripped x86 box, and the machines on my local net
> > should be using the router. Is it really as simple as pointing the
> > individual machines ntpd's at the router's local address via either
> > IP or hostname in the /etc/hosts file?
>
> There is a package "ntp-doc" which includes the file
> "/usr/share/doc/ntp-doc/html/ntpd.html". It is quite simple to change
> the ntpd behaviour, though. In /etc/ntp.conf you have several lines
> starting with "server". Those are the servers that ntpd uses. You can
> simply delete them all and insert a single line
>
> server 192.168.1.1
>
> where 192.168.1.1 would be the address of your router. Of course you
> might as well use the hostname.
>
>
> Nils

Less lookup lag if I just used the address, and the restart was happy.
That made an entry in the messages log that the file had been adjusted, but
so far, the subdir /var/log/ntpstats is empty. Ahh, ntpstats had a # in
front of it, now enabled for a few hours. Or until I remember enabling it.
I hate to admit it, but forgetting such details is a definite possibility,
and getting worse as the decades roll by. ;-)

I remembered there was a query util, so I looked it up, and an 'ntpq -p'
now returns:
root@shop:/var/log/ntpstats# ntpq -p (watch word wrap)
remote refid st t when poll reach delay offset
jitter
================================================== ============================
router.coyote.d .INIT. 16 u - 64 0 0.000 0.000
0.000

Does that look normal? Not according to the ntpq docs, the 16 is a zero &
means not usable. Therefore my router isn't 'serving', and I can't find a
place in its gui to enable the broadcast at x.x.x.255. Sigh. I can do
that to this machine and make it the server, so at best I would still have
2 machines pestering pool.ntp.org, but that beats 5 or 6 when everything is
running. I think I can figure this out, so I'll send this now.

Thanks & Cheers Nils, gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Dying is one of the few things that can be done as easily lying down.
-- Woody Allen

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 08-12-2011, 02:47 PM
Nils Kassube
 
Default Launchpad insanity runs rampant

gene heskett wrote:
> Does that look normal? Not according to the ntpq docs, the 16 is a
> zero & means not usable. Therefore my router isn't 'serving', and I
> can't find a place in its gui to enable the broadcast at x.x.x.255.

If dd-wrt is similar to openwrt, you should install the package ntpd
instead of ntp-client. Then it would automatically work as ntp server
for the LAN.


Nils

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 08-12-2011, 03:16 PM
gene heskett
 
Default Launchpad insanity runs rampant

On Friday, August 12, 2011 11:04:11 AM Nils Kassube did opine:

> gene heskett wrote:
> > Does that look normal? Not according to the ntpq docs, the 16 is a
> > zero & means not usable. Therefore my router isn't 'serving', and I
> > can't find a place in its gui to enable the broadcast at x.x.x.255.
>
> If dd-wrt is similar to openwrt, you should install the package ntpd
> instead of ntp-client. Then it would automatically work as ntp server
> for the LAN.

Unforch, the dd-wrt is a complete, busybox based, nominally 11 megabyte
download that you write to a CF, put the CF in an IDE adapter, and simply
boot it. And while it has stood the test of time in turning away the
attackers, it is also approaching 4 years old since its last update.

I may yet see about openwrt, if it has an x86 compat build available.

However, it appears I have this machine 'serving', an ntpq -p now shows:
root@shop:/var/log/ntpstats# ntpq -p
remote refid st t when poll reach delay offset
jitter
================================================== ============================
router.coyote.d .INIT. 16 u - 512 0 0.000 0.000
0.000
*europium.canoni 193.79.237.14 2 u 76 128 377 108.244 -1.016
1.676
+coyote.coyote.d 169.229.70.95 3 u 10 128 377 0.153 2.510
0.479

But the IP it shows above for this machine, the last entry above, is not
this machines IP! Methinks there may be a bug in that. But we'll see what
the long term effect is.

Thanks & Cheers Nils, gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
I'm starting to think the gene pool could use a little chlorine.

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 08-12-2011, 04:42 PM
Nils Kassube
 
Default Launchpad insanity runs rampant

gene heskett wrote:
> I may yet see about openwrt, if it has an x86 compat build available.

<http://downloads.openwrt.org/backfire/10.03/x86/>
Probably you need the file "openwrt-x86-ext2.image.gz" but I'm not sure
because I bever used it for x86.

> However, it appears I have this machine 'serving', an ntpq -p now
> shows: root@shop:/var/log/ntpstats# ntpq -p
> remote refid st t when poll reach delay offset jitter
> ================================================== ============================
> router.coyote.d .INIT. 16 u - 512 0 0.000 0.000 0.000
> *europium.canoni 193.79.237.14 2 u 76 128 377 108.244 -1.016 1.676
> +coyote.coyote.d 169.229.70.95 3 u 10 128 377 0.153 2.510 0.479
>
> But the IP it shows above for this machine, the last entry above, is
> not this machines IP! Methinks there may be a bug in that. But
> we'll see what the long term effect is.

The IP you see here is that of the reference server for the remote
server. It looks like this:

my machine 192.168.1.10 -> router 192.168.1.1 -> remote server -> reference server

And that's why the column is marked as "refid". Try "ntpq -np" to see
the remote server IP.


Nils

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 

Thread Tools




All times are GMT. The time now is 01:22 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org