motd-forge
v0.1.1
Published
Generate a randomized login banner (MOTD) with system stats and a quote.
Maintainers
Readme
motd-forge
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.
Node port of the motd_forge Ruby gem.
Installation
$ npm install -g motd-forgeUsage
$ motd-forge
$ motd-forge --name mybox
$ motd-forge --quote-file ~/.motd-quotes.txt
$ motd-forge --no-quoteRun 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.txtCLI 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-forgeDevelopment
$ yarn install
$ yarn test # run the test suite
$ node bin/motd-forge.js # run the CLI directly from sourceLicense
MIT
