Sunday, 29 July 2012

Centos 6/RHEL install Deluge Bittorrent client from repo

Deluge installation from repo.

Deluge is a full-featured cross platform  BitTorrent client created in Python. It makes use of libtorrent and features multiple user-interfaces including: GTK+, web and console

Deluge features a rich plugin collection providing much of its  functionality and is made freely available at

http://deluge-torrent.org/ although compiling from source is probably not the easiest way for the average user to obtain it.

It has the facility to be used on separate machines in client/server mode also, which is useful.




Deluge and Preferences box

It will work with multiple Desktops including, but not restricted to, GNOME, KDE, XFCE, FLUXBOX and others.

It has a large array of features as below

Core/UI split allowing Deluge to run as a daemon
Connect remotely to the Deluge daemon
Web UI
Console UI
GTK+ UI
BitTorrent Protocol Encryption
Mainline DHT
Local Peer Discovery (aka LSD)
FAST protocol extension
╬╝Torrent Peer Exchange
UPnP and NAT-PMP
Proxy support
Web seed
Private Torrents
Global and per-torrent speed limits
Configurable bandwidth scheduler
Password protection
RSS (via Plugin)
Other  libtorrent feature

It has quite a number of dependencies, making it not such a great candidate for a quick compile and install from source, although you are welcome to try if you have a lot of spare time.

Fortunately, the guys at nux-dextop have seen fit to compile a nicely working rpm for Centos 6/RHEL,and this is how I'd recommend installing Deluge.

Make sure Epel repo is enabled also as GeoIP is needed from it

To obtain nux-dextop first install wget if not installed.

$sudo yum -y install wget                           

$wget http://li.nux.ro/download/nux/dextop/el6/i386/nux-dextop-release-0-1.el6.nux.noarch.rpm

or

$wget http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-1.el6.nux.noarch.rpm

for the repo pack       

$sudo rpm -Uvh nux-dextop-release-0-1.el6.nux.noarch.rpm

to install it.

$sudo vi /etc/yum.repos.d/nux-dextop.repo   

set 'enabled' to '0'

$sudo yum -y --enablerepo=nux-dextop install deluge

After installing a few python packages you are set to go  

To run it just type

$deluge

See Fluxbox key bindings for more. 

Autostart

To have it autostart when rebooting (in Fluxbox)

$sudo vi /etc/X11/xinit/xinitrc             add the line

startfluxbox                                save it, then

$vi /home/<user_name>/.fluxbox/startup      add the line

/usr/bin/deluge &                        (with ampersand)

Just before the 'exec fluxbox' line         

If you check 'start in tray' in preferences it will autostart

already in your tray.

Other desktop users can check here

Set it up to open torrent files by default in your browser settings. Typically, when downloading a file in Firefox, just select the 'Open with Deluge' option which should appear. If you do download the torrent file then right click on it and do the same.

Go into preferences where you can set up port forwarding and adjust many other settings to ensure optimum performance of the program.

So this is the simple way to obtain Deluge thanks to the people at nux-dextop.



7 comments:

  1. How do you make it start automatically when centos restart?

    ReplyDelete
    Replies
    1. I added a part on this above.

      Delete
    2. Nice... works fine, but not what I need... this just gives the client.... any idea how I go about installing it to run headless so I can access it via web-ui? Ineed a setup guide similar to this: http://totallynoob.com/deluge-torrent-server-seedbox-ubuntu-headless pls can u help mate?

      Delete
  2. @The Gene There is a guide at

    http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient#WebUI

    which looks fairly simple, I haven't tried it yet but if I get the opportunity I will do a post on it.

    ReplyDelete
  3. Ta thanks mate, I tried that, sigh... now get an error about port 8112 already being in use on the server.... maybe u have an idea or two I can try?

    ReplyDelete
  4. i'd recommend also setting "includepkgs=deluge* rb_lib*" inside the nux repo so that it doesn't fetch any dependencies from that repo.

    ReplyDelete
  5. If deluge packages are also available in any other repo you have, then you might want to do that, additionally, 'excludepkgs' from the repo from which you don't need them. Check also the priorities setting as you might want to use that if you have priorities installed.

    ReplyDelete