How to show ASCII art at the top of the terminal when it's opened?
Open your terminal with CTRL+ALT+T and type as
nano ~/.bashrc
There type as
echo " Hi Zignd"
then close and save it.
then type this command to reload bashrc .
source ~/.bashrc
You will what you want.
for example :I made my self.
To extend @snow's answer, put the code below from the very first line of your .bashrc
. And be proud to be ubuntu user :)
echo "MMMMMMMMMMMMKlxMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0occlxNM"
echo "MMMMMMMMMMMMOcxMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKOXMMMMMMMMMMMMMMMMMNdcoxkOlc0"
echo "MMMMMMMMMMMMOcxMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMdcOMMMMMMMMMMMMMMMMMkoO0lckkcl"
echo "dxWMMMM0d0MMOcoxdooxONMMMOdXMMMMXdkMMWkxdoodxONMMMdcldddkMXdxWMMMM0dKM0coOxk0xcd"
echo "ccNMMMMxckMMOco0XNXkclKMMxc0MMMMKcoMMNllKXXXkclXMMdcxKKKXMKclNMMMMkc0MM0oclldokN"
echo "ccNMMMMxckMMOcxMMMMMOclWMxc0MMMMKcoMMNllWMMMMdcOMMdcOMMMMMKclNMMMMkc0MMMMNXXNWMM"
echo "ccNMMMMxckMMOcxMMMMMKccNMxc0MMMMKcoMMNllWMMMMxckMMdcOMMMMMKclNMMMMkc0MMMMMMMMMMM"
echo "lcKMMMMxckMMOcxMMMMWdcxMMkcxMMMMKcoMMNllWMMMMkckMMxckMMMMMNccKMMMMkc0MMMMMMMMMMM"
echo "0lcxkkklckMMOclkOkxlckWMMNocdkkkdcoMMNllWMMMMkckMMXlcxkkxNM0lcxkkkoc0MMMMMMMMMMM"
echo "MNxlccloxXMMXxolccokNMMMMMWOolclox0MMWxkWMMMM0d0MMMXxlclxNMMNklcclokXMMMMMMMMMMM"
OR
echo " _ _ "
echo " _ _| |__ _ _ _ __ | |_ _ _ "
echo "| | | | '_ \| | | | '_ \| __| | | |"
echo "| |_| | |_) | |_| | | | | |_| |_| |"
echo " \__,_|_.__/ \__,_|_| |_|\__|\__,_|"
The secret to these image like characters is to use an image converter to ASCII characters. There are lots of free tools in the wild like toilet
or figlet
but I personally use jp2a
.
You can also use this site for generating text to ASCII instead of image to ASCII.
How do we apply ASCII art into the terminal?
There are numerous ways of generating ASCII art, including specialized software and manual building but there are also websites that generate ASCII art by simply entering the desired name.
First we need to generate/create the ASCII "code": visit this website, type the desired name and copy the "live" generated ASCII result.
Then create a text file named art and paste into it the above mentioned generated ASCII result, copy the art file in your home folder (navigate here by clicking Nautilus sidebar's Home),
open the .bashrc
file (to make it viewable, press Ctrl+H) and paste on the bottom of the page
cat art
Worth mentioning:
The above-mentioned site contains hundreds of different fonts for generating ASCII that feature various sizes, 3D-look, etc.
Source
As for images to ASCII go to this website
First generate a ascii drawing. I recommend asciio
:
apt-get install asciio
Example:
.-------.
| Hi |
'-------'
^ (\_/)
'----- (O.o)
(> <)
Copy and paste the drawing in file:
vim /home/<youruser>/banner
Finally, add at the end of file to read when you open a new bash:
echo "cat banner" >> /home/<youruser>/.bashrc
Open another terminal:
This one takes a png image file and outputs a facsimile onto your terminal
If you have nodejs installed then issue
npm install -g picture-tube
then put this into bottom of your ~/.bashrc
echo "picture-tube --cols 60 /tmp/justpng/orbifold_333_shell.png"
picture-tube --cols 60 /tmp/justpng/orbifold_333_shell.png
code is at https://github.com/substack/picture-tube
enjoy