I have Raspberry Pi Model-B with the Raspbian Wheezy OS and a local NTP server. I want to synchronise my Raspberry Pi board with my local NTP server (not using the Internet). All the process must be offline, not using the Internet. What is the step-by-step process to do this?

  • I think you just add your server to /etc/ntp.conf
    – rob
    Commented Oct 24, 2014 at 7:45
  • thanks for reply how can i add my server ip ? Commented Oct 24, 2014 at 9:57

1 Answer 1


This answer is OBSOLETE. Debian 9 uses systemd-timesyncd.service

In /etc/ntpd.conf, replace the existing "server" entries with one for your server. You can use the hostname or IP address of your server.

For example:


After changing the file,

sudo service ntp restart

will restart the NTP daemon using your updated configuration.


$ sudo ntpq
ntpq> peers

to verify that it's using your host as a peer. If everything is working, you should see non-zero values in the "when" and "reach" columns.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.