ubuntu:motd
Questa è una vecchia versione del documento!
FBLab.it Servers MOTD
Questo script sfrutta il principio di base del MOTD su distribuzione Ubuntu, che utilizza svariati script situati in /etc/update-motd.d/ per generare il MOTD.
Ho creato il mio personalizzato che eseguo al termine di una fresh install. Potenzialmente potrebbe funzionare anche su altre Distro, basta utilizzare il corretto gestore di pacchetti al posto di apt-get, per la distribuzione corrente. Enjoy.
#!/bin/bash apt-get -y install screenfetch toilet inxi chmod -x /etc/update-motd.d/* echo -e '#!/bin/bash' > /etc/update-motd.d/00-fblab echo -e 'toilet -f mono12 -F metal FBLab.it' >> /etc/update-motd.d/00-fblab echo -e '#!/bin/bash' > /etc/update-motd.d/01-screenfetch echo -e 'screenfetch' >> /etc/update-motd.d/01-screenfetch echo -e 'echo' >> /etc/update-motd.d/01-screenfetch echo -e 'inxi -Dxxxx' >> /etc/update-motd.d/01-screenfetch chmod +x /etc/update-motd.d/00-fblab chmod +x /etc/update-motd.d/01-screenfetch chmod +x /etc/update-motd.d/90-updates-available chmod +x /etc/update-motd.d/91-release-upgrade chmod +x /etc/update-motd.d/92-unattended-upgrades chmod +x /etc/update-motd.d/98-reboot-required run-parts /etc/update-motd.d/
ubuntu/motd.1580262869.txt.gz · Ultima modifica: 28/03/2024 22:24 (modifica esterna)