Tag Archive


amateur astronomy awk bash be b[e] supergiant cartoon conference convert evolved star exoplanet fedora figaro fits fun galaxy history iraf jupiter latex linux lmc machine learning massive star matplotlib meteor mypaper paper peblo photometry planet pro-am pyraf python scisoft skinakas observatory small magellanic cloud smc spectroscopy starlink talk theli ubuntu university of crete video x-ray

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.

References:
[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