User Tools

Site Tools


os:linux:systemd:ntp_client

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
os:linux:systemd:ntp_client [2022/06/24 13:03] – created warnaudos:linux:systemd:ntp_client [2025/02/25 16:52] (current) – [NTP client] warnaud
Line 1: Line 1:
 +===== Timezone =====
 +<code bash>
 +timedatectl set-timezone Europe/Zurich
 +timedatectl
  
 +</code>
 +===== NTP client =====
 +
 +<code bash>vi /etc/systemd/timesyncd.conf</code>
 +<code perl>
 +[Time]
 +NTP=ntp.fortier-family.com
 +</code>
 +<code bash>timedatectl set-ntp true
 +timedatectl status
 +systemctl restart systemd-timesyncd
 +timedatectl show-timesync
 +</code>
 +
 +===== Old way =====
 +<code bash>
 +apt install ntpdate
 +ntpdate pool.ntp.org</code>