How to sync time on Mint 19.3?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
How to sync time on Mint 19.3?
The reason my clock is out of sync is that I had to boot from a windows 10 stick.
I have tried searching the web but I had no luck or did not stumble upon a correct solution.
Everything I tried seems to be out of date or not specific to Linux Mint 19.3.
What is the current way to force a time sync on Mint 19.3?
The lack of a sync time button in the date and time preferences is really annoying! Enabling the option should do a sync immediately. But no...
I don't want to use my local time as system time to make Windows happy I just want to enable and force time sync on demand.
Thanks
I have tried searching the web but I had no luck or did not stumble upon a correct solution.
Everything I tried seems to be out of date or not specific to Linux Mint 19.3.
What is the current way to force a time sync on Mint 19.3?
The lack of a sync time button in the date and time preferences is really annoying! Enabling the option should do a sync immediately. But no...
I don't want to use my local time as system time to make Windows happy I just want to enable and force time sync on demand.
Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: How to sync time on Mint 19.3?
Click on time in the lower right (right side of task bar) - select "Date and time Settings" and turn on Network time.
I don't do that, but maybe it will work for you.-
- Level 4
- Posts: 241
- Joined: Wed Aug 26, 2020 6:32 pm
Re: How to sync time on Mint 19.3?
Then you have seen mention of local time, universal time, and real time (hardware clock). Confusing stuff isn't it ?
Code: Select all
timedatectl
Sync every boot sounds like a nuisance. Better would be setting Mint and Windows to match. I'm not sure which OS is better to change. I'll be back if nobody offers an opinion on those 2 options.What is the current way to force a time sync on Mint 19.3?
edit (much later)/ Sorry I'm bailing out. Don't know what's changed since 19.3 and will not offer commands I can't fully test.
Re: How to sync time on Mint 19.3?
You can try this if you want to:
https://www.golinuxhub.com/2017/12/how- ... -and-time/
https://www.golinuxhub.com/2017/12/how- ... -and-time/
Re: How to sync time on Mint 19.3?
Does anybody still use ntp?mikeflan wrote: ⤴Sun May 15, 2022 7:28 pm You can try this if you want to:
https://www.golinuxhub.com/2017/12/how- ... -and-time/
Re: How to sync time on Mint 19.3?
Everybody.MAlfare wrote: ⤴Mon May 16, 2022 8:59 amDoes anybody still use ntp?mikeflan wrote: ⤴Sun May 15, 2022 7:28 pm You can try this if you want to:
https://www.golinuxhub.com/2017/12/how- ... -and-time/
The root cause is typically due to Windows expects the BIOS clock is in localtime, whereas Linux expects it to be UTC. The reason one cannot just sync on linux boot then is because the time is too far off (an hour or more, unless you live in an area where localtime IS UTC/GMT).iliketrains wrote: ⤴Sun May 15, 2022 11:41 am Sync every boot sounds like a nuisance. Better would be setting Mint and Windows to match. I'm not sure which OS is better to change. I'll be back if nobody offers an opinion on those 2 options.
Easiest fix is to tell linux that the hwclock is in localtime --
timedatectl set-local-rtc 1 --adjust-system-clock
.-
- Level 4
- Posts: 241
- Joined: Wed Aug 26, 2020 6:32 pm
Re: How to sync time on Mint 19.3?
Code: Select all
timedatectl
Code: Select all
NTP service: n/a
Code: Select all
systemctl status ntp
Code: Select all
ntp.service - Network Time Service
Active: active (running) since Sun 2022-05-15 15:55:58 CDT; 20h ago
Tip of the day: Don't install an OS when the bios battery is dead. I made that mistake the day before this topic was posted.
Re: How to sync time on Mint 19.3?
The ntp protocol of course, but not the ntp daemon and his tools .
Re: How to sync time on Mint 19.3?
Sorry I did not reply sooner, I was busy.
I'd like to simply force the update. But there seems to be a problem with time sync on my system It does not work automatically, even after several days now it did not update even once. The reason I prefer to force it instead of syncing windows and Linux is because Linux complains if HW clock is set to local time, windows might break if clock is set to UTC. Lets just appreciate for a moment how stupid Windows is... Setting the HW clock to UTC is the only logical choice.
Code: Select all
$ timedatectl status
Local time: Tue 2022-05-17 10:08:38 CEST
Universal time: Tue 2022-05-17 08:08:38 UTC
RTC time: Tue 2022-05-17 08:08:38
Time zone: Europe/Zagreb (CEST, +0200)
System clock synchronized: no
systemd-timesyncd.service active: yes
RTC in local TZ: no
$ systemctl status ntp
Unit ntp.service could not be found.
$ /etc/init.d/ntp ntptimeset
bash: /etc/init.d/ntp: No such file or directory
$
Re: How to sync time on Mint 19.3?
I tired to update and none of the repositories would load.
Looks like setting up a static IP and changing the DNS servers to cloudflare was the problem.
This also affected NTP time sync somehow.
I have reset the network connection settings to default and set it to Automatic DHCP. Also I have enabled IPv6.
Now everything works!
If anyone can explain it would be great to know why and how to avoid this problem when using alternate DNS.
Looks like setting up a static IP and changing the DNS servers to cloudflare was the problem.
This also affected NTP time sync somehow.
I have reset the network connection settings to default and set it to Automatic DHCP. Also I have enabled IPv6.
Now everything works!
If anyone can explain it would be great to know why and how to avoid this problem when using alternate DNS.
Re: How to sync time on Mint 19.3?
There typically is no problem with using alternative DNS services. "Static IP" may certainly be problematic if you selected an IP address in the range of your DHCP server and caused an IP conflict.Mushin wrote: ⤴Tue May 17, 2022 5:25 am I tired to update and none of the repositories would load.
Looks like setting up a static IP and changing the DNS servers to cloudflare was the problem.
This also affected NTP time sync somehow.
I have reset the network connection settings to default and set it to Automatic DHCP. Also I have enabled IPv6.
Now everything works!
If anyone can explain it would be great to know why and how to avoid this problem when using alternate DNS.
Re: How to sync time on Mint 19.3?
Thanks for the explanation that should be it!djph wrote: ⤴Tue May 17, 2022 5:32 amThere typically is no problem with using alternative DNS services. "Static IP" may certainly be problematic if you selected an IP address in the range of your DHCP server and caused an IP conflict.Mushin wrote: ⤴Tue May 17, 2022 5:25 am I tired to update and none of the repositories would load.
Looks like setting up a static IP and changing the DNS servers to cloudflare was the problem.
This also affected NTP time sync somehow.
I have reset the network connection settings to default and set it to Automatic DHCP. Also I have enabled IPv6.
Now everything works!
If anyone can explain it would be great to know why and how to avoid this problem when using alternate DNS.
system clock syncronized is now: yes.
The two commands below still dont work.
I guess Mint 19.3 does not use those programs to sync time?
Code: Select all
$ timedatectl status
Local time: Tue 2022-05-17 10:08:38 CEST
Universal time: Tue 2022-05-17 08:08:38 UTC
RTC time: Tue 2022-05-17 08:08:38
Time zone: Europe/Zagreb (CEST, +0200)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
$ systemctl status ntp
Unit ntp.service could not be found.
$ /etc/init.d/ntp ntptimeset
bash: /etc/init.d/ntp: No such file or directory
$
Re: How to sync time on Mint 19.3?
yeh, seems that
timedatectl
superseded ntp
nowadays ... at least in Ubuntu/Mint by default anyway.Re: How to sync time on Mint 19.3?
The ntp disables working of systemd-timesyncd an maybe timedatectl too.Mushin wrote: ⤴Tue May 17, 2022 5:43 am
Thanks for the explanation that should be it!
system clock syncronized is now: yes.
The two commands below still dont work.
I guess Mint 19.3 does not use those programs to sync time?
Code: Select all
$ timedatectl status Local time: Tue 2022-05-17 10:08:38 CEST Universal time: Tue 2022-05-17 08:08:38 UTC RTC time: Tue 2022-05-17 08:08:38 Time zone: Europe/Zagreb (CEST, +0200) System clock synchronized: yes systemd-timesyncd.service active: yes RTC in local TZ: no $ systemctl status ntp Unit ntp.service could not be found. $ /etc/init.d/ntp ntptimeset bash: /etc/init.d/ntp: No such file or directory $
So it is good when this package is not installed.
Last edited by MAlfare on Tue May 17, 2022 6:27 pm, edited 1 time in total.
- Night Wing
- Level 4
- Posts: 472
- Joined: Wed Dec 25, 2013 10:21 pm
- Location: Piney Woods of Southeast Texas
Re: How to sync time on Mint 19.3?
When I use to dual boot Linux Mint and Windows 7, because both of my two desktop tower computers have three hard drive bays in them and each bay had a working hard drive in each slot, the time was never the same for both. So I made an adjustment in Windows 7 to make the time the same for both Linux Mint and Windows 7.
I used "Make Windows Use UTC Time By Editing the Registry" in the link below. It is about half way down the page.
https://www.howtogeek.com/323390/how-to ... l-booting/
BTW, this also worked for Windows 10. I can't vouch this will work for Windows 11 because I have never tried it on a Windows 11 computer for a dual boot.
I used "Make Windows Use UTC Time By Editing the Registry" in the link below. It is about half way down the page.
https://www.howtogeek.com/323390/how-to ... l-booting/
BTW, this also worked for Windows 10. I can't vouch this will work for Windows 11 because I have never tried it on a Windows 11 computer for a dual boot.
Linux Mint 21.3 (Virginia) Xfce
MX Linux 23.2 (Libretto) Xfce
Linux Debian 12.5 (Bookworm) Xfce
MX Linux 23.2 (Libretto) Xfce
Linux Debian 12.5 (Bookworm) Xfce
Re: How to sync time on Mint 19.3?
I'l try that, I dont have a lot of applications on the usb stick it's just for specific stuff that wont work on Linux. So it probably wont break anything critical in windows.Night Wing wrote: ⤴Tue May 17, 2022 6:38 am When I use to dual boot Linux Mint and Windows 7, because both of my two desktop tower computers have three hard drive bays in them and each bay had a working hard drive in each slot, the time was never the same for both. So I made an adjustment in Windows 7 to make the time the same for both Linux Mint and Windows 7.
I used "Make Windows Use UTC Time By Editing the Registry" in the link below. It is about half way down the page.
https://www.howtogeek.com/323390/how-to ... l-booting/
BTW, this also worked for Windows 10. I can't vouch this will work for Windows 11 because I have never tried it on a Windows 11 computer for a dual boot.
Thanks