sonar(6x)
okay so bestie π you just opened the manual page for sonar(6x), which comes to you straight from the XScreenSaver manual β and yeah, we're reading the whole entire thing together, no skimming, no skipping the boring bits, because there are no boring bits, everything here is iconic. grab a snack π
β¨ NAME β¨
sonar β displays a sonar scope. that's the whole assignment, and she ate. π₯
π SYNOPSIS π
sonar [--display host:display.screen] [--visual visual] [--window]
[--root] [--window-id number] [--ping hosts-or-subnets] [--ping-timeout
int] [--delay usecs] [--speed ratio] [--sweep-size ratio] [--font-size
points] [--team-a-name string] [--team-b-name string] [--team-a-count
int] [--team-b-count int] [--no-dns] [--no-times] [--no-wobble]
[--debug] [--fps]
(and yes, --debug is up in that synopsis with zero explanation and zero elaboration. she's just there. mysterious queen energy π)
π« DESCRIPTION π«
So this program draws a whole sonar screen β like, the submarine kind β and it literally pings (get it?? π THE PUN, that's the whole joke, i'm obsessed) the hosts on your local network, and then plots their distance (that's the response time) from you.
The three rings represent ping times of approximately 2.5, 70 and 2,000 milliseconds respectively. write those numbers down, they come back later. π
Alternately β plot twist β it can run a simulation that doesn't involve hosts. no hosts, all vibes. π¦
π OPTIONS π
sonar understands the following options, and bestie, there are a LOT of them, so we're going through every single one, together, like besties do:
--visualvisual β Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex, either one, we don't gatekeep) of a specific visual.--windowβ Draw on a newly-created window. This is the default, she's the baseline. π--rootβ Draw on the root window.--window-idnumber β Draw on the specified window.--pinghosts-or-subnets β the list of things to ping, separated by commas or spaces. Elements of this list may be:simulationβ Run in simulation mode instead of pinging real hosts.hostnameβ Ping the given host.A.B.C.Dβ Ping the given IPv4 address.subnetβ Ping the local subnet. On systems where we can determine the local network mask, we use that; otherwise, we assume Class C (254 hosts).subnet/NNβ Ping a different-sized local subnet: e.g.,subnet/28would ping a 4-bit subnet (the nearest 14 addresses). On systems where we can determine the local network mask, we always use that.A.B.C.D/NNβ Ping an arbitrary other IPv4 subnet. The address specifies the base address, and the part after the slash is how wide the subnet is. Typical values are/24(for 254 addresses) and/28(for 14 addresses).filenameβ Ping the hosts listed in the given file. This file can be in the format used by/etc/hosts, or it can be any file that has host names as the first or second element on each line. If you use ssh, try this:
sonar -ping $HOME/.ssh/known_hosts
--ping-timeoutint β The amount of time in milliseconds the program will wait for an answer to a ping.--delayint β Delay between frames, in microseconds. Default 20000.--speedratio β Less than 1 for slower, greater than 1 for faster. Default 1.--sweep-sizeratio β How big the glowing sweep area should be. Default 0.3.--font-sizepoints β How large the text should be. Default 10 points.--no-wobbleβ Keep the display stationary instead of very slowly wobbling back and forth.--no-dnsβ Do not attempt to resolve IP addresses to hostnames.--no-timesβ Do not display ping times beneath the host names.--team-a-namestring β In simulation mode, the name of team A.--team-b-namestring β In simulation mode, the name of team B.--team-a-countint β In simulation mode, the number of bogies on team A.--team-b-countint β In simulation mode, the number of bogies on team B.--fpsβ Display the current frame rate, polygon count, and CPU load.
okay so THIS part, in ping-mode: the display is a logarithmic scale, calibrated so that the three rings represent ping times of approximately 2.5, 70 and 2,000 milliseconds respectively.
Which means π if any of the hosts you are pinging take longer than 2 seconds to respond, they won't show up. ghosted, blocked, not on the map. and if you are pinging several hosts with very fast response times, they will all appear close to the center of the screen β which makes their names hard to read. crowded around the center like a group photo. π«Ά
π οΈ INSTALLATION π οΈ
For this program to be able to ping other hosts, it must have the ability to open ICMP sockets, and that requires that it be setuid root. Privileges are disavowed shortly after startup (just after connecting to the X server), so this is believed to be safe:
chown root:root sonar
chmod u+s sonar
π BUGS π
Does not support IPv6. that's it. that's the whole bug section. short, devastating, slay.
π± ENVIRONMENT π±
DISPLAYβ to get the default host and display number.XENVIRONMENTβ to get the name of a resource file that overrides the global resources stored in theRESOURCE_MANAGERproperty.XSCREENSAVER_WINDOWβ The window ID to use with--root.
π SEE ALSO π
X(1), xscreensaver(1), ping(8), ping6(8)
π COPYRIGHT π
Copyright Β© 2000-2022 by Jamie Zawinski jwz@jwz.org Copyright Β© 1998 by Stephen Martin. smartin@canada.com
Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
π AUTHORS π
- Stephen Martin
smartin@canada.com, 3-nov-1998. - Subnet support, etc. added by Jamie Zawinski, 17-Jul-2000.
- Rewritten using OpenGL instead of X11 by Jamie Zawinski, 12-Aug-2008.
and that's the whole page bestie, you made it to the end, gold star β okay so this whole thing is X Version 11, 6.17-1.fc44, dated 13-Oct-2026 β so go run it, go ping something, and remember: setuid root privileges get dropped right after the X connection, so she's safe fr fr. bye bestie ππΈπ¦
π¦ where this page comes from
- fedora 44: xscreensaver-gl-extras 1:6.17-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms