Install NTP Server
Install NTP Server
# Next, you will need to configure NTP to synchronize its time from public NTP
server. You can do this by editing ntp.conf file:
# With ones that match your location. In my case, I will use the following lines:
# You can check the status of NTP with the following command:
192.168.43.229 ntp-server-host
# Replace the IP address with the IP of your NTP server (the one we installed in
the precious chapter). Save and close the file.
# Next, install NTP and ntpdate with the following command:
# Now, manually check the time synchronization with your NTP server with the
following command:
# Next, you will need to disable the default Ubuntu systemd's timesyncd service.
You can do this with the following command:
# Now, edit /etc/ntp.conf file and set your own configured NTP server as preferred
NTP server for the time synchronization.
# Save and close the file. Then, restart NTP service to apply the changes:
# Finally, use the ntpq command to list the NTP time synchronization queue:
ntpq -p