{"id":1868,"date":"2022-08-13T15:38:35","date_gmt":"2022-08-13T13:38:35","guid":{"rendered":"https:\/\/www.ntp.od.ua\/?page_id=1868"},"modified":"2022-08-13T15:38:36","modified_gmt":"2022-08-13T13:38:36","slug":"linux-debian","status":"publish","type":"page","link":"https:\/\/www.ntp.od.ua\/?page_id=1868&lang=en","title":{"rendered":"Linux Debian"},"content":{"rendered":"<h3>\u00a0<\/h3>\n<h3 style=\"text-align: center;\">Configuring NTP Time Synchronization in Debian 11.3.0<\/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\/debian_EN_01.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>On the desktop, click the <span style=\"color: #ff0000;\"><strong>&#171;Activities&#187;<\/strong><\/span> button<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_02.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>In the search box, write <strong><span style=\"color: #ff0000;\">&#171;Terminal&#187;<\/span><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_03.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Opening the terminal<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_04.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Change the user to root with the command <span style=\"color: #ff0000;\"><strong>&#171;su&#187;<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_05.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<hr \/>\n<p>enter the root password, and install the ntp package with the command <span style=\"color: #ff0000;\"><strong>&#171;apt install ntp&#187;<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_06.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>We make a backup of the original config file with the command <span style=\"color: #ff0000;\"><strong>&#171;mv \/etc\/ntp.conf \/etc\/ntp.conf-&#171;<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_07.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>open an empty file <span style=\"color: #ff0000;\"><strong>&#171;nano \/etc\/ntp.conf&#187;<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_08.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>enter the lines:<\/p>\n<p><strong><span style=\"color: #ff0000;\">pool pool1.ntp.od.ua<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">tinker panic 0<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">restrict default noquery nomodify<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">restrict 127.0.0.1<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">restrict pool1.ntp.od.ua<\/span><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_09.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Close the editor with <strong><span style=\"color: #ff0000;\">&#171;CTRL+X&#187;<\/span><\/strong> then <strong><span style=\"color: #ff0000;\">&#171;Y&#187;<\/span><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_10.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>confirm the file name<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_11.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>check if everything is ok <span style=\"color: #ff0000;\"><strong>&#171;cat \/etc\/ntp.conf&#187;<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_12.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Restarting the ntp daemon <strong><span style=\"color: #ff0000;\">&#171;systemctl restart ntp&#187;<\/span><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_13.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Checking the synchronization status with the command <span style=\"color: #ff0000;\"><strong>&#171;ntpq -pn 127.0.0.1&#187;<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_14.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>\u00a0<\/p>\n<p>After a while, <span style=\"color: #ff0000;\"><strong>&#171;*asterisk&#187;<\/strong><\/span> will appear in front of the selected server as a source of accurate time<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-405 size-full\" src=\"\/wp-content\/uploads\/2022\/08\/debian_EN_15.avif\" width=\"1024\" height=\"728\" \/><\/p>\n<p>Setup completed.<\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 Configuring NTP Time Synchronization in Debian 11.3.0 \u00a0 \u00a0 On the desktop, click the &#171;Activities&#187; button \u00a0 In the search box, write &#171;Terminal&#187; \u00a0 Opening the terminal \u00a0 Change the user to root with the command &#171;su&#187; enter the &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.ntp.od.ua\/?page_id=1868&#038;lang=en\"> <span class=\"screen-reader-text\">Linux Debian<\/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":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1868","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages\/1868","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=1868"}],"version-history":[{"count":1,"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages\/1868\/revisions"}],"predecessor-version":[{"id":1869,"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages\/1868\/revisions\/1869"}],"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=1868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}