Live data from Hacker News

What: A terminal tool to check what is taking up your bandwidth

github.com

111–120 of 190 posts

Re: What: A terminal tool to check what is taking up your bandwidth

#111
post #19

What can be a reason if on MacOS it does not capture traffic? I see empty panels. Tried to run with and without `sudo`.

yep, on macOS 10.14.6 the command starts but the panes stays empty (silent error) because of SIP "Sandbox: lsof System Policy: deny(1)"

Re: What: A terminal tool to check what is taking up your bandwidth

#112
post #75

Hey, I am the author of "what" and am very happy to hear people like this tool I made. :) "what" was my first real attempt at rust, and I love the project very much. That said, it is a hobby project - and so I will likely be a few days responding to all issues and contributions that came from this thread. "what" has already received some great contributions that are major parts of the code base. I would be very happy…

Never used rust so I didn't know cargo was part of rust. Thought it was some other big install tool like brew.

Got it now but there's an error. Anyway, I've always wanted a tool like this, so I'm looking forward to its development. Thank you!

Re: What: A terminal tool to check what is taking up your bandwidth

#113
post #37

Earlier quoted context omitted.

This is in the top class of utilities (htopm etc). A good name could probably be bwtop, or tcptop or iftop. Actually I searched for these, and turns out iftop exists! ( https://linux.die.net/man/8/iftop )

iftop is a remarkably useful utility. It's often one of the first things I install on new openwrt installations.

iftop (and ifstat) are part of my preseed file, along with tcpdump, (and htop/iostat/pidstat/mpstat)

For a router I'd also put ntopng on.

Re: What: A terminal tool to check what is taking up your bandwidth

#114
Running Catalina, with sudo I'm able to get the screen up and running, but at first data I get a panic:

thread 'display_handler' panicked at 'overflow when subtracting durations', src/libcore/option.rs:1185:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Re: What: A terminal tool to check what is taking up your bandwidth

#115

Earlier quoted context omitted.

That was a response to them having an issue with losing bookmarks. Are bookmarks in general now a negative onus?

As search engines have gotten better over the years, I find my use of bookmarks is usually write-once read-never. Part of that is due to the fact that iOS is now my primary consumption platform, and finding bookmarks in a complex structure is much more awkward than it should be. Part of it is just laziness: trying to manage a complex bookmark folder is more work than I care to do when search engines give me 99% of wh…

For what it's worth I had the same problem with folder/hierarchically structured bookmarks, but tag-based bookmarking (like del.icio.us used to provide) meshed very well with me and my workflow so I wrote https://savecrate.com (still a WIP and rough around the edges but functional enough to work for me)

Re: What: A terminal tool to check what is taking up your bandwidth

#116
post #17

Installation with yay/crate can be slow. This small tool took 4 minutes of compile time, the Rust crates seem to be very fine granular (like node.js vor example) and require much compile time. 204 crates needed to be compiled. I found that, using yay or another aur helper on arch linux, having a few rust utilities installed that have regular updates, significantly slows down the average system upgrade time. I tend to…

That's the nature of these spare time one (wo)man side projects: packaging a piece of software for a wide variety of distributions and platforms is tedious and boring, so unless there's a large community (or money) involved, you have to compile it from source. Of course, you can always package your favourite utility for your favourite distribution. I'm sure the author would be thrilled to endorse your package in the…

RPM and DEB packaging are going to help make it available to about 90% of Enterprise and cloud based Linux environments respectively. It's well worth the effort IMHO.

Re: What: A terminal tool to check what is taking up your bandwidth

#117
post #95

Earlier quoted context omitted.

How is Git pejorative? I haven't heard that word used like that, but I've only heard it to refer to the vcs.

The word “git” as a pejorative (calling someone unpleasant, e.g. “Linus Torvalds is such a git”) long predates the VCS. Linus himself chose the name for the VCS partly due to the meaning, sarcastically remarking that he was naming another project after himself (first Linux, then Git). See the Wikipedia entry for more detail: https://en.m.wikipedia.org/wiki/Git#Naming

Interesting, thanks!

Re: What: A terminal tool to check what is taking up your bandwidth

#118
post #75

Hey, I am the author of "what" and am very happy to hear people like this tool I made. :) "what" was my first real attempt at rust, and I love the project very much. That said, it is a hobby project - and so I will likely be a few days responding to all issues and contributions that came from this thread. "what" has already received some great contributions that are major parts of the code base. I would be very happy…

Never used rust so I didn't know cargo was part of rust. Thought it was some other big install tool like brew. Got it now but there's an error. Anyway, I've always wanted a tool like this, so I'm looking forward to its development. Thank you!

It's a tool to manage dependencies for rust and can also install rust programs (it will download, compile and install)

Re: What: A terminal tool to check what is taking up your bandwidth

#119
post #24

Earlier quoted context omitted.

How is that musl based binary built ? I saw the repositories travis configuration and wasn't able to find anything relevant.

The simplest way is to pass the —target flag with the musl target; that should work unless you’re also including C code, and then it may Just Work or may need you to do something special.

I've been using `nethogs` for this for a long time, and it is already in most Linux repos and can be installed quickly.

https://github.com/raboof/nethogs

Re: What: A terminal tool to check what is taking up your bandwidth

#120

Earlier quoted context omitted.

cargo install what (fails) Package `trust-dns-proto v0.18.0` does not have these features: `tokio-compat` (MacOS 10.15.2)

This is one of the biggest problems I've had with any neat Rust thing posted up here. The language changes a lot. I have rust/cargo 1.37.0 installed (it's the latest marked stable in Gentoo) and adler32 v1.0.4 fails to compile with "`core::slice:: ::len` is not yet stable as a const fn". I'm installing 1.40.0 from the unstable tree to see if that will build it. I've had situations where I'm either not on the latest v…

Just a nitpick: Rust 1.40 seems to be the stable version for a couple of weeks now.
Post reply on HN