Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am in Sigapore , the time is GMT +8 , but my linux server time should be set to GMT time (GMT +0) , can advise what is the way that the server can syn with the GMT time accurately ?
I have nine linux servers need to sync with GMT time , the best way is sync with external time server or sync with local server and run script to subtract 8 hours ?
You can sync with a time server in any location. It's best to choose ones that are near in network times to minimise differences (jitter) in packet transmission time over the network.
The task is made easy by the NTP pool project which coordinates time servers by regions. The Singapore pool (sg.pool.ntp.org) has five servers. The NTP pool project advises that is not enough so the Asia pool (asia.pool.ntp.org) should be used instead.
If you have an ntpd version that supports the pool directive (4.2.6p1 did, maybe earlier), /etc/ntp.conf can have:
Code:
pool asia.pool.ntp.org
My own ntpd.conf uses the Indian pool followed by the Asian pool. Maybe that's not good practice:
Code:
# Time sources
# ~~~~~~~~~~~~
# Using pool method from /usr/share/doc/ntp-4.2.6p1/html/manyopt.html#pool
# also at http://www.eecis.udel.edu/~mills/ntp/html/manyopt.html#pool
# For India
# (Asia also required because India is inadequate)
pool in.pool.ntp.org
pool asia.pool.ntp.org
Another factor to consider is the quality of network connections. Singapore might have better (= faster, lower latency, less jittery) network connections to say USA than to some of the servers in the asia.pool.ntp.org pool.
Sounds like it's a file left by dpkg when it upgraded ntp (rather than overwriting your initial ntp.conf).
This page describes how to change your time zone on an RHEL system. It is also highly recommended to install and run NTP to keep accurate time on your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.