This tutorial will guide you through installing Webmin, FTP, Deluge, and a ThinClient. For those of you that do not know what a ThinClient is, it allows you to connect to your deluge seedbox via a deluge installation on your own PC.
Setting up a new user
If you already have a sudo user skip this step and move on to installing webmin
Log into your server via ssh with your root user. You can use PuTTY to do this if you do not have an ssh program.
One logged in type the following
This will create a new user, enter the Unix password you want for the new user, followed by hitting Enter until 6 times. Your screen should look like this except the username 'test' would be replaced by the name you picked:
Code:
root:~$ adduser test
Adding user `test' ...
Adding new group `test' (1001) ...
Adding new user `test' (1001) with group `test' ...
Creating home directory `/home/test' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for test
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
root:~$
Now we need to add this user to the sudo list:
Look for this part of the file:
Code:
# User privilege specification
root ALL=(ALL) ALL
Move your cursor to just below that and type:
Code:
<name> ALL=(ALL) ALL
Replace <name> if the name of the user you created
Now hit:
Log out of ssh
Installing Webmin
Log in as your sudo user that you already had or just created
Time to download webmin:
Code:
wget -O webmin.deb http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin_1.580_all.deb?r=http%3A%2F%2Fwww.webmin.com%2F&ts=1334450595&use_mirror=iweb
After it downloads it, we need to install it:
Code:
sudo dpkg -i webmin.deb
If you get an error saying dependencies are missing run this to force the install and grab what is needed:
Code:
sudo apt-get -f install
After it is installed you will see this:
Code:
Webmin install complete. You can now login to <server_ip>:<port>
as root with your root password, or as any user who can use sudo
to run commands as root.
Log into webmin using the ip:port given to make sure it installed correctly
Installing FTP Server
Now it is time to install an FTP server, my FTP server of choice is proFTPd:
Code:
sudo apt-get install proftpd
It will ask you if you want to run proftp from inetd or standalone, if you are going to be the only one using it I suggest picking inetd, otherwise if multiple people will be using it at once choose standalone.
That is all you need to install an FTP server
Installing Deluge
Now it is time to install deluge, I prefer installing it from source:
Code:
mkdir downloads
mkdir watch
wget http://download.deluge-torrent.org/source/deluge-1.3.5.tar.gz
tar zxfv deluge-1.3.5.tar.gz
cd deluge-1.3.5
Now we need to install some dependencies:
Code:
sudo apt-get install screen python python-twisted python-twisted-web2 python-openssl python-simplejson python-setuptools gettext intltool python-xdg python-chardet python-geoip python-libtorrent python-notify python-pygame python-gtk2 python-gtk2-dev librsvg2-dev xdg-utils python-mako
After everything is done we need to setup, build, and install deluge
Code:
python setup.py clean -a
python setup.py build
sudo python setup.py install --install-layout=deb
Now we need to start deluge and the webui:
Code:
deluged
screen -dmS deluge-web deluge-web
If you get the error: var/run/screen must have mode 777, then do this
Code:
sudo chmod 777 /var/run/screen
Now log into your your web-ui by going to <server_ip>:8112
The password is: deluge
Once you log in for the first time it will ask you if you want to change your password, I suggest doing this.
Now we just to do some setup, click the preferences button and do the following:

There is a known bug so make sure you use the down arrows to get everything to -1


Hit apply and then ok, you can now add torrents to your seedbox by either using the web-ui or ftp'ing the torrent files to /home/<name>/watch and it will save the files to /home/<name>/downloads
Thin Client
Here is where deluge kicks rtorrent's ass, it allows you to install deluge on your own PC.
Install deluge with the appropriate file: Download Deluge
Log back into your server via ssh and do the following, where "username" and "password" are the username and password you intend to use.
Code:
echo "username:password:10" >> ~/.config/deluge/auth
Now run the Console UI:
We need to enable remote connections and check that it was set correctly:
Code:
config -s allow_remote True
config allow_remote
Exit the console:
We need to restart deluge
Code:
pkill deluged
deluged
Now we need to setup deluge on your client to connect to the seedbox:
- Open up deluge
- Go to Preferences --> Interface and uncheck 'Classic Mode' to disable it
- Restart deluge, you should now see the Connection Manager pop up.
- Remove the localhost daemon.
- Click "add" and for 'Hostname' enter your server's IP
- Leave the Port as default (58846)
- Enter the Username and Password you added to the auth file then finish by clicking Add. A green dot should now appear as the status for the host you just added
- (optional) Expand "Options" and select "Automatically connect to selected host on startup" and "Do not show this dialog on start-up".
- Click "Connect" and the connection manager pop up box should disappear.
You can now add/remove torrents using deluge on your desktop and it will control the seedbox
Making Torrents
Verify that mktorrent is installed
If it is not installed, install it
Code:
sudo apt-get install mktorrent
Now it is time to make the torrent:
Code:
mktorrent -v -p -i <piece size> -a http://announceurl.com -o filename.torrent <Path to files>
The piece size determines how large each piece is, for larger files you should use a larger piece size
Code:
Piece Sizes
-l 18 = 256kb
-l 19 = 512kb
-l 20 = 1MB
-l 21 = 2MB
-l 22 = 4MB
-l 23 = 8MB
-l 24 = 16MB
Final Thoughts
If you have any issues, feel free to post below or PM me on the site. I will do my best to update this accordingly to new versions for the software installed
Check this thread to upgrade deluge if a new version comes out: Upgrading Deluge if you install from Source