Ubuntu 20.04
Sponsored Link

NTP Server : Configure NTP Client
2020/04/27
 
Configure NTP Client.
 
A NTP Client [systemd-timesyncd.service] is running by default on Ubuntu, so it's easy to set NTP Client.
By the way, it's also possible to use NTPd or Chrony as a NTP Client. If you use them, simply set only NTP server to sync time, do not set permission to receive time sync requests from other Hosts.
[1] Configure [systemd-timesyncd.service].
root@client:~#
systemctl status systemd-timesyncd

*  systemd-timesyncd.service - Network Time Synchronization
     Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; ve>
     Active: active (running) since Mon 2020-04-27 01:20:36 UTC; 2min 6s ago
       Docs: man:systemd-timesyncd.service(8)
   Main PID: 662 (systemd-timesyn)
     Status: "Initial synchronization to time server 91.189.94.4:123 (ntp.ubunt>
      Tasks: 2 (limit: 4621)
     Memory: 1.5M
     CGroup: /system.slice/systemd-timesyncd.service
             +- 662 /lib/systemd/systemd-timesyncd

root@client:~#
vi /etc/systemd/timesyncd.conf
# add to the end : set NTP server for your timezone

NTP=dlp.srv.world
root@client:~#
systemctl status systemd-timesyncd

*  systemd-timesyncd.service - Network Time Synchronization
     Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; ve>
     Active: active (running) since Mon 2020-04-27 01:29:22 UTC; 6s ago
       Docs: man:systemd-timesyncd.service(8)
   Main PID: 1108 (systemd-timesyn)
     Status: "Initial synchronization to time server 10.0.0.30:123 (dlp.srv.world>
      Tasks: 2 (limit: 4621)
     Memory: 1.3M
     CGroup: /system.slice/systemd-timesyncd.service
             +- 1108 /lib/systemd/systemd-timesyncd
Matched Content