Skip to content
HungryFeline edited this page Jul 29, 2015 · 18 revisions

rtorrent install

Introduction

Since version 0.7.8 of rtorrent, most distros have compiled rtorrent with xmlrpc-c. If you are using a relatively current distro (e.g. Ubuntu 10.04LTS or newer) installation is as simple as using your package manager.

sudo apt-get install rtorrent

Once installed you can proceed to configure rtorrent

Dependencies:

Installing xmlrpc-c

It's recommended that you use a newer version of xmlrpc-c.

For example, the svn version.

svn co http://svn.code.sf.net/p/xmlrpc-c/code/advanced xmlrpc-c
cd xmlrpc-c
./configure
make
make install

This installed xmlrpc-c-config to /usr/local/bin/xmlrpc-c-config

fetch and install rtorrent

Now, provided you have the other dependencies for rtorrent installed, you can install libtorrent and rtorrent as follows:

wget https://github.com/rakshasa/libtorrent/archive/0.13.4.tar.gz
wget https://github.com/rakshasa/rtorrent/archive/0.9.4.tar.gz
tar xzfv libtorrent-0.13.4.tar.gz
tar xzfv rtorrent-0.9.4.tar.gz
cd libtorrent-0.13.4
./configure
make
make install
cd ../rtorrent-0.9.4/
./configure --with-xmlrpc-c=/usr/local/bin/xmlrpc-c-config
make
make install

On a FreeBSD system with Ports installed, all of the above can be done with a single line of code:

cd /usr/ports/net-p2p/rtorrent/ && make install clean

rtorrent Setup and Configuration

rtorrent can be run as any user (or multiple users). Generally, it's a bad idea to run rtorrent as the root user, so create a unique user, and make sure to add a .rtorrent.rc. Make sure to enable scgi port with something like this:

scgi_port = 127.0.0.1:5001
Clone this wiki locally