No description
Find a file
2019-02-19 13:43:31 +01:00
.gitignore.d Initial commit 2019-02-19 12:13:28 +01:00
source/debian new location 2019-02-19 13:22:09 +01:00
coldmotd new location 2019-02-19 13:22:09 +01:00
install.sh initial commit 2019-02-19 13:43:31 +01:00
lxc new location 2019-02-19 13:22:09 +01:00
motd new motd file name 2019-02-19 13:23:03 +01:00
motd-maint new location 2019-02-19 13:22:09 +01:00
old_motd.tcl new location 2019-02-19 13:22:09 +01:00
openvz new location 2019-02-19 13:22:09 +01:00
README.md new repo url 2019-02-19 13:20:54 +01:00
screen_shot.jpg Initial commit 2019-02-19 12:13:28 +01:00

Dynamic Message of the day for my Debian server

Screenshot

logo

Configuration :

You have to install the rsb-release package to use it.

sudo apt-get install lsb-release

Install the developpment release

git clone https://framagit.org/draconis/motd.git

Disable the SSH's motd

sudo sed -i 's/#PrintMotd yes/PrintMotd no/g' /etc/ssh/sshd_config

Enable the new motd at start session

sudo  echo "/usr/local/bin/coldmotd" > /etc/profile.d/coldmotd.sh
sudo chmod +x /etc/profile.d/coldmotd.sh

Copy the new motd

sudo cp motd /usr/local/bin/
sudo chmod +x /usr/local/bin/motd

FOR ZSH USERS

Just add this line "/usr/local/bin/motd" in your ~/.ZSHRC. It's recommanded to add it at the end of the file

Sources : https://github.com/jjasghar/scripts/blob/master/dynmotd