omotam img

Skip to main content
  1. Posts/

Install qBittorrent Server

··122 words·1 min·
Install qBittorrent Server Cover

Requirements #

apt install gpg

Configure APT repository #

echo 'deb http://download.opensuse.org/repositories/home:/nikoneko:/test/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/qbittorrent.list
wget -O- "https://download.opensuse.org/repositories/home:nikoneko:test/Debian_12/Release.key" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/qbittorrent.gpg > /dev/null
sudo apt update
sudo apt install qbittorrent-nox

Create user and group #

Create the group first:

sudo groupadd --system qbittorrent

Create the qbittorrent user:

sudo useradd --system --gid="qbittorrent" --create-home  --home-dir="/var/lib/qbittorrent" --shell="/usr/sbin/nologin" qbittorrent

Configure systemd #

Create the systemd service:

nano /etc/systemd/system/qbittorrent.service
[Unit]
Description=qBittorrent
After=network.target network-online.target
Requires=network-online.target

[Service]
Type=simple
User=qbittorrent
Group=qbittorrent
ExecStart=/usr/bin/qbittorrent-nox

[Install]
WantedBy=multi-user.target

Reload systemd to load the new service:

sudo systemctl daemon-reload

Enable the service to start at boot:

sudo systemctl enable --now qbittorrent

Config #

The configuration files can be found at:

/var/lib/qbittorrent/.config/qBittorrent/

Default login #

The default login credentials are logged to journald:

journalctl -eu qbittorrent