In this article that is short we will show how to automatically and randomly display ASCII art, using ASCII-Art-Splash-Screen when you open a terminal window.
ASCII-Art-Splash-Screen is a utility that comprises of a python script and a collection of ASCII art to be displayed every time you open a terminal window in Linux. It works on Unix-based systems such as Linux and Mac OSX.
Requirements:
- python3 – mostly installed on all Linux distributions, if not use our Python installation guide.
- curl – a tool that is command-line downloading files.
An net connection is needed, as the ASCII arts are taken through the ASCII-Art-Splash-Screen github repository – that is one drawback from it.
How to show Random ASCII Art on Linux Terminal
Open a terminal, and begin by putting in curl demand line device in your system, utilizing the appropriate demand for the circulation.
$ sudo install that is apt #Debian/Ubuntu # yum install curl #RHEL/CentOS # dnf install curl #Fedora 22+
Then clone the ASCII-Art-Splash-Screen repository on your system, move into the local repository and copy the file ascii.py
into your home directory.
$ git clone https://github.com/DanCRichards/ASCII-Art-Splash-Screen.git $ cd ASCII-Art-Splash-Screen/ $ ascii.py that is cp ~/
Next, run the demand below, which adds the relative line“python3 ascii.py” in your ~/.bashrc
file. This enables running of the ascii.py
executable script every time you open a terminal.
$ echo "python3 ascii.py" >> ~/.bashrc
From now on, when you open a Linux that is new terminal a random ASCII art is exhibited ahead of the shell prompt seems.
Do browse sample that is following arts displayed in a new Linux terminal.
Comments