Computer Time management help


My Favourite Time Servers:

Gov of Canada: time.nrc.ca, time.chu.nrc.ca

Gov of Japan: ntp.nict.jp

Ubuntu's NTP server: ntp.ubuntu.com

Basic comands to check ubuntu time

To view time & config:
timedatectl status

To view time & config with more detail:
systemctl status systemd-timesyncd
Source

Check & Change Ubuntu 18.04 Time Zone

By default, Ubuntu 18.04 is in UTC time

To see current time zone and other time information:
timedatectl

To help change time zones (In this case Toronto):
To find Toronto:
timedatectl list-timezones | grep Toronto
To set as Toronto:
sudo timedatectl set-timezone America/Toronto

Source | Original date from Vivaldi: 7 April 2019 @ 18:45

Earth Location of Toronto

Latitude 43.653226
Longitude -79.383184

Source | Original Creation date in Vivaldi: 7 March 2018 @ 21:51 (This may actually date back to lost note in 2017).

Fix ubuntu locale issues:

Offten needed on Rasbery Pi 4 ubuntu
sudo locale-gen en_CA.UTF-8
sudo dpkg-reconfigure locales

Source | Date: January 26th, 2021

Change Ubuntu 16.04 and Newer to Windows's Local Time

To fix dual-boot time issues:

Type this in terminal:
timedatectl set-local-rtc 1

To turn off Local time (restore UTC):
timedatectl set-local-rtc 0

Verify Changes:
timedatectl

Got this help here

How to change Windows from default local time to Linux's UTC Time

This fixes time issues when dual-booting

Edit this regestry key:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] "RealTimeIsUniversal"=dword:00000001
then Restart.
It should be now in UTC and will be sync with Ubuntu.

To restore original:
Change "RealTimeIsUniversal" dword back to 0

Got info here

My custom timesyncd.conf file for ubuntu

[Time]
NTP=time.nrc.ca
FallbackNTP=ntp.nict.jp
#RootDistanceMaxSec=5
PollIntervalMinSec=30
PollIntervalMaxSec=120
This file is located at: /etc/systemd/timesyncd.conf . Replace it's code with the one above with every new ubuntu installation.

Bash Calendar:

To run:
$ cal

Example output:


   September 2024
Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
To install (Debian/Ubuntu):
$ sudo apt install ncal
Source | Date: September 7th 2024

Back