[ INTRO ]
This brief tutorial will guide you through installation of Deluge Daemon with WebUI. The Deluge daemon(deluged) is the main program that runs in the background and processes all torrent related information. While the WebUI(deluge-web) is the front-end where you manipulate the daemon.
[ SECURITY CONSIDERATIONS ]
At the end of this tutorial, do not forget to change the default listen port of both the daemon and webui. Also, you need to change the default webui password.
[ INSTALLATION ]
We begin by installing Deluge dependencies.
Run the command below as root:
*** If you are using Ubuntu, add 'sudo' at every command line that requires privileged access eg: $ sudo apt-get update.
Next, we download Deluge 1.3.1 source code.# apt-get update && apt-get -y install g++ make gettext subversion python-all-dev python-all python-twisted python-twisted-web python-pyopenssl python-simplejson python-setuptools python-xdg python-chardet python-mako libssl-dev zlib1g-dev libboost-dev libasio-dev libboost-python-dev libboost-thread-dev libboost-date-time-dev libboost-filesystem-dev
Note: Check the download page if they have a more recent version: http://download.deluge-torrent.org/source/?C=M;O=D
Untar the package# wget http://download.deluge-torrent.org/source/deluge-1.3.1.tar.gz
Now we're ready to build and install. Note: Building Deluge may take a few minutes to finish.# tar xvzf deluge-1.3.1.tar.gz
You should now have 'deluged' and 'deluge-web' in your /usr/bin directory.# cd deluge-1.3.1
# python setup.py build
# python setup.py install
# ldconfig
[ INVOCATION ]
Let's run both the daemon and webui:
If you are using Debian, you need to 'su' to the user we want to run the program as.
The second line will invoke the daemon while the third line attaches the deluge-web program to screen.# su - username_here
$ deluged
$ screen -fa -d -m -S deluge-web deluge-web
[ TESTING ]
Fire up your browser and connect to http://IP_ADDRESS_OF_SERVER:8112/
Note: 8112 is the default port Deluge listens to.
Type the default password: 'deluge' when you see the authentication dialog. You will then be asked to change your password since this is your first time to log in. Please change your password in the 'Preferences'.
The connection manager dialog should also appear asking you to select the Deluge daemon host/ip you want to connect to. In this case we only have one, so highlight the host/ip and press the Connect button.
Now, make changes to the 'Preferences' to suit your needs. Don't forget to change the Port for both daemon and webui, and also the password.
We need to restart both processes after making changes to the 'Preferences'.
Kill both deluged and deluge-web processes:
Then respawn:$ kill -9 $(pgrep -u $USER deluge)
[ POST INSTALLATION]$ deluged
$ screen -fa -d -S deluge-web -m deluge-web
If you want Deluge to resolve IP to Country in the Peers tab, you need to download and install a GeoIP .dat file.
Now go back to Preferences->Other Categories->GeoIP Database Location. Type '/usr/share/geoip/GeoIPv6.dat'.# wget http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
# gzip -d GeoIPv6.dat.gz
# mkdir -p /usr/share/geoip
# mv GeoIPv6.dat /usr/share/geoip/
Finally, if you want deluged and deluge-web to run during linux bootup, add the following lines to /etc/rc.local
### ADD BELOW LINES IN /etc/rc.local just before 'exit 0', if there's one. ###
### DOn't forget to replace USER_NAME_HERE with the username you want to run deluged and delugeweb as ###
[ SOURCES ]PHP Code:if [ -x /usr/bin/deluged ] && [ -x /usr/bin/deluge-web ]; then
su -c deluged USER_NAME_HERE
su -c "screen -fa -d -S USER_NAME_HERE -m deluge-web" USER_NAME_HERE
fi
Installation section: Deluge 1.3.1 README file









3Likes
LinkBack URL
About LinkBacks
Reply With Quote



