BBCTL(1)
π BBCTL(1) β the BitBabbler control tool, bestie edition π
okay so. this is bbctl, from the General Commands Manual, and it's basically the little remote control for your BitBabbler hardware RNG situation. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
bbctl β query and control tool for BitBabbler hardware RNG devices π
πΈ SYNOPSIS πΈ
bbctl [options]
that's it. that's the whole vibe. just options, no positional nonsense, we love a low-maintenance girlboss π
π DESCRIPTION π
The bbctl program can be used to issue command requests to the control socket of software controlling a BitBabbler device β think the seedd(1) daemon, that kind of thing. it talks to the socket, the socket talks back, everybody's happy β¨
π¦ OPTIONS π¦
okay bestie here's the whole menu, no skips, all sixteen of them, we're eating today π
-s,--scanβ Scan for active devices. this reports the device identifiers that can be queried from the owner of the control socket. your starting point, fr fr π-i,--device-id=idβ Act on only the specified device. if you don't explicitly specify any devices, the default is to act upon all of them. you can pass this option multiple times to act on some subset of the available devices. the id must be an identifier name as reported bybbctl --scanβ and no, you literally cannot use device logical or physical addresses here. that's the rule π-b,--bin-freqβ Report the 8-bit symbol frequencies. numbers go brrr π-B,--bin-freq16β Report the 16-bit symbol frequencies. same energy, twice the bits β¨--bin-countβ Report the 8-bit symbol counts. Similar to--bin-freqexcept the bins are reported in symbol order instead of sorted by frequency. it's giving "order, but not the frequency one" π--bin-count16β Report the 16-bit symbol counts. Similar to--bin-freq16except the bins are reported in symbol order instead of sorted by frequency. yes this is the big one, 65 thousand entries, we'll get to that π--first=nβ Show only the first n results. Useful when you don't want to actually see all 65 thousand entries for the 16-bit bins. the default (if neither this nor the--lastoption are specified) is to report everything in its full glory. Don't say I didn't warn you. π--last=nβ Show only the last n results. Useful when you don't want to actually see all 65 thousand entries for the 16-bit bins. if used together with the--firstoption, then both the requested head and tail of the results will be shown. head AND tail, we contain multitudes π«Ά-r,--bit-runsβ Report on runs of consecutive bits. little bitty marathons πββοΈ-S,--statsβ Report general QA statistics. the report card, the vibe check, the whole thing π-c,--control-socket=pathβ The filesystem path for the service control socket to query. this can belong to any process that supports the BitBabbler control socket interface and for which the user runningbbctlhas permission to connect to. permissions check, bestie, we don't skip it π
An address of the form tcp:host:port may be used if the control socket is bound to a TCP port rather than a unix domain socket path. the host part can be a DNS hostname or address literal. if an IPv6 address literal is used it should be enclosed in square brackets (e.g. tcp:[::1]:2020 to bind to port 2020 on the local IPv6 interface). the port can be a port number or a service name (as defined in /etc/services or other system name-service databases which are queried by getaddrinfo(3)). yes we cited getaddrinfo(3), we're thorough like that π
-V,--log-verbosity=nβ Change the logging verbosity of the control socket owner. you're adjusting their volume, not yours. iconique ποΈ--waitfor=device:passbytes:retry:timeoutβ okay this one is the main character. This option will makebbctlwait before exiting until theseedd(1)QA checking reports that at least passbytes of good entropy have been obtained from the given device. it will check for that every retry milliseconds, waiting for a maximum of timeout milliseconds before failing β³
The device is a QA test identifier as reported by --scan, and must be provided, as must the expected passbytes count. the retry time is optional, and if not specified it will default to 1000 milliseconds. if the timeout is 0 (or not explicitly passed), then this will wait for an unbounded amount of time for the requested condition to occur. no cap, forever, we'll be here π°οΈ
The passbytes, retry, and timeout parameters may be suffixed with an SI multiplier (e.g. k, M, G) as a convenience, so a timeout of 30k would wait for 30 seconds. cute AND practical β¨
This option may be passed multiple times to wait for multiple devices, and the given conditions for each of them will be tested for in the order that they are specified on the command line. i.e. Later conditions will not be tested for at all until all prior ones have been met, and the timeout clock for each test only begins after the previous test has successfully completed. it's a queue, bestie, no cutting π¦
When all required conditions pass, bbctl will report success with an exit code of 0. If a timeout is exceeded, or any other error occurs which means the test cannot be successfully completed (like passing a device which does not exist, or querying a --control-socket which no process provides), then a non-zero exit code will be returned. π
This option mostly exists to make it possible to delay or even prevent other services from starting until a sufficient amount of entropy has been obtained to feel comfortable that they can operate securely or as intended. See the notes on BOOT SEQUENCING in seedd(1) for more details on that. it may be used for other purposes too, but note that passbytes is an absolute measure of the number of good bytes seen since seedd was started β it is not relative to the number that were obtained prior to executing this request. important, don't misread it, i'm begging π
-v,--verboseβ Make more noise about what is going on internally. it may be passed multiple times to get swamped with even more information. pass it again. pass it again. chaos π-?,--helpβ Show a shorter version of all of this, which may fit on a single page. the tl;dr of the tl;dr π--versionβ Report thebbctlrelease version. the classic. the icon β
π FILES π
/run/bit-babbler/seedd.socketβ The default--control-socketpath if not explicitly specified. this may be under/var/runon platforms which don't (yet) provide a/runtop level directory (or a TCP socket on platforms which don't support unix domain sockets). it is set at compile time bySEEDD_CONTROL_SOCKET. compile-time tea β
π₯ SEE ALSO π₯
seedd(1). that's the one. go read it π«Ά
π AUTHOR π
seedd was written by Ron <ron@debian.org>. You can send bug reports, feature requests, praise and complaints to support@bitbabbler.org. praise and complaints in the same inbox is so real, honestly π
π and that's the whole page, bestie. go query something. go wait for entropy. go be the main character of your own boot sequence.
this came out of the General Commands Manual as page BBCTL(1), dated January 24, 2018 β mwah, love that for us π β¨
π¦ where this page comes from
- ubuntu jammy: bit-babbler 0.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms