{"id":471,"date":"2010-04-08T14:45:13","date_gmt":"2010-04-08T19:45:13","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=471"},"modified":"2010-04-08T14:45:13","modified_gmt":"2010-04-08T19:45:13","slug":"install-ntp-debian-or-ubuntu","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2010\/04\/install-ntp-debian-or-ubuntu\/","title":{"rendered":"Install NTP Debian or Ubuntu"},"content":{"rendered":"<p>I wanted a network time protocol server running on my Ubuntu server &#8211; so I could point various other computer-related items to that instead of hitting the internet.<\/p>\n<p>Login as root on your Ubuntu server<br \/>\n<code>apt-get remove ntpdate<\/code><br \/>\n<code>apt-get install ntp<\/code><br \/>\n<code>nano \/etc\/ntp.conf<\/code><\/p>\n<p>I have the following servers in my list:<\/p>\n<blockquote><p>server ntp.ubuntu.com<br \/>\nserver us.pool.ntp.org<br \/>\nserver 10.1.0.14 (a MS domain controller)<\/p><\/blockquote>\n<p>Then under the restrict for users (at the bottom of the config file):<br \/>\n<code>restrict 10.4.0.0 mask 255.255.255.0 nomodify notrap<\/code><br \/>\n<code>restrict 10.1.0.0 mask 255.255.255.0 nomodify notrap<\/code><br \/>\n<code>restrict 10.2.0.0 mask 255.255.255.0 nomodify notrap<\/code><br \/>\n<code>restrict 10.3.0.0 mask 255.255.255.0 nomodify notrap<\/code><\/p>\n<p><code>Ctrl + X<\/code><br \/>\n<code>Y<\/code><br \/>\n<code>\/etc\/init.d\/ntp restart<\/code><\/p>\n<p>You can see what servers are giving you data with this:<br \/>\n<code>ntpq -np<\/code><\/p>\n<p>You can always run ntpdate ip_of_server to update on the client side:<br \/>\n<code>ntpdate 10.4.0.253<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted a network time protocol server running on my Ubuntu server &#8211; so I could point various other computer-related items to that instead of hitting the internet. Login as root on your Ubuntu server apt-get remove ntpdate apt-get install ntp nano \/etc\/ntp.conf I have the following servers in my list: server ntp.ubuntu.com server us.pool.ntp.org &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2010\/04\/install-ntp-debian-or-ubuntu\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install NTP Debian or Ubuntu<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-471","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=471"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/471\/revisions"}],"predecessor-version":[{"id":472,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/471\/revisions\/472"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}