Tuesday, 22 January 2013

Deluge on FreeBSD server


Deluge is powerfull, yet light BitTorrent client with rich WebUI. Is ideal candidate for low powered MiniITX Seed Boxes.
From security point, most interesting part here is secure connection with Socks5 Autentification.
SOCKS5 also allowing traffic to bypass Internet filtering to access content otherwise blocked by governments, workplaces, schools and country specific web services.

hw.machine: i386; hw.ncpu: 1
CPU: VIA Nehemiah (999.83-MHz 686-class CPU)
real memory  = 536870912 (512 MB)

Deluge Instalation:

Instalation is possible either from packages or ports.
Adding binary package will save time for slow lower power consumption processor (my system).

# pkg_add -r deluge
This command will install:
deluge          deluge-console  deluge-gtk      deluge-web      deluged

Running Deluge on FreeBSD:

For debug problems and watch logs it is good idea to start it as:
# deluged -d -L debug
It is possible to start deluge daemon at boot just add line > deluged_enable="YES" < to /etc/rc.conf

Web interface is stated by command:
# deluge-web
Then open a browser http(s)://YourServer:8112.
Substitute the word localhost with an IP address if the server is elsewhere.
When asked for a password, enter "deluge" as it is the default password.

Problems found:

FreeBSD ImportError: No module named zope.interface

I just install/reinstall port /usr/ports/devel/py-zope.interface:
# cd /usr/ports/devel/py-zope.interface && make deinstall reinstall clean

FreeBSD deluge performance warning: max outstanding disk writes reached

Upgrade libtorrent packages should by resolv this problem as it mention in developer site.

Upgrading Example (output depend on your system):

# pkg_version -vI | grep libtorrent py27-libtorrent-rasterbar-0.15.9    <   needs updating (index has 0.15.9_2)

So possible upgrade:
# portupgrade libtorrent-rasterbar-0.15.9
# portmaster py27-libtorrent-rasterbar*

SOCK setup:

GO to deluge preferences/proxy
My way to setup SOCKS5 proxy is start down there and fill the last (DHT) field. When I started on top (Peer) other fields were hidden and accessible just by key.

Config files:

- wiki/SOCKS

- deluge-na-freebsd-serveri

0 komentářů:

Post a Comment