downloads | deluge

Deluge BitTorrent client.

Reference:

wiki1  wiki2  dt


install deluge:

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

sudo apt-get update

sudo apt-get install deluged deluge-web deluge-console


It is best to run Deluge upstart scripts with a specific user and group. You can create one using the following command:

sudo adduser --system --group --home /var/lib/deluge deluge

This creates a new system user and group named deluge with no login access and home directory: /var/lib/deluge
Add any users you wish to be able to easily manage or access files downloaded through Deluge to the group deluge will run as, for example:

sudo adduser username deluge


deluge settings:

sudo nano /etc/init/deluged.conf

(example deluged.conf given below.)

sudo chmod 755 /etc/init/deluged.conf

sudo chown root:root /etc/init/deluged.conf


# deluged - Deluge daemon
#
# The daemon component of Deluge BitTorrent client. Deluge UI clients
# connect to this daemon via DelugeRPC protocol.

description "Deluge daemon"
author "deluge-torrent.org"

# Stanzas
#
# Stanzas control when and how a process is started and stopped
# See a list of stanzas here: http://upstart.ubuntu.com/wiki/Stanzas#respawn

# When to start the service
start on filesystem and static-network-up

# When to stop the service
stop on runlevel [016]

# Automatically restart process if crashed
respawn
respawn limit 5 30

# Start the process
env uid=deluge
env gid=deluge
env umask=007

exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluged -- -d

deluge-web settings

sudo nano /etc/init/deluge-web.conf

(example deluged-web.conf given below.)

sudo chmod 755 /etc/init/deluge-web.conf

sudo chown root:root /etc/init/deluge-web.conf


# deluge-web

description "web ui of deluge BitTorrent application"
author "http://deluge-torrent.org/"

# Stanzas
#
# Stanzas control when and how a process is started and stopped
# See a list of stanzas here: http://upstart.ubuntu.com/wiki/Stanzas#respawn

# When to start the service
start on started deluge

# When to stop the service
stop on stopping deluge

# Automatically restart process if crashed
respawn
respawn limit 5 30

# Start the process
env uid=deluge
env gid=deluge
env umask=027

exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluge-web

Connect to http://104.xxx.xxx.203:8112/ and enable ssl from the settings. Restart deluge-web:

sudo service deluge-web restart

Now you can connect to https://104.xxx.xxx.203:8112/
If you want you can create new keys:

cd ~/.config/deluge/ssl

openssl genrsa -des3 -out deluge.key.pem 1024

openssl req -new -key deluge.key.pem -out deluge.cert.pem