![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiseeI33kewiIXVwIUGHNCVMz9GRiiGyXWZgFNr3KTL1kj4LTVlaEU41BrRHO9mya3ye_4KvszcSUycjd6vAZRJFPziuuSzeDP1FVqdCReXYclrjUmNYQ2zk7-fFNYwE4h5uNBQxD9JYQo/s400/server-64.png)
Every time you log in to the server you can see a message that is shown on the terminal. The message comes from the file /etc/motd (message of the day). If you want the users to notice your message, you can make it a little bit fancy :) You can use figlet to do that. Figlet can create multiple types of ascii text messages in nice font. More about this tool is available on
http://www.figlet.org/
To install figlet type in command prompt:
sudo apt-get install figlet![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH6Vktp-A8LwA7FmYQTDRZY723NBomOp2bP9ZvLl2h8psbJPrvH6dw7FIHv2FBeivuiqr_jc23CWXNLa1-U4NNXRx6gFUqjATxrG_8Q7PSsYFy2uQJ_cnhrZeA3EJzLNZ2mY5W_Bd91Y0/s200/motd.png)
Now, to create Fancy server name text and center it horizontally (as image shows), use this command:
$ figlet -f block -c "Fancy server name" > /etc/motdYou can use more types of fonts specified with -f option, but only one at a time. To list a directory with available figlet fonts use:
$ figlet -I2
No comments:
Post a Comment