Run modes

Deluge can run as a system daemon which is accessible to any system user or it can run in a non-daemon mode. The focus of this article is on the daemon mode of operation.

Daemon Setup

Start the deluge backend daemon like any other systemd service:

# systemd start deluged

To allow interaction with the daemon, create a user:password:level in /srv/deluge/.config/deluge/auth.
For example:

# echo "delugeuser:p422WoRd:10" >> /srv/deluge/.config/deluge/auth

Note: The user/password created does not have to match any system users... and to maintain good security practices it should NOT!

The number 10 corresponds to a level of 'Admin.' Refer to the following table for additional values:

Level Name

Level Value

None

0

Read Only

1

Normal

5

Admin

10

Note: In Deluge 1.35, these values have no effect, but multiuser options are under development.

GTK UI

Load the gtk client /usr/bin/deluge-gtk

Disable classic mode from the Edit>Preferences>Interface.

A restart of the client is required for these changes to take effect. Exit the client and reload it.

Setup the client to point to the daemon from Edit>Connection Manager.

Delete the dummy server by hightlighting it and clicking the "Remove" button.

Create an entry to the daemon via the "Add" button populating the resulting dialog with either the IP address or the word "localhost" as the hostname. Populate the "Username" and "Password" fields with the username and password used in the daemons setup.

Click the "+ Add" button.

If the correct credentials were populated, a green light should appear adjacent to the name of the server. To connect, hit the "Connect" button.

Users can now configure their server from the GUI. Most of the options are self explanatory and intuitive. More details are available on the official Deluge wiki for details.

Web UI

The web UI daemon runs on the server and the clients only need a web browser. You need to install python2-mako on the server.

First, start the web UI daemon, named deluge-web, and login at http://ip-address:8112. Where ip-address is the name of your Deluge server or its private or public IP address. When asked for a password, enter "deluge" as it is the default password.

The preferences in the web UI should be rather self explanatory and the first obvious thing to do is to change your password.

Automatically Connect To Daemon

If you want to avoid clicking "connect" everytime you start the Deluge web UI, edit the web.conf file in your configuration directory (usually /srv/deluge/.config/deluge).
It should have a line like this towards the bottom:

"default_daemon": ""

Change it to:

"default_daemon": "127.0.0.1:58846"

This assumes that your Deluge port is the default 58846.

SSL

In case you want SSL for the web UI, you need to generate a new cert/key set. To do this, first stop the web UI daemon and then append to /srv/deluge/.config/deluge/ssl/:

Web UI doesn't store settings

For some yet unknown reason, the web interface with Deluge 1.3.3 refuses to properly store the incoming (listen) ports configuration. This can manually be edited in core.conf. The Deluge bugtracker mentions this is fixed, it is not in 1.3.3.