Linuxlogo ist ein Linux-Befehlszeilenprogramm, das ein farbiges ANSI-Bild des Distributionslogos als Splash Screen mit den wichtigsten Systeminformationen erzeugt. Hierbei bietet sich issue.net oder motd auf sinnvolle weise an, ein Splash Screen des Host auszugeben, motd steht für message of the day. Diese Dateien, welche vom Login-Prozess genutzt werden, befinden sich unter dem Konfigurationsverzeichnis /etc und geben nach einem erfolgreichem Login – aber noch vor dem Start der jeweiligen Login-Shell – eine Meldung aus.

Installation
1 2 3 4 5 6 7 |
# redhat CentOS sudo yum -y install linux_logo # debian upuntu sudo apt-get -y install linuxlogo # fedora sudo dnf -y install linux_logo |
Die Autostart Konfiguration rc.local erzeugt beim boot-Prozess die nötigen Einträge, für den Konsole Login issue und den Remote Login issue.net.
1 2 3 4 |
sudo vi /etc/rc.d/rc.local # debian & ubuntu sudo vi /etc/rc.local |
1 2 3 4 5 6 7 8 9 10 11 |
if [ -f /usr/bin/linux_logo ]; then echo "" > /etc/issue /usr/bin/linux_logo -L debian_banner -u >> /etc/issue echo >> /etc/issue fi if [ -f /usr/bin/linux_logo ]; then echo "" > /etc/issue.net /usr/bin/linux_logo -L debian_banner -a -u >> /etc/issue.net echo >> /etc/issue.net fi |
Aufruf unter debian und ubuntu wie folgt:
1 2 |
/usr/bin/linuxlogo -L debian_banner_2 -u |
rc.local muss ausführbar sein.
1 2 |
sudo chmod +x /etc/rc.d/rc.local |
Damit der Splash Screen bei Remote Login erscheint, muss man den Banner des SSH Daemon aktivieren.
1 2 |
sudo vi /etc/ssh/sshd_config |
1 2 |
Banner /etc/issue.net |
Die Änderung wird aktiviert mit neu start des SSH Daemon.
1 2 3 4 5 |
# CentOS 7 sudo systemctl restart sshd # CentOS 6 sudo service sshd restart |
Wo aus rechtlichen gründen ein Hinweis vor unautorisiertem Zugriff zur Konsole warnen soll, kann die Datei /etc/motd folgende Ausgabe erzeugen:
1 2 |
sudo vi /etc/motd |
1 2 3 4 5 6 7 |
############################################################################## # Unauthorized access to this system is prohibited ! # # ****** # # This system is actively monitored and all connections may be logged. # # By accessing this system, you consent to this monitoring. # ############################################################################## |
Auch bietet sich an, den Splash Screen mit Linux Logo aus der ~/.bashrc auszugeben, hier ein Beispiel für die Systemweite bash Konfiguration der redhat Distribution.
1 2 |
sudo vi /etc/bashrc |
1 2 |
if [ -f /usr/bin/linux_logo ]; then linux_logo -L redhat -u; fi |
Linux Logo Parameter
Distributionen:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
~]# /usr/bin/linux_logo -L list Available Built-in Logos: Num Type Ascii Name Description 1 Banner Yes bsd_banner FreeBSD Logo 2 Classic Yes irix Irix Logo 3 Classic Yes bsd FreeBSD Logo 4 Banner Yes solaris The Default Banner Logos 5 Classic Yes aix AIX Logo 6 Classic Yes classic The Default Classic Logo 7 Banner Yes debian_banner Debian Banner (white) 8 Banner Yes mandrake_banner Mandrake(TM) Linux Banner 9 Banner Yes pld PLD Linux banner 10 Banner Yes suse SUSE Logo 11 Banner Yes sourcemage_ban Source Mage GNU/Linux banner 12 Classic Yes gnu_linux Classic GNU/Linux 13 Classic Yes core Core Linux Logo 14 Classic Yes debian Debian Swirl Logos 15 Banner Yes slackware Slackware Logo 16 Banner Yes mandriva Mandriva(TM) Linux Banner 17 Banner Yes redhat RedHat Banner (white) 18 Banner Yes ubuntu Ubuntu Logo 19 Classic Yes debian_old Debian Old Penguin Logos 20 Banner Yes sme SME Server Banner Logo 21 Banner Yes sourcemage Source Mage GNU/Linux large 22 Banner Yes mandrake Mandrakelinux(TM) Banner 23 Banner Yes banner The Default Banner Logo 24 Classic Yes classic-simp Classic No Dots Or Letters 25 Classic Yes classic-nodots The Classic Logo, No Periods 26 Banner Yes banner-simp Simplified Banner Logo Do "linux_logo -L num" where num is from above to get the appropriate logo. Remember to also use -a to get ascii version. |
Linux Logo Help Screen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
~]# /usr/bin/linux_logo -h Linux Logo Version 5.11 using libsysinfo 0.2.1 by Vince Weaver <vince@deater.net> Newest Versions at: https://www.deater.net/weave/vmwprod/linux_logo https://metalab.unc.edu/pub/Linux/logos/penguins Usage: /usr/bin/linux_logo [-a] [-b] [-c] [-d] [-D file] [-e file] [-f] [-g] [-h] [-i] [-k] [-l] [-n] [-o num] [-p] [-s] [-t str] [-u] [-v] [-w Num] [-x] [-y] [-F format] [-L num | NAME | list | random_xy] [-a] -- Display an ascii-only Logo [-b] -- Display a Banner Logo! [-c] -- Display a "Classic" type logo [-d] -- disable "prettying" of output [-D file]-- use custom logo from "file" [-e file]-- Use "file" instead of /proc/cpuinfo [for debugging] [-f] -- force the screen clear before drawing [-F format] Format output. See README. B [-g] -- give system info only [-h] -- this help screen [-i] -- ignore ~/.linux_logo and /etc/linux_logo.conf [-k] -- keep sysinfo flushed-left (non-centered) B [-l] -- display logo only C [-o Num] -- offset output Num spaces to the right [-p] -- preserve cursor location [-s] -- skip Bogomips [speeds up on non-Linux platforms] [-t str] -- display user-supplied string * [-u] -- show uptime [-v] -- version information [-w Num] -- set width of screen to Num [default 80] * [-y] -- show load average [-L num | NAME | list | random_xy] -- multiple Logo options. See README B=Banner mode only, C=Classic Mode Only *=Works Only in Linux |