Loading...

Setup torrent server with Web Interface for Raspberry Pi

:heavy_exclamation_mark: This post is older than a year. Consider some information might not be accurate anymore. :heavy_exclamation_mark:

Using Raspberry Pi is a comfortable and cheap way to run a private NAS server. Besides FTP support, this article demonstrates how to run a torrent application on Raspberry Pi. We have no X-Server support, so a web user interface is needed. I choose deluge, an open source bit-torrent client, that provides a web gui. Above picture shows using the web ui deluge to download the current stable release of Debian Jessie.

All commands are done with root under Raspbian (Debian for Raspberry Pi - Wheezy). If you have another role, than apply sudo before each command.

Create user for running the bit-torrent application

adduser --disabled-password --system --home /home/deluge --group deluge

Update and install deluge

apt-get update
apt-get install deluged deluge-webui

Create following file in /etc/default/deluge-daemon

# Configuration for /etc/init.d/deluge-daemon
# The init.d script will only run if this variable non-empty.
DELUGED_USER="deluge"
# Should we run at startup?
RUN_AT_STARTUP="YES"

Copy the init.d script from the deluge homepage to /etc/init.d/deluge-daemon. Set executable permission and create rc.d configurations:

chmod a+x /etc/init.d/deluge-daemon
update-rc.d deluge-daemon defaults

Start the deluge daemon

/etc/init.d/deluge-daemon start
# to restart
/etc/init.d/deluge-daemon restart
# to stop
/etc/init.d/deluge-daemon stop

Once the deluge daemon is started and running you can access the web ui under http://localhost:8112. You might replace localhost with another hostname or IP address. The initial password is deluge.

In case you want to remove it:

update-rc.d -f deluge-daemon remove
apt-get remove deluged deluge-webui
Please remember the terms for blog comments.