LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Setting the system clock to a time server? (http://www.linuxquestions.org/questions/linux-general-1/setting-the-system-clock-to-a-time-server-333149/)

orange400 06-13-2005 02:14 PM

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

jrdioko 06-13-2005 02: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, "north-america.pool.ntp.org" 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 north-america.pool.ntp.org" (although that command is now deprecated in favor of ntpd).

trickykid 06-13-2005 02: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 02:53 PM

Right on, thanks!!

phil.d.g 06-13-2005 02: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 04:07 PM.