News for hackers. Stuff that matters.
Re:Btop++ is a power resource monitor for Linux by Naac on Saturday September 25, 2021 @03:40PM (#28655665)
On the surface looks like an improvement over htop ( which I've been using for 10+ years )

But this is the kind of software that I would want to keep using. Will btop keep being supported? Is btop going to be available in practically all distros I use? Even currently on Arch its only in the AUR.

Its also concerning there is btop[0] and bpytop[1]? I don't understand the difference.

[0]https://github.com/aristocratos/btop

[1]https://github.com/aristocratos/bpytop

Re:Btop++ is a power resource monitor for Linux by budzynski on Saturday September 25, 2021 @03:53PM (#28655752)
I think bpytop is the previous version writtten in Python. btop++ is a cpp re-write
Re:Btop++ is a power resource monitor for Linux by smichel17 on Sunday September 26, 2021 @08:54AM (#28660510)
And, as I just found while poking around, `bpytop` is also a rewrite, of the original(?) `bashtop`.
Re:Btop++ is a power resource monitor for Linux by Svenstaro on Saturday September 25, 2021 @09:42PM (#28657666)
Would you like to have btop in Arch [community]? I could move it if it has enough interest.
Re:Btop++ is a power resource monitor for Linux by esgwpl on Saturday September 25, 2021 @10:56PM (#28658059)
Yes, please. I added a vote on AUR as well.
Re:Btop++ is a power resource monitor for Linux by peakaboo on Sunday September 26, 2021 @06:40AM (#28659811)
Yes!
Re:Btop++ is a power resource monitor for Linux by bloopernova on Saturday September 25, 2021 @03:10PM (#28655450)
Quick word of warning, if you download it: The release archive doesn't create a directory, just untars into $CWD. So do this:

    mkdir btop
    cd btop
    tar xjvf ~/Downloads/btop.....tbz
    ./install.sh
Apart from that, it looks really, really nice. I like it a lot!
Re:Btop++ is a power resource monitor for Linux by matoro on Saturday September 25, 2021 @05:21PM (#28656286)
I use atool (https://www.nongnu.org/atool/) for unpacking random archives - it abstracts away all formats including zip/rar/7z, compression and also guarantees that nothing is ever extracted into $CWD.
Re:Btop++ is a power resource monitor for Linux by iudqnolq on Saturday September 25, 2021 @06:28PM (#28656713)
I use `unp` for the same thing. `-u` extracts into a directory.
Re:Btop++ is a power resource monitor for Linux by ydant on Sunday September 26, 2021 @07:41AM (#28660070)
Since unp is a stock ticker, it's a little harder to find: https://github.com/mitsuhiko/unp

Looks like it might be in standard Ubuntu repositories:

https://manpages.ubuntu.com/manpages/xenial/man1/unp.1.html

Re:Btop++ is a power resource monitor for Linux by em-bee on Wednesday September 29, 2021 @12:46AM (#28690393)
i use unar/lsar

https://theunarchiver.com/command-line https://github.com/MacPaw/XADMaster

in difference to unp and atool, unar does not depend on other tools to unpack the actual archive

Re:Btop++ is a power resource monitor for Linux by linsomniac on Saturday September 25, 2021 @05:36PM (#28656412)
Gotta check that out, thanks for the tip!
Re:Btop++ is a power resource monitor for Linux by isclever on Saturday September 25, 2021 @03:22PM (#28655549)
This is why I have trust issues when github pulling or exploding a tar.
Re:Btop++ is a power resource monitor for Linux by OJFord on Saturday September 25, 2021 @04:34PM (#28655997)
Maybe it's just me, but this seems like the more obvious behaviour? Personally I'd typically extract in /tmp/relevant-name, and sometimes that results in /tmp/relevant-name/relevant-name.

Doesn't seem a big deal or require/cause trust issues to me.

(And when I create one, I always have to check/look up what happens, so it doesn't surprise me that a variety of things get done at all.)

Re:Btop++ is a power resource monitor for Linux by bityard on Saturday September 25, 2021 @04:46PM (#28656074)
It's been common convention for decades that if you distribute a source tarball of something, that everything inside is inside a directory named foobar-1.0 where 'foobar' is the project name and 1.0 is the version.

Not everyone does this, of course, but it's nice when they do. Because it means you can just wget the file into a dir and untar it without worrying about it messing up whatever is already there. Also handy for putting different versions of the project side-by-side.

Re:Btop++ is a power resource monitor for Linux by OJFord on Saturday September 25, 2021 @05:51PM (#28656518)
Ok, but like you say it's a mixed bag - I 'wget the file into a dir and untar it without worrying about it messing up whatever is already there', because nothing is, it's a mktemp -d or manual equivalent.
Re:Btop++ is a power resource monitor for Linux by wyldfire on Saturday September 25, 2021 @04:48PM (#28656081)
That was typical on DOS/Windows when distributing ZIP archives, for a long time.

But on *nix systems, the idiom for tarballs usually includes a directory containing all of the contents.

> (And when I create one, I always have to check/look up what happens, so it doesn't surprise me that a variety of things get done at all.)

True - I usually do a `tar tf foo.tar.xz |head` to get a quick peek at the archive. This generally avoids the problem of dumping a bunch of files into the current directory.

Re:Btop++ is a power resource monitor for Linux by nerdponx on Saturday September 25, 2021 @04:35PM (#28656001)
I always check the contents with -t before extracting.
Re:Btop++ is a power resource monitor for Linux by mangamadaiyan on Saturday September 25, 2021 @09:10PM (#28657524)
One could always run "tar tv[z]f" on the archive first, and then choose whether or not to explode it in the current directory.
Re:Btop++ is a power resource monitor for Linux by javchz on Saturday September 25, 2021 @02:32PM (#28655155)
The first thing I do with a Linux installation it's always add htop, and this it's the first time I feel the need to try something new in my routine.
Re:Btop++ is a power resource monitor for Linux by 404mm on Saturday September 25, 2021 @03:41PM (#28655668)
htop and ncdu
Re:Btop++ is a power resource monitor for Linux by publicarray on Saturday September 25, 2021 @05:17PM (#28656251)
For me, it's been bottom https://github.com/ClementTsang/bottom and dua https://github.com/Byron/dua-cli for a while

I've found some other cool CLIs written with rust at https://github.com/TaKO8Ki/awesome-alternatives-in-rust

Re:Btop++ is a power resource monitor for Linux by sdwolfz on Sunday September 26, 2021 @04:43AM (#28659354)
Is there a `htop` for temperature or network traffic similar to these tools?
Re:Btop++ is a power resource monitor for Linux by josteink on Sunday September 26, 2021 @07:10AM (#28659929)
iftop has networking covered.
Re:Btop++ is a power resource monitor for Linux by yjftsjthsd-h on Saturday September 25, 2021 @06:22PM (#28656680)
I like htop+dstat as nice compliments, but sadly dstat isn't universally available like htop and it's unmaintained
Re:Btop++ is a power resource monitor for Linux by brightball on Saturday September 25, 2021 @03:15PM (#28655490)
htop and multitail are always tied for me.
Re:Btop++ is a power resource monitor for Linux by nerdponx on Saturday September 25, 2021 @04:36PM (#28656009)
https://linux.die.net/man/1/multitail

I never heard of this one before. What's the benefit instead of doing this with Tmux?

Re:Btop++ is a power resource monitor for Linux by brightball on Saturday September 25, 2021 @05:49PM (#28656507)
Biggest thing is if you’re doing a streaming tail with an * pattern, it figures it out and filters them into proper groups instead of a single blob stream.

I didn’t know you could something like that we tmux though. I’ll have to check it out. :)

Re:Btop++ is a power resource monitor for Linux by nerdponx on Saturday September 25, 2021 @07:53PM (#28657152)
You can't, I was just talking about tailing multiple files in Tmux splits.
Re:Btop++ is a power resource monitor for Linux by ggregoire on Saturday September 25, 2021 @04:52PM (#28656110)
> multitail

You just made my day. I always open multiple ssh sessions just to display various logs at the same time.

Seems like you can even docker-compose logs -tf | multitail -j.

edit: I never took the time to learn tmux but after just watching a use case video, seems like you could achieve the same result with tmux indeed, as the other comment suggested.

Re:Btop++ is a power resource monitor for Linux by tstack on Saturday September 25, 2021 @07:27PM (#28657025)
If you're open to new tools, the latest version of the Logfile Navigator (lnav) supports remote hosts over ssh:

https://lnav.org/2021/05/03/tailing-remote-files.html

The main advantages of lnav over multitail is that it collates log files by time and does syntax highlighting. There are many other features as well -- https://lnav.org/features

Re:Btop++ is a power resource monitor for Linux by kzrdude on Saturday September 25, 2021 @06:35PM (#28656753)
tmux or gnu screen work fine (screen is sometimes installed when tmux is not)
Re:Btop++ is a power resource monitor for Linux by ohazi on Saturday September 25, 2021 @01:56PM (#28654922)
That terminal UI is a work of art...
Re:Btop++ is a power resource monitor for Linux by aidos on Saturday September 25, 2021 @02:52PM (#28655306)
It’s really nice. That main main screen is giving me flashbacks to Doom.
Re:Btop++ is a power resource monitor for Linux by pridkett on Saturday September 25, 2021 @06:53PM (#28656873)
It’s giving me some pretty heavy mid-90’s BBS vibes. Even the menu with the big BTOP++ logo reminds me of a main menu on a BBS.

Now if we can just slow it down to 240 characters/second to simulate the real experience. It won’t be authentic unless it also slows down when you’re changing colors because of the ANSI escape codes.

Re:Btop++ is a power resource monitor for Linux by GekkePrutser on Saturday September 25, 2021 @02:08PM (#28654994)
Agreed. I thought gotop was cool but wow
Re:Btop++ is a power resource monitor for Linux by jancsika on Saturday September 25, 2021 @02:45PM (#28655250)
Author: please make your program name an acronym for

Bower Tesource Onitor for Pinux

Re:Btop++ is a power resource monitor for Linux by yewenjie on Saturday September 25, 2021 @02:14PM (#28655030)
I have been using glances for a terminal sysmon but I don't like that it eats so much RAM. Can someone please recommend a system monitor that is easy to comprehend and less resource hungry?

I am also curious about below [0] since it came up recently.

[0] https://github.com/facebookincubator/below

Re:Btop++ is a power resource monitor for Linux by smoldesu on Saturday September 25, 2021 @02:22PM (#28655087)
Maybe bottom[0]? I use bpytop but probably wouldn't recommend it on account of how heavy it is. I remember bottom being pretty lightweight when I used it, without sacrificing readability.

[0] https://github.com/ClementTsang/bottom

Re:Btop++ is a power resource monitor for Linux by sk5t on Saturday September 25, 2021 @03:11PM (#28655455)
'nmon' doesn't get much attention, but it feels lightweight (I haven't tested if it really is) - https://en.wikipedia.org/wiki/Nmon
Re:Btop++ is a power resource monitor for Linux by jeffbee on Saturday September 25, 2021 @02:39PM (#28655198)
Kinda depends on what you want to know and how much memory you think is too much. Implementations range from sar to atop to netdata and many others.
Re:Btop++ is a power resource monitor for Linux by stjohnswarts on Sunday September 26, 2021 @10:13AM (#28661053)
ytop is nice rust based one if you like the rust ecosystem, it's still good even if you don't but I think you need to install cargo/rust in most cases to build it, I don't think anyone packages it. "cargo install ytop" -> .cargo/bin/ytop
Re:Btop++ is a power resource monitor for Linux by filchermcurr on Sunday September 26, 2021 @03:50AM (#28659169)
That's the prettiest 'make' I've ever seen. I wish I had something more useful to contribute but I'm still staring at its beauty.
Re:Btop++ is a power resource monitor for Linux by einpoklum on Saturday September 25, 2021 @03:38PM (#28655657)
This looks very nice, but the compiler version requirement is very painful for those of us working on machines installed more than a year ago... GCC 10, ouch. I mean, newer versions are great, but when you don't control your machine's OS distribution, installing GCC 10 is not the most trivial thing to do.
Re:Btop++ is a power resource monitor for Linux by jcelerier on Saturday September 25, 2021 @04:33PM (#28655992)
You can just use a GCC docker image to build: https://hub.docker.com/_/gcc
Re:Btop++ is a power resource monitor for Linux by einpoklum on Saturday September 25, 2021 @05:47PM (#28656492)
No I can't... without an appropriate installation of docker and/or dependencies of docker.

See: https://docs.docker.com/engine/security/rootless/#prerequisi...

Re:Btop++ is a power resource monitor for Linux by zamadatix on Saturday September 25, 2021 @06:53PM (#28656871)
You don't control your device OS or otherwise have access to a machine you do, your OS does not offer modern packages, and you don't have the ability to otherwise pull in development toolchain resources.... yet it's supposed to be the projects problem you can't compile something started in 2021 from source on your older setup?

I get your current situation is less than ideal for you but at some point you have to accept the project is not the source of painfulness associated with you trying to compile new apps from source, it's just the trigger.

Re:Btop++ is a power resource monitor for Linux by einpoklum on Sunday September 26, 2021 @03:45AM (#28659146)
You have the implicit assumption that I'm working on an individual project. Imagine a large company which settles on an OS for some product that goes into the field for 10 or 20 years. That's the OS you're stuck with. And yes, that's painful in itself.

Now, I _can_, with some effort, pull/build a development toolchain. But it would be much nicer if I could have access to this utility on machines with older toolchains, that's all.

Re:Btop++ is a power resource monitor for Linux by harshitaneja on Sunday September 26, 2021 @06:14AM (#28659710)
You can install the binary on your device and don't need to compile from source for using the application.

It seems unfair to both developers and other users of the project to expect it to be compatible with older toolchains given the benefits of the newer builds.

Re:Btop++ is a power resource monitor for Linux by ghotli on Sunday September 26, 2021 @09:41PM (#28666271)
This. In the github readme it says static binaries are supplied. Thinking of linux and linux tooling as just something distros supply limit the imagination. Pull down the correct static and you're done. If you still want to compile it, it's easy.

From linux from scratch to muslcc to buildroot to yocto you can get nice new compilers and run them in docker or in a simple chroot. Requiring new compiler versions is a good thing and any disto related impediments are a distraction from just getting simple toolchain tooling going.

Re:Btop++ is a power resource monitor for Linux by zamadatix on Sunday September 26, 2021 @05:57PM (#28665030)
> You have the implicit assumption that I'm working on an individual project.

There is no such implication.

Re:Btop++ is a power resource monitor for Linux by j1elo on Saturday September 25, 2021 @08:45PM (#28657405)
That link says "Known to work on Ubuntu 18.04, 20.04, and 21.04", although maybe Ubuntu is just the default selection when the page loads... still, I guess you won't be testing much new software if they don't allow you even using Docker!
Re:Btop++ is a power resource monitor for Linux by jcelerier on Sunday September 26, 2021 @02:59AM (#28658978)
If you don't even have the right to install docker on your own machine what makes you think that your sysadmins are ok with you compiling this random software from the internet anyways ?
Re:Btop++ is a power resource monitor for Linux by thraneh on Sunday September 26, 2021 @03:14AM (#28659031)
Maybe download Miniforge and install gcc_linux-64, then you get GCC 11, all without sudo, on (probably) any Linux distro
Re:Btop++ is a power resource monitor for Linux by mcbuilder on Saturday September 25, 2021 @08:14PM (#28657255)
Wow, this is a very nice fully featured, with mouse support, terminal application! Just installed from the AUR and hopefully will remember it to replace htop in my mind!
Re:Btop++ is a power resource monitor for Linux by henriquemaia on Saturday September 25, 2021 @08:22PM (#28657293)
Suggestion:

Create an htop alias for btop. Then you'll never have to worry about forgetting it.

Re:Btop++ is a power resource monitor for Linux by biglost on Saturday September 25, 2021 @02:53PM (#28655307)
For me it’s enough iotop + bpytop + htop
Re:Btop++ is a power resource monitor for Linux by codetrotter on Saturday September 25, 2021 @03:05PM (#28655403)
The readme for bpytop links to btop++

https://github.com/aristocratos/bpytop

It says:

> The Linux version of btop++ is complete. Released as version 1.0.0

My impression is that btop++ is the successor to bpytop. Or even if bpytop continues to be maintained that they intend for most people to use btop++ instead going forward.

Re:Btop++ is a power resource monitor for Linux by xiamx on Saturday September 25, 2021 @11:34PM (#28658188)
It's the same person that wrote bpytop. He also wrote bashtop. 3 times implementation of the same thing. That's dedication!
Re:Btop++ is a power resource monitor for Linux by pabs3 on Saturday September 25, 2021 @10:24PM (#28657897)
I recommend the C reimplementation of iotop btw, it has lots more features and is more efficient and is maintained. It is packaged as iotop-c in Debian and other distros.

https://github.com/Tomas-M/iotop

Re:Btop++ is a power resource monitor for Linux by stjohnswarts on Sunday September 26, 2021 @10:09AM (#28661022)
Takes at least gcc-10 to compile, but other than that it was pretty easy to get going.
Re:Btop++ is a power resource monitor for Linux by btach on Saturday September 25, 2021 @02:51PM (#28655299)
Looks almost identical to bpytop. Super neat!
Re:Btop++ is a power resource monitor for Linux by jonnydubowsky on Saturday September 25, 2021 @07:48PM (#28657124)
Does anyone know where I can find that font?
Re:Btop++ is a power resource monitor for Linux by hullsean on Saturday September 25, 2021 @07:41PM (#28657097)
Wow. That’s hot!
Re:Btop++ is a power resource monitor for Linux by inshadows on Sunday September 26, 2021 @08:13AM (#28660259)
I'm sure you put a lot of work into it and it looks nice. But terminal just sucks for graphics layout.