Code Monkey home page Code Monkey logo

motd's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.