Choose style:

Author Topic: Time synchonization to NTP server [solved]  (Read 673 times)

0 Members and 1 Guest are viewing this topic.

Offline Superannuated

  • nOOb
  • *
  • Posts: 18
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 8 Resppin-2
Time synchonization to NTP server [solved]
« on: August 02, 2018, 03:58:12 pm »
In Peppermint 9 I presently have the following set up:
Xfce panel Clock > Properties >  > Time and Date Settings > Configuration > Manual

I assume this mean that when the local time switches from Daylight Savings to Standard, or if I physically move my laptop to another time zone that the panel clock will not automatically change to the correct local time. Is that a correct assumption?

If I try to change to "Keep synchronized with Internet servers" I get a popup window "NTP support is not installed". The Ubuntu documentation on Time Synchronization is fairly complex and I don't know how much of it directly applies to P9. Before I try to wade through that is there a downside to time synchronization? If not, is there a simple way to install and activate NTP support?
« Last Edit: August 02, 2018, 06:05:21 pm by Superannuated »

Offline scifidude79

  • Global Moderator
  • Hero
  • *****
  • Posts: 4029
  • Karma: 863
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: Time synchonization to NTP server
« Reply #1 on: August 02, 2018, 05:48:47 pm »
There's no downside that I know of to time synchronization, I use it myself. Installing NTP support is simple, just open a terminal and run this command:

Code: [Select]
sudo apt-get install ntp

Once you install it, time synchronization will be automatically enabled. That's literally all there is to it. It will synchronize to servers in the time zone you selected when you installed Peppermint.

Offline Superannuated

  • nOOb
  • *
  • Posts: 18
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 8 Resppin-2
Re: Time synchonization to NTP server
« Reply #2 on: August 02, 2018, 06:04:56 pm »
Thanks so much!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26082
  • Karma: 2842
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Time synchonization to NTP server [solved]
« Reply #3 on: August 05, 2018, 10:24:37 am »
Can anyone tell me if we used to have ntp installed OOTB in PM7/8 ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline TonyBronze

  • Trusted User
  • Member
  • *****
  • Posts: 160
  • Karma: 34
  • Peppermintaholic
    • View Profile
  • Peppermint version(s): 8 & 9
Re: Time synchonization to NTP server [solved]
« Reply #4 on: August 05, 2018, 11:07:45 am »
From Ubuntu 16.04 isn't time synchronisation handled by systemds timesyncd?  Type at a terminal
Code: [Select]
 timedatectl
to see if it is activated.  NTP shouldn't be needed now.
......to infinity and beyond..............

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26082
  • Karma: 2842
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Time synchonization to NTP server [solved]
« Reply #5 on: August 05, 2018, 11:29:27 am »
TonyBronze is absolutely correct .. there is now no need to install/enable ntp for the xfce4-panel clock plugin, it is automatically being synced by systemd's timesyncd.

If (for some reason) you want to disable timesyncd ntp syncing, you'd need to run:
Code: [Select]
sudo timedatectl set-ntp false
then manually set the time in the clock panel applet .. then restart the panel with:
Code: [Select]
xfce4-panel -r



For completeness, to re-enable timesyncd syncing:
Code: [Select]
sudo timedatectl set-ntp true

And you can check if timesyncd syncing is ON/OFF by running
Code: [Select]
timedatectl
which will give you output like this-
Quote
                      Local time: Sun 2018-08-05 16:31:21 BST
                  Universal time: Sun 2018-08-05 15:31:21 UTC
                        RTC time: Sun 2018-08-05 15:31:21
                       Time zone: Europe/London (BST, +0100)
       System clock synchronized: yes
       systemd-timesyncd.service active: yes
                 RTC in local TZ: no

where:-
       systemd-timesyncd.service active: yes = enabled (ntp synced)
and
       systemd-timesyncd.service active: no = disabled (manual time setting)

Remember, any changes will require you to restart the panel before the clock reflects the changes.



Thanks Tony ;)
« Last Edit: August 05, 2018, 11:44:55 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec