Can anyone tell me how to install Rutorrent on CentOS?

das329717

Member
May 25, 2018
928
0
16
Hi, i´ve searched the web for a tutorial or a how-to about doing this but i´ve only found ubuntu and debian tutorials, I´m using CentOS 5 64 bits and i can´t find a guide about installing rtorrent + Rutorrent on it, i hope you can help me.
Thank you, regards.
Sadnem
 

shwetha17

Member
May 24, 2018
785
0
16
it's no different really. I'm not going to tell you step by step because i don't use centos or ubuntu and probably never will until they support ZFS

anyways, the steps are as follows:

install rtorrent with xmlrpc-c support. The best way to handle this is via source installs. This means you need require build utilities, a quick google should help with this.

once you have your build tools, download rtorrent sources. best way to do this is via subversion. again, i'm not 100% sure on the package manager in centos but i'm sure subversion is available.

then use subversion to get rtorrent. If you want the latest rtorrent, it would be like this:
Code:
svn co svn://rakshasa.no/libtorrent/trunk

then simply do the following:
Code:
cd libtorrent
./autogen.sh
./configure
make
make install
cd ../rtorrent
./autogen.sh
./configure --with-xmlrpc-c
make
make install

this gets you rtorrent installed.

from then, you need a webserver. Pick whichever one you want. If you want the webserver to handle the scgi mount (this is ideal for speed and load) then make sure you have the required module. For lighttpd, i think it comes with this. For apache, install mod_scgi

then it's just a matter of setting up rtorrent. a simple config file like this should be suffecient:

Code
#min_peers = 40
#max_peers = 100

#min_peers_seed = 10
#max_peers_seed = 55

#max_uploads = 15

#max_uploads_global = 100
#max_downloads_global = 150

download_rate = 0
upload_rate = 0

directory = ~/rtorrent/download/
session = ~/rtorrent/.session

#schedule = watch_directory,5,5,load_start=~/rtorrent/.watch/*.torrent
#schedule = untied_directory,5,5,stop_untied=

schedule = low_diskspace,5,60,close_low_diskspace=512M

#schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"
#ip =
#bind =
check_hash = no
use_udp_trackers = yes
encryption = allow_incoming,enable_retry,prefer_plaintext
dht = auto
peer_exchange = yes
hash_read_ahead = 10
hash_interval = 10
hash_max_tries = 5
scgi_port = 127.0.0.1:5000
dht_port = 10001
port_range = 51001-51001

saved as .rtorrent.rc in the users home dir you wish to run rtorrent. Also, create the dir's set in this file for rtorrent's downloads OR change them in .rtorrent.rc
Code:
mkdir -p ~/rtorrent/download/
mkdir ~/rtorrent/.session
then install screen, check your distro's packages for this. This is helpful so you can leave rtorrent running without having to leave a terminal window open.
once you have screen installed, your .rtorrent.rc in your user's home dir and all the right dirs, test rtorrent and screen
Code:
screen
rtorrent

it should open rtorrent. you can detach the screen by hitting control-a then d
you can re-attach to the screen by typing screen -x
read up on screen for more details.

at this point, download rutorrent files and follow the instructions from the googlecode wiki.
 

somus1735

Member
May 25, 2018
833
0
16
I keep getting this error:

rtorrent: Error in option file: ~/.rtorrent.rc:3: Invalid start of name.

When using the exact same configuration and setup.

I am using Centos 5.3, with apache web server installed and sgi installed.
 

somus1735

Member
May 25, 2018
833
0
16
Code:
#min_peers = 40
#max_peers = 100

#min_peers_seed = 10
#max_peers_seed = 55

#max_uploads = 15

#max_uploads_global = 100
#max_downloads_global = 150

download_rate = 0
upload_rate = 0

directory = ~/rtorrent/download/
session = ~/rtorrent/.session

#schedule = watch_directory,5,5,load_start=~/rtorrent/.watch/*.torrent
#schedule = untied_directory,5,5,stop_untied=

schedule = low_diskspace,5,60,close_low_diskspace=512M

#schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"
#ip =
#bind =
check_hash = no
use_udp_trackers = yes
encryption = allow_incoming,enable_retry,prefer_plaintext
dht = auto
peer_exchange = yes
hash_read_ahead = 10
hash_interval = 10
hash_max_tries = 5
scgi_port = 127.0.0.1:5000
dht_port = 10001
port_range = 51001-51001
Their it is.. i think its exactly te same
 

jith45

Member
May 25, 2018
960
0
16
Quote
Hi, i´ve searched the web for a tutorial or a how-to about doing this but i´ve only found ubuntu and debian tutorials, I´m using CentOS 5 64 bits and i can´t find a guide about installing rtorrent + Rutorrent on it, i hope you can help me.
Thank you, regards.
Sadnem​


Installing on a 64bit machine gives rise to to some problems, when installing libtorrent and rtorrent. You will get libtorrent not found errors. THis is because I believe its on a 64bit machine. I have had no end of problems with centos 5.4 64 bit. I am still trying to get around these errors, and will get back to you if and when I have solved them. On the "32bit" setup I have not had any problems at all. There are rpm forge/ DAG repos out there, but I believe the version of rt is only 8.0. Good luck, and if you find a solution that would be great if you share it.
 

shwetha17

Member
May 24, 2018
785
0
16
that's not true. I've installed it on centos plenty of times.

i'm not going to give you a step by step, all info is available if you look for it, but the basics go like this.

install build tools (gcc and such)

install subversion

install curl

install sigc++2.0

install ncurses

compile xmlrpc-c (the svn version is the best)

compile libtorrent

compile rtorrent with xmlrpc-c


install some webserver with scgi (or use not, if you want to use the plugin for this)

install rutorrent.

64 bit and 32 bit do NOT matter.

chances are, you didn't set up ldconfig properly
 

jith45

Member
May 25, 2018
960
0
16
Interesting you should mention ldconfig as I tried that on a Centos 5.4 64 bit and it still failed, but hey, I'll give it anohter shot smiley.gif
I probably missed something basic
 

shwetha17

Member
May 24, 2018
785
0
16
if the error looks ANYTHING like this:
Code:
ld.so.1: rtorrent: fatal: libsigc-2.0.so.0: open failed: No such file or directory

or this:
Code:
ld.so.1: rtorrent: fatal: libtorrent.so.11.0.6: open failed: No such file or directory
then i'm right.