Skip to content

m1kc/motd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

A portable fast MOTD similar to Ubuntu's.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages