-   Linux - General (
-   -   Setting the system clock to a time server? (

orange400 06-13-2005 01:14 PM

Setting the system clock to a time server?
How do you do this at a terminal?

jrdioko 06-13-2005 01:40 PM

That's done with ntpd. This page probably gives you more information than you need to know, but basically you run ntpd at startup and set up a config file so it knows what servers to use. If you're in North America, "" will select an appropriate random server (unless you need extreme accuracy in which case that might not be sufficient). If you just want to update once, you can just do "ntpdate" (although that command is now deprecated in favor of ntpd).

trickykid 06-13-2005 01:45 PM

I tend to not really need dead on accuracy all the time.. so I setup a cron to run ntpdate daily on my machines that run 24/7 and just placed ntpdate in my startup scripts for my workstations that are usually shutdown when not in use..

orange400 06-13-2005 01:53 PM

Right on, thanks!!

phil.d.g 06-13-2005 01:59 PM

If you have more than 1 machine that you want to keep updated then it is an idea to set up a time server on one of your machines that runs all the time, have that connect to public ntp servers, have the rest of your computers synchronise with your local time server

All times are GMT -5. The time now is 05:01 AM.