Some terminal fun!

What do you have and what do you want?

Moderators: b1o, jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Some terminal fun!

Postby viking60 » 25 Feb 2014, 19:26

Time for amusement. And what better than some good old ASCI work in the terminal?
You know that good old pre GUI stuff that was printed out in the late 70' ies and early 80 ies. It makes you look awfully professional if you have stuff like that in your terminal grettings. +1

And I want my part of that admiration; so I installed cadubi.

It lets me draw my figures and adjust collors. You can set the collor of the x and the background collor - and draw with the space button

It is great fun - and when you have a result that would make Andy Warhol jealous you can write it out with CTRL+o

So I went at it and made the logical motive, and saved it with CTRL+o and named it killer. :berserkf
Time to check it out in a terminal then so I opened the konsole and wrote:

Code: Select all

cat killer
:mrgreen:
And voila there it was: A truly unique piece of art:
:A
Image

Naturally I wanted this to great me every time I start a terminal so I edited cat killer into my ~/.bashrc

Code: Select all

# prompt
cat killer
PS1='[\u@\h \W]\$ '
BROWSER=/usr/bin/xdg-open


What this is good for?
Absolutely nothing! ....But it is fun :lol:

------------------------------------------------------------------------------------------------------------------------------------------------------------------------
To make it look like real professional branding I installed figlet that kan turn anything you type into Terminal art with a lot of fonts.

So I simply added:

Code: Select all

figlet just a killer IT site

to my .bashrc
and behold:
:A
Image


You can see the fonts available to you with:

Code: Select all

showfigfonts

And to use them you simply use the -f switch like this:

Code: Select all

figlet -f  script Backup is for chikens!

Image

Here I have used the script font.

Figlet should be available in most repos - I have cheked Arch Manjaro and Mageia.
Try:

Code: Select all

figlet  `echo $HOSTNAME`


And it actually makes sense to put this in your .bashrc

Code: Select all

figlet -w 132 -f standard  `echo $HOSTNAME` \/\/  `uname -r`


It gives nice info when you log in.
Image
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Toilet!

Postby viking60 » 26 Feb 2014, 19:12

So when you have mastered figlet the it is time for the creme de la creme:

The Toilet +1

Toilet is compatible with figlet but adds color and UTF 8 functionality
Arch and Manjaro users can install toilet and toilet-fonts from AUR, Mageia has it in the repos and Openmandriva has it in the repos.

To make a clock with date in lots of colors try this one in a terminal

Code: Select all

while true; do echo -e "$(date '+%d %m %y - %T' | toilet -f term -F border --gay)\033[3A"; sleep 1; done


This presents the date in the correct central European format +1

Foreigners from the UK and the US can use this unreadable format instead:

Code: Select all

while true; do echo -e "$(date '+%D %T' | toilet -f term -F border --gay)\033[3A"; sleep 1; done



To make a welcome in metal look you can do something like this:

Code: Select all

toilet just a killer IT site -F metal

it will look better with the smslant font so we add that:

Code: Select all

toilet -f smslant just a killer IT site -F metal

Image

This can be written to your /etc/motd as root

Code: Select all

toilet -f smslant just a killer IT site -F metal >>/etc/motd

/etc/motd is the message you will see when you log in to your computer from somewhere else.
This is what one of my boxes looks like when I log in from a remote place (and start the clock):
:A
Image
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"


Return to “Software”