in Random

How to Install Latest Deluge BitTorrent Client on Ubuntu

Deluge is a free, open-source and lightweight BitTorrent client, available for Linux, FreeBSD, Mac OS X and Windows. It has a rich collection of plugins that you can install to extend its functionality.

Install Deluge BitTorrent on Ubuntu Server

You can install Deluge BitTorrent daemon on a server and manage the program via a Web browser. Using a server to download torrrent is very fast. Today’s server typically has 100Mbit download and upload speed.

Use the following command to install Deluge Web UI and the Deluge daemon on Ubuntu server

sudo add-apt-repository ppa:deluge-team/ppa

sudo apt-get update

sudo apt-get install deluge-webui deluged

Then create the deluge user and group so that deluge can run as a separate user. This will increase your server’s security.

sudo adduser --system --gecos "Deluge Service" --disabled-password --group --home /var/lib/deluge deluge

The --disabled-password flag disable login access for the deluge user. Once that’s done, create a systemd service file for deluge with your favourite text editor such as nano.

sudo nano /etc/systemd/system/deluged.service

Copy and paste the following lines into the file.

Description=Deluge Bittorrent Client Daemon


ExecStart=/usr/bin/deluged -d


# Configures the time to wait before service is stopped forcefully.


In nano text editor, press CTRL+O to save the file, then CTRL+X to exit. Now start deluge deamon with the following command. Since we want Deluge to run as the deluge user, there’s no need to add sudo to the command, but you will be asked to enter your password.

systemctl start deluged

You may also want to enable auto start when Ubuntu 16.04 is booted up.

systemctl enable deluged

Check Deluge status:

systemctl status deluged

Accessing Deluge WebUI

To be able to access the deluge WebUI, we also need to create a systemd service file for deluge web.

sudo nano /etc/systemd/system/deluge-web.service

Copy and paste the following texts into the file.

Description=Deluge Bittorrent Client Web Interface






Save and close the file. Then start and enable deluge-web, check its status. Again, there’ no need to add sudo to the commands.

systemctl start deluge-web

systemctl enable deluge-web

systemctl status deluge-web

The deluge-web service will listen on TCP 8112 port. Now in your Web browser address bar, type


You will be asked to enter a password, which by default is deluge, to access the Web UI. It’s recommended to change the default password.

After you choose to change pasword, the connection manager window will pop up asking you to connect to Deluge daemon which is listening on Select the connection and click Connect button.

And now you can start using Deluge BitTorrent on your Ubuntu server.

Set Up Nginx Reverse Proxy for Deluge WebUI

reverse proxy is a proxy for another server, in this case the Deluge WebUI. First install Nginx on Ubuntu 16.04.

sudo apt install nginx

Start Nginx

sudo systemctl start nginx

Then create a Nginx server block file for Deluge WebUI.

sudo nano /etc/nginx/conf.d/deluge-webui.conf

Copy and paste the following texts into the file. Replace the red-colored text with your own domain name. You should also set the A record for your domain name.

server {
  listen 80;

  access_log /var/log/nginx/;
  location / {

Save and close the file. Then test Nginx configuration.

sudo nginx -t

If the test is successful, reload Nginx

sudo systemctl reload nginx

Now you can access Deluge WebUI via your domain name.