🌐 🇵🇱 Polski · 🇬🇧 EN
When it comes to Raspberry Pi and the Raspbian system, a piece of software that causes a "network flood" of traffic, namely Deluge, works very well for the BitTorrent network. Other solutions include, of course, Transmission, BitTorrent, and other popular and well-known torrent clients that have releases for the Debian family of distributions. Here, I will present Deluge — it is a cross-platform BitTorrent client that can be used in Linux, Mac OS, and Windows environments. Among the more interesting features offered by the application are bandwidth management, proxy support, support for trackerless torrents using the DHT protocol, and transmission encryption. The prototype for this program was a GNOME-based client called gTorrent; as it evolved, the authors decided to rename it to Deluge, and the goal of their work is to keep the program as lightweight as possible for the system. Testing various software and its performance on a Raspberry Pi 3, this client offers operation in both graphical and console modes, and after installation, it does not require any configuration for basic functionality. Deluge will be the best choice considering the ratio of its functionality to its lightness and ease of use.
Installing Deluge on Raspbian.
Step 1 - Choosing the configuration method.
There are several ways to run Deluge on the Raspbian system, the most popular of which is using the repository in graphical mode.
Graphical mode.
Graphical mode.
![]() |
| Raspbian - Launching the repository. |
![]() |
| Raspbian - searching for the Deluge program in the repository. |
Despite its simplicity, graphical mode is not the best option for Raspberry Pi. Every time you want to use your client, you would have to log in via VNC or connect a monitor to your Raspberry to launch the application and perform torrent-related actions — a waste of time.
In this mode, access to the application is provided through any available web browser, which is much more convenient than launching a remote desktop. An additional possibility in this mode is using a smartphone to control the application's operation.
Server/Client mode
Server mode is probably the best option you can use for a Raspberry Pi. In this case, the idea is to configure the application to accept connections from a so-called "Thin Client". Such a configuration allows you to take advantage of the benefits offered by a standard client on any operating system, which will be connected to the remote server where the actual file downloading will take place.
Step 2 - Configuring Deluge for remote connection
We perform the installation using the following commands. (Unless the installation was previously done in graphical mode)
sudo apt-get install delugedsudo apt-get install deluge-console
After installation, we start the deluge process
# deluged
# sudo pkill deluged
Starting the daemon was intended to create a configuration file that we will slightly edit. We make a copy of the current file and perform the modifications.
cp ~/.config/deluge/auth ~/.config/deluge/auth.old
vim ~/.config/deluge/auth
user:password:level
pi:raspberry:10
# deluged
# deluge-console
config -s allow_remote Trueconfig allow_remoteexit
After the above, you need to perform a restart once more to confirm the entered configuration. Now the server is ready to accept connections from any client.
You can download the client for your system from the Deluge creators' website.
After installation, you will need to perform a simple configuration in the client.
![]() |
| Deluge client configuration part 1 |
After performing the above steps, we will be asked to restart the client. Upon startup, a connection wizard will appear, in which we will connect to the Deluge server previously installed on the Raspberry Pi.
![]() |
| Deluge client configuration part 2 |
![]() |
| Added connection to the Deluge server on Raspberry Pi |
We select the added configuration and click "Connect". From now on, using the client installed on your laptop or another computer, we can order torrent file downloads to the server running on the Raspberry Pi. The download will continue even after the laptop is turned off. We can retrieve the files after they are downloaded from the set location, e.g., from an external USB drive plugged into the Raspberry Pi.
Access via WWW
The installation of the necessary packages enabling the Deluge server to expose its interface for web browsers is done as follows:
sudo apt-get install delugedsudo apt-get install python-makosudo apt-get install deluge-webdeluge-web
The web service is running, and you can now verify that it works by going to the page:
http://192.168.0.14:8112/
By default, Deluge-web does not run in the background, so after using Ctrl+c, the service will be stopped, which is good because it still needs to be configured a bit.
We go to the configuration file:
vim ~/.config/deluge/web.conf
The file looks like this by default:
We go to the configuration file:
vim ~/.config/deluge/web.conf
The file looks like this by default:
{
"file": 1,
"format": 1
}{
"sidebar_show_zero": false,
"show_session_speed": false,
"pwd_sha1": "2ce1a410bcdcc53064129b6d950f2e9fee4edc1e",
"show_sidebar": true,
"sessions": {},
"enabled_plugins": [],
"base": "/",
"first_login": true,
"theme": "gray",
"pkey": "ssl/daemon.pkey",
"cert": "ssl/daemon.cert",
"session_timeout": 3600,
"https": false,
"default_daemon": "",
"sidebar_multiple_filters": true,
"pwd_salt": "c26ab3bbd8b137f99cd83c2c1c0963bcc1a35cad",
"port": 8112
}
In the file, we can choose, for example, our own port number or the template color.
Upon the first launch, we will be asked for a password. The default password to enter is "deluge". I recommend changing the password immediately after logging in! Further configuration will look exactly the same as in the case of the client we configured earlier on the desktop. There is no need to add connection addresses in this case because the web client is an interface for the Deluge server itself on our Raspberry Pi.
We run the web client in the background with the command:
# nohup deluge-web &
![]() |
| Deluge - web interface - connection manager and password configuration |
Configuring file download locations.
To start, you need to create appropriate locations leading, for example, to a Pendrive connected and mounted on the Raspberry Pi.
# mkdir pliki_torrent
# mkdir pobierane
# mkdir pobrane
# mkdir kopie_torrent
The purpose of the directories is:
pliki_torrent - for files from which the download should start (auto-download)
pobierane - temporary files that are currently being downloaded
pobrane - finished downloads and files ready for use
kopie_torrent - a backup copy of the torrent files from which the download was started
We set the created locations appropriately in the desktop and web clients:
![]() |
| Deluge download location configuration - desktop client |
Okay, we have everything we need to comfortably download Linux distribution ISO images and other files on the Torrent network.
If you want to take care of your anonymity, you can optionally use the connection capabilities using an appropriate proxy. More information on this topic can be read at the links below:
A torrent site that cannot be tracked from Instalki.pl
You should handle the torrent network with caution and carefully choose the materials you download and share so as not to break the law.










Comments