qBittorrent setup for Debian

Because there is no official ppa of qBittorrent for debian, so we use a third party service - qbittorrent-nox-static to compile qb.

Install๐Ÿ”—

  1. Download script
wget -qO ~/qbittorrent-nox-static.sh https://git.io/qbstatic
chmod +x ~/qbittorrent-nox-static.sh
# pre
sudo ~/qbittorrent-nox-static.sh
# build
~/qbittorrent-nox-static.sh all
# install
sudo ~/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=8080
WebUI\HostHeaderValidation=false

Systemd service๐Ÿ”—

Reference at here

# create a user
sudo vim /etc/systemd/system/qbittorrent.service

Config:

[Unit]
Description=qBittorrent-nox service
Wants=network-online.target
After=network-online.target nss-lookup.target

[Service]
Type=exec
User=qbtuser
ExecStart=/usr/local/bin/qbittorrent-nox
Restart=on-failure
SyslogIdentifier=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 qbittorrent
systemctl start qbittorrent
systemctl restart qbittorrent
systemctl status qbittorrent

Reverse Proxy (Optional)๐Ÿ”—

Use Caddy to access qBittorrent with domain. This should install Caddy2 Setup for Debian

Config:

example.com {
   push
   reverse_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๐Ÿ”—

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

Resource๐Ÿ”—

้ซ˜้˜ถๆ•™็จ‹-่ฟฝๅ‰งๅ…จๆต็จ‹่‡ชๅŠจๅŒ–

Category: Dev 
TagsSelf-hosted
Published:  ยท Updated:   ๐Ÿ“ Edit this page

Response๐Ÿ”—

Have you written a response to this? Let me know the article or tweet URL (Article or tweet content needs to include the URL of this article, learn more about webmention here).

The response will be automatically collected by webmention.io bot, and another bot will automatically post it here within 24 hours, I wrote an article about how to achieve this. You can also send your response via mail owen@owenyoung.com or Twitter DM