3

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?

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

1 Answer 1

3

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:

server  192.168.1.15

After changing the file,

sudo service ntp restart

will restart the NTP daemon using your updated configuration.

Use

$ 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 that you have read and understand our privacy policy and code of conduct.

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