User avatar
saifsmailbox98
Posts: 30
Joined: Tue Nov 18, 2014 1:15 am

Autostart deluge daemon 1.3.10 on boot on Raspberry Pi

Tue Nov 10, 2015 10:55 pm

I have already been through different tutorials on how to set raspberry pi into a torrent box, but I think most of the how-to tutorials are out-dated.

I have also check my version of deluge daemon using his command:

Code: Select all

deluge -v
And it returns this:

Code: Select all

deluged: 1.3.10
libtorrent: 0.16.18.0
I have followed the How-To Geek tutorial so far.

Link: http://www.howtogeek.com/142044/how-to- ... rrent-box/

After I stared to get errors I have fully uninstalled and deleted all the files of deluge.

The tutorial suggests this command:

Code: Select all

sudo wget -O /etc/default/deluge-daemon http://cdn5.howtogeek.com/wp-content/uploads/gg/up/sshot5151a8c86fb85.txt
But there is no such file as /etc/default/deluge-daemon, instead there is a deluged named file (maybe short for deluge-daemon in new version)

Basically what the command does is that it copies the content of the file http://cdn5.howtogeek.com/wp-content/up ... 86fb85.txt to the file located at /etc/default/deluge-daemon.

As I can't find deluged-daemon, I chose to do this with /etc/default/deluged

The original content of /etc/default/deluged:

Code: Select all

# Defaults for deluged initscript
# sourced by /etc/init.d/deluged
    
# change to 1 to enable daemon
ENABLE_DELUGED=0
Content provided on the file http://cdn5.howtogeek.com/wp-content/up ... 86fb85.txt:

Code: Select all

# Configuration for /etc/init.d/deluge-daemon
    
# The init.d script will only run if this variable non-empty.
DELUGED_USER="pi"             # !!!CHANGE THIS!!!!
    
# Should we run at startup?
RUN_AT_STARTUP="YES"
But both files looks different also the deluge daemon doesn't load up on startup.
Last edited by saifsmailbox98 on Wed Feb 03, 2016 11:41 am, edited 1 time in total.
Kindness is a mark of faith, and whoever is not kind has no faith. -Messenger of God

Addicted
Posts: 55
Joined: Wed Oct 14, 2015 2:40 am

Setup Deluge at Auto start

Thu Nov 19, 2015 10:56 am

See that code

Code: Select all

sudo chmod 755 /etc/default/deluge-daemon
sudo update-rc.d deluge-daemon defaults
Don't execute "sudo update-rc.d deluge-daemon defaults" right after creating "/etc/default/deluge-daemon" as deluge-daemon is not created in init.d till now.Skip that & later after creating deluge-daemon in init.d & changing permission execute "sudo update-rc.d deluge-daemon defaults"


In that tutorial 2 times "sudo update-rc.d deluge-daemon default" is executed.
Just skip 1st & execute 2nd

Addicted
Posts: 55
Joined: Wed Oct 14, 2015 2:40 am

Install Transmission Daemon

Thu Nov 19, 2015 11:09 am

Or You can Install Transmission-Daemon.
I'm writhing steps

1.Install transmission-daemon

Code: Select all

sudo apt-get install transmission-daemon
It automatically configures to start at boot
2.Stop Transmission

Code: Select all

sudo service transmission-daemon stop
3.Edit Transmission setting as You NEED or atleast edit things i mentioned below.

Code: Select all

sudo nano /etc/transmission-daemon/settings.json
"download-dir": "/home/pi/Downloads/Completed",
"incomplete-dir": "/home/pi/Downloads/Incomplete",
"rpc-password": "pi",
"rpc-username": "pi",
"rpc-whitelist": "127.0.0.1,192.168.*.*",
Find those setting & change options
You can refer https://trac.transmissionbt.com/wiki/EditConfigFiles to change more setting

4.Change permission for download directory as transmission-daemon is launched as "transmission-daemon" user to give transmission write capability to Download directory.

Code: Select all

sudo chown -R pi:pi /home/pi/Downloads
5.Enjoy!!! if any other help needed post in forum

shawaj
Posts: 113
Joined: Wed Oct 03, 2012 3:36 am

Re: Autostart deluge daemon 1.3.10 on boot on Raspberry Pi

Wed Jun 22, 2016 10:29 pm

I am having the same problem as the OP.

Did you ever work this out?

Showing correctly in rc.d but nothing is loading on boot!
Support The MagPi by purchasing printed copies from one of our retailers - http://themagpi.com/en/buy

Please share with anyone who is interested!

SonOfAMotherlessGoat
Posts: 690
Joined: Tue Jun 16, 2015 6:01 am

Re: Autostart deluge daemon 1.3.10 on boot on Raspberry Pi

Wed Jun 22, 2016 10:45 pm

Are you using Jessie? What does the following report?

Code: Select all

sudo systemctl status transmission-daemon
Account Inactive

shawaj
Posts: 113
Joined: Wed Oct 03, 2012 3:36 am

Re: Autostart deluge daemon 1.3.10 on boot on Raspberry Pi

Thu Jun 23, 2016 6:19 pm

Hi again, it is deluge-daemon that is not working. Here is the output:

pi@raspberrypi:~ $ sudo systemctl status deluge-daemon
● deluge-daemon.service - LSB: Daemonized version of deluge and webui.
Loaded: loaded (/etc/init.d/deluge-daemon)
Active: active (exited) since Thu 2016-06-23 13:39:05 UTC; 4h 15min ago
Process: 494 ExecStart=/etc/init.d/deluge-daemon start (code=exited, status=0/ SUCCESS)

Jun 23 13:39:05 raspberrypi deluge-daemon[494]: Starting Deluge Daemon: delu...d
Jun 23 13:39:05 raspberrypi deluge-daemon[494]: start-stop-daemon: user 'pis...d
Jun 23 13:39:05 raspberrypi deluge-daemon[494]: .
Jun 23 13:39:05 raspberrypi systemd[1]: Started LSB: Daemonized version of d....

I actually worked out what it was from that - the username was wrong. It asked for the deluged username in the file sudo nano /etc/default/deluge-daemon however what it actually wanted was the Raspberry Pis username for the daemon to run under.

Then it works :-)
Support The MagPi by purchasing printed copies from one of our retailers - http://themagpi.com/en/buy

Please share with anyone who is interested!

Return to “Networking and servers”