How to Install Deluge BitTorrent on Ubuntu 20.04

Install Deluge BitTorrent on Ubuntu 20.04

In this article, we will have explained the necessary steps to install Deluge BitTorrent on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Deluge is an open-source cross-platform bit torrent client available for the ubuntu machine. It has a rich collection of plugins that you can install to extend its functionality. For example, you can install the streaming plugin so you can stream video or audio directly from Deluge while downloading.

Install Deluge BitTorrent on Ubuntu

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install Deluge BitTorrent on Ubuntu system.

  • Install Deluge on Ubuntu 20.04 from PPA

Install it from the official Deluge PPA:

sudo add-apt-repository ppa:deluge-team/stable
sudo apt install deluge
  • Install Deluge BitTorrent on Ubuntu 20.04 Server

Use the following command to install Deluge daemon and Deluge Web interface on Ubuntu 20.04:

sudo add-apt-repository ppa:deluge-team/stable
sudo apt install deluged deluge-web

Once installed, create the deluge user and group so that deluge can run as an unprivileged user, which will increase your server’s security:

sudo adduser --system --group deluge
sudo adduser your-username deluge

Then, create a systemd service file for deluge:

nano /etc/systemd/system/deluged.service
[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target

[Service]
Type=simple
User=deluge
Group=deluge
UMask=007
ExecStart=/usr/bin/deluged -d
Restart=on-failure

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

[Install]
WantedBy=multi-user.target

Now start deluge deamon with the following command:

sudo systemctl start deluged
sudo systemctl enable deluged

Step 3. Accessing Deluge WebUI.

First, create a systemd service file for deluge web:

nano /etc/systemd/system/deluge-web.service
[Unit]
Description=Deluge Bittorrent Client Web Interface
After=network-online.target

[Service]
Type=simple
User=deluge
Group=deluge
UMask=027
ExecStart=/usr/bin/deluge-web
Restart=on-failure

[Install]
WantedBy=multi-user.target

Next, save and close the file. Then start and enable deluge-web:

sudo systemctl start deluge-web
sudo systemctl enable deluge-web

Finally, in your Web browser address bar, type:

http://your-server-ip:8112

That’s all you need to do to install Deluge BitTorrent server on Ubuntu 20.04 Focal Fossa. I hope you find this quick tip helpful. Don’t forget to share your valuable queries/suggestions in the below comment box & also drop your worthwhile feedback.