Installing qBittorrent
Outcome: a qbittorrent-nox program on
your machine that states its version and
prints its options — before any profile,
password or torrent exists. Evidence:
transcript t00.
The route the lab took: one static file
The lab installed qBittorrent 5.3.0
(the headless build, libtorrent 2.1.2)
as a single static binary from the
project's official static-build releases
— userdocs/qbittorrent-nox-static on
GitHub, the build the qBittorrent
download page itself points headless
Linux users to. One file, about 72 MB:
curl -sLO https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-5.3.0_v2.1.2/x86_64-qbittorrent-nox
chmod +x x86_64-qbittorrent-nox
Check what you fetched before trusting it — the habit this series repeats for every downloaded program:
$ sha256sum qbittorrent-nox
563e695a2b830e62e627e1ae403bcfcc494e444d5cabb5ecc1e09907353d8ed5 qbittorrent-nox
(Your hash will differ when a newer release replaces this one; what matters is that the file is whole, executable, and answers the next check.)
Nothing is installed into the system: no package manager, no administrator rights, and deleting the file removes the program completely. It carries its libraries with it, which is the point of a static build — and also its cost, noted in chapter 13: the libraries inside age with the file.
The check
./qbittorrent-nox --version
qBittorrent v5.3.0
--help lists the handful of options
this guide uses:
--confirm-legal-notice Confirm the legal notice
--webui-port=<port> Change the WebUI port
--torrenting-port=<port> Change the torrenting port
-d | --daemon Run in daemon-mode (background)
--profile=<dir> Store configuration files in <dir>
Two ports, and keep them distinct in your mind from here on: the WebUI port is where you talk to the program; the torrenting port is where peers talk to it. Chapters set them explicitly every time (18088 and 48188 in the lab) rather than accepting defaults blindly.
The other ways in
The desktop form of qBittorrent — the
same program with windows — is in most
distributions' package managers (apt
install qbittorrent), and the headless
form as apt install qbittorrent-nox,
which a service manager can then run
for you. Those routes were not the
lab's: the static file is version-exact,
identical on any machine, and leaves
nothing behind. Everything after this
chapter assumes the static binary and a
profile folder you choose; the API and
the behaviour are the same whichever
route brought the program in.