2010-10-13, 23:11
#1
#Set and create the dir for all svn stuff...
svnpath="/svn/"
sudo mkdir $svnpath
sudo chown -R $USER:$USER $svnpath
#Install everything you need
sudo apt-get remove libxmlrpc-c*
sudo apt-get install subversion gcc apache2 curl libcurl4-openssl-dev automake autoconf texinfo libapache2-mod-scgi build-essential libtool openssl libsigc++-2.0-dev libncurses-dev libcppunit-dev php5
#configure, make and make install xmlrpc-c
cd "$svnpath"
svn co http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced xmlrpc-c
cd xmlrpc-c
./configure
make
sudo make install
#configure, make and make install libtorrent and rtorrent
cd "$svnpath"
svn co svn://rakshasa.no/libtorrent/trunk rtorrent
cd rtorrent
cd libtorrent
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
cd ../rtorrent
./autogen.sh
./configure --with-xmlrpc-c
make
sudo make install
#install libxmlrpc-c3-dev
sudo apt-get install libxmlrpc-c3-dev
#get the latest rutorrent
cd $svnpath
svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent/ rutorrent
#To enabel scgi in apache run
sudo a2enmod scgi
#run
sudo nano /etc/apache2/httpd.conf
#and add
#SCGIMount /RPC2 127.0.0.1:5000
#then restart apache
sudo service apache2 restart
#then in your .rtorrent.rc file
nano ~/.rtorrent.rc
#put
#scgi_port = localhost:5000
#create a symbolic link to rutorrent in /var/www/
mkdir ~/.rtorrent.session/
sudo ln -s $svnpath/rutorrent /var/www/
#set www-data as group of rutorrent/share/torrents/ and rutorrent/share/settings/
sudo chown -R $USER:www-data $svnpath/rutorrent/share/torrents/ $svnpath/rutorrent/share/settings/
# and allow the group (www-data) to edit those dirs
chmod g+w $svnpath/rutorrent/share/torrents/ $svnpath/rutorrent/share/settings/
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
scgi_port = localhost:5000
# Global upload and download rate in KiB. "0" for unlimited.
download_rate = 900
upload_rate = 85
# Default directory to save the downloaded torrents.
directory = /media/tango/tv-seed/
# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = ~/.rtorrent.session
# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=~/.rtorrent-tvt/.torrents/*.torrent
schedule = untied_directory,5,5,stop_untied=
# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"
# Port range to use for listening.
port_range = 35116-35118
# Start opening ports at a random position within the port range.
port_random = yes
# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
check_hash = yes
#hash_read_ahead = 4
#hash_max_tries = 4
#hash_interval = 100
# Set whetever the client should try to connect to UDP trackers.
use_udp_trackers = yes
# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
encryption = allow_incoming,enable_retry,prefer_plaintext
# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
dht = auto
Flashback finansieras genom donationer från våra medlemmar och besökare. Det är med hjälp av dig vi kan fortsätta erbjuda en fri samhällsdebatt. Tack för ditt stöd!
Swish: 123 536 99 96 Bankgiro: 211-4106
Flashback finansieras genom donationer från våra medlemmar och besökare. Det är med hjälp av dig vi kan fortsätta erbjuda en fri samhällsdebatt. Tack för ditt stöd!
Swish: 123 536 99 96 Bankgiro: 211-4106