

- NTP communicates over UDP port 123.
- A time server provides time to clients; clients periodically adjust their clocks and can, in turn, serve others.
- NTP corrects clock drift and smooths adjustments to minimize disruption and network traffic.

- Stratum 0: Reference clocks (GPS, atomic).
- Stratum 1: Servers directly connected to reference clocks.
- Stratum 2+: Servers synchronized from higher-level strata.
- Chrony provides fast, accurate synchronization and is resilient on intermittent networks.
- Chrony has two main components:
chronyd— the background daemon that runs at boot and continuously synchronizes the system clock (/etc/chrony.conf).chronyc— the CLI client to query and controlchronyd(view sources, tracking, force steps).

chronyd keeps the system clock accurate; use
chronyc to inspect and control chronyd (e.g., check sources, tracking, or force an immediate step).
timedatectl, set time zones, enable NTP, configure Chrony with public servers, and verify synchronization.
Start by displaying the current system time and full timedatectl status:
timedatectl set-timezone <Zone>. To list available zones:
tzselect and follow the prompts:
Europe/Paris), apply it:
timedatectl set-ntp true|false:
/etc/chrony.conf. To use public pool servers, add server lines such as server 0.pool.ntp.org iburst and restart chronyd. Example /etc/chrony.conf fragment:
chronyc to inspect sources and tracking:
chronyc makestep immediately adjusts the system clock. Use it cautiously—stepping the clock can disrupt time-sensitive services (databases, Kerberos, scheduled tasks). Prefer controlled maintenance windows when forcing large corrections.- Display current time and
timedatectlstatus. - Change and list time zones with
timedatectlandtzselect. - Enable/disable NTP with
timedatectl. - Configure Chrony (
/etc/chrony.conf) to use public NTP servers. - Verify synchronization with
chronyc sourcesandchronyc tracking. - Force an immediate correction with
chronyc makestep(use with care).

- NTP: https://www.ntp.org/
- Chrony: https://chrony.tuxfamily.org/
- timedatectl (systemd): https://www.freedesktop.org/software/systemd/man/timedatectl.html
- tzselect: https://man7.org/linux/man-pages/man1/tzselect.1.html