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:
Now we need to add this user to the sudo list:
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 :
Is the information correct? [Y/n]
Look for this part of the file:
Move your cursor to just below that and type:
# User privilege specification
root ALL=(ALL) ALL
Replace <name> if the name of the user you created
<name> ALL=(ALL) ALL
Log out of ssh
Log in as your sudo user that you already had or just created
Time to download webmin:
After it downloads it, we need to install it:
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
If you get an error saying dependencies are missing run this to force the install and grab what is needed:
sudo dpkg -i webmin.deb
After it is installed you will see this:
sudo apt-get -f install
Log into webmin using the ip:port given to make sure it installed correctly
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.
Installing FTP Server
Now it is time to install an FTP server, my FTP server of choice is 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.
sudo apt-get install proftpd
That is all you need to install an FTP server
Now it is time to install deluge, I prefer installing it from source:
Now we need to install some dependencies:
tar zxfv deluge-1.3.5.tar.gz
After everything is done we need to setup, build, and install deluge
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
Now we need to start deluge and the webui:
python setup.py clean -a
python setup.py build
sudo python setup.py install --install-layout=deb
If you get the error: var/run/screen must have mode 777, then do this
screen -dmS deluge-web deluge-web
Now log into your your web-ui by going to <server_ip>:8112
sudo chmod 777 /var/run/screen
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
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.
Now run the Console UI:
echo "username:password:10" >> ~/.config/deluge/auth
We need to enable remote connections and check that it was set correctly:
Exit the console:
config -s allow_remote True
We need to restart deluge
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
Verify that mktorrent is installed
If it is not installed, install it
Now it is time to make the torrent:
sudo apt-get install mktorrent
The piece size determines how large each piece is, for larger files you should use a larger piece size
mktorrent -v -p -i <piece size> -a http://announceurl.com -o filename.torrent <Path to files>
-l 18 = 256kb
-l 19 = 512kb
-l 20 = 1MB
-l 21 = 2MB
-l 22 = 4MB
-l 23 = 8MB
-l 24 = 16MB
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