os:linux:systemd:ntp_client
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| os:linux:systemd:ntp_client [2022/11/15 09:44] – warnaud | os:linux:systemd:ntp_client [2025/02/25 16:52] (current) – [NTP client] warnaud | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Timezone ===== | ||
| + | <code bash> | ||
| + | timedatectl set-timezone Europe/ | ||
| + | timedatectl | ||
| + | </ | ||
| + | ===== NTP client ===== | ||
| + | |||
| + | <code bash>vi / | ||
| + | <code perl> | ||
| + | [Time] | ||
| + | NTP=ntp.fortier-family.com | ||
| + | </ | ||
| + | <code bash> | ||
| + | timedatectl status | ||
| + | systemctl restart systemd-timesyncd | ||
| + | timedatectl show-timesync | ||
| + | </ | ||
| + | |||
| + | ===== Old way ===== | ||
| + | <code bash> | ||
| + | apt install ntpdate | ||
| + | ntpdate pool.ntp.org</ | ||
