How to Install qBittorrent on Ubuntu 20.04 LTS

Advertisement

qBittorrent is a cross-platform free and open-source BitTorrent client. qBittorrent is a native application written in C++ which uses Boost, Qt 5 toolkit, and libtorrent-rasterbar library and is extremely lightweight and fast. qBittorrent is very popular amongst torrent users as the main alternative to UTorrent.

In the following tutorial, you will learn how to install qBittorrent on Ubuntu 20.04 LTS Focal Fossa desktop GUI and install qBittorrent on a headless server using the command line terminal.

Update Ubuntu

First, before anything, update your system to make sure all existing packages are up to date.

sudo apt update && sudo apt upgrade -y

Install qBittorrent – Desktop GUI Method

By default, qBittorrent is included in the default Ubuntu software repository. However, like most packages, this is often outdated for new features and bug improvements. If you use qBittorrent, you highly recommend using the PPA maintained by the qBittorrent team.

The PPA comes in two options, stable or nightly. I recommend the stable version for most users unless you prefer bleeding-edge software.

Advertisement

First, open your terminal (CTRL+ALT+T) and install the PPA with the following command.

Import qBittorrent Stable

sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable -y

Import qBittorrent Unstable (Nightly)

sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-unstable -y

Next, run a quick APT update to reflect the newly added PPA.

Advertisement
sudo apt update

Now you can install qBittorrent using the following command.

sudo apt install qbittorrent -y

How to Launch qBittorrent – Desktop GUI Method

To launch qBittorrent, type the following command into your current terminal session.

qbittorrent

Alternatively, you can find the program in your Ubuntu Desktop Application Menu.

Activities > Show Applications > qBittorrent

Advertisement

Example:

How to Install qBittorrent on Ubuntu 20.04 LTS

The first time you use the program, you will get a pop-up window with a Legal notice. This covers qBittorrent from legal responsibilities as most know torrents are still a significant part of illegal downloads today.

Example:

How to Install qBittorrent on Ubuntu 20.04 LTS

After agreeing to the Legal notice, you will see your newly installed torrent software window.

Advertisement

Example:

How to Install qBittorrent on Ubuntu 20.04 LTS

Install qBittorrent-nox – Server Method

qBittorrent can be installed on a headless Ubuntu server and efficiently managed on a WebUI interface accessed from your favorite Browser.

Advertisement

Import qBittorrent-nox Stable

sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable -y

Import qBittorrent-nox Unstable (Nightly)

sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-unstable -y

Next, run a quick APT update to reflect the newly added PPA.

sudo apt update

Now you can install qBittorrent using the following command.

sudo apt install qbittorrent-nox -y

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, 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

Example output:

Advertisement
Advertisement

How to Install qBittorrent on Ubuntu 20.04 LTS

If you were wondering what (–system) means, you created a system user instead of a typical 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 must copy and paste the following lines into the file.

[Unit]
Description=qBittorrent Command Line Client
After=network.target

[Service]
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

Example:

How to Install qBittorrent on Ubuntu 20.04 LTS

Save the file (CTRL+O), then exit (CTRL+X). Now, reload your systemd daemon for changes to be active with the daemon-reload command.

Advertisement

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.

Advertisement
sudo systemctl enable qbittorrent-nox

Before you continue, it would be ideal for checking the status to ensure everything is working correctly.

systemctl status qbittorrent-nox

If there are no errors and status in the green, proceed to the next part of the tutorial.

How to Install qBittorrent on Ubuntu 20.04 LTS

Accessing qBittorrent Web UI on Ubuntu Server

qBittorrent can be accessed through your favorite Internet Browser on its Web UI from your local network. To do this type, the server’s internal IP address is followed by the port number (8080), for example, 192.168.55.156:8080, or use if hosted locally, use the localhost address 127.0.0.1:8080.

You should see the following page.

Advertisement

Example:

How to Install qBittorrent on Ubuntu 20.04 LTS

The default username is (admin), and the default password is (adminadmin).

Once entered, the application will start as below.

Example:

Advertisement
How to Install qBittorrent on Ubuntu 20.04 LTS

Before you do anything else, you should immediately change the default username and password, which can be found following the path.

Tools > Options > Web UI > Authentication.

Advertisement

From here, you can change the username and password.

Example:

How to Install qBittorrent on Ubuntu 20.04 LTS

Congratulations, you have installed qBittorrent on your Ubuntu server.

How to Update/Upgrade qBittorrent/qBittorrent-nox

Using the command line terminal may be more work but is often the most efficient way to update your system. All you need to do is run the apt update command as follows.

sudo apt update

If an update is available for qBittorrent or qBittorent-nox, use the following upgrade command.

sudo apt upgrade

How to Remove (Uninstall) qBittorrent/qBittorrent-nox

If you would like to remove qBittorrent, this is an easy process. First, you must remove the custom PPA if you have installed this as per the above tutorial.

Advertisement
Advertisement

Remove the PPA that you imported with the following command.

Remove qBittorrent Stable

sudo add-apt-repository --remove ppa:qbittorrent-team/qbittorrent-stable

Remove qBittorrent Unstable (Nightly)

sudo add-apt-repository --remove ppa:qbittorrent-team/qbittorrent-unstable -y

Next, remove qBittorrent using the command below.

sudo apt autoremove qbittorrent

Users that have installed qBittorrent-nox use the following command.

sudo apt autoremove qbittorrent-nox

And that is it; repeat the tutorial to re-install qBittorrent if you wish it back on your system.

Comments and Conclusion

qBittorrent is a great torrent client that will work on any operating system. It has more features than Transmission, but without the bloatware and ads. If you are looking for a good torrent client, qBittorrent is worth considering.

Share on: