Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m1kc/motd
A portable fast MOTD similar to Ubuntu's.
https://github.com/m1kc/motd
bash fish monitoring motd shell
Last synced: about 2 months ago
JSON representation
A portable fast MOTD similar to Ubuntu's.
- Host: GitHub
- URL: https://github.com/m1kc/motd
- Owner: m1kc
- Created: 2017-04-27T11:49:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-21T13:37:28.000Z (5 months ago)
- Last Synced: 2024-10-28T16:44:03.891Z (3 months ago)
- Topics: bash, fish, monitoring, motd, shell
- Language: Shell
- Homepage:
- Size: 153 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# motd
A portable fast MOTD similar to Ubuntu's.
Long story short:
![screenshot](screenshot.png)
## Installation
### As PAM login script (recommended)
1. Copy `motd.sh` to `/etc`.
2. Edit `/etc/pam.d/system-login`:```diff
-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`:```diff
-session optional pam_motd.so motd=/run/motd.dynamic
+session optional pam_exec.so stdout /etc/motd.sh
```3. (Optional) Disable static motd message:
Edit `/etc/pam.d/login` and `/etc/pam.d/sshd`
```diff
-session optional pam_motd.so noupdate
```### As fish prompt
1. Copy `motd.sh` to `/etc`.
2. Put this into your `~/.config/fish/config.fish`:```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.