Rtorrent and rutorrent on Debian with Apache

From banana_wiki
Revision as of 13:13, 10 April 2014 by Bananafish (talk | contribs) (Created page with "* This was last ran and tested 11/2013 == Install dependencies == <pre>apt-get install build-essential subversion automake libtool libcppunit-dev libcurl4-dev libsigc++-2.0-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • This was last ran and tested 11/2013

Install dependencies

apt-get install build-essential subversion automake libtool libcppunit-dev libcurl4-dev libsigc++-2.0-dev unzip unrar-free curl libncurses-dev tmux  

apt-get install apache2 php5 php5-cli php5-curl php5-common libapache2-mod-scgi
mkdir rtorrent-install && cd rtorrent-install

Install xmlrpc

svn checkout http://svn.code.sf.net/p/xmlrpc-c/code/stable xmlrpc-c
cd xmlrpc-c
./configure --disable-cplusplus
make
make install

Install libtorrent

cd ..
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.2.tar.gz
tar xvf libtorrent*
cd libtorrent*
./autogen.sh
./configure
make
make install

Install rtorrent

cd ..
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.2.tar.gz
tar xvf rtorrent*
cd rtorrent*
./autogen.sh
./configure --with-xmlrpc-c
make
make install
ldconfig

make some folders

mkdir ~/rtorrent
mkdir ~/rtorrent/.session
mkdir ~/rtorrent/watch
mkdir ~/rtorrent/download

rtorrent config

wget http://bananafish.es/files/rtorrent.rc
mv rtorrent.rc .rtorrent.rc

rutorrent

wget http://dl.bintray.com/novik65/generic/rutorrent-3.6.tar.gz
tar xvf rutorrent.*
mv rutorrent /var/www
wget http://dl.bintray.com/novik65/generic/plugins-3.6.tar.gz
tar xvf plugins*
mv plugins /var/www/rutorrent/
chown -R www-data:www-data /var/www

secure rutorrent

a2enmod ssl
a2enmod auth_digest
a2enmod scgi
openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
chmod 600 /etc/apache2/apache.pem
htdigest -c /etc/apache2/passwords seedbox seeder1

setup the rutorrent webpage

cd /etc/apache2/sites-available
rm default
wget http://bananafish.es/files/default 
/etc/init.d/apache2 restart

Now Run rtorrent

tmux
rtorrent
C-b, C-d