LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do I synchronize clock on Linux? (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-synchronize-clock-on-linux-229864/)

WarlockofVirgo 09-12-2004 09:12 PM

How do I synchronize clock on Linux?
 
On Windows XP the clock automatically synchronizes with some time server. How can I do that on SuSE 9.1?

homey 09-12-2004 10:24 PM

I don't have Suse booted up right now so just guessing that it's the same for Redhat. :(

Right click on the clock ( lower right of screen )
Select: Adjust Date & Time...
Select: Date & Time tab
[X] Enable Network Time Protocol
Server______________

WarlockofVirgo 09-12-2004 10:39 PM

I tried but it brings up YAST to change the time, date, region and time zone. That's all it lets me change.

This is just one thing out of a growing stack of little anoyances in SuSE. I'm about a c*nt hair from switching distros. Maybe Mandrake.

qwijibow 09-12-2004 10:42 PM

maybe you dont have the ntp client installed ?

the feates on right clicking the clock are of the desktop environment (kde / gnome)
changinf distro wont make any difference if it sues same desktop environment.

WarlockofVirgo 09-12-2004 10:48 PM

I have it installed but it says "Your network connection must be started before the NTP daemon starts." in YAST. I have dialup.

qwijibow 09-13-2004 07:48 AM

then start your dialup ocnnection before starting ntp.

michaelk 09-13-2004 02:39 PM

The ntpdate command can manually set the clock. Then you do not need to run the ntpd deamon.

max_sipos 09-13-2004 06:06 PM

Another posibility is to use ntpdate in a daily cronjob. It is particularly useful since you avoid having a deamon running all the time and the time barely drops out of sync in one day.

WarlockofVirgo 09-13-2004 06:12 PM

Quote:

Originally posted by max_sipos
Another posibility is to use ntpdate in a daily cronjob. It is particularly useful since you avoid having a deamon running all the time and the time barely drops out of sync in one day.
How do I set up a cronjob? Is there a user friendly GUI in SuSE I can use or am I going to have to whip out the Konsole?

bigrigdriver 09-13-2004 06:38 PM

There is a utility called chrony, which, when properly setup (easy) will automagically synchronize with the atomic clocks you specify in the config file anytime you connect to the internet. It is designed specifically for intermittent internet connections such as dialup. The documentation includes examples of config file entries to make. You can get lists of atomic clocks around the world to which you can synchronize. Just google up "public ntp time servers" to find and download a list of servers.

Once it's setup, it runs in background. Does it all for you.

michaelk 09-13-2004 09:12 PM

A cronjob will run a task at a specific time. It will run anyway even if your not connected. I've never used dialup with linux but I do believe you can run a command after the dialer connects.


All times are GMT -5. The time now is 04:46 AM.