Page 1 of 1

CentOS 6.5 Headless Guide

Posted: Fri May 30, 2014 10:51 am
by crazzzik
I've been searching for any decent guide around the net and couldn't find one. Here is how I made mine to work.
Premise: home server that would receive .torrent files using Remote Torrent Adder https://chrome.google.com/webstore/deta ... fdghcmenci

We'll need two repositories - epel6 and linuxtech:

EPEL 6 "/etc/yum.repos.d/epel.repo"

Code: Select all

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

LinuxTech "/etc/yum.repos.d/linuxtech.repo"

Code: Select all

[linuxtech]
name=LinuxTECH
baseurl=http://pkgrepo.linuxtech.net/el6/release/
enabled=1
gpgcheck=1
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET

Adding user called 'deluge':

Code: Select all

sudo useradd --system --home /var/lib/deluge deluge

Installing the thing. We will need the following components:

Code: Select all

deluge-common
deluge-web
deluge-images
deluge-daemon
I found that if you install 'deluge-web' you get the exact list:

Code: Select all

yum install deluge-web

Modifying init script:

Code: Select all

sudo vi /etc/init.d/deluge-daemon
change line

Code: Select all

prog2=deluge
to

Code: Select all

prog2=deluge-web
and

Code: Select all

daemon --user deluge "$prog2 --ui web >/dev/null 2>&1 &"
to

Code: Select all

daemon --user deluge "$prog2 >/dev/null 2>&1 &"

Test run:

Code: Select all

service deluge-daemon start
You should be able to access http://server-ip:8112 and go through initial setup. Remember, default password is 'deluge'.


Finalizing:

Code: Select all

chkconfig deluge-daemon on
then cross your fingers and reboot.


As for Chrome extension, pick Deluge WebUI, enter your ip/hostname, port number of web ui, leave username empty and enter the password. Plugin should be intercepting magnet and .torrent links but you might need to dig around to make it work.

Re: CentOS 6.5 Headless Guide

Posted: Fri May 30, 2014 6:10 pm
by Cas
Thanks for that, could you setup a Trac account and create a wiki page: http://dev.deluge-torrent.org/wiki/Inst ... nux/CentOS

Re: CentOS 6.5 Headless Guide

Posted: Fri May 30, 2014 8:19 pm
by crazzzik
Sure. I just want to see feedback first to verify that it works for others.

Re: CentOS 6.5 Headless Guide

Posted: Sun Jul 27, 2014 8:05 pm
by tetsuo
Thanks for the guide. It worked perfectly on my Centos 6.5.

Re: CentOS 6.5 Headless Guide

Posted: Wed Aug 06, 2014 2:13 am
by zeroluck
I have this same setup. I'm having an issue with it though, deluge-daemon crashes every few minutes and I get the error:

Code: Select all

kernel: deluged[4841]: segfault at 68247b0 ip 00007f6859aa1d07 sp 00007f684fffde60 error 4 in libcrypto.so.1.0.1e[7f6859a10000+1b5000]
It looks like linuxTECH repository installs deluge 1.3.5 and libtorrent 0.15. Some people online say that upgrading libtorrent might fix this, but I don't think so in this case. I don't like compiling things for production because it is a pain to update them but I may have to in this case since this keeps crashing.

Re: CentOS 6.5 Headless Guide

Posted: Wed Aug 06, 2014 10:20 am
by Cas
Do you not think that when the developer of Deluge (i.e. me) tell users encountering libcrypto crashes (in various forum threads and bug reports) to upgrade libtorrent it might be wise to do that...