You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dryusdan e311b0255a Mise à jour de 'update-motd.d/' 2 years ago
cron-scripts Replace cat by echo 2 years ago
update-motd.d Mise à jour de 'update-motd.d/' 2 years ago
LICENSE Initial commit - working 7 years ago Add cache into updatemotd 2 years ago

Dynamic motd

The aim of this project is to give some informations when you log into a server through SSH.


   ___  ___ _ ____   _____ _ __
  / __|/ _ \ '__\ \ / / _ \ '__|
  \__ \  __/ |   \ V /  __/ |
  |___/\___|_|    \_/ \___|_|

  Debian GNU/Linux 8.4 (jessie) (kernel 3.16.0-4-amd64)

  System information as of Fri Apr 22 10:02:57 2016

  System load:  2.74                 Processes:           167
  Memory usage: 98%                  Users logged in:     1
  Swap usage:   31%
  Disk Usage:
    Usage of /                       : 37.0% of 19.18GB
    Usage of /boot                   : 36.6% of 0.11GB
    Usage of /home                   : 11.1% of 501.60GB
  Inode Usage:
    Usage of /                       : 12.7% of 1286144
    Usage of /boot                   : 1.1% of 31232
    Usage of /home                   : 0.1% of 33406976

  Logged in users:
  user       from        at Fri Apr 22 09:09:09 2016

No mail.
Last login: Fri Apr 22 09:23:01 2016 from

Warning This Debian and Debian-related distributions only.


You need to install some packages:

apt-get install figlet lsb-release python-utmp bc

Optionnally, you can install needrestart which is used to show a message if your server need a reboot (main reason (and the only one I know): you have upgraded your kernel). If you don't install needrestart, it will work, but you won't be warned about the need for a reboot. needrestart warns you about services that need to be restarted too (but is slower than checkrestart for that, see below).

You can optionnally install debian-goodies which provides checkrestart, which will be used to warn you about services that need to be restarted. Relying on needrestart for that is slow (±7 seconds) while checkrestart do it faster (less than one second).


cp -r update-motd.d/ /etc
rm /etc/motd
ln -s /var/run/motd /etc/motd

This is the for of ldidry/dynamic-motd

Diffrence :

  • Remove salt
  • Add some cache to avoid a connection stuck during 30 secondes


GPLv2. Have a look at the LICENSE file.