Install figlet, toilet and banner - Backtrack 5

You can use following two programs to create colourful text banner:
a] figlet - Display large characters made up of ordinary screen characters.
b] toilet - Prints text using large characters made of smaller characters. It is similar in many ways to FIGlet with additional features such as Unicode handling, colour fonts, filters and various export formats.

Install figlet and toilet

Use yum or apt-get to install the tools:
$ sudo apt-get update
$ apt-get install figlet
$ sudo apt-get install toilet figlet

How do I use figlet?

Simply use it as follows:
$ figlet LHACKG
Sample output:
 _     _   _    _    ____ _  ______ 
| | | | | | / \ / ___| |/ / ___|
| | | |_| | / _ \| | | ' / | _
| |___| _ |/ ___ \ |___| . \ |_| |
|_____|_| |_/_/ \_\____|_|\_\____|

figlet fonts

The -f option can be used to specify font:
$ figlet -f big "LHACKG"
Sample output:
 _     _   _    _    ____ _  ______ 
| | | | | | / \ / ___| |/ / ___|
| | | |_| | / _ \| | | ' / | _
| |___| _ |/ ___ \ |___| . \ |_| |
|_____|_| |_/_/ \_\____|_|\_\____|

$ figlet -f slant "LHACKG"
The -ct options centers the text and makes it take up the full width of the terminal:
$ figlet -ctf slant "LHACKG"
If you don’t want FIGlet to smush FIGcharacters into each other, use the -k (kerning) option:                               
                                      
$ figlet -k "LHACKG"
If figlet gets its input from a file, it is often a good idea to use -p:
$ figlet -p < /path/to/file

To lists figlet fonts and control files, enter:

$ figlist
Sample output
Default font: standard
Font directory: /usr/share/figlet
Figlet fonts in this directory:
banner
big
block
bubble
digital
ivrit
lean
mini
mnemonic
script
shadow
slant
small
smscript
smshadow
smslant
standard
term
....
..

How do I use toilet command?

Use command as follows:
$ toilet -f bigmono9 -F gay LHACKG
$ toilet -f mono12 -F metal
LHACKG
Sample output:

toilet UNIX / Linux command screenshot

Where,
  • -F filter-name: Set filter
  • -f fontname : Set font name
To list installed filter, type:
$ toilet -F list
Sample output:
Available filters:
"crop": crop unused blanks
"gay": add a rainbow colour effect
"metal": add a metallic colour effect
"flip": flip horizontally
"flop": flip vertically
"rotate": perform a 180 degrees rotation

Running figlet / toilet automatically

Add command to your ~/.bashrc command so that banner get displayed every time you open terminal or console:
echo 'echo "HACKED BY LHACKG"' >> ~/.bashrc
echo 'toilet -f mono12 -F metal LHACKG' >> ~/.bashrc

Print Large Banner on Printer

To print "Welcome", enter:
$ banner "Welcome"
$ banner -w80 "Welcome"

SHARE

About Lasha Gogua

    Blogger Comment
    Facebook Comment

3 comments:

  1. Nice article. I think it is useful and unique article. I love this kind of article and this kind of blog. I have enjoyed it very much. Thanks for your website.
    Toilet

    ReplyDelete
  2. Nice article. I think it is useful and unique article. I love this kind of article and this kind of blog. I have enjoyed it very much. Thanks for your website.
    Toilet

    ReplyDelete
  3. echo 'echo "HACKED BY LHACKG"' >> ~/.bashrc
    echo 'toilet -f mono12 -F metal LHACKG' >> ~/.bashrc

    It's all fun and games until someone loses an eye. ;)

    If you have your bashrc output anything to STDOUT, rather than redirecting it to >&2 , you have just 'infected' that host with the inability to accept any data over pipe.

    i.e.

    # Tar/untar over ssh would be broken and the following would not work anymore.

    tar czvO some_local_dir/ | ssh your-now-infected-host 'cd /some_remote_dir/ ; tar xvz'


    - To resolve this issue is simple, do this instead.

    echo 'echo "HACKED BY LHACKG" >&2' >> ~/.bashrc
    echo 'toilet -f mono12 -F metal LHACKG >&2' >> ~/.bashrc

    ReplyDelete