Thursday 14 May 2009

HOWTO: Deluge on a Headless Server

Install Deluge on the server;

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

Before we start the deluge daemon, we will tell it which user(s) can connect. To do this we add a "user" to the authentication file;

mkdir -p ~.config/deluge
echo "username:password" >> ~/.config/deluge/auth


Note:
The username and password can be anything you like, they do not have to correspond with a username and password combo from UNIX userland.

Now we can start the deluge daemon;

deluged

By default connections from remote hosts are disabled. We need to enable them using the deluge console.

Load the Console UI;

deluge-console

Entering the following command into the console;

config -s allow_remote True

Exit the Console UI with the 'exit' command;

exit

Open your deluge client on your workstation and open the 'Preferences' dialog. Disable 'Classic mode' on the 'Interface' page.

Restart the client and you should now be able to use the GTK Deluge client to connect to your Deluge server using the 'Connection Manager' dialog.

To start the web process;

deluge-web &

This small script will start both process's and then confirm that they have started using 'ps'

#!/bin/bash
deluged
deluge-web &
ps ax | grep deluge | grep -v grep


You can now browse to your server on port 8112;

http://myserver:8112

The default password is 'deluge'. You should change this of course.

You do that using the WebUI in 'Preferences > Interface'

4 comments:

Unknown said...

You might be interested in knowing about RHUB http://www.rhubcom.com, Remote Access. It is a multi-platform supportive appliance displaying some great features such as instant remote control, faster remote access, remote reboot, firewall and proxy compliance, file transfer, and chat.

Unknown said...

Hi! Thanks for the walkthrough. I tried it with version 1.2.1 and it is still valid, but could be improved with adding the user. Like

username:password:10

Else deluge will assume userlevel 5 which is not enough to connect from a remote IP. At least, for me it did not work until I set the level to 10. I have no clue what the possible user levels are, but level 10 is used by the clients.

Mzzl

Anonymous said...

Thanks! :)

Sam said...

Thanks for the guide! For the less technically inclined, there are many remote access software solutions available that don't require the use of console scripting.