Meine kleine Dokumentation

Die Installationsdokumentation zu MeineKleineFarm.net

Benutzer-Werkzeuge

Webseiten-Werkzeuge


debian_jessie_motd

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
debian_jessie_motd [2016/10/06 20:32] xenadmindebian_jessie_motd [2018/02/22 13:40] (aktuell) – [Setup] xenadmin
Zeile 1: Zeile 1:
-Quellen:+====== Dynamic Message of the Day (motd) ====== 
 +===== Quellen =====
   - https://wiki.debian.org/motd   - https://wiki.debian.org/motd
   - https://oitibs.com/debian-jessie-dynamic-motd/   - https://oitibs.com/debian-jessie-dynamic-motd/
   - https://unix.stackexchange.com/questions/246436/how-to-set-a-dynamic-message-of-the-day-motd-in-debian-jessie-8-2-for-ssh   - https://unix.stackexchange.com/questions/246436/how-to-set-a-dynamic-message-of-the-day-motd-in-debian-jessie-8-2-for-ssh
   - https://elhombrequereventodeinformacion.wordpress.com/2015/04/30/motd-handling-in-debian-jessie-fixed/   - https://elhombrequereventodeinformacion.wordpress.com/2015/04/30/motd-handling-in-debian-jessie-fixed/
 +
 +===== Setup =====
 <code bash> <code bash>
 # install lsb-release  # install lsb-release 
Zeile 9: Zeile 12:
 # install figlet to enable ASCII art # install figlet to enable ASCII art
 apt install figlet apt install figlet
 +# install lolcat to enable rainbow art
 +apt install lolcat
 +# install neofetch to display Linux Distribution art
 +apt install neofetch
 # create directory # create directory
 mkdir /etc/update-motd.d/ mkdir /etc/update-motd.d/
Zeile 23: Zeile 30:
 # Optional: Fix bug in /etc/pam.d/sshd. See Source Link 3 and 4 # Optional: Fix bug in /etc/pam.d/sshd. See Source Link 3 and 4
 nano /etc/pam.d/sshd nano /etc/pam.d/sshd
-#session    optional     pam_motd.so motd=/run/motd.dynamic +session    optional     pam_motd.so  motd=/run/motd.dynamic.new 
-session    optional     pam_motd.so motd=/run/motd+session    optional     pam_motd.so noupdate
 </code> </code>
 +
 +===== Config Files =====
 +<hidden 00-header -edit>
 <code bash 00-header> <code bash 00-header>
 #!/bin/sh #!/bin/sh
Zeile 62: Zeile 72:
 printf "Welcome to %s (%s).\n" "$DISTRIB_DESCRIPTION" "$(uname -r)" printf "Welcome to %s (%s).\n" "$DISTRIB_DESCRIPTION" "$(uname -r)"
 printf "\n" printf "\n"
-<code>+</code
 +</hidden> 
 + 
 +<hidden 10-sysinfo -edit>
 <code bash 10-sysinfo> <code bash 10-sysinfo>
 #!/bin/bash #!/bin/bash
Zeile 103: Zeile 116:
 echo echo
 </code> </code>
 +</hidden>
 +
 +<hidden 90-footer -edit>
 <code bash 90-footer> <code bash 90-footer>
 #!/bin/sh #!/bin/sh
Zeile 129: Zeile 145:
 [ -f /etc/motd.tail ] && cat /etc/motd.tail || true [ -f /etc/motd.tail ] && cat /etc/motd.tail || true
 </code> </code>
 +</hidden>
debian_jessie_motd.1475785964.txt.gz · Zuletzt geändert: 2016/10/06 20:32 von xenadmin