Open afbjorklund opened 2 years ago
Started with these:
/etc/os-release
uname
uptime
Example usage:
Something simple like pfetch
would do just fine.
https://github.com/dylanaraps/pfetch
$ limactl shell default ./pfetch
_ anders@lima-default
---(_) os Ubuntu 22.10
_/ --- \ host Standard PC (Q35 + ICH9, 2009) pc-q35-4.2
(_) | | kernel 5.19.0-26-generic
\ --- _/ uptime 9m
---(_) pkgs 607
memory 463M / 3919M
$ limactl shell alpine ./pfetch
/\ /\ anders@lima-alpine
// \ \ os Alpine Linux v3.17
// \ \ host Standard PC (Q35 + ICH9, 2009) pc-q35-4.2
/// \ \ kernel 5.15.80-0-virt
// \ \ uptime 3m
\ pkgs 84
memory 305M / 3934M
https://beucismis.github.io/awesome-fetch/
1958 pfetch
6679 screenfetch
11592 neofetch
Description
I was looking at adding some more basic details from the guest
This was available in the "host" structure, and in /etc/os-release.
I opened another issue, about the more dynamic information:
This issue would be the more static part such as OS and total.
Similar to the output of "screenfetch" or "neofetch", but less clutter.
It is available through shell commands, but could use some JSON ?
Example info:
https://pkg.go.dev/github.com/shirou/gopsutil/host
Some of these shell scripts are quite long...
https://github.com/KittyKatt/screenFetch
https://github.com/dylanaraps/neofetch
And there seems to be some bugs, as well.