This tutorial is in no way a complete setup of a server. It is ONLY for rtorrent/rutorrent in Ubuntu 11.10 - x86/x64, but might work in Ubuntu 11.04 as well. Maybe even the new Ubuntu 12.04 LTS...it would be nice. :)
First we want to compile in rTorrent because the version in Ubuntu Karmic is only 0.8.2 which doesnt work nicely with newest version of ruTorrent.
sudo apt-get install subversion build-essential libtool automake1.11 openssl libcurl3 libcurl3-dev libsigc++-2.0-0c2a libsigc++-2.0-dev libncurses5 libncurses5-dev php-xml-rss libxmlrpc-c3-0 libxmlrpc-c3-dev rtorrent
Now to make the .rtorrent.rc file which should be in the home folder of the user running rtorrent
cd ~/
nano .rtorrent.rc
Paste this in
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 100
max_peers = 200
# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 10
max_peers_seed = 500
# Maximum number of simultanious uploads per torrent.
max_uploads = 200
# Global upload and download rate in KiB. "0" for unlimited.
download_rate = 0
upload_rate = 0
# Default directory to save the downloaded torrents.
directory = ~//torrents/downloads
# Default session directory.
session = ~//torrents/rtorrent.session
# Watch a directory for new torrents, restart torrents that have been copied back and stop those that have been
# deleted.
schedule = watch_directory,10,10,"load_start=~//torrents/torrentfiles/*.torrent"
schedule = tied_directory,10,10,start_tied=
schedule = untied_directory,10,10,close_untied=
# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=100M
#Stop torrents when reaching upload ratio 300 percent
ratio.enable= ratio.min.set=300
# Port range to use for listening.
port_range = 63001-63001
# Start opening ports at a random position within the port range.
port_random = no
# Set whetever the client should try to connect to UDP trackers.
use_udp_trackers = no
# Encryption options. This can be useful when using an ISP that uses traffic shaping.
encryption=allow_incoming,try_outgoing,enable_retr y,prefer_plaintext
scgi_port = 127.0.0.1:5000
xmlrpc_dialect=i8
#DHT
dht = disable
#dht_port = 6881
peer_exchange = no
**NOTE**
You MUST change the red highlighted area to the user on your server. All other options can be set to however you want such as min/max peers, dht, peer exchange, etc...This is set to what I use on 100 Mbit servers.
Now we need to activate scgi support in Apache 2
sudo apt-get install libapache2-mod-scgi
sudo a2enmod scgi
Next you need to add the SCGI mount for rTorrent First open sites-available for editing
sudo nano /etc/apache2/sites-available/default
Paste the red highlighted area at the bottom just above <VirtualHost>
Now we need to restart Apache 2SCGIMount /RPC2 127.0.0.1:5000
<location /RPC2>
<Limit GET POST>
order deny,allow
deny from all
allow from 127.0.0.1
allow from 192.168.1.254
allow from 192.168.1.0/24
</Limit>
</location>
<VirtualHost>
Now download ruTorrent and move this folder to /var/wwwsudo /etc/init.d/apache2 restart
wget http://rutorrent.googlecode.com/file...ent-3.3.tar.gz
tar xvzf rutorrent-3.3.tar.gz
sudo mv rutorrent /var/www/rtorrent
You need to change the ownership of the directory of rtorrent in /var/www to the user you will be using
**NOTE**sudo chown -R <your user>:www-data /var/www/rtorrent
Make sure you add your username where it is highlighted in red.
Now we’re ready to start rtorrent with the selected user. Login with your normal user and run
rtorrent
Now you can login to http://<your servers IP>/rtorrent









14Likes
LinkBack URL
About LinkBacks
Reply With Quote

