sysfetch
sysfetch copied to clipboard
Errors on Qemu
This is the output on Qemu...
./sys/linux.sh: line 145: /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory
./sys/linux.sh: line 150: /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory
./sys/linux.sh: line 173: /sys/devices/virtual/dmi/id/board_vendor: No such file or directory
./sys/linux.sh: line 174: /sys/devices/virtual/dmi/id/board_name: No such file or directory
./sys/linux.sh: line 209: /1024: syntax error: operand expected (error token is "/1024")
paul@X
uptime ~ 405 days, 4 hrs, 23 mins
kernel ~ 4.19.0-16-amd64 arch ~ x86_64
distro ~ VERSION_CODENAME=buster
term ~ paul shell ~ bash
pkgs ~ 459
cpu ~ Intel Xeon (Skylake, IBRS)
gpu ~ 1111 (rev 02)
mobo ~
disk ~ 18G/19G 100% QEMU_HARDDISK
ram ~ 873/1947M swap ~ /M
I really appreciate you sharing the snippet here! As you know, it looks like several of the directories won't appear through virtualization. I will get setup Qemu tonight and work on finding alternative methods to read swap or other possibilities. I think motherboard and real disk name may be impossible. The current distro method is proving to be unreliable for several systems
@paulcobbaut This should be solved by hiding output completely if swap doesn't exist or other data since recent rewrite. Will have to do some more testing to ensure graceful error handling and such. I'll keep this open till we know for sure
That system is still running by the way :)
./sysfetch: line 49: /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory ./sysfetch: line 54: /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory ./sysfetch: line 77: /sys/devices/virtual/dmi/id/board_vendor: No such file or directory ./sysfetch: line 78: /sys/devices/virtual/dmi/id/board_name: No such file or directory ./sysfetch: line 91: /sys/class/block//device/model: No such file or directory ./sysfetch: line 156: hash: wmctrl: not found paul@X Uptime: 1017 days, 5 hours, 39 minutes Kernel: Linux 4.19.0-16-amd64 x86_64 OS: linux-gnu CPU: Intel Xeon Processor (Skylake, IBRS) .@. GPU: Device 1234:1111 (rev 02) Disk: 4/18 GiB RAM: 859/1947 44% Load: 00% Kernel: Linux 4.19.0-16-amd64 Distro: Debian GNU/Linux 10 (buster) Packages: 0
Hey, I'd say that's an improvement! Just need to put it some error handling now and it should be all good, looks like
1017 days!!! 🤯 Has it really been 512 days??