{"id":5199,"date":"2014-07-04T23:28:00","date_gmt":"2014-07-04T15:28:00","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=5199"},"modified":"2023-09-18T15:44:27","modified_gmt":"2023-09-18T15:44:27","slug":"how-to-install-and-configure-ntp-server-on-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-and-configure-ntp-server-on-ubuntu-14-04\/","title":{"rendered":"How to Install and Configure NTP Server on Ubuntu 14.04"},"content":{"rendered":"<p>The Network Time Protocol (NTP) is used to synchronize between computer systems over the network. Time synchronization is very crucial to determine when events happened to computers system or server systems. NTP will be very useful when we want to implement replication between servers. NTP uses 123\/UDP protocol. Please make sure UDP port from each client to NTP has been opened. This article will describe how to install and configure NTP server on <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-ubuntu-beginners-guide-ubuntu-linux-distro\/\">Ubuntu<\/a> 14.04 server.<\/p>\n<p>1. Install ntp service :<\/p>\n<pre>\r\nehowstuff@ubuntu14:~$ sudo apt-get install ntp -y\r\n<\/pre>\n<p>2. Configure NTP service :<\/p>\n<pre>\r\nehowstuff@ubuntu14:~$ sudo vi \/etc\/ntp.conf\r\n<\/pre>\n<p>For Malaysia, add the following NTP servers :<\/p>\n<pre>\r\nserver 0.asia.pool.ntp.org\r\nserver 1.asia.pool.ntp.org\r\nserver 2.asia.pool.ntp.org\r\nserver 3.asia.pool.ntp.org\r\n<\/pre>\n<p>3. Once configuration file updated, restart ntp to take affect :<\/p>\n<pre>\r\nehowstuff@ubuntu14:~$ sudo service ntp restart\r\n * Stopping NTP server ntpd                                                                  [ OK ]\r\n * Starting NTP server ntpd                                                                  [ OK ]\r\n<\/pre>\n<p>4. Verify that NTP service is synchronizing to remote NTP servers :<\/p>\n<pre>\r\nehowstuff@ubuntu14:~$ sudo ntpq -p\r\n<\/pre>\n<p>Example :<\/p>\n<pre>\r\nehowstuff@ubuntu14:~$ sudo ntpq -p\r\n     remote           refid      st t when poll reach   delay   offset  jitter\r\n==============================================================================\r\n balthasar.gimas 65.32.162.194    3 u    1   64    1  146.094  -10.741   0.000\r\n chobi.paina.jp  .INIT.          16 u    -   64    0    0.000    0.000   0.000\r\n 194.27.44.55    .INIT.          16 u    -   64    0    0.000    0.000   0.000\r\n 202-65-114-202. .INIT.          16 u    -   64    0    0.000    0.000   0.000\r\n europium.canoni .INIT.          16 u    -   64    0    0.000    0.000   0.000\r\n<\/pre>\n<p>5. Configure NTP for Client :<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-ntp1.png\" alt=\"ubuntu14-ntp1\" width=\"404\" height=\"341\" class=\"alignnone size-full wp-image-5201 lazyload\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-ntp1.png 404w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-ntp1-300x253.png 300w\" data-sizes=\"(max-width: 404px) 100vw, 404px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 404px; --smush-placeholder-aspect-ratio: 404\/341;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Network Time Protocol (NTP) is used to synchronize between computer systems over the network. Time synchronization is very crucial to determine when events happened to computers system or server&#8230;<\/p>\n","protected":false},"author":6,"featured_media":5200,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2064,1073],"tags":[1611,1856,1859],"class_list":["post-5199","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ntp","category-ubuntu","tag-ntp-server","tag-ubuntu","tag-ubuntu-14-04-lts"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=5199"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5199\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/5200"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=5199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=5199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=5199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}