Using Deluge - Entware/Entware GitHub Wiki

Introduction

Deluge is a BitTorrent client written in Python. It is free, open source software and aims to be a lightweight, secure, feature-rich client.

Installation

Install Deluge:

opkg install deluge-ui-web

Configuration

Create the data directory:

Note: You will have to add the data directory to the Deluge configuration (discussed below). If you wish, you may create separate directories for the "Download to", "Move completed to, "Copy of .torrent files to", "Autoadd .torrent files from" options and update the configuration accordingly.

mkdir /opt/torrents

Start Deluge and its Web UI:

/opt/etc/init.d/S80deluged start
/opt/etc/init.d/S81deluge-web start

Access the Web UI at port 888 (default password is "deluge"):

http://<Your device IP>:888/

You can now configure Deluge as desired, either through the web interface or using nano as follows (recommended that you stop Deluge prior to making the config changes through the terminal):

/opt/etc/init.d/S80deluged stop
nano /opt/etc/deluge/core.conf

In line with the discussion earlier, you may edit the various folder options through the Web UI or the core.conf file. The change to the download location within core.conf has to be made at the following line:

"download_location": "/opt/torrents/",

Other folder options (Optional):

"move_completed_path": "/opt/torrents/Downloads",
"torrentfiles_location": "/opt/torrents/Downloads", 
"autoadd_location": "/opt/torrents/Downloads",

By default, Deluge is set to use a random port. You may wish to assign a static port to Deluge either through the Web UI or through the core.conf file as follows:

Note: xxxxx represents the port number

For outgoing:

"random_outgoing_ports": false, 
"outgoing_ports": [
    xxxxx, 
    xxxxx
  ],

For incoming:

 "random_port": false, 
 "listen_ports": [
    xxxxx, 
    xxxxx
  ], 

Open the port(s) in the firewall (Optional):

iptables -I INPUT -p tcp --destination-port xxxxx -j ACCEPT
iptables -I INPUT -p udp --destination-port xxxxx -j ACCEPT

Using Deluge

Deluge will starts at boot time, you can start it manually as described above and control download tasks from Web UI.

Links