Home Linux Other HOWTO - Install rTorrent from source

HOWTO - Install rTorrent from source

Print
How to install rTorrent and libTorrent from source, press read more..

This is made for you with your own dedicated server / virtual private server
You will need root access to use this howto!
There are probally faster/better ways to do this, but this should work on most distros.

Tested on: Centos 5.x (32/64Bit)

Step 1.1: Pre-Install (CENTOS / REDHAT ) :

yum -y install wget bzip2 openssl openssl-devel gcc gcc-c++ ncurses-devel pkgconfig screen


If you get error on the command over, try running this first:

yum upgrade


Step 2: Installing libsigc++:

cd /usr/local/src
wget http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.0/libsigc++-2.0.18.tar.gz
tar -zxvf libsigc++-2.0.18.tar.gz
cd libsigc++-2.0.18
./configure --prefix=/usr/local
make && make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig


Step 3: Installing libTorrent:

cd /usr/local/src
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.2.tar.gz
tar -zxvf libtorrent-0.12.2.tar.gz
cd libtorrent-0.12.2
./configure --prefix=/usr/local
make && make install


Step 4: Installing libCURL:

cd /usr/local/src
wget http://curl.haxx.se/download/curl-7.18.2.tar.gz
tar -zxvf curl-7.18.2.tar.gz
cd curl-7.18.2
./configure --prefix=/usr/local
make && make install


Step 5: Installing rTorrent:

cd /usr/local/src
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.2.tar.gz
tar -zxvf rtorrent-0.8.2.tar.gz
cd rtorrent-0.8.2
./configure --prefix=/usr/local
make && make install


Step 6: Copy config to your "torrent" user:
Its not smart to run these tools as root, so we should create a regular user. Mine is called bob

cp /usr/local/src/rtorrent-0.8.2/doc/rtorrent.rc /home/bob/.rtorrent.rc
chown bob:bob /home/bob/.rtorrent.rc


Step 7: Start rTorrent with screen:
You may need to login as your regluar user

screen rtorrent

or

/usr/local/bin/rtorrent


Step 8: How to exit the screen:

Hold Control Down, Press A then D


Step 9: How to resume the screen:

screen -r


Step 10: How to use rtorrent:

See Rtorrent Manual - http://libtorrent.rakshasa.no/wiki/RTorrentUserGuide
Its also recommended to edit the .rtorrent.rc for tuning and port selection.
It May also be needed to open the port for the rtorrent client in your firewall.



Optional / Troubleshooting: If you have Grsecurity Kernel:

execstack -c /usr/local/lib/libcurl.so.4
execstack -c /usr/local/lib/libtorrent.so.9



Powered By Joomla Tags

Last Updated ( Friday, 25 July 2008 12:50 )