From d1f3e33715b51f443a3f7d7192d8c800153918ba Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Sun, 8 May 2016 10:32:39 +0200 Subject: [PATCH] pam.d motd installation notes --- .gitignore | 1 + README | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.gitignore b/.gitignore index e69de29..3159f7f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +*.kdev4 diff --git a/README b/README index e8bdeaa..2b27254 100644 --- a/README +++ b/README @@ -72,6 +72,23 @@ the terminal supports colors). Some blank ponies and a template directory can be found inside the directory /Generic +Installing as MOTD +------------------ + +### pam.d + +Ensure /etc/pam.d/login has the following line: + + session optional pam_motd.so motd=/run/motd.dynamic + +Note it does not end with `noupdate`. + +Then (for a single pony picture) copy one of the files under rendered/sh to +/etc/update-motd.d with a name like 20-pony or something like that. + +If instead you want to use systempony in the motd, first install it system-wide +(with `make install`), then create the appropriate script that would call it. + License -------