MOTD Generator for Ubuntu and Debian

Easily generate a custom Message of the Day (MOTD) for your Ubuntu or Debian server. Make your login sessions informative and personalized!

Customize Your MOTD

Choose between Ubuntu and Debian servers.
Select the Ubuntu version you are using.
Check this to include detailed system information in your MOTD.
Add a personalized message to be displayed on login.

Installation Instructions

  1. Copy the generated script to your clipboard using the button above.
  2. Connect to your server via SSH.
  3. Create a new file named 00-dynamic-motd in the /etc/update-motd.d/ directory:
    sudo nano /etc/update-motd.d/00-dynamic-motd
  4. Paste the copied script into this file and save it (Ctrl+X, then Y, then Enter in nano).
  5. Make the script executable:
    sudo chmod +x /etc/update-motd.d/00-dynamic-motd
  6. Remove or rename the static MOTD file:
    sudo mv /etc/motd /etc/motd.bak
  7. Ensure that the PAM module for MOTD is enabled. Open the PAM configuration file:
    sudo nano /etc/pam.d/sshd
    And make sure the following line is present and not commented out:
    session    optional     pam_motd.so  motd=/run/motd.dynamic
  8. Log out and log back in to see your new dynamic MOTD!

About Dynamic MOTD

A dynamic MOTD (Message of the Day) is a script that generates a customized message each time a user logs into the system. Unlike a static MOTD, which displays the same message every time, a dynamic MOTD can show up-to-date system information, custom messages, and other relevant data.

Benefits of using a dynamic MOTD include:

  • Real-time system statistics and information
  • Customizable content that can change based on various factors
  • Ability to display important notifications or reminders to users upon login
  • Enhanced security by showing last login information

Our Dynamic MOTD Generator creates a shell script that you can easily install on your Ubuntu or Debian server to provide an informative and personalized login experience for your users.

Take Control of Your Linux Server Patches

Looking for an easy way to manage patches and updates across your Linux servers?

Visit LinuxPatch to streamline your patch management process.

Visit LinuxPatch