I have googled and found numerous commands, none of which works on my system.
These do not even exist:
ntptime
ntpq
And if I use timedatectl it still does not work even though it exists:
Code: Select all
$ sudo timedatectl
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to create bus connection: Host is downMy network time setting question is related to a discussion on the use of DS3231 RTC modules, but this is so specific I put it into this separate thread.
What I have done in summary is:
- Enabled I2C in raspi-config
- edited /boot/config.txt and added this at the end of the first section:
Code: Select all
dtoverlay=i2c-rtc,ds3231- Started up again
Now the time of my RPi4 is off by 42 seconds (probably from the RTC unit I have not used for a couple of years).
The advice I have read on this is:
- Do a network time sync
- Write the time to the RTC device
But how to do the network sync is not described....
Seems like something that exists in Raspbian itself without having to install extra software, after all without having the RTC module present Raspbian updated to network time just fine...