How to Print Color ANSI Logos of Linux OS
To Print Color ANSI Logos of Linux OS using Command Line Tool- Linux_Logo
Linux_Logo is a command line used to generate a color ANSI picture of Linux Distribution with some system information like Linux Kernel Version, Kernel last Compiled time, Core of processor, Speed, Manufacturer and processor Generation. The primary programming language is C, which displays Linux logo in an X Window System. This software released under GNU General Public License Version 2.0.
Linux_logo utility can be tested through the command,
To install Linux Logo Utility in Linux
Step 1: To install the Linux logo package (stable version 5.11) from default package repository of all Linux distributions through apt, yum or dnf package manager as given below,
On APT based Systems
apt-get install linux_logo
On Yum based Systems
yum install linux_logo
On DNF based Systems
dnf install linux_logo
For 64-bit architecture
dnf install linux_logo.x86_64
[root@linuxhelp ~]# dnf install linux_logo Last metadata expiration check performed. Dependencies resolved. Installaing: Linux_logo x86_64 5.11-10.fc22 fedora … …. Installed: linux_logo.x86_64 5.11-10.fc22 Complete!
Now the installation of Linuxlogo is completed.
Step 2: After the package installed, we can run the “linuxlogo” command to get the default logo for the using distribution
[root@linuxhelp ~]# linux_logo
Step 3: If you don’t want to print any fancy colour, use the option [-a], which view the logo in black and white terminal.
[root@linuxhelp ~]# linux_logo -a
Step 4: To print LOGO alone, use option [-l] that exclude all other System Information.
[root@linuxhelp ~]# linux_logo -l
Step 5: Use [-u] switch to display the system up time.
[root@linuxhelp ~]# linux_logo -u
Step 6: We can use option [-y] to Load Average and use more than one option at a time.
[root@linuxhelp ~]# linux_logo -y
Step 7: We may see all the logos from lots of built-in Logos for various Linux distributions using -L list switch option
[root@linuxhelp ~]# linux_logo -L list
For help option, use -h
[root@linuxhelp ~]# linux_logo -h
Use -L NAME or -L NUM option to display selected logo from the list.
-L NAME is used to print the logo with name NAME.
-L NUM is used to print logo with number NUM.
[root@linuxhelp ~]# linux_logo -L 25
[root@linuxhelp ~]# linux_logo -L 26
[root@linuxhelp ~]# linux_logo -L redhat
[root@linuxhelp ~]# linux_logo –L pld
Note: The -L 25 in the command where 25 is the number at which redhat logo appears in the list, where -L redhat is the name at which redhat logo appears in the list.
Few Tricks of Linux_logo
Step 8: We can print default logo at login, which added in the below line at the end of ~/.bashrc file.
[root@linuxhelp ~]# vi .bashrc
##Add the below line at the end of “.bashrc” file##
if [ -f /usr/bin/linux_logo ]; then linux_logo; fi
Note: If there is no ~/.bashrc file, we may need to create one under user home directory.
Step 9: Once we add the above line, we need to logout and re-login again to see the default logo of our Linux distribution.
If we want to print any logo after login, simply add the below line, in ~/.bashrc
if [ -f /usr/bin/linux_logo ]; then linux_logo -L 25; fi
And one more example
if [ -f /usr/bin/linux_logo ]; then linux_logo -L 5; fi
Note: Don’t forget to replace num with the number which against the logo that want to use.
Step 10: To print our own logo by specifying the location of the logo.
[root@linuxhelp ~]# linux_logo -D /path/to/ASCII/logo
Step 11: Finally Create a Penguin port, which is set of port to answer connection using below line to file /etc/services file.
penguin 4444/tcp penguin
Explanation: ‘4444‘ is the port number.
Also to file /etc/inetd.conf file use the below line,
penguin stream tcp nowait root /usr/local/bin/linux_logo
To restart the service inetd using
# killall -HUP inetd
Thank you! for using Linux Help.
You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website www.linuxhelp.com
Be the first to comment, we value your suggestions. For further queries please comment below.