Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ [1] 2 3 4 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: ntp time server select ?, how do I configure the time server?< Next Oldest | Next Newest >
bjhbjh Offline





Group: Members
Posts: 21
Joined: Jan. 2008
Posted: Feb. 28 2008,01:49 QUOTE

Running the latest DSL. Have found how to set the time via an ntp server and it all works but don't see how I can set which time server to use, or even know which one it uses by default. Can I point it to the time server of my choice some how?

Thanks,

Brian H.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Feb. 28 2008,05:48 QUOTE

Built into DSL is a script to set time using NIST see: http://tf.nist.gov/service/its.htm

Looking at that script /usr/local/bin/gettime.lua you will see that it uses a default its of time-nw.nist.gov

The script also accepts a runtime paramter such that you can overridde the default with an internet time server near you.

sudo gettime.lua your_its_server_here

If your internet connection is up and available upon boot then add the command to your /opt/bootlocal.sh.  sudo not needed as bootlocal.sh is run as root upon booting.
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Feb. 28 2008,16:39 QUOTE

Would it be possible to modify the gettime script to accept a user input of the form "GMT+-n"?

The reason I ask is that (as far as I know) my time zone is not one of the choices available in dsl and, since my time stays the same all year (i.e. there is no daylight savings adjustment), I was thinking it might be possible to say something like:

$ sudo gettime.lua GMT+4

and have my machine's clock adjusted correctly
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Feb. 28 2008,16:53 QUOTE

NIST gives the UTC time. Doesn't DSL recognize the GMT+? timezones?

I mean, if you have the clock in UTC, linux can set the local time according to that.


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Feb. 28 2008,17:16 QUOTE

Quote
Doesn't DSL recognize the GMT+? timezones?

- no

Quote
I mean, if you have the clock in UTC, linux can set the local time according to that

- I'm not sure if I caught the right meaning here, but if the clock is in UTC, you need to have the means to pass a time offset (i.e. tell the system where you are). At the moment, if  I enter nothing and then run gettime.lua, the clock is set to GMT-4 (dsl default of US east coast I guess)
Back to top
Profile PM 
20 replies since Feb. 28 2008,01:49 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ [1] 2 3 4 5 >/
reply to topic new topic new poll
Quick Reply: ntp time server select ?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code