Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jon4hz/gmotd
🌅 a configurable motd generator
https://github.com/jon4hz/gmotd
message-of-the-day motd motd-message motd-plugin
Last synced: 7 days ago
JSON representation
🌅 a configurable motd generator
- Host: GitHub
- URL: https://github.com/jon4hz/gmotd
- Owner: jon4hz
- License: mit
- Created: 2022-01-26T05:56:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T11:02:33.000Z (18 days ago)
- Last Synced: 2024-10-29T13:09:30.974Z (17 days ago)
- Topics: message-of-the-day, motd, motd-message, motd-plugin
- Language: Go
- Homepage:
- Size: 405 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gmotd
## ☕️ About
`gmotd` is a configurable, dynamic motd generator, written in go.## 🚀 Installation
```
# using go directly
$ go install github.com/jon4hz/gmotd@latest# from aur (btw)
$ yay -S gmotd-bin# local pkg manager
$ VERSION=v0.1.0## debian / ubuntu
$ dpkg -i gmotd-$VERSION-linux-amd64.deb## rhel / fedora / suse
$ rpm -i gmotd-$VERSION-linux-amd64.rpm## alpine
$ apk add --allow-untrusted gmotd-$VERSION-linux-amd64.apk# homebrew (macOS & linux)
$ brew install jon4hz/homebrew-tap/gmotd
```## ✨ Usage
### 📦 Standalone
You can use gmotd as standalone binary by executing `gmotd`.
```
$ gmotd
```### 🔌 PAM
To automatically display the message of the day, you can use the `pam_exec` module to execute `gmotd`.
For example by adding the following line to `/etc/pam.d/sshd`.
```
session optional pam_exec.so stdout /usr/bin/gmotd
```## 📝 Configuration
`gmotd` loads it's configuration from the following locations:1. `gmotd.yml`
2. `~/.config/gmotd/gmotd.yml`
3. `/etc/gmotd/gmotd.yml`First come, first serve.
## 📸 Preview
![Preview](.github/assets/preview.png)## 🥂 Credits
- [yboetz/motd](https://github.com/yboetz/motd) (not sure if you'll notice any similarities tho)