In this tutorial, install Deluge Ubuntu. We are going to install Deluge on a computer with Ubuntu. Next we will make a startup script for Deluge. So that Deluge is started automatically, during the boot process. Deluge is a Bittorent program.
Install Deluge Ubuntu
We are going to add the Deluge repositry. So that we can download Deluge. and install.
sudo add-apt-repository ppa:deluge-team/ppa
Now we are going to update the software list.
sudo apt-get update
Then we will install Deluge.
sudo apt-get install deluged deluge-web -y
The installation of Deluge is now ready.
You can now acces Deluge via http://ip-address:58846
Start Deluge automatically
It is very handy. When the program Deluge, starts. During the boot process. Therefore, we set this now.
We will now create a startup script.
sudo nano /etc/init/deluged.conf
Copy and paste. Below in this file.
# Delugue opstart script.
description “Deluge daemon”
start on filesystem and static-network-up
stop on runlevel 
respawn limit 5 30
exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluged — -d -l /var/log/deluge/daemon.log -L warnin
Press CTRL + Xkey. And then press Y key. To save this file.
Deluge will now be started automatically. While starting your Ubuntu system.