{"id":1056,"date":"2021-04-17T20:18:38","date_gmt":"2021-04-17T19:18:38","guid":{"rendered":"https:\/\/www.marcinwilk.eu\/?page_id=1056"},"modified":"2023-02-03T20:04:01","modified_gmt":"2023-02-03T19:04:01","slug":"motd-dla-el","status":"publish","type":"page","link":"https:\/\/www.marcinwilk.eu\/en\/projects\/linux-scripts\/motd-dla-el\/","title":{"rendered":"MOTD for EL"},"content":{"rendered":"This will install colorful and nice motd (message of the day) with some system informations.<br \/>\nMOTD is generated with scripts, that will be extracted to \/etc\/profile.d where you may modify them to suite your needs.<br \/>\nfail2ban and docker stats will not be shown if user do not have correct permissions for that.<br \/>\nMain install script motd-el.sh &#8211; and the source files .sh used to create it are on github here:<a href=\"https:\/\/github.com\/nicrame\/Linux-Scripts\/tree\/master\/MOTD-EL\" target=\"_blank\" rel=\"noopener\"> https:\/\/github.com\/nicrame\/Linux-Scripts\/tree\/master\/MOTD-EL<\/a><\/p>\n<p><a href=\"https:\/\/www.marcinwilk.eu\/wp-content\/2021\/04\/motd-el.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1057\" src=\"https:\/\/www.marcinwilk.eu\/wp-content\/2021\/04\/motd-el-300x278.png\" alt=\"\" width=\"300\" height=\"278\" srcset=\"https:\/\/www.marcinwilk.eu\/wp-content\/2021\/04\/motd-el-300x278.png 300w, https:\/\/www.marcinwilk.eu\/wp-content\/2021\/04\/motd-el.png 721w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a>To install use this command:<\/p>\n<div class=\"su-quote su-quote-style-default\"><div class=\"su-quote-inner su-u-clearfix su-u-trim\">sudo sh -c \"wget -q <a href=\"https:\/\/raw.githubusercontent.com\/nicrame\/Linux-Scripts\/master\/MOTD-EL\/motd-el.sh\" rel=\"nofollow\">https:\/\/raw.githubusercontent.com\/nicrame\/Linux-Scripts\/master\/MOTD-EL\/motd-el.sh<\/a> &amp;&amp; chmod +x motd-el.sh &amp;&amp; .\/motd-el.sh\"<\/div><\/div>\n<p>You may also add system administrator email address as argument, like that:<\/p>\n<div class=\"su-quote su-quote-style-default\"><div class=\"su-quote-inner su-u-clearfix su-u-trim\">sudo sh -c \"wget -q <a href=\"https:\/\/raw.githubusercontent.com\/nicrame\/Linux-Scripts\/master\/MOTD-EL\/motd-el.sh\" rel=\"nofollow\">https:\/\/raw.githubusercontent.com\/nicrame\/Linux-Scripts\/master\/MOTD-EL\/motd-el.sh<\/a> &amp;&amp; chmod +x motd-el.sh &amp;&amp; .\/motd-el.sh admin@email\"<\/div><\/div>\n<p>Most of the work is done using scripts published here: <a href=\"https:\/\/github.com\/yboetz\/motd\">https:\/\/github.com\/yboetz\/motd<\/a><\/p>\n<p>Tested on: CentOS 7\/8, RHEL 8, Fedora 33, RockyLinux 8, Debian 11.<br \/>\nChangelog:<br \/>\nv 1.6 &#8211; 30.08.2022<br \/>\nDetecting if running from cron job, and then skip any operation (so it will not mess cron logs).<br \/>\nDownload script files from GitHub instead of extracting from script file.<br \/>\nChecking if running user is root.<br \/>\nv 1.5 &#8211; 08.06.2022<br \/>\nAdd Debian 11 support.<br \/>\n<span class=\"pl-c\">Ingore user locale settings that may broke output.<\/span><br \/>\nv 1.4 &#8211; 15.03.2021<br \/>\nAdd full file path for last command so it will work when sudo is used.<br \/>\nFix for correct EPEL repo installing on EL7.<br \/>\nv 1.3 &#8211; 13.03.2021<br \/>\nAdd monthly stats of fail2ban script.<br \/>\nAdd docker containers list script.<br \/>\nChanged some colors to work better on white background.<br \/>\nShow more information while processing installer and system operator argument support.<br \/>\nv 1.2 &#8211; 13.03.2021<br \/>\nLittle fixes.<br \/>\nv 1.1 &#8211; 12.03.2021<br \/>\nFirst release, tested on CentOS 7.<br \/>\nv 1.0 &#8211; 11.03.2021<br \/>\nPlay at home, tested on RHEL 8 and CentOS 8.\n<input class=\"fooboxshare_post_id\" type=\"hidden\" value=\"1056\"\/>","protected":false},"excerpt":{"rendered":"<p>This will install colorful and nice motd (message of the day) with some system informations. MOTD is generated with scripts, that will be extracted to \/etc\/profile.d where you may modify them to suite your needs. fail2ban and docker stats will not be shown if user do not have correct permissions for that. Main install script &hellip; <a href=\"https:\/\/www.marcinwilk.eu\/en\/projects\/linux-scripts\/motd-dla-el\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> \"MOTD for EL\"<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1179,"menu_order":5,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1056","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/pages\/1056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/comments?post=1056"}],"version-history":[{"count":0,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/pages\/1056\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/pages\/1179"}],"wp:attachment":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/media?parent=1056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}