Project

motd_forge

0.0
The project is in a healthy, maintained state
motd-forge builds a custom message-of-the-day banner showing uptime, disk and memory usage, and a random quote -- handy for homelab servers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
~> 13.0
~> 3.13
 Project Readme

motd-forge

Gem Version

Generate a randomized login banner (MOTD) for your servers: a title (rendered big via figlet if it's installed, plain text otherwise), current uptime, disk and memory usage, and a random quote.

Installation

$ gem install motd_forge

Or from source:

$ bundle install
$ bundle exec rake install

Usage

$ motd-forge
$ motd-forge --name mybox
$ motd-forge --quote-file ~/.motd-quotes.txt
$ motd-forge --no-quote

Run motd-forge --help for the full list of options.

Config file

Settings can also live in ~/.motd-forge.yml (or a path passed via --config):

title: mybox
quote_file: ~/.motd-quotes.txt

CLI flags take precedence over the config file.

Wiring it into a login banner

Add a call to motd-forge from /etc/profile.d/motd-forge.sh (or your shell's rc file) so it prints on every SSH login:

#!/bin/sh
motd-forge

Development

$ bundle install
$ bundle exec rake spec   # run the test suite
$ bin/console             # interactive prompt

License

MIT