2021-11-03 11:25:41 +01:00
2021-04-19 13:15:16 +02:00
2021-10-04 14:43:53 +02:00
2021-10-04 14:42:54 +02:00

Motd

Here is motd for Claranet.

Preview

basic

Requirements

Your system must use an UTF-8 locale

Ensure that your $LANG variable equals xx_XX.UTF-8

Installation

Banner

Copy motd file to /etc/banner:

curl -s https://raw.githubusercontent.com/claranet/motd/master/banner -o /etc/banner

Be sure to enable Banner /etc/banner in /etc/ssh/sshd_config

MOTD

Using Ansible

You can use this Ansible role to install this MOTD : https://github.com/claranet/ansible-role-motd

It do a low level installation so it is compatible with all Linux distros

Manual

It is compatible with update-motd used by Ubuntu.

mkdir /etc/update-motd.d
curl -s https://raw.githubusercontent.com/claranet/motd/master/scripts/00-basic -o /etc/update-motd.d/00-basic
chmod +x /etc/update-motd.d/00-basic

For not compatible distributions you will have to add the following line to /etc/pam.d/sshd and /etc/pam.d/login:

session    optional   pam_exec.so          stdout /etc/update-motd.d/00-basic

You could also want to disable the "last login" information by configuring PrintLastLog to no in /etc/ssh/sshd_config.

Description
Claranet Unix Motd
Readme 107 KiB
Languages
Shell 100%