{"id":313732,"date":"2020-11-25T09:00:50","date_gmt":"2020-11-25T09:00:50","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=313732"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=313732","title":{"rendered":"\u0417\u0430\u043c\u0435\u0442\u043a\u0438 \u043f\u0440\u043e motd"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<p>motd \u2014 message of the day, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u043e\u0435 \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 \u0432 Linux-\u0441\u0438\u0441\u0442\u0435\u043c\u0443 (\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 Ubuntu).<\/p>\n<p>  <\/p>\n<p>\u0420\u0430\u043d\u044c\u0448\u0435 \u0444\u0430\u0439\u043b, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0441\u044f \u0432 <code>\/etc\/motd<\/code>, \u0441\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <code>\/etc\/update-motd.d\/<\/code>:<a name=\"habracut\"><\/a><\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\"># ls -alh \/etc\/update-motd.d\/ total 56K drwxr-xr-x  2 root root 4,0K \u044f\u043d\u0432 22  2020 . drwxr-xr-x 98 root root 4,0K \u043e\u043a\u0442 27 15:31 .. -rwxr-xr-x  1 root root 1,2K \u0430\u043f\u0440  9  2018 00-header -rwxr-xr-x  1 root root 1,2K \u0430\u043f\u0440  9  2018 10-help-text lrwxrwxrwx  1 root root   46 \u044f\u043d\u0432 22  2020 50-landscape-sysinfo -&gt; \/usr\/share\/landscape\/landscape-sysinfo.wrapper -rwxr-xr-x  1 root root 4,2K \u0430\u0432\u0433 20  2018 50-motd-news -rwxr-xr-x  1 root root  604 \u043c\u0430\u0440 21  2018 80-esm -rwxr-xr-x  1 root root 3,0K \u043c\u0430\u0440 21  2018 80-livepatch -rwxr-xr-x  1 root root   97 \u043d\u043e\u044f 12  2018 90-updates-available -rwxr-xr-x  1 root root  299 \u0438\u044e\u043d  3  2019 91-release-upgrade -rwxr-xr-x  1 root root  129 \u043d\u043e\u044f 12  2018 95-hwe-eol -rwxr-xr-x  1 root root  111 \u0441\u0435\u043d 20  2018 97-overlayroot -rwxr-xr-x  1 root root  142 \u043d\u043e\u044f 12  2018 98-fsck-at-reboot -rwxr-xr-x  1 root root  144 \u043d\u043e\u044f 12  2018 98-reboot-required<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u0432 \u2014 00, 10 \u0438 \u0442\u043f\u2026<\/p>\n<p>  <\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">Welcome to Ubuntu 18.04.5 LTS (GNU\/Linux 4.15.0-118-generic x86_64)   * Documentation:  https:\/\/help.ubuntu.com  * Management:     https:\/\/landscape.canonical.com  * Support:        https:\/\/ubuntu.com\/advantage    System information as of Fri Nov 13 14:30:00 +08 2020    System load:                    0.45   Usage of \/:                     9.8% of 109.84GB   Memory usage:                   6%   Swap usage:                     0%   Processes:                      152   Users logged in:                0   IP address for enp4s0:          192.168.106.12   IP address for enxd037454bea65: 172.17.8.58   IP address for tun0:            10.8.0.1   IP address for docker0:         172.17.0.1   * Introducing self-healing high availability clustering for MicroK8s!    Super simple, hardened and opinionated Kubernetes for production.       https:\/\/microk8s.io\/high-availability   * Canonical Livepatch is available for installation.    - Reduce system reboots and improve kernel security. Activate at:      https:\/\/ubuntu.com\/livepatch  \u041c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u044b 233 \u043f\u0430\u043a\u0435\u0442\u0430. 174 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u0430\u0441\u0430\u044e\u0442\u0441\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.  New release '20.04.1 LTS' available. Run 'do-release-upgrade' to upgrade to it.  Last login: Fri Nov 13 08:21:33 2020 from 85.192.x.214<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u043d\u043e\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u0434\u043b\u044f \u043d\u0430\u0441 \u2014 \u043d\u0435 \u0442\u0430\u043a \u043b\u0438?<\/p>\n<p>  <\/p>\n<p>\u042f \u043e\u0442\u043a\u043b\u044e\u0447\u0443 \u0447\u0430\u0441\u0442\u044c \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0441\u0432\u043e\u0451 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435.<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043c \u0444\u0430\u0439\u043b \u0438 \u0441\u0434\u0435\u043b\u0430\u044e \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\"># touch \/etc\/update-motd.d\/99-intelcom # chmod 755 \/etc\/update-motd.d\/99-intelcom<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e \u0435\u0433\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">#!\/bin\/bash echo -e '\\033[34m####################################################### #\\033[33m PBX Intelcom - VoIP \u0410\u0422\u0421 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u041e\u041e\u041e &quot;\u0418\u043d\u0442\u0435\u043b\u043a\u043e\u043c&quot; \\033[34m# #\\033[33m          www.a*p.ru  \u0442\u0435\u043b.(3532)54-0X-0Y           \\033[34m# #######################################################\\033[0m'<\/code><\/pre>\n<p>  <\/p>\n<p>\u0413\u0434\u0435 <code>-e<\/code> \u2014 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0432\u044b\u0432\u043e\u0434\u0430 Escape \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439, <code>\\033[34m<\/code> \u0438 <code>\\033[33m<\/code> \u2014 \u0446\u0432\u0435\u0442\u0430 \u0442\u0435\u043a\u0441\u0442\u0430, <code>\\033[0m<\/code> \u2014 \u0441\u0431\u0440\u043e\u0441 \u0446\u0432\u0435\u0442\u043e\u0432.<\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u0430\u043a\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0442\u0435\u043a\u0441\u0442\u0430:<br \/>  <code>\\033[30m<\/code> \u2014 \u0447\u0451\u0440\u043d\u044b\u0439;<br \/>  <code>\\033[31m<\/code> \u2014 \u043a\u0440\u0430\u0441\u043d\u044b\u0439;<br \/>  <code>\\033[32m<\/code> \u2014 \u0437\u0435\u043b\u0451\u043d\u044b\u0439;<br \/>  <code>\\033[33m<\/code> \u2014 \u0436\u0435\u043b\u0442\u044b\u0439;<br \/>  <code>\\033[34m<\/code> \u2014 \u0441\u0438\u043d\u0438\u0439;<br \/>  <code>\\033[35m<\/code> \u2014 \u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u0439;<br \/>  <code>\\033[36m<\/code> \u2014 \u0433\u043e\u043b\u0443\u0431\u043e\u0439;<br \/>  <code>\\033[37m<\/code> \u2014 \u0441\u0435\u0440\u044b\u0439.<\/p>\n<p>  <\/p>\n<p>\u0418 \u0442\u0430\u043a\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0444\u043e\u043d\u0430:<\/p>\n<p>  <\/p>\n<p><code>\\033[40m<\/code> \u2014 \u0447\u0451\u0440\u043d\u044b\u0439;<br \/>  <code>\\033[41m<\/code> \u2014 \u043a\u0440\u0430\u0441\u043d\u044b\u0439;<br \/>  <code>\\033[42m<\/code> \u2014 \u0437\u0435\u043b\u0451\u043d\u044b\u0439;<br \/>  <code>\\033[43m<\/code> \u2014 \u0436\u0435\u043b\u0442\u044b\u0439;<br \/>  <code>\\033[44m<\/code> \u2014 \u0441\u0438\u043d\u0438\u0439;<br \/>  <code>\\033[45m<\/code> \u2014 \u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u0439;<br \/>  <code>\\033[46m<\/code> \u2014 \u0433\u043e\u043b\u0443\u0431\u043e\u0439;<br \/>  <code>\\033[47m<\/code> \u2014 \u0441\u0435\u0440\u044b\u0439;<br \/>  <code>\\033[0m<\/code> \u2014 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u0441\u0435 \u0434\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>sudo run-parts \/etc\/update-motd.d<\/code> \u0438\u043b\u0438 <code>cat \/var\/run\/motd.dynamic<\/code>.<\/p>\n<p>  <\/p>\n<p><code>00-header<\/code> \u2014 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0430\u043c\u043e \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 Welcome to Ubuntu 18.04.5 LTS (GNU\/Linux 4.15.0-118-generic x86_64)<br \/>  <code>10-help-text<\/code> \u2014 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438 \u0441\u0430\u043f\u043f\u043f\u043e\u0440\u0442<br \/>  <code>50-landscape-sysinfo<\/code> \u0432\u0435\u0434\u0435\u0442 \u043a \u0441\u043f\u0440\u0438\u043f\u0442\u0443 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<br \/>  <code>50-motd-news<\/code> \u2014 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043d\u043e\u0432\u043e\u0441\u0442\u0438<br \/>  <code>80-livepatch<\/code> \u2014 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u0440\u043e Livepatch<br \/>  <code>80-esm<\/code> \u2014 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0431 Extended Security Maintenance \u2014 \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438<br \/>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043e\u0431 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u0445, \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0438 \u0442\u0434&#8230;<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u044e \u0438\u043c \u043f\u0440\u0430\u0432\u0430 <code>400<\/code>.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">Welcome to Ubuntu 18.04.5 LTS (GNU\/Linux 4.15.0-118-generic x86_64) -rwxr-xr-x  1 root root 1,2K \u0430\u043f\u0440  9  2018 00-header -r--------  1 root root 1,2K \u0430\u043f\u0440  9  2018 10-help-text lrwxrwxrwx  1 root root   46 \u0441\u0435\u043d 30 13:45 50-landscape-sysinfo -&gt; \/usr\/share\/landscape\/landscape-sysinfo.wrapper -r--------  1 root root 4,9K \u0430\u0432\u0433 14 02:59 50-motd-news -r--------  1 root root  604 \u043c\u0430\u0440 22  2018 80-esm -r--------  1 root root 3,0K \u043c\u0430\u0440 22  2018 80-livepatch -r--------  1 root root   97 \u0438\u044e\u043d 27  2018 90-updates-available -r--------  1 root root  299 \u043c\u0430\u044f 19  2017 91-release-upgrade -rwxr-xr-x  1 root root  165 \u0444\u0435\u0432 17  2020 92-unattended-upgrades -rwxr-xr-x  1 root root  129 \u0438\u044e\u043d 27  2018 95-hwe-eol -rwxr-xr-x  1 root root  111 \u043e\u043a\u0442 27  2017 97-overlayroot -rwxr-xr-x  1 root root  142 \u0438\u044e\u043d 27  2018 98-fsck-at-reboot -rwxr-xr-x  1 root root  144 \u0438\u044e\u043d 27  2018 98-reboot-required -rwxr-xr-x  1 root root  324 \u043d\u043e\u044f 13 13:36 99-intelcom<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ks\/cz\/nq\/kscznqvrrtivyt0qr65ntbkqhhu.png\"><\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/529746\/\"> https:\/\/habr.com\/ru\/post\/529746\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<p>motd \u2014 message of the day, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u043e\u0435 \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 \u0432 Linux-\u0441\u0438\u0441\u0442\u0435\u043c\u0443 (\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 Ubuntu).<\/p>\n<p>  <\/p>\n<p>\u0420\u0430\u043d\u044c\u0448\u0435 \u0444\u0430\u0439\u043b, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0441\u044f \u0432 <code>\/etc\/motd<\/code>, \u0441\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <code>\/etc\/update-motd.d\/<\/code>:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-313732","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/313732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=313732"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/313732\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=313732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=313732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=313732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}