Questions tagged [ntp]

Questions about the NTP protocol and applications that use it. NTP is an acronym for Network Time Protocol, a protocol for synchronizing clocks.

The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks.1

The reference implementation of the NTP protocol is the ntpd daemon, available in Ubuntu as the package ntp. Alternative implementations include OpenNTPd, chrony, and systemd-timesyncd.

247 questions
465
votes
18 answers

How to force a clock update using ntp?

I am running Ubuntu on an ARM based embedded system that lacks a battery backed RTC. The wake-up time is somewhere during 1970. Thus, I use the NTP service to update the time to the current time. I added the following line to /etc/rc.local…
ysap
  • 6,981
26
votes
4 answers

How to set Ubuntu to synchronize my clock with a time server?

I would like Ubuntu to automatically synchronize my system clock with a timeserver at startup. However, my PC isn't connected to the Internet until after I've logged in (plus 5 - 10 seconds for good measure). How can I set it to do this?
Nathan Osman
  • 32,155
17
votes
3 answers

How do I disable ntpd?

I'm running Ubuntu in a VM. How do I disable ntpd?
user12075
17
votes
9 answers

How do I customize the NTP poll rate?

I'm setting up Ubuntu on an embedded machine that runs over a cellular connection, where we pay per byte. The machine also has no RTC battery, so it starts from a random time every boot. I'd like to ensure that the time gets synced up when the…
16
votes
4 answers

Why is Ubuntu's clock getting slower or faster?

Ubuntu's clock is off by about a half hour: Where do I even start troubleshooting this? It's allegedly being set "automatically from the Internet". How can I verify that "the Internet" knows what time it is? Details Ubuntu has had plenty of time to…
ændrük
  • 76,794
15
votes
7 answers

Unable to sync time using `ntpdate`, error: "no server suitable for synchronization found"

My ntp.conf file: user@pc[0][07:37:40]:/etc$ cat /etc/ntp.conf idriftfile /var/lib/ntp/ntp.drift server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org server pool.ntp.org Command output: user@pc[0][07:37:24]:/etc$ sudo ntpdate -dv…
wting
  • 384
14
votes
4 answers

"ntpd unable to bind to wildcard address 0.0.0.0 - another process may be running"

On my Ubuntu 13.04 (using AWS). When I start a new machine or when I reboot my machine ntp does not start and I see the following in the syslog: Jan 10 02:56:49 ntpd: unable to bind to wildcard address 0.0.0.0 - another process may be running -…
user596374
  • 263
  • 1
  • 2
  • 8
8
votes
3 answers

ntpd server always in 'INIT' mode

I'm running ntpd server in my ubuntu (10.04) machine. But it is always stays in the 'INIT' state as shown below. lyra@ws07475:~$ ntpq -p remote refid st t when poll reach delay offset …
Deepak
  • 81
7
votes
1 answer

Is there a way to make ntpd -gq run faster

This question is related to this question and this earlier question I asked on serverfault. Per my previous question, I'm interested in synchronizing the time on my machine in a fast (ideally less than a second), synchronous (if the process…
jonderry
  • 191
6
votes
3 answers

Should I run 'ntpdate' regularly or should I use the NTP service?

I think there are two solutions for keeping the time in sync on my machine. One is to run an NTP service, another is to run the ntpdate regularly by putting it in a crontab. This is how I understand it - is it correct? if yes, which solution is…
William
  • 61
  • 1
  • 2
6
votes
6 answers

"no server suitable for synchronization found" error when trying to run `ntpdate`

I am trying to setup the NTP server on Ubuntu machine. Am breaking my head in this particular issue. Getting an error ntpdate[5005]: no server suitable for synchronization found when doing the command ntpdate. Can anyone please help me out in…
Anups
  • 61
5
votes
2 answers

How to change the time server in ubuntu 12.04 LTS without installing the `ntp` package

I am on Ubuntu 12.04 LTS, in the dialog "Time and Date settings" there is a set of radio buttons labeled as "Set the time", the two options are "Manually" and "Automatically from the Internet": My current selection is "Automatically from the…
3
votes
2 answers

Use ntp orphan mode to sync time two stand-alone computers

I have two arm-based Linux (ubuntu 14.04) computers, a Jetson TK1 and TX1 that will fly on a multicopter and hence have no internet connection (they are networked together onboard). They also do not have RTC's built-in but I have added an external…
3
votes
2 answers

At what time intervals does ntpd update the time?

I'm running the latest ntpd. When I start ntpd my system time synchronizes with ntp server's ntp. After synchronizing I changed my system time manually using date command date -s '1997-02-22 12:00:00' My system time got changed as per the date…
3
votes
1 answer

Force ntpd to have offset from time server

Is it possible to force ntpd to have a fixed time offset, e.g. 10 minutes, to another server? To be able to test that our devices do nicely sync with a single ntp source, we would like enable/disable the server with offset as a source and see the…
1
2 3