In order to setup your system clock to sync with a web clock in openSuse (or any linux distro for that matter) you will need to use the NTP (Network Time Protocol). By default all this service does it return the UTC time which is then converted to your local time via your personal system settings.
The reason to use NTP service to sync the time rather than using the date command in conjunction with your wrist watch is that NTP will adjust the time slowly rather than causing a sudden time jump which can cause issues with various programs/services. Also it saves you having to constantly check your wrist watch 
The configuration file for ntp is at /etc/ntp.conf, and this is where you need to enter the servers you wish to use to sync your time. If you open the file using vi under root , it is mostly self-explanatory and most of it can be ignored. The section we’re looking for is where is talks about adding external servers. In this section simply post a list of up to four servers (best not to use more to respect the servers bandwidth since three is MORE than sufficient). You use either general pool servers or better yet use more local servers to you, the NTP project provides a list of servers/pools you can use here.
Personally I am using one local server (UK) and three fall-back continental servers (Europe). This is because the Europe pool is much bigger than the UK one so makes for a better fall-back.
My entry is /etc/ntp.conf looks like this and your should look similar.
server 0.uk.pool.ntp.org
server 1.europe.pool.ntp.org
server 2.europe.pool.ntp.org
server 3.europe.pool.ntp.org
Once you have added your servers and save d the file simply restart the ntp service with/etc/init.d/ntp restart and you will now see just before restart it will poll your first server for a time update.
No comments:
Post a Comment