Default Raspbian Date/Time Settings: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Created page with "To change the default NTP server used for Date/Time queries. = Config File = <pre> vi /etc/systemd/timesyncd.conf </pre> <pre> NTP=ntp.mydomain.com </pre> == Restart Servic..."
 
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:


<pre>
<pre>
NTP=ntp.mydomain.com
NTP=au.pool.ntp.org
</pre>
</pre>


== Restart Services ==
== Restart Services ==
<pre>
<pre>
systemctl daemon-reload
systemctl restart systemd-timesyncd
systemctl restart systemd-timesyncd
</pre>
</pre>
Line 33: Line 34:
#NTP=
#NTP=
#FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
#FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048
</pre>
</pre>


[[Category : Raspbian]]
[[Category : Raspbian]]

Latest revision as of 06:25, 7 July 2021

To change the default NTP server used for Date/Time queries.

Config File

vi /etc/systemd/timesyncd.conf
NTP=au.pool.ntp.org

Restart Services

systemctl daemon-reload
systemctl restart systemd-timesyncd

Default file

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See timesyncd.conf(5) for details.

[Time]
#NTP=
#FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048