The time now is Thu 23 May 2013, 06:31
All times are UTC - 4 |
| Author |
Message |
Nick
Joined: 22 Dec 2007 Posts: 2 Location: Pompey, England
|
Posted: Sat 22 Dec 2007, 08:17 Post subject:
NTPD issue (solved) |
|
I found that installing NTP, although it all appears to work, it doesn't. Querying the server with 'ntpq -pn' produces:
| Code: |
Servname not supported for ai_socktype
|
This is caused by the time server port (123) not being declared in Netwrok services file -> '/etc/services'. Fixing this up by adding:
| Code: |
ntp 123/tcp
ntp 123/udp
|
sorts it:
| Code: |
# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
158.152.1.76 192.5.41.40 2 u 1 64 1 23.894 2885134 0.001
193.62.22.82 .DCFa. 1 u - 64 1 30.077 2885134 0.001
195.177.253.180 .INIT. 16 u - 64 0 0.000 0.000 0.001 |
Nick
|
|
Back to top
|
|
 |
nic2109
Joined: 01 Jan 2007 Posts: 406 Location: Hayslope, near Middlemarch, Midlands, England
|
Posted: Thu 27 Dec 2007, 10:45 Post subject:
Re: NTPD issue (solved) |
|
| Nick wrote: | | I found that installing NTP, although it all appears to work, it doesn't. |
May I ask how you installed NTP please? Then, if you could write this all up in a HOWTO, we could all benefit.
Many thanks.
|
|
Back to top
|
|
 |
david.d.miller
Joined: 01 Jan 2008 Posts: 3
|
Posted: Tue 01 Jan 2008, 20:14 Post subject:
NTPD issue Subject description: NTPD download |
|
What is the URL for the ntpd download?
|
|
Back to top
|
|
 |
paulh177

Joined: 22 Aug 2006 Posts: 870 Location: ST862228
|
Posted: Wed 02 Jan 2008, 17:27 Post subject:
|
|
I happened to be looking at ntp when this thread came to my attention.
There's couple of ways to do it.
You could compile from the ntp sources by installing the dev_xxx.sfs file for your version of puppy (see here and here to find out how) and download the source from ntp.org
Or, if you are using puppy 3.x just install a slackware binary using Gslapt (search forum for download of Gslapt)
Unless you are desperate to run a time server or absolute millisecond time accuracy is essential to you, ntpd seems like overkill. After I compiled the whole thing I realised all I really needed from it was ntpdate in my rc.local. So I installed that and deleted the rest.
I also found that /etc/ntp.conf is recreated on each boot (even on a full hd install) so if you customise it the changes are lost ... but i can't find where it gets created (there's a reference to it in rc.network but that's all)
hope this helps
paul
Last edited by paulh177 on Thu 03 Jan 2008, 04:10; edited 3 times in total
|
|
Back to top
|
|
 |
Nick
Joined: 22 Dec 2007 Posts: 2 Location: Pompey, England
|
Posted: Wed 02 Jan 2008, 19:30 Post subject:
|
|
Sorry Guys, what with Xmas, I have not been about much.
OK, I am hardened user of GNU/Linux since 1999. I only got Puppy the other week, as I have an old laptop, and needed a fast, light and easy distro that kids can use AND look too great to stop using it. Puppy is IDEAL!
Also I installed to HD, FULL. So I wouldn't know how to help to get it to work on a live CD (because I haven't looked at that yet).
I installed NTPD from source. The ONLY reason I did was due this laptop having a bad BIOS, and sometimes it dies and boots with errors, and date gets set to 01/01/2000 or something silly.
I don't know why Puppy doesn't have the ntp declaration in /etc/services. but I think it may be an oversight.
NTP pages are here:
http://www.ntp.org/
BTW, using ntpdate is OK to sync once at boot but inly if the clock drifts a little, but is really not preferred as a 'time setter' for a few reasons. One is it hammers the time servers, and another is it can screw your system file timestamps if BIOS hwclock is AWOL (i.e. imagine saving a file to disc today, and then tomorrow it is 4 years old... or 4 years in the future?).
Nick
|
|
Back to top
|
|
 |
Wolf Pup
Joined: 27 Apr 2006 Posts: 637
|
Posted: Wed 02 Jan 2008, 22:50 Post subject:
|
|
http://puppylinux.ca/bugs a simple time setter there.
_________________
Visit The Repository - Helpful and hard-to-find treats for Puppy 3.
Click Here for Puppy Support Chat, + Helpful Links.
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|