Strumenti Utente

Strumenti Sito


ubuntu:motd

Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisioneRevisione precedente
Prossima revisione
Revisione precedente
ubuntu:motd [29/01/2020 02:51] djbx83ubuntu:motd [28/03/2024 22:24] (versione attuale) – modifica esterna 127.0.0.1
Linea 3: Linea 3:
 ===== FBLab.it Servers MOTD ===== ===== FBLab.it Servers MOTD =====
  
-#!/bin/bash +Prendendo spunto da [[https://linuxconfig.org/how-to-change-welcome-message-motd-on-ubuntu-18-04-server]] ho realizzato questo script che sfrutta il principio di generazione MOTD su distribuzione Ubuntu, utilizzando svariati script situati in **/etc/update-motd.d/** per generare il MOTD.
-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/+
  
 +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.1580262686.txt.gz · Ultima modifica: 28/03/2024 22:24 (modifica esterna)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki