Automatically update date/time

From Andreida
Revision as of 21:05, 3 June 2024 by Andreas (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is not needed anymore, any current Debian installation will do it correctly. I keep this around because sometimes certain virtual machines have problems after SLEEP to get the correct date.


Debian can automatically update its date/time:

  • check the currente date/time
date
  • install the service
apt-get install systemd-timesyncd
  • enable it
timedatectl set-ntp true
  • check the currente date/time
date