qBittorrent setup for Debian
Install
Because there is no official ppa of qBittorrent for debian, so we use a third party service - qbittorrent-nox-static to compile qb.
- Download script
wget -qO ~/qbittorrent-nox-static.sh https://git.io/qbstaticchmod +x ~/qbittorrent-nox-static.sh# presudo ~/qbittorrent-nox-static.sh# build~/qbittorrent-nox-static.sh all# installsudo ~/qbittorrent-nox-static.sh install
Configure
Read more at qbittorrent-nox configure
vim ~/.config/qBittorrent/qBittorrent.conf
With follow config:
[LegalNotice]Accepted=true[Preferences]WebUI\Port=8080WebUI\HostHeaderValidation=false
Systemd service
Reference at here
# create a usersudo vim /etc/systemd/system/qbittorrent.service
Config:
[Unit]Description=qBittorrent-nox serviceWants=network-online.targetAfter=network-online.target nss-lookup.target[Service]Type=execUser=qbtuserExecStart=/usr/local/bin/qbittorrent-noxRestart=on-failureSyslogIdentifier=qbittorrent-nox[Install]WantedBy=multi-user.target
After any changes to the services reload using this command.
sudo systemctl daemon-reload
Now you can enable the service
sudo systemctl enable --now qbittorrent.service
Now you can use these commands
systemctl stop qbittorrentsystemctl start qbittorrentsystemctl restart qbittorrentsystemctl status qbittorrent
Reverse Proxy (Optional)
Use Caddy to access qBittorrent with domain. This should install Caddy2 Setup for Debian
Config:
example.com {pushreverse_proxy 127.0.0.1:8080}
Now, you can access your qBittorrent web UI at: example.com, the default username and password is : admin/adminadmin
Note, you should change the default username/password
Config
- Download directory,
/data/Downloads
- Settings, auto add China https://trackerslist.com/best.txt , US https://ngosang.github.io/trackerslist/trackers_best.txt
- Open
announce_to_all_trackers
at settings.
Install Search Plugin Jackett
Jackett is a server program that provides support for more than 400 torrent sites (public and private).
Install Jackett
See Jackett Setup
Install Jackett Plugin
See also at here
Open qBittorrent Web UI, In the Search tab, click the Search plugins... button (bottom-right) -> add new plugin -> https://raw.githubusercontent.com/qbittorrent/search-plugins/master/nova3/engines/jackett.py
Change API key settings, You can get it from Jackett UI
vim ~/.local/share/qBittorrent/nova3/engines/jackett.json