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

learn more… | top users | synonyms

48
votes
7answers
118k views

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 ...
18
votes
2answers
23k views

How to configure NTP time synchronization on a server?

I would like to configure my Ubuntu 12.04 server to synchronize its clock with a specific NTP server. Where to set this up?
14
votes
4answers
5k views

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 ...
14
votes
2answers
21k views

Where does ntpdate get its settings from and what is the “no servers can be used” error about?

When I run ntpdate on its own, I get the following output: 8 Jun 15:47:46 ntpdate[31251]: no servers can be used, exiting If I run it with the -q ntp.ubuntu.com switch, it seems to query just ...
13
votes
4answers
24k views

What is the command to update time and date from internet

What is the command to update time and date from Internet. Is there any application that allows me to do so graphically?
12
votes
2answers
16k views

Unable to synchronize time using NTP

When I try to synchronize time using NTP. Using the below command sudo ntpdate -b pool.ntp.org I get this error saying NTP socket is in use. How to fix this? 18 Jan 05:53:49 ntpdate[21340]: the ...
12
votes
6answers
38k views

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 ...
11
votes
3answers
19k views

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 ...
11
votes
8answers
9k views

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 ...
7
votes
2answers
4k views

Clock drift even though NTPD running

I'm having a problem with the clock drifting on my PC. I'M running Ubuntu 10.10 on an somewhat crusty IBM e-server (1.5GB RAM, 2.4GHz CPU) ntpd is running (started at run level 2) servers are ...
7
votes
1answer
916 views

How do I add a specific time-server?

At work I can only connect to a specific ntp time-server. Under Ubuntu 10.10 I was able to add that server somewhere under time/date settings. Now under Ubuntu 11.04 I cannot find that option anymore. ...
6
votes
2answers
14k views

ntpdate: no server suitable for synchronization found

My clock is off, so I would like to synchronize it using ntpdate. I tried several different NTP servers, but for some reason I always get the following error message: $ sudo ntpdate ntp.ubuntu.com 4 ...
6
votes
3answers
3k views

How can I force Ubuntu to use the BIOS internal clock instead of NTP or whatever its being used?

My clock starts running out of sync in Ubuntu which doesn't happen in Windows. The problem is that it just starts losing time after a moment of syncing it with an NTP server, that means the clock is ...
6
votes
1answer
638 views

Clock stops ticking when inactive, causing drift

The clock applet drifts in time. Clock is set to "synchronize with internet ..." so it is correct at startup, but then if I stay inactive for some time, may be 5 min as well as 1 hour, the clock stops ...
5
votes
2answers
9k views

What units does the ntp drift file use?

When the ntpd daemon is running, the file: /var/lib/ntp/ntp.drift gets updated periodically. Example: 17:20 hostname 118 ~> ls -l /var/lib/ntp/ntp.drift -rw-r--r-- 1 ntp ntp 7 May 20 16:46 ...
4
votes
2answers
2k views

Ubuntu inside virtual machine: ntpd or ntpdate or ??? to avoid clock drift

Problem: ntpd, when installed on a virtual machine running Ubuntu (I've had this on hosts with a variety of hypervisors such as KVM and VMware ESX) seem to be prone to severe clock drift. I haven't ...
4
votes
3answers
5k views

Can I use NTP service through a proxy?

Can I use NTP service through proxy? how to do it? I want NTP auto sync my clock through proxy.
4
votes
2answers
1k views

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 ...
4
votes
3answers
21k views

how do I disable ntpd?

I'm running Ubuntu in a VM. How do I disable ntpd?
4
votes
2answers
5k views

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 ...
4
votes
1answer
2k views

Disable daily anacron mail updates

Every day, I get the following mail delivered by postfix: From: Anacron <root@name.domain> To: root@name.domain Subject: Anacron job 'cron.daily' on name Content-Type: text/plain; ...
3
votes
1answer
7k views

ntpd vs ntpdate: pros and cons

In order to keep the time accurate on a Ubuntu system one can either: Run the ntpd (network time protocol daemon) which will run all the time and continuously adjust the system time when clocks ...
3
votes
2answers
24k views

How do I setup a local NTP server?

I installed NTP server on Ubuntu Server 10.04 using: sudo apt-get install ntp The NTP daemon seems working and listening on the 123 port. However, I was not able to get the time from another ...
3
votes
2answers
2k views

Time sync between ubuntu and windows

Iam working as a linux admin. In our company we are using a ubuntu server with windows clients. The time in each clients are not same. Is it possible to sync time from ubuntu server with the windows ...
3
votes
4answers
18k views

“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 ...
3
votes
1answer
219 views

Time server not being used

I have 4 PCs running 10.10 and they all are configured with the same time servers. However, one of them was 6 minutes wrong and it obviously wasn't getting its time synchronized via the defined ...
2
votes
3answers
8k views

Timezone appears to be set correctly, but time is 7 hours off

I'm installing ubuntu 12.04. On the time/date settings, I tried to click on Seattle (where I am), but it only registered Vancouver. I modified the ntp config files to use the north american pool, if ...
2
votes
2answers
598 views

What is the package and background process for “network time”?

What is the background process of "network time" in gnome control center (gnome system settings)? Is there a package providing this feature? I've noticed that neither ntp nor openntpd are installed ...
2
votes
1answer
58 views

NTP: Use unprivileged ports

I have had some trouble with ntdpate on EC2, which was solved by using the -u argument for unprivileged ports: $ sudo ntpdate -u ntp.nasa.gov time-b.nist.gov I know that ntpd is better than a ...
2
votes
1answer
565 views

How can I connect to a specific NTP server?

I have an NTP server I want to connect to. I know its IP address. How can I connect to it through the command line?
2
votes
1answer
48 views

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 ...
2
votes
0answers
179 views

NTPD segfaults on 12.04 LTS (64-bit)

Fresh install of Ubuntu 12.04 LTS. Installed ntp, but starting the service only results in the following error: grsec: Segmentation fault occurred at 0000000000000008 in /usr/sbin/ntpd[ntpd:28951] ...
2
votes
0answers
42 views

Clock issue in Ubuntu 12.10 [duplicate]

I could see that my clock does not work right. For example, now it's 15:49, and Ubuntu has 16:10. It takes the time from Internet and I don't know why change it when it wants. /etc/default/ntp it ...
1
vote
1answer
4k views

How to change time servers?

I'm behind a firewall, so I can't access pool.ntp.org or Ubuntu's own time servers directly, and I'd like to change the time servers for my system. When googling, I find references to missing manpages ...
1
vote
1answer
2k views

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 ...
1
vote
2answers
162 views

How do I set time for use on a server where microseconds are important?

Lets say you have a server that stores records, and the time stamp that goes into the mysql/postgres/text-file/whatever is vital to be accurate (lets pretend it's a physics experiment, or bank ...
1
vote
1answer
574 views

Unable to locate ntpd package

I am trying to install ntp for my server. However, on running sudo apt-get install ntpd i get the response Unable to locate package ntpd. I have run sudo apt-get update and the problem still remains
1
vote
1answer
1k views

Show Time drift relative to a time Server

I want to monitor the time drift on my workstation. How can I compare my local time to a timeserver like pool.ntp.org and show the difference?
1
vote
1answer
654 views

ntpdate “ no server suitable for synchronization found”

I have tried to disable the firewall and allow the port 123 as explained in other questions, but it didnt help me, it keeps telling me $ sudo ntpdate -u pool.ntp.org 5 May 05:41:40 ntpdate[3614]: ...
1
vote
2answers
2k views

“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 ...
1
vote
1answer
789 views

ntp date not showing the correct time [duplicate]

I was having an issue in which the time my ubuntu machine was showing is 5 hours ahead of my standard time. So I installed ntpd for that using apt-get install ntp after that I restarted ntp but ...
1
vote
0answers
46 views

server time drift not fixed by ntp.conf

This question was asked a lot in the past, but since ntpdate has been depricated, I'm having issues finding answers that work via ntp.conf. I've read a lot about setting a cron job for ntpdate is a ...
1
vote
0answers
33 views

start ntpd -qg after network connection

I am trying to synchronise two machines that connected over ad-hoc network. None of the computers are connected to the internet. One computer doesn't have a Real Time Clock, so everytime I reset it, ...
1
vote
0answers
48 views

Is there a program for analyzing NTP server statistics?

I'm running Ubuntu 12.04 and have the NTP server running, apparently OK. I run the Meinberg NTP server on my two Windows 7 boxes and use its associated server monitor to keep track of what it's up to. ...
1
vote
0answers
134 views

NTP service, offset increasing after sync

I have installed Ubuntu 12.10 version on my PC. I am running NTP service having NTP server as GPS. I found that when we start NTP service by ntp start command, PC is able to sync with GPS as I get ...
1
vote
0answers
356 views

Synchronise clocks on ubuntu running in EC2?

I've got three servers running on AWS EC2 using official Ubuntu AMIs using paravirtualisation. I have noticed their clocks are out of sync by about a minute. NTP is not installed by default in the ...
1
vote
0answers
105 views

How to configure NTP with permanent slew adjustments?

There are several questions that I hope the community can assist with: Is the following approach correct and a recommended best practice? Would ntpd with the -x option be persistent even after a ...
1
vote
0answers
174 views

system clock is 5.5 ahead although ntp

time zone here is Asia/Tehran, but the ubuntu time is 5H30M ahead of local time. I've checked configs and even installed ntp server, nothing seem to fix this, sudo dpkg-reconfigure tzdata Current ...
1
vote
2answers
402 views

System time is 12 hours ahead [closed]

I use ntpd to set the time on my server to GMT and it works however it always sets the time 12 hours ahead. It says it is GMT and it doesn't give any errors when I run ntpd. Any ideas to fix this? ...
0
votes
2answers
107 views

How to sync time ubuntu desktop 13.10 client with Centos6.4 server using ntp

I have NTP server setup on my CentOS6.4 server and am trying to sync my Ubuntu 13.10 Desktop (AMD) client with it. I figured this would be easy having heard positive things about Ubuntu but it's not ...