public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* RE: Time of day
@  Rodney Clowdus
   ` Raul A. Gallegos
  0 siblings, 1 reply; 11+ messages in thread
From: Rodney Clowdus @  UTC (permalink / raw)
  To: speakup


[-- Attachment #1.1: Type: text/plain, Size: 4360 bytes --]

Kansas City Linux User GroupI use the following tips for keeping accurate time and it works great!   Having a list of time servers always insure that someone is up and running.  Let me know what you think Matt. 
Rodney
rclowdus@kcnet.com

     Kansas City Linux User Group  


--------------------------------------------------------------------------------
  a.. Home 
  b.. Mailing list 
  c.. Talks 
  d.. LUG Reviews 
  e.. Links 
  f.. Regional LUGs 
Ed's tips of the month
  a.. Apr 
    a.. Time 

PC clocks are notoriously inaccurate.  So unstable that
software has been written to try keeping them closer to
the correct time.

One way to get an intermittent adjustment is by use of the
'rdate' command.  It queries the specified hosts and sets
the local system time, not the BIOS clock, to an average
of the times seen on the remote systems.

'rdate -s ns1.kc.rr.com tick.wustl.edu clock.psu.edu' will
set the system time from the three named servers.

Running 'xntpd' is able to keep more accurate time and
can maintain its time across an intermittent connection.

Here is the start of the supplied /etc/ntp.conf file:

===========  Head of /etc/ntp.conf  ================

#
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available. The
# default stratum is usually 3, but in this case we elect to use stratum
# 0. Since the server line does not have the prefer keyword, this driver
# is never used for synchronization, unless no other other
# synchronization source is available. In case the local host is
# controlled by some external source, such as an external oscillator or
# another protocol, the prefer keyword would cause the local host to
# disregard all other synchronization sources, unless the kernel
# modifications are in use and declare an unsynchronized condition.
#
server  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10  


==================================================
The above lines will allow the 'xntpd' daemon to keep running
between dialins and then it will correct from the servers
listed in the /etc/ntp.conf file.

Using several servers allows for some being offline and
still keep accurate time.
===========  Tail of /etc/ntp.conf  ==============

server clock.psu.edu
server clock.tricity.wsu.edu
server dominator.eecs.harvard.edu
server kuhub.cc.ukans.edu
server libra.rice.edu
server louie.udel.edu
server ntp.css.gov
server ntp.tmc.edu
server ntp0.cornell.edu
server ntp2.kansas.net
server ntp1.cs.wisc.edu
server ntp5.tamu.edu
server ntp-0.cso.uiuc.edu
server timex.cs.columbia.edu


==================================================
My system is now on a cable modem so it is now always
connected so it is more accurate than when I was dialup only
but I am amazed at how accurate it can be over an unreliable
medium like the Internet:

[era@allenhome mp3]$ ntptime -r
ntp_gettime() returns code 0 (OK)
  time bca0ede0.75db1000  Thu, Apr 13 2000 20:07:44.460, (.460374),
    maximum error 62784 us, estimated error 37984 us.
ntptime=bca0ede0.75db1000 unixtime=38f66f60.460374 Thu Apr 13 20:07:44 2000
 ntp_adjtime() returns code 0 (OK)
    modes 0x0 (),
offset 88 us, frequency -50.268 ppm, interval 4 s,
    maximum error 62784 us, estimated error 37984 us,
      status 0x1 (PLL),
time constant 3, precision 1 us, tolerance 512 ppm,
  pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200 us,
    intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.
[era@allenhome mp3]$ 

Even the maximum error of 62.784 milliseconds is awesome !
	    
  b.. March 
    a.. bc 

bc -l
4*a(1)
3.14159265358979323844
obase=2
4*a(1)
11.001001000011111101101010100010001000010110100011000010001101001010
obase=16
scale=40
4*a(1)
3.243F6A8885A308D313198A2E037073448
^D
	    
  c.. February 
    a.. ps 
    ps auxf to view related processes as a tree. 
    b.. setleds 
    setleds -D +num to set numlock on as a default. 


--------------------------------------------------------------------------------
 |  
Linux ® is a registered trademark of Linus Torvalds in the United States and other countries. 

Last modified on Thursday, 07-Jun-2001 11:46:48 CDT 

Comments to the webmaster 


[-- Attachment #1.2: Type: text/html, Size: 7741 bytes --]

[-- Attachment #2: Tux-KC.jpg --]
[-- Type: image/jpeg, Size: 4422 bytes --]

[-- Attachment #3: vh40.png --]
[-- Type: image/png, Size: 799 bytes --]

[-- Attachment #4: vcss.gif --]
[-- Type: image/gif, Size: 1547 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Time of day
   Time of day Rodney Clowdus
@  ` Raul A. Gallegos
     ` Time of day Text Mode Rodney Clowdus
  0 siblings, 1 reply; 11+ messages in thread
From: Raul A. Gallegos @  UTC (permalink / raw)
  To: speakup

Sorry, this came through as html code not text and pine didn't decode it
so I could not read the message.  Can you try to resend?  Best regards.

--- Raul A. Gallegos mailto:raul@asmodean.net http://www.asmodean.net
For millions of years, mankind lived just like the animals..  Then
something happened, which unleashed the power of our imagination...
We learned to talk...

On Tue, 24 Jul 2001, Rodney Clowdus wrote:

> Kansas City Linux User GroupI use the following tips for keeping accurate time and it works great!   Having a list of time servers always insure that someone is up and running.  Let me know what you think Matt.
> Rodney
> rclowdus@kcnet.com
>
>      Kansas City Linux User Group
>
>
> --------------------------------------------------------------------------------
>   a.. Home
>   b.. Mailing list
>   c.. Talks
>   d.. LUG Reviews
>   e.. Links
>   f.. Regional LUGs
> Ed's tips of the month
>   a.. Apr
>     a.. Time
>
> PC clocks are notoriously inaccurate.  So unstable that
> software has been written to try keeping them closer to
> the correct time.
>
> One way to get an intermittent adjustment is by use of the
> 'rdate' command.  It queries the specified hosts and sets
> the local system time, not the BIOS clock, to an average
> of the times seen on the remote systems.
>
> 'rdate -s ns1.kc.rr.com tick.wustl.edu clock.psu.edu' will
> set the system time from the three named servers.
>
> Running 'xntpd' is able to keep more accurate time and
> can maintain its time across an intermittent connection.
>
> Here is the start of the supplied /etc/ntp.conf file:
>
> ===========  Head of /etc/ntp.conf  ================
>
> #
> # Undisciplined Local Clock. This is a fake driver intended for backup
> # and when no outside source of synchronized time is available. The
> # default stratum is usually 3, but in this case we elect to use stratum
> # 0. Since the server line does not have the prefer keyword, this driver
> # is never used for synchronization, unless no other other
> # synchronization source is available. In case the local host is
> # controlled by some external source, such as an external oscillator or
> # another protocol, the prefer keyword would cause the local host to
> # disregard all other synchronization sources, unless the kernel
> # modifications are in use and declare an unsynchronized condition.
> #
> server  127.127.1.0     # local clock
> fudge   127.127.1.0 stratum 10
>
>
> ==================================================
> The above lines will allow the 'xntpd' daemon to keep running
> between dialins and then it will correct from the servers
> listed in the /etc/ntp.conf file.
>
> Using several servers allows for some being offline and
> still keep accurate time.
> ===========  Tail of /etc/ntp.conf  ==============
>
> server clock.psu.edu
> server clock.tricity.wsu.edu
> server dominator.eecs.harvard.edu
> server kuhub.cc.ukans.edu
> server libra.rice.edu
> server louie.udel.edu
> server ntp.css.gov
> server ntp.tmc.edu
> server ntp0.cornell.edu
> server ntp2.kansas.net
> server ntp1.cs.wisc.edu
> server ntp5.tamu.edu
> server ntp-0.cso.uiuc.edu
> server timex.cs.columbia.edu
>
>
> ==================================================
> My system is now on a cable modem so it is now always
> connected so it is more accurate than when I was dialup only
> but I am amazed at how accurate it can be over an unreliable
> medium like the Internet:
>
> [era@allenhome mp3]$ ntptime -r
> ntp_gettime() returns code 0 (OK)
>   time bca0ede0.75db1000  Thu, Apr 13 2000 20:07:44.460, (.460374),
>     maximum error 62784 us, estimated error 37984 us.
> ntptime=bca0ede0.75db1000 unixtime=38f66f60.460374 Thu Apr 13 20:07:44 2000
>  ntp_adjtime() returns code 0 (OK)
>     modes 0x0 (),
> offset 88 us, frequency -50.268 ppm, interval 4 s,
>     maximum error 62784 us, estimated error 37984 us,
>       status 0x1 (PLL),
> time constant 3, precision 1 us, tolerance 512 ppm,
>   pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200 us,
>     intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.
> [era@allenhome mp3]$
>
> Even the maximum error of 62.784 milliseconds is awesome !
>
>   b.. March
>     a.. bc
>
> bc -l
> 4*a(1)
> 3.14159265358979323844
> obase=2
> 4*a(1)
> 11.001001000011111101101010100010001000010110100011000010001101001010
> obase=16
> scale=40
> 4*a(1)
> 3.243F6A8885A308D313198A2E037073448
> ^D
>
>   c.. February
>     a.. ps
>     ps auxf to view related processes as a tree.
>     b.. setleds
>     setleds -D +num to set numlock on as a default.
>
>
> --------------------------------------------------------------------------------
>  |
> Linux ® is a registered trademark of Linus Torvalds in the United States and other countries.
>
> Last modified on Thursday, 07-Jun-2001 11:46:48 CDT
>
> Comments to the webmaster
>
>



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Time of day  Text Mode
   ` Raul A. Gallegos
@    ` Rodney Clowdus
       ` Website Address for Ed's tip on PC Clock Rodney Clowdus
  0 siblings, 1 reply; 11+ messages in thread
From: Rodney Clowdus @  UTC (permalink / raw)
  To: speakup

Sorry about sending that HTML mode Raul.  Hope this will help.  

Apr 
Time 

PC clocks are notoriously inaccurate.  So unstable that
software has been written to try keeping them closer to
the correct time.

One way to get an intermittent adjustment is by use of the
'rdate' command.  It queries the specified hosts and sets
the local system time, not the BIOS clock, to an average
of the times seen on the remote systems.

'rdate -s ns1.kc.rr.com tick.wustl.edu clock.psu.edu' will
set the system time from the three named servers.

Running 'xntpd' is able to keep more accurate time and
can maintain its time across an intermittent connection.

Here is the start of the supplied /etc/ntp.conf file:

===========  Head of /etc/ntp.conf  ================

#
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available. The
# default stratum is usually 3, but in this case we elect to use stratum
# 0. Since the server line does not have the prefer keyword, this driver
# is never used for synchronization, unless no other other
# synchronization source is available. In case the local host is
# controlled by some external source, such as an external oscillator or
# another protocol, the prefer keyword would cause the local host to
# disregard all other synchronization sources, unless the kernel
# modifications are in use and declare an unsynchronized condition.
#
server  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10  


==================================================
The above lines will allow the 'xntpd' daemon to keep running
between dialins and then it will correct from the servers
listed in the /etc/ntp.conf file.

Using several servers allows for some being offline and
still keep accurate time.
===========  Tail of /etc/ntp.conf  ==============

server clock.psu.edu
server clock.tricity.wsu.edu
server dominator.eecs.harvard.edu
server kuhub.cc.ukans.edu
server libra.rice.edu
server louie.udel.edu
server ntp.css.gov
server ntp.tmc.edu
server ntp0.cornell.edu
server ntp2.kansas.net
server ntp1.cs.wisc.edu
server ntp5.tamu.edu
server ntp-0.cso.uiuc.edu
server timex.cs.columbia.edu


==================================================
My system is now on a cable modem so it is now always
connected so it is more accurate than when I was dialup only
but I am amazed at how accurate it can be over an unreliable
medium like the Internet:

[era@allenhome mp3]$ ntptime -r
ntp_gettime() returns code 0 (OK)
  time bca0ede0.75db1000  Thu, Apr 13 2000 20:07:44.460, (.460374),
    maximum error 62784 us, estimated error 37984 us.
ntptime=bca0ede0.75db1000 unixtime=38f66f60.460374 Thu Apr 13 20:07:44 2000
 ntp_adjtime() returns code 0 (OK)
    modes 0x0 (),
offset 88 us, frequency -50.268 ppm, interval 4 s,
    maximum error 62784 us, estimated error 37984 us,
      status 0x1 (PLL),
time constant 3, precision 1 us, tolerance 512 ppm,
  pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200 us,
    intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.
[era@allenhome mp3]$ 

Even the maximum error of 62.784 milliseconds is awesome !


The Weaving Beaver
rclowdus@kcnet.com




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Website Address for Ed's tip on PC Clock
     ` Time of day Text Mode Rodney Clowdus
@      ` Rodney Clowdus
  0 siblings, 0 replies; 11+ messages in thread
From: Rodney Clowdus @  UTC (permalink / raw)
  To: speakup

I forgot to post the address where Ed's tip can be found for keeping the PC
Clock accurate via servers.  http://www.kclug.org/tips.shtml

The Weaving Beaver
rclowdus@kcnet.com




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: time of day
   ` Terry D. Cudney
@    ` Charles Hallenbeck
  0 siblings, 0 replies; 11+ messages in thread
From: Charles Hallenbeck @  UTC (permalink / raw)
  To: speakup

Hi Terry,
Thanks for the tips. I have been playing with this a little, and have
found that netdate works pretty well for me. I put mine in my ip-up script
and used the switch -l 0 which makes it just take the time from the first
time server to respond. netdate does more complicated things if you let
it, but I do not need rocket science accuracy here.
Chuck


Visit me at http://www.mhonline.net/~chuckh 
The Moon is Waxing Crescent (21% of Full)



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: time of day
   time of day Charles Hallenbeck
   ` Kerry Hoath
   ` Janina Sajka
@  ` Terry D. Cudney
     ` Charles Hallenbeck
  2 siblings, 1 reply; 11+ messages in thread
From: Terry D. Cudney @  UTC (permalink / raw)
  To: speakup

Hi Chuck,

	I'm using 'rdate'  in the script that starts my pppoe connection (DSL). My system loses time bad when shutdown, but keeps time fairly accuragtely while running, so I just run 'rdate' each time I re-establish my pppoe connection. Some people use other programs (like chrony and John Covici has one I can't remember the name) and run them periodically from chrond. I guess it depends on your needs/situation.

	There is a version of rdate in the "goodies' directory on bumpy. I'm using the Debian packaged rdate from the Debian website.

HTH,

	--TERRY

Name:	Terry D. Cudney
Phone:	(905)735-6127
E-mail:	terry@wasagacottage.com
Web:	www.wasagacottage.com



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: time of day
     ` Matthew Campbell
@      ` Janina Sajka
  0 siblings, 0 replies; 11+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: speakup

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1281 bytes --]

Matt:

Herewith my current list of ntp servers, though I know some are broken I
haven't had the time or need to bring it fully up to date. I also know
that most are still good.

I would think the udel site would list servers? Haven't looked recently.


On Tue, 24 Jul 2001, Matthew Campbell wrote:

> You also need to specify a time server when using NTP, correct?  Where
> can you find a list of time servers that are actually up?  I'm quite
> interested in this, because I want to keep my own clock up-to-date so
> I can give accurate times on ACB Radio Interactive, and I also want to
> use NTP for a group of four servers that I administer.  Thanks.
>
>

-- 

				Janina Sajka, Director
				Technology Research and Development
				Governmental Relations Group
				American Foundation for the Blind (AFB)

Email: janina@afb.net		Phone: (202) 408-8175

Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org

Will electronic books surpass print books? Read our white paper,
Surpassing Gutenberg, at http://www.afb.org/ebook.asp

Download a free sample Digital Talking Book edition of Martin Luther
King Jr's inspiring "I Have A Dream" speech at
http://www.afb.org/mlkweb.asp

Learn how to make accessible software at
http://www.afb.org/accessapp.asp

[-- Attachment #2: Type: TEXT/plain, Size: 591 bytes --]

time.nist.gov
ntp2.usno.navy.mil
time-a.nist.gov
time-b.nist.gov
time-a.timefreq.bldrdoc.gov
time-b.timefreq.bldrdoc.gov
bitsy.mit.edu
canon.inria.fr
chronos.univ-rennes1.fr
ncnoc.ncren.net
navobs1.gatech.edu
ntp.cs.mu.OZ.AU
ntp.dgf.uchile.cl
ntps1-0.cs.tu-berlin.de
ntps1-1.rz.Uni-Osnabrueck.DE
ntps1-1.uni-erlangen.de
ntps1-2.uni-erlangen.de
otc1.psu.edu
rackety.udel.edu
tempo.cstv.to.cnr.it
tick.mit.edu
tick.ucla.edu
tick.uh.edu
time.ien.it
time.service.uit.no
umd1.umd.edu
utcnist.microsoft.com
wave.mbari.org
wwvb.erg.sri.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: time of day
   ` Janina Sajka
@    ` Matthew Campbell
       ` Janina Sajka
  0 siblings, 1 reply; 11+ messages in thread
From: Matthew Campbell @  UTC (permalink / raw)
  To: speakup

You also need to specify a time server when using NTP, correct?  Where
can you find a list of time servers that are actually up?  I'm quite
interested in this, because I want to keep my own clock up-to-date so
I can give accurate times on ACB Radio Interactive, and I also want to
use NTP for a group of four servers that I administer.  Thanks.

-- 
Matt Campbell <http://www.pobox.com/~mattcampbell/>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: time of day
   time of day Charles Hallenbeck
   ` Kerry Hoath
@  ` Janina Sajka
     ` Matthew Campbell
   ` Terry D. Cudney
  2 siblings, 1 reply; 11+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: speakup; +Cc: Speakup Distribution List

Chuck:

Check out the Network Time Protocol. The web site you want is:

	http://www.eecis.udel.edu

Also, rdate -s does a great job in a small scale sort of way. You need to
point it to a time server -- like time.nist.gov -- but that particular
site is rather overloaded by such requests.

 On Tue, 24 Jul 2001, Charles
Hallenbeck wrote:

> Can someone please tell me what to read concerning setting my system time
> automatically from a source on the net? I think I read something about
> that once but it escapes me and I cannot seem to locate the information.
>
> Tha;nks - Chuck
>
>
>
>
>
> Visit me at http://www.mhonline.net/~chuckh
> The Moon is Waxing Crescent (18% of Full)
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>

-- 

				Janina Sajka, Director
				Technology Research and Development
				Governmental Relations Group
				American Foundation for the Blind (AFB)

Email: janina@afb.net		Phone: (202) 408-8175

Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org

Will electronic books surpass print books? Read our white paper,
Surpassing Gutenberg, at http://www.afb.org/ebook.asp

Download a free sample Digital Talking Book edition of Martin Luther
King Jr's inspiring "I Have A Dream" speech at
http://www.afb.org/mlkweb.asp

Learn how to make accessible software at
http://www.afb.org/accessapp.asp



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: time of day
   time of day Charles Hallenbeck
@  ` Kerry Hoath
   ` Janina Sajka
   ` Terry D. Cudney
  2 siblings, 0 replies; 11+ messages in thread
From: Kerry Hoath @  UTC (permalink / raw)
  To: speakup

There are a number of programs to do this. There is netdate or rdate;
these set time to within 1 second accuracy using the time services on port 37 tcp/udp.
There is also the ntp suite of tools that can either do 1 shot time ajustments
using ntpdate or can keep your system clock accurate to within
a few tens of miliseconds once you give it time servers.
You can also check out the time tools by DJB
http://www.pobox.com/~djb if you are not online all the time.
On Tue, Jul 24, 2001 at 06:07:00AM -0400, Charles Hallenbeck wrote:
> Can someone please tell me what to read concerning setting my system time
> automatically from a source on the net? I think I read something about
> that once but it escapes me and I cannot seem to locate the information.
> 
> Tha;nks - Chuck
> 
> 
> 
> 
> 
> Visit me at http://www.mhonline.net/~chuckh 
> The Moon is Waxing Crescent (18% of Full)
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
--
Kerry Hoath: kerry@gotss.net
alternatives: kerry@gotss.eu.org or kerry@gotss.spice.net.au
ICQ UIN: 8226547


^ permalink raw reply	[flat|nested] 11+ messages in thread

* time of day
@  Charles Hallenbeck
   ` Kerry Hoath
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Charles Hallenbeck @  UTC (permalink / raw)
  To: Speakup Distribution List

Can someone please tell me what to read concerning setting my system time
automatically from a source on the net? I think I read something about
that once but it escapes me and I cannot seem to locate the information.

Tha;nks - Chuck





Visit me at http://www.mhonline.net/~chuckh 
The Moon is Waxing Crescent (18% of Full)



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 Time of day Rodney Clowdus
 ` Raul A. Gallegos
   ` Time of day Text Mode Rodney Clowdus
     ` Website Address for Ed's tip on PC Clock Rodney Clowdus
  -- strict thread matches above, loose matches on Subject: below --
 time of day Charles Hallenbeck
 ` Kerry Hoath
 ` Janina Sajka
   ` Matthew Campbell
     ` Janina Sajka
 ` Terry D. Cudney
   ` Charles Hallenbeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).