Welcome! Log In Create A New Profile

Advanced

Linux Logo

Posted by bodhi 
Linux Logo
November 03, 2024 06:20PM
Now it's time for a bit of fun with Linux Logo! You can also use neofetch for the same purpose.

apt-get install linuxlogo

And then add this command to the end of your ~/.profile (~ is whatever user you login into).

On a single CPU box, use this command:
/usr/bin/linuxlogo -a -s -F "#O Version #V, Compiled #C by bodhi\n #N #M #X #T Processor#S, #R RAM\n #U\n `dmesg | grep -i machine | cut -c40-120`\n #H"

On a multi-CPU box use this command:
/usr/bin/linuxlogo -a -s -F "#O Version #V, Compiled #`uname -v` by bodhi\n #N #M #X #T Processor#S, #R RAM\n #U\n `dmesg | grep -i machine | cut -c40-120`\n #H"
There is a know bug documented by the linuxlogo author: the OS_Revision (#C formatted string) got truncated to 40 chars. This is not long enough for a SMP PREEMPT kernel.


Next time you log in, you will be met with a nice Debian logo and some useful info.

Change the string "by bodhi" in the command with whatever you'd like. Or add some new string to the command above.

===== Here what it looks like =====

        _,met$$$$$gg.                                                           
     ,g$$$$$$$$$$$$$$$P.                                                        
   ,g$$P""       """Y$$.".                                                      
  ,$$P'              `$$$.                                                      
',$$P       ,ggs.     `$$b:                                                     
`d$$'     ,$P"'   .    $$$                               ,#.                    
 $$P      d$'     ,    $$P      ##:          :##        :###:                   
 $$:      $$.   -    ,d$$'      ##'          `##         `#'                    
 $$;      Y$b._   _,d$P'    __  ##     __     ##  __      _     __          _   
 Y$$.    `.`"Y$$$$P"'     ,####:##  ,######.  ##.#####. :### ,######. ###.####: 
 `$$b      "-.__         ,##' `###  ##:  :##  ###' `###  ##' #:   `## `###' `##:
  `Y$$b                  ##    `##  ##    ##  ##'   `##  ##    ___,##  ##:   `##
   `Y$$.                 ##     ##  #######:  ##     ##  ##  .#######  ##'    ##
     `$$b.               ##     ##  ##'       ##     ##  ##  ##'  `##  ##     ##
       `Y$$b.            ##.   ,##  ##        ##    ,##  ##  ##    ##  ##     ##
         `"Y$b._         :#:._,###  ##:__,##  ##:__,##' ,##. ##.__:##. ##     ##
             `""""       `:#### ###  ######'  `######'  #### `#####"## ##     ##

Linux Version 6.11.4-kirkwood-tld-1, Compiled #1 PREEMPT Sat Oct 19 15:53:48 PDT 2024 by bodhi
             One 2GHz Marvell Feroceon 88FR131 Processor, 1.8GB RAM
                        Uptime 7 days 21 hours 53 minutes
                                 Dell KACE M300
                                   tldDebian6

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 5 time(s). Last edit at 11/13/2024 02:58PM by bodhi.
tme
Re: Linux Logo
November 05, 2024 02:06PM
Hi bodhi,

Nifty!

You may skip the -u option (display the system uptime), since it's overruled by the -F option, and add '#U\n' to the string in stead.

Best regards,
Trond Melen
Re: Linux Logo
November 05, 2024 02:16PM
> You may skip the -u option (display the system
> uptime), since it's overruled by the -F option,
> and add '#U\n' to the string in stead.

Thanks Trond!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Logo
November 05, 2024 06:00PM
1st post revision:

Quote

On a multi-CPU box use this command:
/usr/bin/linuxlogo -a -s -F "#O Version #V, Compiled #`uname -v` by bodhi\n #N #M #X #T Processor#S, #R RAM\n #U\n `dmesg | grep -i machine | cut -c40-120`\n #H"
There is a know bug documented by the linuxlogo author: the OS_Revision (#C formatted string) got truncated to 40 chars. This is not long enough for a SMP PREEMPT kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Logo
November 05, 2024 09:19PM
A similar program is available called 'neofetch'. Example of default output after installing on Netgear-Stora:

       _,met$$$$$gg.          rayk@Netgear-Stora 
    ,g$$$$$$$$$$$$$$$P.       ------------------ 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 11 (bullseye) armv5tel 
 ,$$P'              `$$$.     Host: NETGEAR MS2000 / MS2110 aka Stora 
',$$P       ,ggs.     `$$b:   Kernel: 6.2.7-kirkwood-tld-1 
`d$$'     ,$P"'   .    $$$    Uptime: 66 days, 23 hours, 28 mins 
 $$P      d$'     ,    $$P    Packages: 611 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.1.4 
 $$;      Y$b._   _,d$P'      Terminal: /dev/pts/0 
 Y$$.    `.`"Y$$$$P"'         CPU: Marvell Kirkwood (Flattened Device Tree) (1) 
 `$$b      "-.__              Memory: 31MiB / 107MiB 
  `Y$$
   `Y$$.                                              
     `$$b.                                            
       `Y$$b.
          `"Y$b._
              `"""

This is also configurable and the command 'neofetch --print_config' has extensive comments on the various configuration options.

Ray
Re: Linux Logo
November 05, 2024 10:25PM
> A similar program is available called 'neofetch'.

Nice!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: