Git Product home page Git Product logo

motd's Introduction

motd

A portable fast MOTD similar to Ubuntu's.

Long story short:

screenshot

Installation

As PAM login script (recommended)

  1. Copy motd.sh to /etc.
  2. Edit /etc/pam.d/system-login:
-session    optional   pam_motd.so          motd=/etc/motd
+session    optional   pam_exec.so          stdout /etc/motd.sh

For Debian ^11.6

  1. Copy motd.sh to /etc.
  2. Edit /etc/pam.d/login and /etc/pam.d/sshd:
-session    optional   pam_motd.so          motd=/run/motd.dynamic
+session    optional   pam_exec.so          stdout /etc/motd.sh
  1. (Optional) Disable static motd message:

Edit /etc/pam.d/login and /etc/pam.d/sshd

-session    optional     pam_motd.so noupdate

As fish prompt

  1. Copy motd.sh to /etc.
  2. Put this into your ~/.config/fish/config.fish:
if [ xterm != "dumb" ]
  bash /etc/motd.sh; or echo "Failed to show MOTD."
end

If you don't like scripts in /etc, feel free to choose any other location.

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.