1

I have two Linux computers connected to each other via Ethernet crossover cable.

No Internet Connection!

How can I make the first computer always sync to the time of the second computer?

I tried playing with NTP, but could not figure out how to make it work in this situation.

Please, help me with any documentation that has a simplified step by step guidance for beginners like me.

Update

Two mini PCs with Linux Mint 19 Cinnamon operating systems Cinnamon version 3.8.9

What I tried so far:

I tried to apply the approaches on these postings, for example:

I assigned two IP addresses for the two machines.

The first machine IP 10.0.0.1

The second machine IP 10.0.0.2

I installed the ntp ntpupdate on the first machine.

The 1st machine is connected to the 2nd machine via Ethernet crossover cable.

Only the 1st machine is connected to the wifi.

In the Command line Terminal in the 2nd machine I wrote:

sudo ntpdate 10.0.0.1

what I got was:

no server suitable for synchronization found

Then I tried the other servers that I found inside the ntp.conf file and didn't work too.

I pinged 10.0.0.2 from the 1st machine and it worked. Bytes of Data were transferring normally.

I realize/feel that I sound so stupid the way I am doing this but because I don't know how to do it. That's why I need help here.

dani
  • 25

1 Answers1

0

What is the required precision? If it is about 1 second, then maybe you do not need NTP.

If you need accurate time source, do not use the internal time clock. You need an external source (e.g. a GPS based NTP server). For details read about NTP strata.

See also: How to force locally isolated ntpd update time

There is a recent development in Chip-scale Atomic Clock like Microsemi SA.45s CSAC which cost around $3000 according to Wikipedia page.

For best precision you can use: International Atomic Time With NTP at this moment you should expect precision in the range 1μs-20μs.