about Grigoris Maravelias
Updating clock time through terminal

Updating clock time through terminal

In my Fedora 14 desktop I keep losing minutes without knowing how and why (doesn’t the clock update automatically?).
At the beginning I tried to change the file /etc/ntp.conf (edit it and change the parameter server to: ‘server pool.ntp.org’; 1) as perhaps the server did not respond correctly.
I tried to update by:
ntpdate pool.ntp.org

but the result was not the expected one, but an error: “… the NTP socket is in use, exiting”
I stopped (/etc/init.d/ntpd stop) and tried to updated (ntpdate pool.ntp.org) but another error was raised: “… no server suitable for synchronization found” (reasonable though since …ntd was down!).

By looking a little bit around the solution [2] was to update while running as:
ntpdate -u pool.ntp.org

and…that’s it! I removed the extra entry in the /etc/ntp.conf (to keep the original servers only) and it worked again.

Now let’s see if it’s going to keep up or I will need to manually update the clock from time to time.

[1]: Cyberciti.biz – Synchronize the system clock to Network Time Protocol (NTP) under Fedora or Red Hat Linux
[2]: Superuser.com – Socket is in use

Leave a Reply

Your email address will not be published. Required fields are marked *