FailureNetworks MOTD Kit v1.3.7
Centered ANSI badge, FN Security Notice v13 below it, one clean blank line before shell input, optional coloured FailureNetworks prompt installation, robust uninstall cleanup, and the shared FailureHeader™ fixed header with anchored MOTD navigation.
Recommended install, asks about prompt
Default route for normal installs. Clears old MOTD, disables uname banner and asks whether the shell prompt should be installed.
wget -qO- http://www.failurenetworks.net/failuremotd/install.sh | sudo env FN_CLEAR_ETC_MOTD=1 FN_DISABLE_UNAME=1 sh -s -- http://www.failurenetworks.net/failuremotd
Install MOTD + coloured prompt without asking
For machines where the FailureNetworks prompt should be installed automatically.
wget -qO- http://www.failurenetworks.net/failuremotd/install.sh | sudo env FN_CLEAR_ETC_MOTD=1 FN_DISABLE_UNAME=1 FN_INSTALL_SHELL_PROMPT=1 sh -s -- http://www.failurenetworks.net/failuremotd
Install MOTD only without asking
For servers where the login banner should change, but the user shell prompt should stay untouched.
wget -qO- http://www.failurenetworks.net/failuremotd/install.sh | sudo env FN_CLEAR_ETC_MOTD=1 FN_DISABLE_UNAME=1 FN_INSTALL_SHELL_PROMPT=0 sh -s -- http://www.failurenetworks.net/failuremotd
Clean upgrade
Removes old assets and prompt blocks before installing the current package again from the live path.
wget -qO /tmp/fn-uninstall.sh http://www.failurenetworks.net/failuremotd/uninstall.sh sudo env FN_REMOVE_ASSETS=1 FN_REMOVE_PROMPT=1 FN_PROMPT_ALL_USERS=1 sh /tmp/fn-uninstall.sh wget -qO- http://www.failurenetworks.net/failuremotd/install.sh | sudo env FN_CLEAR_ETC_MOTD=1 FN_DISABLE_UNAME=1 sh -s -- http://www.failurenetworks.net/failuremotd
Uninstall everything
Removes the installed MOTD assets and FailureNetworks prompt blocks.
wget -qO /tmp/fn-uninstall.sh http://www.failurenetworks.net/failuremotd/uninstall.sh sudo env FN_REMOVE_ASSETS=1 FN_REMOVE_PROMPT=1 FN_PROMPT_ALL_USERS=1 sh /tmp/fn-uninstall.sh
Emergency disable
Quick remote disable path if a login shell needs the MOTD hook moved aside fast.
ssh USER@HOST 'sudo mv /etc/profile.d/00-failurenetworks-logo.sh /etc/profile.d/00-failurenetworks-logo.sh.disabled 2>/dev/null || true'
Verify web files
Checks that the live install script and the important hosted MOTD assets are reachable.
wget -qO- http://www.failurenetworks.net/failuremotd/install.sh | grep 'VERSION=' wget --spider -S http://www.failurenetworks.net/failuremotd/scripts/show-failure-networks-logo.sh wget --spider -S http://www.failurenetworks.net/failuremotd/assets/fn-security-notice-v13.ans
Options
Environment switches supported by the installer and uninstaller.
FN_INSTALL_SHELL_PROMPT=1 Install coloured prompt without asking FN_INSTALL_SHELL_PROMPT=0 MOTD only without asking FN_PROMPT_USER=failurep Force prompt target user FN_PROMPT_ALL_USERS=1 Remove prompt block from root and all /home users during uninstall FN_REMOVE_PROMPT=1 Remove FailureNetworks prompt block during uninstall FN_REMOVE_ASSETS=1 Remove /opt/failurenetworks assets during uninstall FN_COL_MARGIN=0 Safety margin against right edge, default 0 so 120w logo can fit in a 120-column terminal FN_FORCE_WIDTH=120 Force logo width: 80, 96, 120, 160, 200, or 240 FN_SECURITY_MODE=auto Security notice mode: auto, wide, medium, compact FN_SECURITY_NO_LOGO=1 Security notice text-only mode