Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
777 stars 188 forks source link

Time synchronization #751

Open Aleksa2022 opened 1 year ago

Aleksa2022 commented 1 year ago

How can I register and start a time synchronization service with a local source?Now the time is UTC on my terminals. The time zone is transmitted via DHCP and the addresses of the NTP servers are transmitted. The time zone is picked up, and the time is not synchronized - the synchronization service does not work. If you activate the service manually, then everything works - the time is synchronized. Manually activating the time service at each download on each client is a so-so pleasure...

Aleksa2022 commented 1 year ago

For some reason, the NET_TIME_SERVER parameter is not picked up normally (it seems).

Thinstation commented 1 year ago

It takes a while for the time sync to happen.

Aleksa2022 commented 1 year ago

And what time is it approximately? I would like to understand how it is best and easier to speed up. Maybe I should write a script somewhere? By the way, I have not found where the addresses of external time sources come from, this is despite the fact that local sources are specified in the configs...

Aleksa2022 commented 1 year ago

As it turned out, the time service does not work when loading - the time is not synchronized and attempts to request the synchronization status lead to an error. If, after downloading, you go to the terminal and manually enter timedatectl set-ntp yes, then everything starts working - the time is synchronized, but does not adjust the hardware clock until you specify that the time should be saved. I have not come up with a way other than to run the script when loading the terminal. Maybe there is a more elegant option?