sudo add-apt-repository ppa:deluge-team/ppa
sudo apt-get update
sudo apt-get install deluged deluge-web deluge-console
sudo adduser --system --group --home /var/lib/deluge deluge
sudo adduser username deluge
sudo nano /etc/init/deluged.conf
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
sudo nano /etc/init/deluge-web.conf
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
sudo service deluge-web restart
cd ~/.config/deluge/ssl
openssl genrsa -des3 -out deluge.key.pem 1024
openssl req -new -key deluge.key.pem -out deluge.cert.pem