To run qBittorent Web Ui Headless, run:
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
Then:
sudo apt install qbittorrent-nox
Which will give you the web UI at http://localhost:8080
Doing this means you can't run any other commands while running the Web UI.
Add a system user:
sudo adduser --system --group qbittorent-nox
Add your user:
sudo adduser your-username qbittorent-nox
To keep this thing running create a systemd service. I ran this:
sudo nano /etc/systemd/system/qbittorent-nox.service
And then pasted these lines from the article into nano, only changing the port as I have another service running on the default port. You can make the port whatever you want:
[Unit]
Description=qBittorrent Command Line Client
After=network.target
[Service]
#Do not change to "simple"
Type=forking
User=qbittorrent-nox
Group=qbittorrent-nox
UMask=007
ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080 #add whatever you want here
Restart=on-failure
[Install]
WantedBy=multi-user.target
Save the file as you normally would in nano or vi.
Then you can start the service like any systemd service with:
sudo systemctl start qbittorent-nox
As with any systemd service changes to the service require you to reload the daemon.
If the service isn't working and says disabled
in the terminal when you first start the service, you'll need to enable it with:
sudo systemctl enable qbittorent-nox
Linux Babe How to Install qBIttorent Web UI on Ubuntu 18.04 Desktip or Server