Raspberry Pi 2 torrentbox

Build a Raspberry Pi 2 Torrentbox that will manage all your torrents, run 24 hours and cost you about 10$ a year to operate.

The Raspberry Pi 2 Torrent box can run on the same Pi that is working as your low powered NAS or Web Server or OwnCloud server.

The Raspberry Pi 2 Torrentbox can be operated with a Thin Desktop Client on your PC or via a number of IOS and Android Apps. It can download and seed from a locally connected HDD or via a Network Mounted share.

Overview :

  • You will first need to download and Configure Deluge on your Pi.
  • Install the Deluge Thin Client on your PC
  • Install Deluge thin Client Apps for your Mobile Devices.

Time and Difficulty :

  • Time : 15 to 30 mins  once you have the Raspbian Image file and the rest of the software.
  • Newbie Difficulty level : Moderately easy ; Will need to use terminal and type in commands.

What you will need :

  • Raspberry Pi 2 Model B or one of its clones like Banana Pi M1 or M2 or Banana Pro
  • Ethernet connection or a supported USB Wifi adapter for the Pi
  • SD or Micro SD Card that fits into your Pi (4GB or above is recommended)
  • SSH to operate your Pi remotely OR a USB Keyboard and Mouse along with Connection to a TV or Monitor
Create the TorrentBox :

STEP 1 : Update the Pi 

Log in to Raspbian and enter the following commands with out the quotes  :

  1. sudo apt-get update
  2.  “sudo apt-get upgrade
  3.  “sudo apt-get dist-upgrade

The steps above will update the software and the raspbian distribution to the latest available.

STEP 2 : Install and Setup Deluge for Thin Client access

Log in to Raspbian and enter the following commands with out the quotes  :

  1. sudo apt-get install deluged” (Download and Install the Deluge daemon)

    install deluge daemon
    deluge daemon
  2. sudo apt-get install deluge-console” (Download and the Deluge console )

    Install Deluge Console
    Install Deluge Console
  3. deluged”  ( To start the Deluge Daemon.  When first started, the Deluge Daemon creates a configuration file which needs to be edited )
  4. sudo pkill deluged”  ( To stop the Deluged Daemon)
  5. cp ~/.config/deluge/auth ~/.config/deluge/auth.old” ( Create a back up of the file configuration file auth into a new file called auth.old )
  6. nano ~/.config/deluge/auth”  (Use the text editor nano to edit the file auth )
  7. In nano, enter a new line that looks like “projpi:pitorrent:10”  (which follows the convention user:password:level where we have entered projpi as the user, pitorrent as the password and assigned level 10 – which gives full-access / admin level to the Deluge Daemon)A
  8. In nano, “Ctrl+x” to exit and Press “Y“save your changes.
  9. Enter “deluged” (Start the Deluge daemon)
  10. Enter “deluge-console” ( To Enter the Deluge console)
  11. Inside Deluge Console “config -s allow_remote True

    config -s allow_remote True
    config -s allow_remote True
  12. Next, Inside Deluge Console “config allow_remote

    config allow_remote
    config allow_remote
  13. Next, Exit the Deluge Console by entering in “exit” (You should be back at the terminal)
  14. Enter “sudo pkill deluged”  ( To stop the running Deluged Daemon)
  15. Enter “deluged”  ( To restart the Deluge Daemon with the new configuration)

The Deluge Daemon on the Pi is now ready for Remote Access. It can now be accessed via a Thin Client on your PC.

STEP 3 : Install Deluge Thin Client on your PC.

Goto http://deluge-torrent.org/ Navigate to their Download page and select the OS and Version

Deluge download page
Deluge download page

After downloading and Installing the ThinClient, Navigaet to Preferences -> Interface. UnCheck the Classic Mode

UnCheck Classic Mode
UnCheck Classic Mode

Now, restart Deluge and you should see the connection Manager tbox8


Click on Add, Enter the IP address of your Pi, leave the Port as is, and Enter projpi as the username and pitorrent as the password ( Or the username and password entered a few steps above). You will now See a green light next to your Pi along with IP address and port.


Pi connected!
Pi connected!

Select the Pi and click connect.

STEP 4 : Make Deluge start at boot

To make Deluge start at boot, follow the steps given on the Deluge website http://dev.deluge-torrent.org/wiki/UserGuide/Service/DebianUbuntuInitd

Remember to replace the user name to the one you have selected earlier on.

STEP 5 : Change the Default Download folder

Deluge will download all data to /home/pi by default. This is a not a feasible long term solution. To solve this, you will need to connect a HDD to download your torrents onto.

  1. Follow the steps outlined here to automount a HDD to the Pi .  
  2. Open the Deluge Client, Navigate to Preferences > Downloads and change the location to the connected HDD.tbox11




6 thoughts on “Raspberry Pi 2 torrentbox”

  1. STEP 4 : Make Deluge start at boot

    is this step to make deluge boot on my pi or computer? I was looking at instructions in the link and its a bit confusing

  2. in step 4, how does the daemon know to look in /home/pi/.config for the password?
    Shouldn’t that auth config-file be somewhere more system-like and not in a user’s homefolder?

Leave a Reply