How to Install Latest qBittorrent on Ubuntu 20.04 Desktop and Server - LinuxCapable
qBittorrent can be installed on a headless Ubuntu server and easily managed on a WebUI interface accessed from your favorite Internet Browser.
First, add the PPA and update as your repositories:
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable -y && sudo apt update
Next, you will now install the qBittorrent client (qbittorent-nox) instead of (qbittorent ) with the following command:
sudo apt install qbittorrent-nox
qBittorrent-nox is the default go-to for headless clients designed to run through a Web interface accessible on the default localhost location at http://localhost:8080. The Web UI access is secured by default, and the default account username is (admin), and the password is (adminadmin).
Unlike the desktop version, using the terminal command (qbittorrent-nox) would not be advised as a headless server; you won’t be able to do anything while qBittorrent is running, which isn’t practical. Instead, you will create a systemd service unit to run in the background and start at system boot.
First, create (qbittorrent-nox) user and group so the service can run as an unprivileged user.
sudo adduser --system --group qbittorrent-nox
Note, if you were wondering what (–system) means, you created a system user instead of a normal user.
Next, add your username to the qbittorrent-nox user group:
sudo adduser your-username qbittorrent-nox
Second, create a systemd service file for qbittorrent-nox:
sudo nano /etc/systemd/system/qbittorrent-nox.service
Thirdly, you need to copy and paste the following lines into the file.
[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
Restart=on-failure
[Install]
WantedBy=multi-user.target
Save the file (CTRL+O), then exit (CTRL+X). Now, reload your systemd daemon for changes to be active:
sudo systemctl daemon-reload
Now you can start qBittorrent-nox with the following command.
sudo systemctl start qbittorrent-nox
If you want qBittorrent-nox to be started on boot, use the following:
sudo systemctl enable qbittorrent-nox
Before you continue, it would be ideal for checking the status to make sure everything is working correctly:
systemctl status qbittorrent-nox
If no errors and status in the green, proceed to the next part of the tutorial.