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. This tutorial covers the generation of color ANSI logos of Linux OS.

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

OR

 

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

linux_logo

 

Step 3:

If you don’t want to print any fancy color, use the option [-a], which view the logo in black and white terminal.

[root@linuxhelp ~]# linux_logo -a

linux_logo_a

 

Step 4:

To print LOGO alone, use option [-l] that exclude all other System Information.

[root@linuxhelp ~]# linux_logo -l

linux_logo_l

 

Step 5:

Use [-u] switch to display the system up time.

[root@linuxhelp ~]# linux_logo -u

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

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

linux_logo_L
For help option, use -h.

[root@linuxhelp ~]# linux_logo -h

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

linuxlogo_L_25

[root@linuxhelp ~]# linux_logo -L 26

linuxlogo_L_26
OR

[root@linuxhelp ~]# linux_logo -L redhat

linuxlogo_redhat

[root@linuxhelp~]# linux_logo –L pld

linuxlogo_pld

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

linuxlogo_fi
 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.

logout

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

linux_logo_l_1

linuxlogo_solaris

And one more example,

if [ -f /usr/bin/linux_logo ]; then linux_logo -L 5; fi

linuxlogo_functions
mandral_linux

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

Where,

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 below command.

# 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.

Tags: Color ANSI Logos
user image Author :  Lincoln