add install script and instructions

This commit is contained in:
Quentin Manfroi
2021-04-19 13:09:21 +02:00
parent bbdd9a7827
commit bfbbf4e653
2 changed files with 82 additions and 0 deletions

10
install.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
truncate -s0 /etc/motd # empty native static motd
mkdir -p /etc/update-motd.d/ # create dedicated directory following ubuntu
cp motd /etc/update-motd.d/ # copy the static motd banner into it
chmod -x /etc/update-motd.d/* # disable any existing script
cp scripts/* /etc/update-motd.d/ # enable claranet motd
echo "For distributions which does not use update-motd (e.g. ubuntu/debian), do not forget to add the following to /etc/pam.d/sshd:"
echo "session optional pam_exec.so stdout /etc/update-motd.d/00-basic"