Qbittorrent
Installation
Bash |
---|
| apt install qbittorrent-nox -y
|
Utilisateur et groupe
Créer un utilisateur qbittorrent pour limiter les accès au service qbittorrent-nox
Bash |
---|
| adduser --system --group qbittorrent
|
L'option --system permet de faire un utilisateur système, il n'y aura notamment pas la possibilité de se connecter dessus
Création d'un service
Bash |
---|
| nano /etc/systemd/system/qbittorrent.service
|
Text Only |
---|
| [Unit]
Description=qBittorrent Command Line Client
After=network.target
[Service]
Type=forking
User=qbittorrent
Group=qbittorrent
UMask=007
ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=9092
Restart=on-failure
[Install]
WantedBy=multi-user.target
|
Ne pas hésiter à modifier le port en modifier l'option --webui-port
Activer le service au démarrage, et le démarrer
Bash |
---|
| systemctl enable qbittorrent.service --now
|