Live data from Hacker News

Show HN: X11 desktop widget that shows location of your network peers on a map

github.com

81–90 of 90 posts

Re: Show HN: X11 desktop widget that shows location of your network peers on a map

#81
post #23

This seems like it belonged on freshmeat ca. Y2K.

What's that? Webarchive/google don't return much of anything.

The thing that the responses are not capturing is that the stuff on freshmeat was often kind of frivolous desktop widgets or themes. People were excited about Linux desktops and lots of people were authoring small stuff to customize it.

Network monitoring/visualization widgets that sit on your WindowMaker dock or similar was a common theme.

So that is sort of the reference being made here

Re: Show HN: X11 desktop widget that shows location of your network peers on a map

#82
very cool. works like a charm also on Sway

in ~/.config/sway/config:

   for_window [class="connmap"] fullscreen enable
cat ~/.config/connmap/connmaprc

   location_x 20
   location_y 500
   map_width 1920
   black false
   update_interval 1
bonus: connect it to a right-click event either on the vpn or the network module in waybar

     "custom/wg":{
         "format": "wg {icon} {text}",
         "exec": "~/.config/waybar/modules/wg",
         "return-type": "json",
         "interval": 5,
         "format-icons": ["",""],
        "on-click-right": "~/bin/connmap"
     },

Re: Show HN: X11 desktop widget that shows location of your network peers on a map

#83

Works also great with WindowMaker. I've added it to ~/GNUstep/Library/WindowMaker/autostart

Using windowmaker in 2025 is certainly an ...interesting choice, though I admit the app probably looks like it fits right in with that aesthetic

There is even a beautiful Debian-based Window Maker distribution, called Window Maker Live. I am using this in a professional music studio as mixing workstation. https://wmlive.sourceforge.net/

Re: Show HN: X11 desktop widget that shows location of your network peers on a map

#84
connmap wouldn't run on my retrocomputer with ancient Xorg 1.7.6 so I vibe coded a janky perl gtk2 version and it works.

http://superkuh.com/connmap-perl-gtk2.pl.txt + http://tuvixdiedforoursins.org/w1000-old.png (baked black background map)

It looks pretty similar: http://tuvixdiedforoursins.org/connmap-perl-gtk2-screenshot.... vs http://tuvixdiedforoursins.org/connmap-original-screenshot.j...

Re: Show HN: X11 desktop widget that shows location of your network peers on a map

#85
post #38

Earlier quoted context omitted.

As long as you’re fixing that bug, you should do it right. If the return value from snprintf if more than 256 but less than a few GB then you should malloc a buffer big enough to hold the string and then call snprintf again with the new buffer. Only if that or malloc fails would you print an error. (It’s really a shame that the C standard library requires so many extra steps to do things correctly; this ought to be w…

Not sure offhand how portable it is, but asprintf() handles automatic buffer allocation, thus not requiring any extra steps afaik. It does exit on MacOS and Linux, at the very least.

Those are so unportable that I’d completely forgotten about them :)

But my man pages say that they exist on BSD in addition to GNU, so that’s pretty good these days. I say go for it.

Re: Show HN: X11 desktop widget that shows location of your network peers on a map

#86

Earlier quoted context omitted.

Using windowmaker in 2025 is certainly an ...interesting choice, though I admit the app probably looks like it fits right in with that aesthetic

There is even a beautiful Debian-based Window Maker distribution, called Window Maker Live. I am using this in a professional music studio as mixing workstation. https://wmlive.sourceforge.net/

Are you using any old school audio software in your setup? How about outboard gear?

Re: Show HN: X11 desktop widget that shows location of your network peers on a map

#87

connmap wouldn't run on my retrocomputer with ancient Xorg 1.7.6 so I vibe coded a janky perl gtk2 version and it works. http://superkuh.com/connmap-perl-gtk2.pl.txt + http://tuvixdiedforoursins.org/w1000-old.png (baked black background map) It looks pretty similar: http://tuvixdiedforoursins.org/connmap-perl-gtk2-screenshot.... vs http://tuvixdiedforoursins.org/connmap-original-screenshot.j...

And gtk3 for those running newer distros that kneecap themselves by not having gtk2 distributables, http://superkuh.com/connmap-perl-gtk3.pl.txt

Re: Show HN: X11 desktop widget that shows location of your network peers on a map

#89
post #59

LittleSnitch has such a map feature https://help.obdev.at/littlesnitch6/lsm-map Main difference would be that LS being actively handling connections the list is always accurate whereas this appears to poll current connections using `ss` so it may miss some if they happen to be entirely between two refresh beats.

Another main difference is that LittleSnitch costs 59€ per license and is only for MacOS

Re: Show HN: X11 desktop widget that shows location of your network peers on a map

#90
post #3

No basically secure: char mapFilename[256]; strcat(strcpy(mapFilename, getenv("HOME")), RESOURCES); strcat(mapFilename, mapName);

While that's indeed a bug, for it to be a security vulnerability, wouldn't there also have to be a security boundary involved? Specifically, mapName is always either "w1000b.png" or "w1000.png", so the only way to trigger the buffer overflow would be through the HOME environment variable. But if an attacker can run commands as you with arbitrary environment variables, aren't you already pwned? What would anyone gain…

> But if an attacker can run commands as you with arbitrary environment variables, aren't you already pwned?

Not unless they have another path for privilege escalation.

Post reply on HN