dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
21.88k stars 1.76k forks source link

simple improvements for Solaris #2293

Open senjan opened 1 year ago

senjan commented 1 year ago

Description

I'm proposing 2 simple improvements for neofetch on Oracle Solaris:

1) current version always reports "Kernel" as 5.11 on Solaris 11 (and newer) which is not very useful. I'm proposing printing the full version string, including the SRU number. The Solaris Repository Update is a vehicle Oracle uses to deliver fixes and updates to Solaris.

2) adding information about the virtualization environment to the "Host" line - neofetch will display whether the system runs within a VirtualBox, Non-Global Zone, LDOM etc.

Examples

(logos omitted because they break formatting)

Solaris 11.4 SRU49 on an x86 running in VirtualBox

  foo@example.org
  --------------
  OS: Oracle Solaris 11.4 i386
  Host: i86pc (virtualbox)
  Kernel: 11.4.49.126.2
  Uptime: 3 mins
  Packages: 236 (pkginfo)
  Shell: bash 5.1.16
  Terminal: /dev/pts/2
  CPU: Intel Xeon E5-2690 v2 @ 2.992GHz
  Memory: 2958MiB / 4095MiB

Solaris 11.4 SRU29 on a bare metal T5-2 SPARC system

  foo@example.org
  --------------------
  OS: Oracle Solaris 11.4 sparc
  Host: SPARC T5-2
  Kernel: 11.4.27.82.1
  Uptime: 9 days, 29 mins
  Packages: 219 (pkginfo)
  Shell: bash 5.0.17
  Terminal: /dev/pts/1
  CPU: SPARC-T5 (chipid 1, clock 3600 MHz) @ 3.600GHz
  Memory: 23448MiB / 523264MiB

Solaris 11.4 SRU52 in a zone on an x86

  foo@example.org
  -------------
  OS: Oracle Solaris 11.4 i386
  Host: i86pc (non-global-zone)
  Kernel: 11.4.52.132.2
  Uptime: 2 days, 2 hours, 56 mins
  Packages: 107 (pkginfo)
  Shell: bash 5.1.16
  Terminal: /dev/pts/4
  CPU: Intel Celeron G1610T @ 2.295GHz
  Memory: 1345MiB / 2048MiB

Solaris 10 Update 11 on a SPARC workstation

  foo@example.org
  ------------
  OS: Oracle Solaris 10 sparc
  Host: Sun Blade 1500
  Kernel: Generic_150400-48
  Uptime: 51 mins
  Packages: 2474 (pkginfo)
  Shell: bash 4.3.33
  Resolution: 1920x1200
  DE: GNOME
  Terminal: gnome-terminal
  CPU: UltraSPARC-IIIi (1) @ 1.503GHz
  Memory: 1723MiB / 3996MiB
hykilpikonna commented 1 year ago

Thank you for your contribution!

This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.

HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.

Read the "Running Updated Original Neofetch" section for more info!