Update system clock

3 risposte [Ultimo contenuto]
calher

I am a member!

Offline
Iscritto: 06/19/2015

My system clock is behind. How do I make Trisquel update my time over
the internet?

--
Caleb Herbert
https://calebh.top/

Kiki_the_Cyber_Squarrel
Offline
Iscritto: 12/02/2024
DiffieHellman
Offline
Iscritto: 03/24/2025

Hi Caleb,

You can set the rough date with GNU date as superuser like so;
`sudo date -s '2025-03-23'`

That will set the system clock close enough to allow TLS and the package manager to work.

Then you can proceed to enabling NTP; https://trisquel.info/en/wiki/enable-time-synchronization-ntp
`sudo apt install systemd-timesyncd`
`sudo timedatectl set-ntp true`
`timedatectl status`

The status command should print out the local time, list the correct timezone and note the clock is synchronised and note the NTP service is active.

If the timezone is incorrect, you click the system clock in the taskbar, select "Time and Date Settings" and then you can edit the timezone.

--
Kind Regards, DiffieHellman

calher

I am a member!

Offline
Iscritto: 06/19/2015

On 3/23/25 21:59, DiffieHellman wrote:
> Then you can proceed to enabling NTP; https://trisquel.info/en/wiki/enable-time-synchronization-ntp
> `sudo apt install systemd-timesyncd`
> `sudo timedatectl set-ntp true`
> `timedatectl status`

Thanks! This fixed it!

--
Caleb Herbert
https://calebh.top/