{"id":322,"date":"2021-04-21T15:12:13","date_gmt":"2021-04-21T05:12:13","guid":{"rendered":"https:\/\/www.chris-newby.com\/?p=322"},"modified":"2023-11-14T21:56:02","modified_gmt":"2023-11-14T21:56:02","slug":"mtcl-banner-on-alcatel-oxe-via-bashrc-or-etc-issue-files","status":"publish","type":"post","link":"https:\/\/ale.newby.work\/?p=322","title":{"rendered":"MTCL Banner on Alcatel OxE"},"content":{"rendered":"\n<p>If you want to add a banner on the login of mtcl then do the following.<\/p>\n\n\n\n<p><strong><em>This is an updated how-to as editing the .bashrc file introduces an issue on using the mastercopy command which stops it from working!<\/em><\/strong><\/p>\n\n\n\n<p>>vi .local_profile <strong><em>or on later releases use nano .local_profile<\/em><\/strong> (unless you really like using vi) if the file doesn&#8217;t exist this will create it.<\/p>\n\n\n\n<p> (if you want it to be displayed for all logins then use \/etc\/issue (for v24) or \/etc\/issue.net (for telnet\/ssh))<br>Enter the lines that you want to display using echo -e &#8220;(text that you want)&#8221; at the end of the file<br>For formatting you can use the following, so to add 2 new lines and a tab it would be echo -e &#8220;\\n\\n\\t&#8221;<\/p>\n\n\n\n<p>Example:<br><br>echo -e &#8220;\\n\\n&#8221;<br>echo -e &#8220;\\t  <strong><em><strong><em>___________________________________________<\/em><\/strong><\/em><\/strong>&#8220;<br>echo -e &#8220;\\t | This login is restricted to &#8220;Company X employees     |&#8221;<br>echo -e &#8220;\\t | Don&#8217;t use it in any other circumstances!                      |&#8221;<br>echo -e &#8220;\\  | By order of Sys Admin                                                |&#8221;<br>echo -e &#8220;\\t  <strong><em><strong><em>___________________________________________<\/em><\/strong><\/em><\/strong>\\n\\n&#8221;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Options<\/td><td>Definition<\/td><\/tr><tr><td>-n<\/td><td>Do not print the trailing newline<\/td><\/tr><tr><td>-E<\/td><td>Disable interpretation of back-slash escaped characters<\/td><\/tr><tr><td>-e<\/td><td>Enable interpretation of backslash escapes<\/td><\/tr><tr><td>\\a<\/td><td>Alert<\/td><\/tr><tr><td>\\b<\/td><td>Backspace<\/td><\/tr><tr><td>\\c<\/td><td>Suppress trailing newline<\/td><\/tr><tr><td>\\e<\/td><td>Escape<\/td><\/tr><tr><td>\\f<\/td><td>Form feed<\/td><\/tr><tr><td>\\\\<\/td><td>backslash<\/td><\/tr><tr><td>\\n<\/td><td>New line<\/td><\/tr><tr><td>\\r<\/td><td>Carriage return<\/td><\/tr><tr><td>\\t<\/td><td>Horizontal tab<\/td><\/tr><tr><td>\\v<\/td><td>Vertical tab<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Formatting options<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-vitux wp-block-embed-vitux\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"psNH8qUmvT\"><a href=\"https:\/\/vitux.com\/how-to-output-text-on-linux-shell\/\">Bash Scripting: How to Output and Format Text on Linux Shell<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Bash Scripting: How to Output and Format Text on Linux Shell&#8221; &#8212; VITUX\" src=\"https:\/\/vitux.com\/how-to-output-text-on-linux-shell\/embed\/#?secret=jag1dmc1GH#?secret=psNH8qUmvT\" data-secret=\"psNH8qUmvT\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you want to add a banner on the login of mtcl then do the&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/ale.newby.work\/?p=322\">Read the post<span class=\"screen-reader-text\">MTCL Banner on Alcatel OxE<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-322","post","type-post","status-publish","format-standard","hentry","category-alcatel","excerpt","zoom","full-without-featured","even","excerpt-0"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MTCL Banner on Alcatel OxE - ALE @ Newby.Work<\/title>\n<meta name=\"description\" content=\"How to insert a banner when users log into a system either for a single user or for all users via .bashrc or the \/etc\/issue and \/etc\/issue.net files\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ale.newby.work\/?p=322\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MTCL Banner on Alcatel OxE - ALE @ Newby.Work\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ale.newby.work\/?p=322\" \/>\n<meta property=\"og:site_name\" content=\"ALE @ Newby.Work\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-21T05:12:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-14T21:56:02+00:00\" \/>\n<meta name=\"author\" content=\"chris.newby\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"chris.newby\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=322#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=322\"},\"author\":{\"name\":\"chris.newby\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\"},\"headline\":\"MTCL Banner on Alcatel OxE\",\"datePublished\":\"2021-04-21T05:12:13+00:00\",\"dateModified\":\"2023-11-14T21:56:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=322\"},\"wordCount\":233,\"articleSection\":[\"Alcatel\"],\"inLanguage\":\"en-AU\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=322\",\"url\":\"https:\\\/\\\/ale.newby.work\\\/?p=322\",\"name\":\"MTCL Banner on Alcatel OxE - ALE @ Newby.Work\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#website\"},\"datePublished\":\"2021-04-21T05:12:13+00:00\",\"dateModified\":\"2023-11-14T21:56:02+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\"},\"description\":\"How to insert a banner when users log into a system either for a single user or for all users via .bashrc or the \\\/etc\\\/issue and \\\/etc\\\/issue.net files\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=322#breadcrumb\"},\"inLanguage\":\"en-AU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ale.newby.work\\\/?p=322\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=322#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ale.newby.work\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MTCL Banner on Alcatel OxE\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#website\",\"url\":\"https:\\\/\\\/ale.newby.work\\\/\",\"name\":\"ALE @ Newby.Work\",\"description\":\"Phone system things\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ale.newby.work\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-AU\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\",\"name\":\"chris.newby\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-AU\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"caption\":\"chris.newby\"},\"sameAs\":[\"https:\\\/\\\/ale.newby.work\"],\"url\":\"https:\\\/\\\/ale.newby.work\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MTCL Banner on Alcatel OxE - ALE @ Newby.Work","description":"How to insert a banner when users log into a system either for a single user or for all users via .bashrc or the \/etc\/issue and \/etc\/issue.net files","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ale.newby.work\/?p=322","og_locale":"en_US","og_type":"article","og_title":"MTCL Banner on Alcatel OxE - ALE @ Newby.Work","og_url":"https:\/\/ale.newby.work\/?p=322","og_site_name":"ALE @ Newby.Work","article_published_time":"2021-04-21T05:12:13+00:00","article_modified_time":"2023-11-14T21:56:02+00:00","author":"chris.newby","twitter_card":"summary_large_image","twitter_misc":{"Written by":"chris.newby","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ale.newby.work\/?p=322#article","isPartOf":{"@id":"https:\/\/ale.newby.work\/?p=322"},"author":{"name":"chris.newby","@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027"},"headline":"MTCL Banner on Alcatel OxE","datePublished":"2021-04-21T05:12:13+00:00","dateModified":"2023-11-14T21:56:02+00:00","mainEntityOfPage":{"@id":"https:\/\/ale.newby.work\/?p=322"},"wordCount":233,"articleSection":["Alcatel"],"inLanguage":"en-AU"},{"@type":"WebPage","@id":"https:\/\/ale.newby.work\/?p=322","url":"https:\/\/ale.newby.work\/?p=322","name":"MTCL Banner on Alcatel OxE - ALE @ Newby.Work","isPartOf":{"@id":"https:\/\/ale.newby.work\/#website"},"datePublished":"2021-04-21T05:12:13+00:00","dateModified":"2023-11-14T21:56:02+00:00","author":{"@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027"},"description":"How to insert a banner when users log into a system either for a single user or for all users via .bashrc or the \/etc\/issue and \/etc\/issue.net files","breadcrumb":{"@id":"https:\/\/ale.newby.work\/?p=322#breadcrumb"},"inLanguage":"en-AU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ale.newby.work\/?p=322"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ale.newby.work\/?p=322#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ale.newby.work\/"},{"@type":"ListItem","position":2,"name":"MTCL Banner on Alcatel OxE"}]},{"@type":"WebSite","@id":"https:\/\/ale.newby.work\/#website","url":"https:\/\/ale.newby.work\/","name":"ALE @ Newby.Work","description":"Phone system things","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ale.newby.work\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-AU"},{"@type":"Person","@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027","name":"chris.newby","image":{"@type":"ImageObject","inLanguage":"en-AU","@id":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","caption":"chris.newby"},"sameAs":["https:\/\/ale.newby.work"],"url":"https:\/\/ale.newby.work\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=322"}],"version-history":[{"count":7,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions"}],"predecessor-version":[{"id":438,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions\/438"}],"wp:attachment":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}