Configure Network Time Protocol (NTP) Daemon
This can also be configured during the Fedora installation process during the final installation configuration steps.
Login as root and verify your clock settings.
[root@linuxwebnet etc]# cat /etc/sysconfig/clock ZONE="America/Chicago" UTC=true ARC=false
Also check the file /etc/localtime. It should be a link to the appropriate timezone file.
[root@linuxwebnet etc]# ll /etc/localtime lrwxrwxrwx 1 root root 30 May 16 11:25 /etc/localtime -> /usr/share/zoneinfo/US/Central
Backup your current ntp config file.
mv /etc/ntp.conf /etc/ntp.conf.bkup
Create a new /etc/ntp.conf file using these settings.
# --- TIMESERVERS --- server navobs1.wustl.edu server navobs1.usnogps.navy.mil # --- DRIFT FILE --- driftfile /var/lib/ntp/drift broadcastdelay 0.008
Start or restart the ntp daemon with
then you can check the results with
It will take 3-4 mins to kick in, if your jitter value is 4000 that means it hasn't worked, also confirm by checking your server's local time with.
Reset your Linux system clock
If the system date is way off then it could take NTP a long time for it to correc the time. Synchronize your system date with an accurate external time source using ntpdate. At a command prompt, type:
If you do not have NTP installed, but your PC has an Internet connection available, you can reset the system date by synchronizing it with another host using rdate. At a command prompt, type:
Synchronize internal hardware clock
After you've checked that your Linux system clock's date and time is correct, it is a good idea to then synchronize your PC's internal hardware clock with this same date and time. At a command prompt, type:
Problems with Hardware Clock
If during shutdown and startup you get an error [Failed] then try the following.
[root localhost ~]# hwclock --systohc select() to /dev/rtc to wait for clock tick timed out
does not work but
[root localhost ~]# hwclock --systohc --directisa
works, then add a
line to the /etc/sysconfig/clock file. Look at /etc/rc.d/init.d/halt at around line 115 to see how that works.
For more details on the NTP servers see