This is a very simple use and in no way original, but I thought I'd share it anyhow since it doesn't require very complex setup. You'll need one or more Android phones/tablets to control the setup, too.
Starting with any Debian image, SSH in and install deluge, deluged, and deluge-web:
I followed these instructions in relevant part, specifically:
Now, the torrent box is up and running! But, you have no way to add torrents, and when you do they're being saved on your microSD card, which isn't great for the card's longterm survival. My solution to the latter is a samba share, since my wireless router lets me plug in any USB drive as a samba share. So, we'll need to install cifs-utils:
Create a directory for mounting it and change ownership to the deluge user:
Then set the samba share to mount on boot. :
You should probably use a password or credentials, but for simplicity this assumes the samba share allows guest logins.
Next, the deluge settings need to be tweaked a bit, which means shutting down the services:
Next, open the daemon config for editing. This will require either a chown or sudo since it's only accessible to the deluge user:
This is the line you're looking for, and change it to where your drive is mounted:
Next, open web.conf and set the default daemon:
That's all for tonight, I'll explain how to set up Transdroid and BubbleUPnP tomorrow, though it's pretty straightforward.
Starting with any Debian image, SSH in and install deluge, deluged, and deluge-web:
Code:
sudo apt-get install deluge deluged deluge-web
I followed these instructions in relevant part, specifically:
Code:
#create a user to run the daemon
sudo adduser --system --gecos "Deluge Service" --disabled-password --group --home /var/lib/deluge deluge
#add your own user to the deluge group (change user name as needed)
sudo adduser debian deluge
#create a script for the daemon
sudo nano /etc/systemd/system/deluged.service
#enter the following in that script
[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target
[Service]
Type=simple
User=deluge
Group=deluge
UMask=007
ExecStart=/usr/bin/deluged -d
Restart=on-failure
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target
#create web service script
sudo nano /etc/systemd/system/deluge-web.service
#containing
[Unit]
Description=Deluge Bittorrent Client Web Interface
After=network-online.target
[Service]
Type=simple
User=deluge
Group=deluge
UMask=027
ExecStart=/usr/bin/deluge-web
Restart=on-failure
[Install]
WantedBy=multi-user.target
#start each service, confirm it's running, and set to autostart
sudo systemctl start deluged
sudo systemctl status deluged
sudo systemctl enable deluged
sudo systemctl start deluge-web
sudo systemctl status deluge-web
sudo systemctl enable deluge-web
Now, the torrent box is up and running! But, you have no way to add torrents, and when you do they're being saved on your microSD card, which isn't great for the card's longterm survival. My solution to the latter is a samba share, since my wireless router lets me plug in any USB drive as a samba share. So, we'll need to install cifs-utils:
Code:
sudo apt-get install cifs-utils
Create a directory for mounting it and change ownership to the deluge user:
Code:
sudo mkdir /mnt/fetched
sudo chown deluge:deluge /mnt/fetched
Then set the samba share to mount on boot. :
Code:
sudo nano /etc/fstab
#Add this line, modifying as needed
//192.168.0.1/Shared_Drive/Uploads /mnt/fetched cifs guest,uid=122,gid=128,iocharset=utf8,sec=ntlm 0
0
Next, the deluge settings need to be tweaked a bit, which means shutting down the services:
Code:
sudo systemctl stop deluged
sudo systemctl stop deluge-web
Next, open the daemon config for editing. This will require either a chown or sudo since it's only accessible to the deluge user:
Code:
sudo nano /var/lib/deluge/.config/deluge/core.conf
This is the line you're looking for, and change it to where your drive is mounted:
Code:
"download_location": "/mnt/fetched",
Next, open web.conf and set the default daemon:
Code:
sudo nano /var/lib/deluge/.config/deluge/web.conf
#change this line
"default_daemon": "127.0.0.1:58846",
That's all for tonight, I'll explain how to set up Transdroid and BubbleUPnP tomorrow, though it's pretty straightforward.