Deluge is a fully-featured cross-platform BitTorrent client. It is Free Software, licensed under the GNU GPLv3+ and adheres to free desktop standards enabling it to work across many desktop environments. Deluge contains the common features to BitTorrent clients such as Protocol Encryption, DHT, Local Peer Discovery (LSD), Peer Exchange (PEX), UPnP, NAT-PMP, Proxy support, Web seeds, global and per-torrent speed limits. As Deluge heavily utilises the libtorrent library it has a comprehensive list of the features provided. Deluge has been designed to run as both a normal standalone desktop application and as a client-server. In Thinclient mode, a Deluge daemon handles all the BitTorrent activity and is able to run on headless machines with the user-interfaces connecting remotely from any other platform.
In this Raspberry Pi Deluge tutorial, we will show you how to set up the popular Deluge torrent client on Raspberry Pi. Throughout this tutorial, we will be showing you how to install and configure the Deluge torrent client alongside the Deluge web interface. We will also show you how to enable Deluge’s remote access ability using SAMBA.
Contents
- Hardware Requirements
- Installing Deluge in Raspberry Pi.
- Setting up the Deluge web interface.
- Setting up SAMBA for Remote accessng Raspberry Pi.
1. Hardware Requirements
- Raspberry Pi 3 or 4
- Micro SD Card above 8GB.
- USB Pen Drive (Optional)
2. Installing Deluge in Raspberry Pi.
- Before installing deluge, we should make sure that raspberry pi software is up to date. Run the following commands for updating your raspberry pi.
sudo apt update
sudo apt upgrade
- Now, run the following command to install deluge torrent client in your raspberry pi.
sudo apt-get install deluged
sudo apt-get install deluge-console
- Choose the directory for the torrent download. A directory is required for the better management of the torrents. In this example, we will be creating a folder within a drive we mounted to our “/home/pi” folder called “torrent-downloads“.
mkdir /home/pi/torrent-downloads
3. Setting up Deluge web Interface.
- Now we need to install a deluge web interface. This will provide a user Interface for the deluge software for easy management of torrents. Run the following code to install deluge web interface in your Raspberry Pi.
sudo apt install deluge-web -y
- After running the code, the web UI will be installed on your raspberry pi. Now you have to turn on the deluge service, for accessing user interface. You can access this user interface from any device connected in the same network with the Raspberry Pi. Run the following command for turning on this deluge service.
sudo service deluged start
deluge-web
- Now, go to any device browser in the same network and type your raspberry pi IP address along with:8112 extensions. For example, if your Pi IP address is 192.168.1.90, the type 192.168.1.90:8112 in the search bar. This will open the deluge UI window in your browser. You will be asked for a password. Type the default password ‘deluge’.
- Now click on the Host address and choose Start Daemon option. Then you will be redirected to UI homepage.
- In the UI homepage. Click on preferences, to change your download location. You can use the created directory during the installation procedure.
4. Setting up SAMBA for file sharing.
- SAMBA helps you to access the raspberry pi file explorer through your PC. This can help in sharing files easy between to computers. For installing SAMBA on your Raspberry Pi, run the following command.
sudo apt install samba samba-common-bin
- Press Yes when a blue screen appear while running the setup.
- Then you will asked to type a password for your SAMBA software. Choose the password you want. Then retype the same password again for confirmation.
- Now go to your PC file explorer and type \\ followed by your raspberry pi IP address. For example, if your raspberry pi IP address is 192.168.1.20. Type \\192.168.1.20. You will be asked to type your SAMBA password. Type the SAMBA password and you will get access to the pi file explorer.
- Now you can use Deluge and raspberry pi for torrenting applications.