qBittorrent is a versatile and open-source BitTorrent client that offers a wide range of features, including a user-friendly desktop interface and a headless Web UI, making it ideal for both personal computers and server environments. The desktop version of qBittorrent provides a graphical interface for managing downloads, while the headless version (qbittorrent-nox) is designed for use on servers, allowing you to manage torrents via a web browser. Additionally, the headless version can be configured to run as a service, providing a seamless experience on Fedora servers.
On Fedora 40 or 39, you can install qBittorrent using the DNF package manager through Fedora’s AppStream, which includes both the desktop and headless Web UI versions. This guide will walk you through the steps to install qBittorrent, configure the qbittorrent-nox service with a systemd service file, and set up appropriate user and group permissions for secure and efficient operation on Fedora servers.
Method 1: Install qBittorrent Desktop
Update Fedora Before qBittorrent Installation
Before installing qBittorrent, it’s crucial to update your Fedora system to ensure all existing packages are up to date. This helps prevent potential conflicts and ensures a smooth installation process.
To update your Fedora system, run the following command:
sudo dnf upgrade --refresh
Install qBittorrent Desktop GUI Client via DNF Command
There are two ways to use qBittorrent: the desktop GUI client and the WebUI for remote server setups. This section covers installing the qBittorrent desktop GUI client, which is suitable for most users who prefer using desktop applications. If you prefer to use the WebUI on remote servers, skip this section and proceed to the qBittorrent-nox installation.
To install the qBittorrent desktop client, execute the following command:
sudo dnf install qbittorrent -y
Launch qBittorrent Desktop GUI Client
Once the installation is complete, you can launch qBittorrent using one of the following methods:
Method 1: Type the following command into your current terminal session:
qbittorrent
Method 2: Navigate to the application icon using the graphical interface:
Activities > Show Applications > qBittorrent
When launching qBittorrent for the first time, you’ll be presented with a Legal Notice. This notice protects qBittorrent from legal responsibilities, as torrents are often associated with illegal downloads.
After agreeing to the Legal Notice, you’ll see the main window of your newly installed qBittorrent desktop client. Now, you’re ready to start using qBittorrent for your torrenting needs.
Method 2: Install qBittorrent-nox Web-UI for Fedora Server
qBittorrent-nox allows you to install qBittorrent on a headless Fedora server or a remotely accessed desktop. With the WebUI interface, you can manage qBittorrent efficiently using your favorite browser.
Install qBittorrent-nox
To install qBittorrent-nox, run the following command:
sudo dnf install qbittorrent-nox
qBittorrent-nox is designed for headless clients and is accessible via a Web interface at the default localhost location: http://localhost:8080. The Web UI access is secured by default. The default username is admin, and the default password is adminadmin.
Create a System User and Group for qBittorrent
Instead of running qBittorrent-nox using the terminal command, you’ll create a systemd service unit that runs in the background and starts at system boot.
First, create a qbittorrent-nox user and group so that the service can run as an unprivileged user:
sudo groupadd --system qbittorrent-nox
The –system flag means you’re creating a system user instead of a regular user.
Create a qBittorrent Username
Next, create a qbittorrent username for the qbittorrent-nox user group:
sudo useradd -g qbittorrent-nox qbittorrent-nox
Optionally, you can set a password for this user:
sudo passwd qbittorrent-nox
Create a Systemd Service File for qBittorrent
Create a systemd service file for qbittorrent-nox:
sudo nano /etc/systemd/system/qbittorrent-nox.service
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
Save the file (CTRL+O), then exit (CTRL+X).
Reload the Systemd Daemon
Reload your systemd daemon for the changes to take effect:
sudo systemctl daemon-reload
Start and Enable qBittorrent-nox
Start qBittorrent-nox with the following command:
sudo systemctl start qbittorrent-nox
To have qBittorrent-nox start automatically on boot, use the following command:
sudo systemctl enable qbittorrent-nox
Before proceeding, check the status to ensure everything is working correctly:
systemctl status qbittorrent-nox
Access qBittorrent Web UI
You can access qBittorrent through the Web UI of your local network browser. To do so, type the server’s IP address and port number (8080).
The default username is admin, and the default password is adminadmin.
Before doing anything else, changing the default username and password is crucial to secure your qBittorrent Web UI. To change the credentials, follow the path:
Tools > Options > Web UI > Authentication
You can update the username and password to your preferred credentials from here. This ensures that your qBittorrent Web UI is secure and accessible only by authorized users.
Additional Commands for qBittorrent
Update qBittorrent or qBittorrent-nox
Updating your qBittorrent installation through the command line terminal might require some extra steps, but it is often the most efficient way. To update your entire system, including qBittorrent, run the following DNF update command:
sudo dnf update --refresh
For users new to Linux mainly, this blanket checks your entire system for updates, which will be upgraded if one is available for qBittorrent.
Remove qBittorrent or qBittorrent-nox
If you remove qBittorrent or qBittorrent-nox from your system, follow the simple process below. Use the appropriate command based on your installation choice.
To remove qBittorrent, use the following command:
sudo dnf autoremove qbittorrent
If you have installed qBittorrent-nox, use this command instead:
sudo dnf autoremove qbittorrent-nox
Conclusion
By installing qBittorrent on Fedora via the DNF package manager, you have successfully set up a powerful torrent client tailored to your needs, whether for desktop use or as a headless server application. Configuring qbittorrent-nox as a systemd service ensures it runs efficiently in the background with proper user and group permissions. Regular updates through Fedora’s AppStream will keep your qBittorrent installation secure and up-to-date. With this setup, you’re well-equipped to manage torrents effectively on both personal and server environments.
- How to Install ModSecurity 2 with Apache on Debian 12 or 11 - Tuesday, September 17, 2024
- How to Install Remi RPM on Rocky Linux 9 or 8 - Monday, September 16, 2024
- How to Install Akregator on Ubuntu 24.04, 22.04 or 20.04 - Tuesday, September 3, 2024