HOWTO: Deluge 1.3.7 and Ubuntu 14.04

General support for problems installing or using Deluge
Locked
zounder1
New User
New User
Posts: 2
Joined: Fri Aug 22, 2014 5:43 pm

HOWTO: Deluge 1.3.7 and Ubuntu 14.04

Post by zounder1 »

Note from Admin:

This guide duplicates existing Deluge user guides and has minor mistakes so advise following updated and correct documentation:



The original post is below.
-------------------------------------------------------------------------------------------------------------------------------------------



Good day,
Here is a quick summary of how to install Deluge 1.3.7 onto Ubuntu 14.04 from the tar files.

Install Ubuntu 14.04 (I used LUBUNTU 14.04. It is a lightweight install with very low resource requirements.)
Do NOT create a user called "deluge"

Code: Select all

sudo yum update

Code: Select all

sudo yum upgrade

Code: Select all

sudo apt-get install python python-twisted python-openssl python-setuptools intltool python-xdg python-chardet geoip-database python-libtorrent python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako 
Download and save source file. http://download.deluge-torrent.org/source/?C=M;O=D
Grab the newest version ending in .tar.gz

Go to command prompt and change to directory where you downloaded the file:

Code: Select all

tar -xvzf deluge-1.3.7.tar.gz
cd deluge-1.3.7
python setup.py clean -a
python setup.py build
sudo python setup.py install --install-layout=deb
sudo adduser --system --group --home /var/lib/deluge deluge
The remaining steps need to be run as root. To become root without needing to keep typing sudo enter:

Code: Select all

sudo bash

Code: Select all

cd /etc/init
touch /etc/init/deluged.conf
Insert into this file:
--------------------------------------

Code: Select all

# 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 Team"
start on filesystem and static-network-up
stop on runlevel [016]
respawn
respawn limit 5 30
env uid=deluge
env gid=deluge
env umask=007
exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluged -- -d

Code: Select all

touch /etc/init/deluge-web.conf
Insert into this file:

Code: Select all

# deluge-web - Deluge Web UI
#
# The Web UI component of Deluge BitTorrent client, connects to deluged and
# provides a web application interface for users. Default url: http://localhost:8112
description "Deluge Web UI"
author "Deluge Team"
start on started deluged
stop on stopping deluged
respawn
respawn limit 5 30
env uid=deluge
env gid=deluge
env umask=027
exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluge-web
DONE!
Reboot your computer. You should have deluged and deluge-web running automatically at startup.

USING THE WEB INTERFACE:
http://localhost:8112
Or from another computer on the network
http://192.168.0.100:8112 where you change your IP address to the one used by the deluge computer.

USING THE DELUGE CLIENT
(1) Create username/password
You need to create users that can log into the computer with the deluge client.

Code: Select all

sudo bash
service deluged stop
cd /var/lib/deluge/.config/deluge
Edit: auth
Insert into this file:
username:password:10
You can adjust 10 to other numbers to limit the user rights on the server. 10=admin

Code: Select all

service deluged start
(2) Configure the deluge client
Start deluge (run deluge from the terminal of the computer you installed the software on). DO NOT run as admin. Run as an ordinary user.

Code: Select all

deluge
Click on edit - preferences - interface
Remove check mark next to classic mode and click ok.
The client will prompt to exit. Click ok.
Make sure the deluge client is closed.
Start deluge client again.
You should see a prompt for connection manager. Remove any existing entry.
Click on "add" to create a new entry.
Hostname: localhost
Port: Leave it at 58846 unless you changed it for some reason.
Username: The username you entered when editing /var/lib/deluge/.config/deluge
Password: The password you entered when editing /var/lib/deluge/.config/deluge
Click on "add" to save the entry.

If you did the steps above correctly, there will be a check mark next to status on the connection manager.
Single click on the host, then click on "Connect"
Done.

I did this as I got fed up with trying to use apt-get to setup the machine. The apt files on the repository does not, in my opinion, do a good job with the startup scripts. So going through these steps get a clean running setup that is running the latest and greatest version of Deluge.

Comments welcome.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: HOWTO: Deluge 1.3.7 and Ubuntu 14.04

Post by Cas »

This is completely pointless post everything is already covered in existing guides on this site so this post will quickly go out of sync/date.

If you think it is really still required please rewrite the post by replacing content covered by existing wiki documentation with a link.

Also you start out with a 'yum' command that is not valid on ubuntu.
Cynic
New User
New User
Posts: 2
Joined: Tue Sep 30, 2014 12:42 pm

Re: HOWTO: Deluge 1.3.7 and Ubuntu 14.04

Post by Cynic »

Cas wrote:This is completely pointless post everything is already covered in existing guides on this site so this post will quickly go out of sync/date.

If you think it is really still required please rewrite the post by replacing content covered by existing wiki documentation with a link.

Also you start out with a 'yum' command that is not valid on ubuntu.
No offense, but as it stands, the tutorials provided are convoluted and require you to hit several pages to catch info, and a lot of it is easy to miss. I should know, I'm having this problem. I've had it for the last two weeks, and if this person's post (minus the error at the beginning) solves my issue, then he's done a better job at explaining the installation process, and instead of criticizing him for it, a word of thanks would be far better.

This is a format that all the installation guides should follow.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: HOWTO: Deluge 1.3.7 and Ubuntu 14.04

Post by Cas »

If you want to contribute to a project you don't just randomly put something together (duplicating a lot of existing work) and throw it at the forum. You ask the project if they want help improving the current documentation and make suggestions. Random forum user guides are the bane of the internet, information is outdated so easily because no-one can update that information except the author. If this page is not updated as I asked I will have to remove it to stop users landing here.

Having info on different pages is not the issue here, it keeps things organised and concise for the specific topic and I am not sure how they are convoluted. I already explained that this information is duplicated verbatim so all that is required is to improve the Userguide main page to direct users to the correct pages. You also need to remember we don't just cater to one operation system so guides have to be as generic as possible.
Locked