Funny Figlet

2016年08月10日

  __ _       _      _   
 / _(_) __ _| | ___| |_ 
| |_| |/ _` | |/ _ \ __|
|  _| | (_| | |  __/ |_ 
|_| |_|\__, |_|\___|\__|
       |___/            

Figlet is a tool that generates the text to ASCII art. It means Frank, Ian & Glenn’s Letters who are the authors.

Installation

$ sudo apt-get install figlet

or

Download

$ tar -zxvf figlet-2.2.4.tar.gz
$ cd figlet
$ make figlet

Usage

$ figlet welcome
              _                          
__      _____| | ___ ___  _ __ ___   ___ 
\ \ /\ / / _ \ |/ __/ _ \| '_ ` _ \ / _ \
 \ V  V /  __/ | (_| (_) | | | | | |  __/
  \_/\_/ \___|_|\___\___/|_| |_| |_|\___|

$ figlet welcome -f fonts/slant.flf 
                __                        
 _      _____  / /________  ____ ___  ___ 
| | /| / / _ \/ / ___/ __ \/ __ `__ \/ _ \
| |/ |/ /  __/ / /__/ /_/ / / / / / /  __/
|__/|__/\___/_/\___/\____/_/ /_/ /_/\___/ 

SSH welcome banner

Edit /etc/ssh/ssh-banner or /etc/issue, copy the following figleted words:

\ \      / / ____| |   / ___/ _ \|  \/  | ____| |_   _/ _ \ 
 \ \ /\ / /|  _| | |  | |  | | | | |\/| |  _|     | || | | |
  \ V  V / | |___| |__| |__| |_| | |  | | |___    | || |_| |
   \_/\_/  |_____|_____\____\___/|_|  |_|_____|   |_| \___/                                                            
 __  __    _    ____  ____  
|  \/  |  / \  |  _ \/ ___| 
| |\/| | / _ \ | |_) \___ \ 
| |  | |/ ___ \|  _ < ___) |
|_|  |_/_/   \_\_| \_\____/

Edit /etc/ssh/sshd_config,modify the line of #Banner none:

no default banner path

Banner /etc/ssh/ssh-banner(or/etc/issue)

$ /etc/init.d/sshd restart #restart sshd Service

$ ssh mars@localhost
__        _______ _     ____ ___  __  __ _____   _____ ___  
\ \      / / ____| |   / ___/ _ \|  \/  | ____| |_   _/ _ \ 
 \ \ /\ / /|  _| | |  | |  | | | | |\/| |  _|     | || | | |
  \ V  V / | |___| |__| |__| |_| | |  | | |___    | || |_| |
   \_/\_/  |_____|_____\____\___/|_|  |_|_____|   |_| \___/                                                            
 __  __    _    ____  ____  
|  \/  |  / \  |  _ \/ ___| 
| |\/| | / _ \ | |_) \___ \ 
| |  | |/ ___ \|  _ < ___) |
|_|  |_/_/   \_\_| \_\____/
mars@localhost's password:

Reference