{"id":1784,"date":"2022-08-12T22:17:35","date_gmt":"2022-08-12T20:17:35","guid":{"rendered":"https:\/\/www.ntp.od.ua\/?page_id=1784"},"modified":"2022-08-12T22:17:35","modified_gmt":"2022-08-12T20:17:35","slug":"linux-slackware","status":"publish","type":"page","link":"https:\/\/www.ntp.od.ua\/?page_id=1784&lang=en","title":{"rendered":"Linux Slackware"},"content":{"rendered":"<p>Linux Slackware 15.0 comes with the <span style=\"color: #ff0000;\"><strong>&#171;NTPD&#187;<\/strong><\/span> daemon as standard, which is a full-featured client and server for time synchronization.<\/p>\n<p>By default, it is not enabled, our task is to configure <span style=\"color: #ff0000;\"><strong>&#171;NTPD&#187;<\/strong><\/span> and provide autorun<\/p>\n<p>To do this, on the desktop, at the bottom left, click <span style=\"color: #ff0000;\"><strong>&#171;Kmenu&#187;<\/strong><\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_01.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-167\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_01.avif\" alt=\"slackware15_RU_01\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Menu will appear<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_02.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-168\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_02.avif\" alt=\"slackware15_EN_02\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Go to the <span style=\"color: #ff0000;\"><strong>&#171;System&#187;<\/strong><\/span> section, then <span style=\"color: #ff0000;\"><strong>&#171;Konsole&#187;<\/strong><\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_03.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-169\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_03.avif\" alt=\"slackware15_EN_03\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Launching the terminal<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_04.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-170\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_04.avif\" alt=\"slackware15_EN_04\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>We see a black screen and the command interpreter <span style=\"color: #ff0000;\"><strong>&#171;Bash&#187;<\/strong><\/span><\/p>\n<p>A prompt ending with a <span style=\"color: #ff0000;\"><strong>&#171;$&#187;<\/strong><\/span> means that we are in the console as a user with limited rights<\/p>\n<p>You need to elevate your privileges in order to be able to edit system files<\/p>\n<p>To do this, execute the command <span style=\"color: #ff0000;\"><strong>&#171;su&#187;<\/strong><\/span>, and enter the password of the superuser <span style=\"color: #ff0000;\"><strong>&#171;root&#187;<\/strong><\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_05.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-171\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_05.avif\" alt=\"slackware15_EN_05\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>After successfully changing the user, the prompt icon will change to <span style=\"color: #ff0000;\"><strong>&#171;#&#187;<\/strong><\/span>, which means we have superuser rights<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_06.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-172\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_06.avif\" alt=\"slackware15_EN_06\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Run the file manager <span style=\"color: #ff0000;\"><strong>&#171;Midnight Commander&#187;<\/strong><\/span> with the command <span style=\"color: #ff0000;\"><strong>&#171;mc&#187;<\/strong><\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_07.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-173\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_07.avif\" alt=\"slackware15_EN_07\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>In the program that opens, write the command to go to the directory with the settings files<\/p>\n<p>We enter the command <span style=\"color: #ff0000;\">&#171;<strong>cd \/etc<\/strong>&#171;<\/span><\/p>\n<p>After executing the command, look for the file <span style=\"color: #ff0000;\">&#171;<strong>ntp.conf<\/strong>&#171;<\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_08.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-174\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_08.avif\" alt=\"slackware15_EN_08\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Rename the original file with a keyboard shortcut <span style=\"color: #ff0000;\">&#171;<strong>SHIFT+F6<\/strong>&#171;<\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_09.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-175\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_09.avif\" alt=\"slackware15_EN_09\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>as a result:<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_10.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-176\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_10.avif\" alt=\"slackware15_EN_10\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Open a new empty file with the command <span style=\"color: #ff0000;\">&#171;<strong>mcedit ntp.conf<\/strong>&#171;<\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_11.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-177\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_11.avif\" alt=\"slackware15_EN_11\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>After executing the command, the editor window will open<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_12.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-178\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_12.avif\" alt=\"slackware15_EN_12\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>We enter lines with parameters:<br \/>\n<strong><span style=\"color: #ff0000;\">server pool1.ntp.od.ua<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">tinker panic 0<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">restrct default noquery nomodify<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">restrict 127.0.0.1<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">restrict pool1.ntp.od.ua<\/span><\/strong><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_13.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-179\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_13.avif\" alt=\"slackware15_EN_13\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>After completion, press the button on the keyboard <span style=\"color: #ff0000;\"><strong>&#171;F2&#187;<\/strong><\/span> and agree to save the file <span style=\"color: #ff0000;\"><strong>&#171;Save&#187;<\/strong><\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_14.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-180\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_14.avif\" alt=\"slackware15_EN_14\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Next, we will return to the file manager again.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_15.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-181\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_15.avif\" alt=\"slackware15_EN_15\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>writing a command <span style=\"color: #ff0000;\">&#171;<strong>cd rc.d<\/strong>&#171;<\/span><\/p>\n<p>In the rc.d directory we find the file <span style=\"color: #ff0000;\">&#171;<strong>inet1.conf<\/strong>&#171;<\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_16.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-182\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_16.avif\" alt=\"slackware15_EN_16\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Open it in edit mode with the key <span style=\"color: #ff0000;\">&#171;<strong>F4<\/strong>&#171;<\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_17.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-183\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_17.avif\" alt=\"slackware15_EN_17\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Assuming you are using a DHCP client and getting network settings from a DHCP server<\/p>\n<p>You may also be given the settings of the time server of your network, so that these settings do not overlap your changes in the file, you must prohibit modifying them<\/p>\n<p>To do this, in the file for the <span style=\"color: #ff0000;\"><strong>&#171;eth0&#187;<\/strong><\/span> network card, add the line <span style=\"color: #ff0000;\"><strong>&#187; DHCP_KEEPNTP[0]=&#187;yes&#187; &#171;<\/strong><\/span> if your network card has a different name, then take this into account when changing<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_18.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-184\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_18.avif\" alt=\"slackware15_EN_18\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Save the changes with <span style=\"color: #ff0000;\"><strong>&#171;F2&#187;<\/strong><\/span> and confirm with <span style=\"color: #ff0000;\"><strong>&#171;Save&#187;<\/strong><\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_19.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-185\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_19.avif\" alt=\"slackware15_EN_19\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Next, in the file manager in the same directory, we find the file <span style=\"color: #ff0000;\">&#171;<strong>rc.ntpd<\/strong>&#171;<\/span><\/p>\n<p>It currently does not have the execute bit set, which means it will not run when the system is turned on.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_20.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-186\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_20.avif\" alt=\"slackware15_EN_20\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>We fix this behavior with the command <span style=\"color: #ff0000;\">&#171;<strong>chmod 755 rc.ntpd<\/strong>&#171;<\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_21.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-187\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_21.avif\" alt=\"slackware15_EN_21\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>After executing the command, the file will change color and will have a symbol at the beginning <span style=\"color: #ff0000;\">&#171;<strong>* \u0437\u0432\u0435\u0437\u0434\u043e\u0447\u043a\u0438<\/strong>&#171;<\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_22.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-188\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_22.avif\" alt=\"slackware15_EN_22\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Exit the file manager with the keyboard key <span style=\"color: #ff0000;\">&#171;<strong>F10<\/strong>&#171;<\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_23.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-189\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_23.avif\" alt=\"slackware15_EN_23\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>At the command line, enter the command to start the time synchronization daemon <span style=\"color: #ff0000;\">&#171;<strong>\/etc\/rc.d\/rc.ntpd start<\/strong>&#171;<\/span><\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_24.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-190\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_24.avif\" alt=\"slackware15_EN_24\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>The completed launch looks like this<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_25.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-191\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_25.avif\" alt=\"slackware15_EN_25\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Checking the synchronization status with the command <span style=\"color: #ff0000;\">&#171;<strong>ntpq -pn 127.0.0.1<\/strong>&#171;<\/span><\/p>\n<p>Execution result shown pool as time source<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_26.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-192\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_26.avif\" alt=\"slackware15_EN_26\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>After a while, an IP address from the pool will be added<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_27.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-193\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_27.avif\" alt=\"slackware15_EN_27\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>After another time against the selected time source, <span style=\"color: #ff0000;\"><strong>&#171;* asterisk&#187;<\/strong><\/span> will appear<\/p>\n<p><a href=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_28.avif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-193\" src=\"\/wp-content\/uploads\/2022\/08\/slackware15_EN_28.avif\" alt=\"slackware15_EN_28\" width=\"605\" height=\"454\" \/><\/a><\/p>\n<p>Setup completed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux Slackware 15.0 comes with the &#171;NTPD&#187; daemon as standard, which is a full-featured client and server for time synchronization. By default, it is not enabled, our task is to configure &#171;NTPD&#187; and provide autorun To do this, on the &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.ntp.od.ua\/?page_id=1784&#038;lang=en\"> <span class=\"screen-reader-text\">Linux Slackware<\/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-1784","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages\/1784","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=1784"}],"version-history":[{"count":1,"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages\/1784\/revisions"}],"predecessor-version":[{"id":1785,"href":"https:\/\/www.ntp.od.ua\/index.php?rest_route=\/wp\/v2\/pages\/1784\/revisions\/1785"}],"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=1784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}