{"id":1523,"date":"2022-08-07T14:37:04","date_gmt":"2022-08-07T12:37:04","guid":{"rendered":"https:\/\/www.ntp.od.ua\/?page_id=1523"},"modified":"2022-08-07T14:37:04","modified_gmt":"2022-08-07T12:37:04","slug":"linux-ubuntu","status":"publish","type":"page","link":"https:\/\/www.ntp.od.ua\/?page_id=1523&lang=en","title":{"rendered":"Linux Ubuntu"},"content":{"rendered":"<h3>\u00a0<\/h3>\n<h3 style=\"text-align: center;\">Configuring time synchronization using the &#171;NTP&#187; protocol in the distribution &#171;Ubuntu&#187; version 22.04<\/h3>\n<p>\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/VirtualBox_ubuntu_en_07_08_2022_15_12_34.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>While on the desktop, press CTRL+ALT+T<\/p>\n<p>\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/VirtualBox_ubuntu_en_07_08_2022_15_12_45.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>a terminal will open<\/p>\n<p>\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/VirtualBox_ubuntu_en_07_08_2022_15_13_05.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>install the NTP package, for this we write the command in the terminal: <strong><span style=\"color: #ff0000;\">sudo apt install ntp<\/span><\/strong><\/p>\n<p>we agree <strong><span style=\"color: #ff0000;\">Y<\/span><\/strong> with the installation of additional packages<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/VirtualBox_ubuntu_en_07_08_2022_15_14_08.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>edit the configuration file with the command: <strong><span style=\"color: #ff0000;\">sudo nano \/etc\/ntp.conf<\/span><\/strong><\/p>\n<p>\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/VirtualBox_ubuntu_en_07_08_2022_15_15_25.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<hr \/>\n<p><em>driftfile \/var\/lib\/ntp\/ntp.drift<\/em><\/p>\n<p><em>leapfile \/usr\/share\/zoneinfo\/leap-seconds.list<\/em><\/p>\n<p><em>pool pool1.ntp.od.ua<\/em><\/p>\n<p><em>pool pool2.ntp.od.ua<\/em><\/p>\n<p><em>restrict -4 default kod notrap nomodify nopeer noquery limited<\/em><\/p>\n<p><em>restrict -6 default kod notrap nomodify nopeer noquery limited<\/em><\/p>\n<p><em>restrict 127.0.0.1<\/em><\/p>\n<p><em>restrict ::1<\/em><\/p>\n<p><em>restrict source notrap nomodify noquery<\/em><\/p>\n<p><em>restrict pool1.ntp.od.ua<\/em><\/p>\n<p><em>restrict pool2.ntp.od.ua<\/em><\/p>\n<hr \/>\n<p>after editing, press CTRL+X and agree to save<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/VirtualBox_ubuntu_en_07_08_2022_15_15_44.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>restart the ntp daemon with the command: <strong><span style=\"color: #ff0000;\">sudo service ntp restart<\/span><\/strong><\/p>\n<p>\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/VirtualBox_ubuntu_en_07_08_2022_15_16_21.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>periodically check the state of synchronization with the team: <strong><span style=\"color: #ff0000;\">ntpq -pn<\/span><\/strong><\/p>\n<p>\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/VirtualBox_ubuntu_en_07_08_2022_15_25_38.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>an * star appeared in front of the server with which synchronization is taking place<\/p>\n<p>setup is complete.<\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 Configuring time synchronization using the &#171;NTP&#187; protocol in the distribution &#171;Ubuntu&#187; version 22.04 \u00a0 While on the desktop, press CTRL+ALT+T \u00a0 a terminal will open \u00a0 install the NTP package, for this we write the command in the terminal: &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.ntp.od.ua\/?page_id=1523&#038;lang=en\"> <span class=\"screen-reader-text\">Linux Ubuntu<\/span> \u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1068,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-1523","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages\/1523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1523"}],"version-history":[{"count":2,"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages\/1523\/revisions"}],"predecessor-version":[{"id":1525,"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages\/1523\/revisions\/1525"}],"up":[{"embeddable":true,"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages\/1068"}],"wp:attachment":[{"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}