Edge Compute Device
Updating NTP Settings
2 min
for devices & cameras on isolated networks, the device may have trouble finding an ntp server and obtaining the correct time you can easily view the device time with the date command many offline networks have an ntp server available for these isolated devices to use the following setps outline how you can add this ntp server's ip address or hostname to the device's ntp configuration to enable proper time syncing first, make an edit to the following file /etc/systemd/timesyncd conf /etc/systemd/timesyncd conf # this file is part of systemd \# \# systemd is free software; you can redistribute it and/or modify it \# under the terms of the gnu lesser general public license as published by \# the free software foundation; either version 2 1 of the license, or \# (at your option) any later version \# \# entries in this file show the compile time defaults \# you can change settings by editing this file \# defaults can be restored by simply deleting this file \# \# see timesyncd conf(5) for details \[time] \#ntp= \#fallbackntp=ntp ubuntu com \#rootdistancemaxsec=5 \#pollintervalminsec=32 \#pollintervalmaxsec=2048 under the \[time] group, you can add the ntp server ip address or hostname, along with a fallback server ntp=10 82 41 23 once this file is saved, the following commands should be executed to enable ntp time syncing and to restart the time service timedatectl set ntp true sudo systemctl restart systemd timesyncd you can confirm the time is properly synced with the timedatectl command timedatectl monomer\@ubuntu $ timedatectl local time thu 2022 10 20 07 37 16 edt universal time thu 2022 10 20 11 37 16 utc rtc time thu 2022 10 20 11 37 16 time zone america/new york (edt, 0400) system clock synchronized yes ntp service active rtc in local tz no