There are many incomplete or outdated guides on how to do this, so here is what I did :
The CentOS install was carried out selecting ‘Base’, Development Libraries’ & ‘Development Tools’
Package Selection
Code:
yum -y install xmlrpc-c xmlrpc-c-devel gcc44 gcc44-c++ screen
Installation
Code:
cd
mkdir rtorrent
cd rtorrent
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.3.tar.gz
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.3.tar.gz
wget http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.3/libsigc++-2.3.1.tar.xz
wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
You will also require the apache mod_scgi module which is not available from the CentOS repositories
Code:
rpm –ivh http://dl.fedoraproject.org/pub/epel/5/i386/mod_scgi-1.13-1.el5.i386.rpm
You need to use the gcc44 compiler as the stock 4.1.2 will not work
Code:
export CC=gcc44 CXX=g++44 CFLAGS='-pipe -Os -pthread -march=native' CXXFLAGS='-pipe -Os -pthread -march=native' LDFLAGS='-s -lpthread'
export PKG_CONFIG=/usr/bin/pkg-config
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
Compile autoconf
Code :
tar -xvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr
make
make install
cd ..
Compile libsigc
Code:
xz -dvf libsigc++-2.3.1.tar.xz
tar -xvf libsigc++-2.3.1.tar
cd libsigc++-2.3.1
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr
make
make install
cd ..
Compile libtorrent
Code:
tar -xvf libtorrent-0.13.3.tar.gz
cd libtorrent-0.13.3
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr
make
make install
cd ..
Compile rtorrent
Code:
tar -xvf rtorrent-0.9.3.tar.gz
cd rtorrent-0.9.3
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr --with-xmlrpc-c
make
make install
ldconfig
cd
cp rtorrent/rtorrent-0.9.3/doc/rtorrent.rc .rtorrent.rc
Create directories for rutorrent and file storage
Code:
cd /var/www/html
wget http://rutorrent.googlecode.com/files/rutorrent-3.5.tar.gz
tar -xvf rutorrent-3.5.tar.gz
cd rutorrent
mkdir download
mkdir .session
mkdir watch
chown -R apache:apache /var/www/html/rutorrent
cd
Modify the .rtorrent.rc configuration file
Code:
echo “scgi_port = 127.0.0.1:5000” >> .rtorrent.rc
You will also need to set the directory locations in the file as well as configuring for your requirements
Code:
# Default directory to save the downloaded torrents.
directory = /var/www/html/rutorrent/download
# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /var/www/html/rutorrent/.session
# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/var/www/html/rutorrent/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=
Install the mod_scgi module for Apache
Code:
echo “SCGIMount /RPC2 127.0.0.1:5000” >> /etc/httpd/conf/httpd.conf
service httpd restart
Start rtorrent
Code:
screen -S rtorrent rtorrent
Issues regarding the .rtorrent.rc settings are at the discretion of the user along with the installation of any rutorrent plugins.
I also renamed the .htaccess file /var/www/html/rutorrent to avoid any security requirements for testing the installation.
I hope this of use to some of you
The CentOS install was carried out selecting ‘Base’, Development Libraries’ & ‘Development Tools’
Package Selection
Code:
yum -y install xmlrpc-c xmlrpc-c-devel gcc44 gcc44-c++ screen
Installation
Code:
cd
mkdir rtorrent
cd rtorrent
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.3.tar.gz
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.3.tar.gz
wget http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.3/libsigc++-2.3.1.tar.xz
wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
You will also require the apache mod_scgi module which is not available from the CentOS repositories
Code:
rpm –ivh http://dl.fedoraproject.org/pub/epel/5/i386/mod_scgi-1.13-1.el5.i386.rpm
You need to use the gcc44 compiler as the stock 4.1.2 will not work
Code:
export CC=gcc44 CXX=g++44 CFLAGS='-pipe -Os -pthread -march=native' CXXFLAGS='-pipe -Os -pthread -march=native' LDFLAGS='-s -lpthread'
export PKG_CONFIG=/usr/bin/pkg-config
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
Compile autoconf
Code :
tar -xvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr
make
make install
cd ..
Compile libsigc
Code:
xz -dvf libsigc++-2.3.1.tar.xz
tar -xvf libsigc++-2.3.1.tar
cd libsigc++-2.3.1
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr
make
make install
cd ..
Compile libtorrent
Code:
tar -xvf libtorrent-0.13.3.tar.gz
cd libtorrent-0.13.3
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr
make
make install
cd ..
Compile rtorrent
Code:
tar -xvf rtorrent-0.9.3.tar.gz
cd rtorrent-0.9.3
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr --with-xmlrpc-c
make
make install
ldconfig
cd
cp rtorrent/rtorrent-0.9.3/doc/rtorrent.rc .rtorrent.rc
Create directories for rutorrent and file storage
Code:
cd /var/www/html
wget http://rutorrent.googlecode.com/files/rutorrent-3.5.tar.gz
tar -xvf rutorrent-3.5.tar.gz
cd rutorrent
mkdir download
mkdir .session
mkdir watch
chown -R apache:apache /var/www/html/rutorrent
cd
Modify the .rtorrent.rc configuration file
Code:
echo “scgi_port = 127.0.0.1:5000” >> .rtorrent.rc
You will also need to set the directory locations in the file as well as configuring for your requirements
Code:
# Default directory to save the downloaded torrents.
directory = /var/www/html/rutorrent/download
# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /var/www/html/rutorrent/.session
# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/var/www/html/rutorrent/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=
Install the mod_scgi module for Apache
Code:
echo “SCGIMount /RPC2 127.0.0.1:5000” >> /etc/httpd/conf/httpd.conf
service httpd restart
Start rtorrent
Code:
screen -S rtorrent rtorrent
Issues regarding the .rtorrent.rc settings are at the discretion of the user along with the installation of any rutorrent plugins.
I also renamed the .htaccess file /var/www/html/rutorrent to avoid any security requirements for testing the installation.
I hope this of use to some of you
Attachments
-
1,009 bytes Views: 0