lsdistcc(1)
π lsdistcc β the manual page, but make it make sense
okay bestie, so this is lsdistcc(1) from the General Commands Manual section β it's a whole little icon and honestly it deserves more hype than it gets. let me tell you everything π
β¨ NAME β¨
lsdistcc β simple distcc server discovery π¦
like, it finds your distcc servers for you. that's the whole vibe.
πΈ SYNOPSIS πΈ
lsdistcc [OPTIONS] [FORMAT]
lsdistcc [OPTIONS] host1 ...
two ways in, bestie. pick your fighter.
π DESCRIPTION π
so lsdistcc autodetects listening distcc servers, and it does it two ways:
- it goes looking in DNS for hosts named according to a given FORMAT, or
- it just checks the host names you hand it right there on the command line.
and how does it decide who's a "good server"? π based solely on whether their name fits the format and whether they're listening on the right port. that's it. (and optionally, whether they respond when you send them a compile job β fancy.)
it scans for hosts named according to FORMAT (default is distcc%d; see printf(3)) and it starts from 1, so you get hosts like distcc1, distcc2, and so on and so forth. then it stops after 7 seconds or at the first host name that does not resolve. and it prints the names of all such servers listening on distcc's port. slay β¨
oh and if you give it a list of host names on the command line, lsdistcc will only check those hosts. no extras, no surprises. periodt.
π OPTIONS π
--helpβ displays summary instructions. the "help me bestie" button π«Ά-lβ output latency in milliseconds after each hostname (not including DNS latency). like, how fast are they actually π-nβ print IP address rather than name. numbers instead of names, no cap.-xβ append,downto down hosts in host list. calling them out fr fr π-tTIMEOUTβ set number of seconds to stop searching after [7]. the patience setting.-hHTIMEOUTβ set number of milliseconds before retryinggethostbyname[500].-cCTIMEOUTβ set number of milliseconds before giving up on connect [900] (0 to inhibit connect). note the 0, it literally means "don't even try" π-kKTIMEOUTβ set number of milliseconds before giving up on compile [1500] (0 to inhibit compile). same energy, but for compiling.-mBITSβ set number of bits of address that must match first host found [0].-oOVERLAPβ set number of extra DNS requests to send [1].-gDNSGAPβ set number of missing DNS entries to tolerate [0].-rPORTβ port to connect to [3632].-PPROTOCOLβ protocol version to use (1-3) [1]. it's giving options.-pCOMPILERβ name of compiler to use [none].-dβ append DNS domain name to format.-vβ verbose. the yapper mode π£οΈ
π EXAMPLES π
scan the whole squad
scan for servers named distcc1, distcc2, ... that provide a compiler named gcc-4.6 and include their latencies in the output:
$ lsdistcc -l -pgcc-4.6
just these four, thanks
scan for a compiler named gcc-4.6 on the servers hosta, somehost, hostx, and hosty:
$ lsdistcc -pgcc-4.6 hosta somehost hostx hosty
putting it in a build script π§
to use the program in a build script, add the lines:
DISTCC_HOSTS=`lsdistcc`
export DISTCC_HOSTS
before the line that invokes make. or, in a Makefile, add the line:
export DISTCC_HOSTS = $(shell lsdistcc)
or use pump(1) which automatically invokes lsdistcc if you set DISTCC_POTENTIAL_HOSTS. yes bestie, it does the work for you. main character energy π
β EXIT STATUS β
the exit status is 0 if any servers were found, and 1 otherwise. found = happy, found nothing = π
uses 'for i=1... sprintf(format, i)' to construct names of servers, stops after 7 seconds or at second server that doesn't resolve, prints the names of all such servers listening on distcc's port. default format is distcc%d.
π₯ SEE ALSO π₯
distcc(1), distccd(1), pump(1), printf(3)
http://code.google.com/p/distcc/
π AUTHOR π
lsdistcc was written by Dan Kegel, Dongmin Zhang, and Manos Renieris.
this manual page was written by Daniel Hartwig for the Debian project.
and that's the whole page bestie, no notes π
signing off with the source + date realness: this is lsdistcc(1), dated 1 May 2012 β General Commands Manual, slay, periodt β¨π¦πΈ
π¦ where this page comes from
- alpine 3.22: distcc-doc 3.4-r9 Β· GPL-2.0-or-later
- alpine 3.23: distcc-doc 3.4-r9 Β· GPL-2.0-or-later
- alpine 3.24: distcc-doc 3.4-r10 Β· GPL-2.0-or-later
- arch rolling: distcc 3.4-16 Β· GPL-2.0-only
- debian bookworm: distcc 3.4+really3.4-3
- debian trixie: distcc 3.4+really3.4-12
- epel 10: distcc 3.4-9.el10_1 Β· GPL-2.0-or-later
- epel 9: distcc 3.4-9.el9 Β· GPL-2.0-or-later
- fedora 43: distcc 3.4-12.fc43 Β· GPL-2.0-or-later
- fedora 44: distcc 3.4-14.fc44 Β· GPL-2.0-or-later
- nixos 26.05: distcc 3.4
- nixpkgs unstable: distcc 3.4
- opensuse-leap 16.0: distcc 3.4-bp160.1.10 Β· GPL-2.0-or-later
- opensuse-leap 16.0: distcc 3.4-bp160.1.10 Β· GPL-2.0-or-later
- opensuse-leap 16.0: distcc 3.4-bp160.1.10 Β· GPL-2.0-or-later
- opensuse-leap 16.0: distcc 3.4-bp160.1.10 Β· GPL-2.0-or-later
- ubuntu jammy: distcc 3.4+really3.3.5-3build1
- ubuntu noble: distcc 3.4+really3.4-4build3
- ubuntu questing: distcc 3.4+really3.4-12
- ubuntu resolute: distcc 3.4+really3.4-12build1
- ubuntu stonking: distcc 3.4+really3.4-13 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms