DEV Community

Cover image for Run qBittorrent in Android
Ankush Bhagat
Ankush Bhagat

Posted on • Edited on

Run qBittorrent in Android

Have you ever wanted to run qBittorrent on your Android device? With Termux and proot-distro, it's possible! In this guide, I'll show you how to set up qBittorrent-nox (the headless version of qBittorrent) on your Android phone using Debian in Termux. Let’s get started!

What You’ll Need:

  • 1. Termux installed on your Android device (preferably from F-Droid).
  • 2. An active internet connection.

What is Termux?
Termux is a terminal emulator and Linux environment for Android. With Termux, you can run a full-fledged Linux distribution on your Android device.

What is qBittorrent-nox?
qBittorrent-nox is the headless (no GUI) version of qBittorrent, perfect for running on servers or, in this case, your Android device through a terminal interface. You can still control it via a web UI.

Step-by-Step Guide
1. Install Termux and Update the Package Manager
First, open Termux on your Android device and update the package manager to make sure you have the latest versions of the necessary tools.

pkg update && pkg upgrade
Enter fullscreen mode Exit fullscreen mode

2. Install proot-distro
Now, install proot-distro. This tool allows us to install and run full Linux distributions inside Termux.

pkg install proot-distro
Enter fullscreen mode Exit fullscreen mode

3. Install Debian Using proot-distro
Next, we’ll install the Debian distribution. Debian is a stable and popular Linux distribution that's perfect for running qBittorrent.

proot-distro install debian
Enter fullscreen mode Exit fullscreen mode

4. Log into the Debian Environment
Now, log into your newly installed Debian system using the command below. This will drop you into a Debian shell.

proot-distro login debian
Enter fullscreen mode Exit fullscreen mode

You are now running Debian inside Termux!

5. Update Debian's Package Manager
Just like we did in Termux, let's update and upgrade the package manager inside Debian to ensure everything is up to date.

apt update
Enter fullscreen mode Exit fullscreen mode

6. Install qBittorrent-nox
Finally, it's time to install qBittorrent-nox. Since we're inside Debian, the process is simple. Run the following command:

apt install -y qbittorrent-nox
Enter fullscreen mode Exit fullscreen mode

7. Start qBittorrent-nox
To start qBittorrent, just use this command:

qbittorrent-nox
Enter fullscreen mode Exit fullscreen mode

9. Access qBittorrent's Web UI Externally
At this point, qBittorrent is listening on all network interfaces, so you can access the web UI from your mobile browser or local network. Open your browser and enter:

http://localhost:8080
Enter fullscreen mode Exit fullscreen mode

10. Control qBittorrent with qBitController
Now that qBittorrent is set up for remote access, you can control it using the qBitController app.

Download qBitController from the Play Store or from here.

Open the app and configure the server settings:

Image description

Credentials:

Host: localhost
Port: 8080 (or whatever port you configured)
Username: admin
Password: adminadmin (or your custom credentials)
Enter fullscreen mode Exit fullscreen mode

You should now be able to control qBittorrent from the app!

Summary
You’ve successfully installed qBittorrent-nox on Android using Termux and Debian with proot-distro, and configured it for remote access with a client app like qBitController. Now, you can manage your torrents on your Android device from a clean mobile interface.

If you run into any issues or have questions, feel free to leave a comment below. Happy torrenting!

Top comments (2)

Collapse
 
david_meffe_da1509a535d78 profile image
David Meffe

this was very easy to follow and i got super excited as everything was installing without an issue. I got everything installed on my shield pro and was even able to connect to it through the webUI. However downloads won't start. They stay stalled. Note that after I start Bittorrent-nox I get the the following lines come up:
QNetworkInterface/AF_NETLINK: found unknown interface with index 1
QNetworkInterface/AF_NETLINK: found unknown interface with index 7

Not sure if that's related or not, but i figured it was worth mentioning.

Collapse
 
ankushbhagat profile image
Ankush Bhagat

Can you attach a full screenshot