Want to exchange information in json? plaintext? binary data? Sockets can do it.
This is exactly why you need something like dbus. If you just have a socket, you know nothing about how the data is structured, what the communication protocol is, etc. dbus defines all this.
Yeah, that should work. ldd “$(command -v “$cmd”)” will list the dynamic dependencies for $cmd, so you can find those (probably) in /lib and /usr/lib; I’m not familiar enough with the dynamic library loading process to give you the specifics. I would put the binaries in /usr/local/bin and the libraries in /usr/local/lib; but you could also modify path variables to point to the usb drive. Ideally you could find statically linked versions somewhere, so you don’t have to mess with the libraries.
Alternatively, most package managers have commands to download packages; then you can copy the package cache over to the new machine and install them that way. If the commands are common enough, you could download one of the bigger install media and add its package repo to your machine. These of course are distribution specific processes.
Finally, you could get a cheap USB ethernet adapter and connect to the internet that way. On newegg most of these products will have at least one review saying whether they work on linux.
I’ve been getting ads like these for years on my ubuntu server.
<span style="color:#323232;">n additional security updates can be applied with ESM Apps.
</span><span style="color:#323232;">Learn more about enabling ESM Apps service at https://ubuntu.com/esm
</span>
This is on a machine running 20.04. Never bothered me. All my other machines are Debian now, and at some point I’ll switch that one too.
I mean even C++11 is a significantly different creature from OG C++. C++23 will have monadic optionals; maybe a future release will have generalized monads.