#!/bin/bash # Update and upgrade system packages echo "Updating system packages..." sudo apt update sudo apt full-upgrade -y # Install qbittorrent-nox (headless version) echo "Installing qBittorrent-nox..." sudo apt install -y qbittorrent-nox # Create a system user for qBittorrent (optional but recommended) echo "Creating qBittorrent user..." sudo useradd -r -m qbt # Add your normal user (pi) to the qbt group to access downloaded files sudo usermod -a -G qbt $USER # Create systemd service file for qBittorrent echo "Creating systemd service file..." sudo tee /etc/systemd/system/qbittorrent-nox.service > /dev/null <:8080" echo "Default credentials: username: admin, password: adminadmin" echo "It's highly recommended to change the default login credentials in the Web UI."