<tutorialjinni.com/>

Install Chrony in Linux

Posted Under: Configuration, Linux on Dec 1, 2022
Install Chrony in Linux
Chrony is a Network Time Protocol's implementation that is more faster and robust than traditional NTPD. It have the ability to synchronize systems with more accuracy and reliability. To install it on RPM based systems use
yum -y install chrony
on Debain based systems use
apt install chrony
once installed, start and persist the service.
systemctl start chronyd
systemctl enable chronyd # persist across reboots




To check if Chrony is sync time
[root@tutorialjinni ~]# chronyc tracking
Reference ID    : CFC5577C (time.cloudflare.com)
Stratum         : 4
Ref time (UTC)  : Thu Dec 01 13:57:19 2022
System time     : 0.000113938 seconds fast of NTP time
Last offset     : -0.000048865 seconds
RMS offset      : 0.000496117 seconds
Frequency       : 2.245 ppm slow
Residual freq   : -0.000 ppm
Skew            : 0.098 ppm
Root delay      : 0.118462570 seconds
Root dispersion : 0.001595144 seconds
Update interval : 64.4 seconds
Leap status     : Normal
check Chrony time sources
[root@tutorialjinni ~]# chronyc sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^+ time1.gin.ntt.net             2   6   377    46   -155us[ -155us] +/-   85ms
^+ time.videxio.net              2   7   377    45  -2175us[-2175us] +/-  144ms
^* time.cloudflare.com           3   6   377    50  -1099us[-1156us] +/-   63ms
^+ 141.144.230.32                2   7   377    45   +123us[ +123us] +/-  133ms
also verify Chrony working and enable via timedatectl
[root@tutorialjinni ~]# timedatectl
               Local time: Thu 2022-12-01 14:01:08 UTC
           Universal time: Thu 2022-12-01 14:01:08 UTC
                 RTC time: Thu 2022-12-01 14:01:08
                Time zone: UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
[root@tutorialjinni ~]#



imgae