Skip to content

Instantly share code, notes, and snippets.

@j796160836
Last active October 27, 2018 12:50
Show Gist options
  • Save j796160836/bba11916da7ec38dfd310df95fe02fd6 to your computer and use it in GitHub Desktop.
Save j796160836/bba11916da7ec38dfd310df95fe02fd6 to your computer and use it in GitHub Desktop.
Linux 開機歡迎顯示系統資訊

Linux 開機歡迎顯示系統資訊

操作系統: Ubuntu
不同 distributions 指令會有些微差異

  • 安裝 landscape-common 套件
$ sudo apt-get install landscape-common
  • 建立捷徑
$ ls -n  /usr/share/landscape/landscape-sysinfo.wrapper /etc/update-motd.d/
  • 測試
$ sudo run-parts /etc/update-motd.d/

     ██╗ ██████╗ ██╗  ██╗███╗   ██╗███╗   ██╗██╗   ██╗
     ██║██╔═══██╗██║  ██║████╗  ██║████╗  ██║╚██╗ ██╔╝
     ██║██║   ██║███████║██╔██╗ ██║██╔██╗ ██║ ╚████╔╝ 
██   ██║██║   ██║██╔══██║██║╚██╗██║██║╚██╗██║  ╚██╔╝  
╚█████╔╝╚██████╔╝██║  ██║██║ ╚████║██║ ╚████║   ██║   
 ╚════╝  ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝  ╚═══╝   ╚═╝   
                                                      
Font Name: ANSI Shadow

 88888  dP"Yb  88  88 88b 88 88b 88 Yb  dP 
    88 dP   Yb 88  88 88Yb88 88Yb88  YbdP  
o.  88 Yb   dP 888888 88 Y88 88 Y88   8P   
"bodP'  YbodP  88  88 88  Y8 88  Y8  dP    

Font Name: 4Max

MMMMMMMM""M          dP                                  
MMMMMMMM  M          88                                  
MMMMMMMM  M .d8888b. 88d888b. 88d888b. 88d888b. dP    dP 
MMMMMMMM  M 88'  `88 88'  `88 88'  `88 88'  `88 88    88 
M. `MMM' .M 88.  .88 88    88 88    88 88    88 88.  .88 
MM.     .MM `88888P' dP    dP dP    dP dP    dP `8888P88 
MMMMMMMMMMM                                          .88 
                                                 d8888P  

Font Name: Nancyj-Fancy

    ___                       
   ( /    /                   
    / __ /_  _ _   _ _   __  ,
  _/_(_)/ /_/ / /_/ / /_/ (_/_
 //                        /  
(/                        '   

Font Name: Santa Clara

Referance:
https://askubuntu.com/questions/100052/modify-the-ssh-welcome-message-to-include-system-ip-address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment