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?
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.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 correctlyNIST 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.
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)Next Page...
original here.