Re: [chrony-users] Configuring chronyd w/o real time source |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
Read the manual
you set up chronyd on your "server". You can set the time by wristwatch if need
be.
chronyc
type help to see a list of the commands and concentrate on the ones under
Manual time input, especially settime
settime Sep 25, 2015 16:30:05
(or whatever time you want to set it to). It will then "freewheel" and will
reports its best guess of the current time to anyone that asks.
Note that since it has no idea what the real time is, it will not be able to
correct for clock drift (eg if it is running 1% faster than real time, it will
not know) except if you put in a number of settime commands (eg once a day)
from a clock that you know to be right, it will try to use those to estimate
and correct ay speed differences from that right time.
That is it.
Your /etc/chrony.conf will be minimal since you have no time servers that you
can access, except your wristwatch when you run settime
About all you need is
dumponexit
rtconutc (if your rtc clock is set to UTC and not local time),
allow 192.168.0.0/16 (assuming tha the other computers who will be
getting time from your machine are on that network
And that is about it.
So, it will all depend on how accurately you can enter the time
When you hit return on the settime command, the computer will assume that that
time is exact at that instant.
William G. Unruh __| Canadian Institute for|____ Tel: +1(604)822-3273
Physics&Astronomy _|___ Advanced Research _|____ Fax: +1(604)822-5324
UBC, Vancouver,BC _|_ Program in Cosmology |____ unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1 ____|____ and Gravity ______|_ www.theory.physics.ubc.ca/
On Thu, 12 Mar 2020, Dominik Vogt wrote:
Hi folks,
for a test setup I need to configure chronyd to run in an isolated
network without internet access and without any real time source
other than the system clock. The only requirement is that the
server replies to any client request with the system time and
claims that its absolutely precise.
Using the system clock is fine, or /dev/rtc or any other source
that is usually present on a vanilla Linux system.
(Unfortunately my knowledge of ntp in general and chrony
specifically is close to zero, so I really need some hint on
this.)
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.