Then there are a lot of crazies out there :)
It’s all about picking the right tool for the job. Don’t overkill something with some elaborate python code or c code for example, when it can be quickly written in a unix shell. Don’t underestimate either, writing a full blown UI these days isn’t very efficient, but there are a few I’ve seen in the past that are impressive (and I would imagine written purely for the sake of it) and I don’t mean glue ui elements with external tools like zenity. For fun, and to be clear I have zero connection to this - only enjoy clever work as most can appreciate, check out bashtop ( https://github.com/aristocratos/bashtop ), looks like the author rewrote it in python now. None the less impressive for a pure bash tool.
Maybe look into git tagging to tag versions, to make it easy to switch between versions (for example for testing). You can also populate GitHubs Release page with for example an changelog (you could also include that information in the annotated tag itself, so it won't get "lost" when moving off GitHub or something).
I could not find a definite source, but the images in the documentation: https://github.com/aristocratos/bashtop show the same tendency.
It is not unheard of that individual CPU percentages are displayed in the 1..100 range of that CPU. And CPU percentages of individual programs are also displayed in the 1..100 range based on the total installed CPU.
So yes, your folding at home client is probably using roughly 3 cores at 100% (12.5 * 3)
Playing around on the desktop version is much easier if you have never used a Linux system before. But here you are https://ubuntu.com/download/server
Grab a copy of Rufus or Etcher and have a go with an empty flash drive. Make sure you install Nano for easy file editing. (micro, is nice if you like code highlighting)
I prefer to use SSH for remote terminal access with SCP for transfering files and SSHFS for easy drag and drop. I got an old laptop set to autologin and startup a TUI program (terminal user interface) bashtop looks pretty slick.
<em>bash</em>: Lines 89-95 of the <em>bashtop</em> script define the banner, lines 294-313 draw it.
I don't know anything about Linux Lite, but I have an old laptop with 4GB of RAM too. I had the Cinnamon desktop on it at first. Seemed a little slow. Looking at it with Bashtop, it seemed it was using 2GB to run. Then I tried Linux mint XFCE. Bashtop said the OS was taking up about 1GB to run.
I don't know about Cinnamon being a lot better looking. I'm 62 and not into flashy stuff, but I think my desktop/laptop doesn't suffer too much to be unattractive. (Note: I have the font size enlarged a bit for older eyes).
Don't think of XFCE as a LITE version of Cinnamon. Although similar, XFCE isn't missing anything. It is its own disto, and complete in every way.
I've been searching forums for solutions, and ran across one that gave me a hint. It started with, "If you have too much stuff..."
The only reason that would make a difference is if everything on the applications' menu is being loaded into memory. I tested this by only clicking the button once. Then waited two minutes and clicked it again. This time, the menu opened and was fully functional.
I had the Cinnamon desktop on the laptop prior to this. The menu worked as soon as it was clicked. Then xfce isn't designed to be as heavy on resources. And, it isn't. I've monitored both using Bashtop.
Unless I find a better answer, I'll believe the only way to make it quicker would be to have less stuff in the menu. It's a small quirk. I can live with it.
$ bashtop bash: bashtop: command not found sudo apt install bashtop E: Unable to locate topic bashtop
But, ah, it is here, complete with grossly ambiguous description. To wit: 'bashtop — stylish and simple Bash console performance monitor (resource monitor).' So does it monitor Bash or (or and/or) is it written in Bash? But, whatever language it was originally, it is now in Python, and, apparently, much better for it. See here. Presuming it was in Bash: so, yes, one can do such a thing in Bash; but, judging by this project and its migration to Python, doing such a thing in Bash is a bad idea.
https://github.com/aristocratos/bashtop
"It's also a lot easier for me to bug fix and it's the project I'm actively working on, so please try to migrate to bpytop."
It appears bashtop isn't in active development. Switch to bpytop if you haven't already.
Personally I'll stick with htop. I just don't need the features of bpytop.
As it currently looks, the development of htop has been stopped, because even small pull requests are no longer processed.
I therefore point to https://github.com/aristocratos/bashtop or its Python port https://github.com/aristocratos/bpytop as an alternative.
The terminal emulator is just Konsole.
One terminal is running bashtop: https://github.com/aristocratos/bashtop
The other is just on the zsh shell. My .zshrc runs linux_logo with a custom .logo file that I built from neofetch's Manjaro logo, an ASCII text generator and some custom strings.
Thanks for oilshell!
I've a few candidates that might pose good challenges:
bashforth: https://github.com/Bushmills/Bashforth. osh complains about declare -i
and left-hand assignment like (($1 = foo ))
.
bashtop: https://github.com/aristocratos/bashtop . After commenting out the guard for bash 4.4, /bashtop:158: fatal: Associative array keys must be strings: $x 'x' "$x" etc.
I was thinking if the nix build system (that relies on bash AFAIK) would be something to aim for as in THE MOST COMPLEX BASH SYSTEM EVER. I'm no nix expert, but I think it assumes bash.
I'm trying those with osh ./bashforth
. Is it the correct way?
Sorry if I'm doing anything wrong from the start, I couldn't follow oil so closely lately.
I couldn't find a terminal resource monitor that I was happy with, so wrote my own, in bash...