PDA

View Full Version : BitTorrent Installing rtorrent and rutorrent on Debian based linux



ca_aok
02-19-2010, 04:40 AM
Installing rtorrent and rutorrent on Debian based linux

Note: this guide is for debian based distros only. This *should* work on Ubuntu, but I make no guarantees. Whenever you see <yourusernamehere> replace it with the username you intend to run rtorrent with (you weren't going to run it as root were you?). The command "adduser" will add a new one if you only have a root user account at the moment. I abuse chmod 777 a fair bit during this guide because I don't share my box with other users. If you do so, be careful with permissions. However, using chmod 777 is almost guaranteed to make everything work nicely. To exit the nano text editor, hit "CTRL+x". When prompted to overwrite buffer, hit "y", and then keep the filename as listed (just hit enter).

Current versions at the time of this guide:

rtorrent 0.8.6/libtorrent 0.12.6/rutorrent 3.2 stable

Note: Terminal commands are in italics, stuff to add to text files are in quotes.

Run all commands as root user:

This is going to add a ton of stuff to your box, so it may take a while. I think I've covered most of the essentials, let me know if I left anything big out.

apt-get update
apt-get upgrade

Note: the following is all one line.

apt-get install build-essential autoconf apache2 automake libtool libncurses5-dev libncursesw5-dev libcurl4-openssl-dev screen ntp ntpdate openssl php5 php5-cli php5-geoip php5-cgi gawk libapache2-mod-php5 libapache2-mod-scgi curl libcppunit-dev libsigc++-2.0-dev subversion nano unrar-free unzip

a2enmod ssl
a2enmod auth_digest
a2enmod scgi

reboot

Wait for your box to come back online, this may take a few minutes. Then log back in as root user.

STEP 1: Installing rtorrent/libtorrent

cd /home/<yourusernamehere>/

svn co https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced/ xmlrpc-c
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.6.tar.gz
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.6.tar.gz
tar -xvzf libtorrent-0.12.6.tar.gz
tar -xvzf rtorrent-0.8.6.tar.gz
rm libtorrent-0.12.6.tar.gz
rm rtorrent-0.8.6.tar.gz

cd xmlrpc-c
./configure --disable-cplusplus
make
make install

cd ../libtorrent-0.12.6
./autogen.sh
./configure
make
make install

cd ../rtorrent-0.8.6
./autogen.sh
./configure --with-xmlrpc-c
make
make install

ldconfig

If all went well, rtorrent and libtorrent should now be installed with webui support (via xmlrpc). If you wish to use wtorrent as a webui there are other guides dealing with its installation, I personally prefer rutorrent in every way.

Note: If running "make" gives you a bunch of libtool errors, run the following command before each instance of ./autogen.sh. Remember that you'll need to do this both for libtorrent and rtorrent when compiling them:

rm -f scripts/{libtool,lt*}.m4

The commands should look like this:

cd ../libtorrent-0.12.6
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure
make
make install

cd ../rtorrent-0.8.6
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure --with-xmlrpc-c
make
make install

ldconfig

STEP 2: Configuring rtorrent

There are many, MANY features you can configure in .rtorrent.rc. I'm a minimalist myself, so my configuration is extremely barebones. You can find a fully commented config file here: http://pastebin.ca/1802272

However, I'll show you mine:

cd /home/<yourusernamehere>/
nano .rtorrent.rc


directory = /home/<yourusernamehere>/torrents

http_capath=/etc/ssl/certs

scgi_port = 127.0.0.1:5000
encoding_list = UTF-8

port_range = 55990-56000

port_random = no

use_udp_trackers = no
dht = disable
check_hash = no

peer_exchange = no
encryption = allow_incoming,enable_retry,try_outgoing

schedule = watch_directory,5,5,load_start=/home/<yourusernamehere>/watch/*.torrent
session = /home/<yourusernamehere>/session
This will make your watch directory at /home/<yourusernamehere>/watch and your session directory at /home/<yourusernamehere>/session. Your torrent data will be saved at /home/<yourusernamehere>/torrents.

mkdir session
mkdir watch
mkdir torrents

chown -R <yourusernamehere>:<yourusernamehere> /home/<yourusernamehere>
chmod -R 777 session
chmod -R 777 watch
chmod -R 777 torrents

Now that this is all done, this is a good time to see if rtorrent will run. Use the command:

rtorrent

If rtorrent pops up, everything is great. Ignore any errors about not finding .rtorrent.rc for now, since you're running it as root. Use CTRL+q to quit the program. If not, you've messed something up (and this was the easy part).

STEP 3: Creating an SSL certificate for your server/Adding password authentication

Because everyone loves encryption right? Seriously though, using both these features will greatly add to the security of your box.

openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
chmod 600 /etc/apache2/apache.pem

This will create a self-signed certificate for your server that lasts for 1 year. You'll be prompted for plenty of information. Whenever you're asked for a name, use A) your server IP or B) your domain name if you have one. I recommend making the rest fake, it doesn't really matter.

htdigest -c /etc/apache2/passwords gods myuser

Where "myuser" is the username you'll use to connect to the webui. After running this command, you'll be prompted for a password. This will be the password you enter to log into your webui.

STEP 4: Setting up your Apache Webserver

This is where things get difficult. Many people swear by lighttpd, however I don't have much experience with the program. If there's demand I'll consider adding a segment on lighttpd to the guide.

cd /etc/apache2/
nano apache2.conf

Add these lines to the very bottom of the file. You can replace "localhost" with your domain name if you have one.

SCGIMount /rutorrent/RPC2 127.0.0.1:5000
servername localhost

nano ports.conf

Add this line if it isn't present already (and it should be, CHECK CAREFULLY).

Listen 443

nano /etc/apache2/sites-available/default

Paste this over top of the current config, with two notable exceptions.
Where it says http://your.server.ip/rutorrent, replace your.server.ip with your server IP or domain name.

http://pastebin.ca/1802303
http://pastebin.com/LzA7DmQm

STEP 5: Installing rutorrent

cd /var/www/
wget http://rutorrent.googlecode.com/files/rutorrent-3.2.tar.gz
tar -xvzf rutorrent-3.2.tar.gz
rm rutorrent-3.2.tar.gz
cd /var/www/rutorrent/conf/
nano config.php

Inside the config file, change the line:

$XMLRPCMountPoint = "/RPC2";
to:

$XMLRPCMountPoint = "/rutorrent/RPC2";
Save the file and exit nano.

Any plugins you want should be downloaded to the /var/www/rutorrent/plugins folder.
cd /var/www/rutorrent/plugins
wget http://rutorrent.googlecode.com/files/pluginname-3.2.tar.gz
tar -xvzf pluginname-3.2.tar.gz

Repeat for each plugin you want. Alternatively, you can install every available plugin (though this will slow rutorrent down, this is NOT recommended) using the following:
cd /var/www/rutorrent/
wget http://rutorrent.googlecode.com/files/plugins-3.2.tar.gz
tar -xvzf plugins-3.2.tar.gz

Afterward, execute the following:
rm *.tar.gz
chmod -R 777 /var/www/rutorrent/

A list of standard plugins can be found here:
http://code.google.com/p/rutorrent/wiki/Plugins

Now do the following:

apache2ctl configtest
/etc/init.d/apache2 force-reload
/etc/init.d/apache2 restart

If everything has worked up to this point (apache2ctl doesn't throw any errors), you're basically in the clear!

STEP 6: Starting rtorrent
Log out of root and back into your regular username at this point!

cd ~
screen rtorrent

You can hit "CTRL+a+d" in that order to detach the screen. This keeps rtorrent running in the background when you log out of your SSH session. Reattach the screen using:

screen -xaAD

Now visit the following address:

http://your.server.ip/rutorrent/
*or*
https://your.server.ip/rutorrent/
You'll need to accept the self-signed cert in the second URL. Either way, you should be prompted for a username and password. Use the info you chose in Step 3 with the "htdigest" command.

If all went well, everything is now installed! I hope this helps those of you struggling with rtorrent and rutorrent.

TO BE ADDED IN THE FUTURE:
-A section on lighttpd.
-Pictures (possibly, most of this is command line based anyway).
-Detailed descriptions and guides for a few of the plugins, especially RSS.

If I've made any glaring errors, please let me know. I'm quite tired at the moment, and only human!

A tip for those of you using irssi with WHATauto or any other program that also requires screen to stay running:
You can create new "screens" within a single screen session using the command CTRL+a+c. You then switch between each screen using CTRL+a+p. The screen still detaches with CTRL+a+d and you can switch between them after reattaching using screen -xaAD.

Appendix 1: Plugins

1. RPC/HTTPRPC - a plug-in for linking rtorrent and a web server.
2. erasedata - adds the item "Delete with the data" to the context menu of the torrent.
3. darkpal - just another ruTorrent interface colors.
4. choose - adds a button to the New Torrent dialogue for comfortable navigation through the server file system.
5. сreate - adds the command of new torrent creation.
6. trafic - adds a subsystem of the traffic counting.
7. RSS - realizes operations with RSS-feeds.
8. edit - allows to edit the trackers list of the existing torrent.
9. throttle - allows to set different speed limitations for groups of torrents.
10. retrackers - automatically adds defined re-trackers for newly added torrents.
11. cookies - allows to define a set of cookies for trackers which use such method of authorization.
12. search - allows to redefine the list of search engines.
13. scheduler - allows to change speed limitations of downloads/uploads depending on hour of the day and day of the week.
14. autotools - realizes some automation functions (autolabel, automove).
15. datadir - allows to change the torrent's data directory.
16. tracklabels - adds a set of automatically generated by trackers' names labels onto categories pane.
17. geoip - shows country name and flag for connected peers.
18. ratio - allows to set different ratio limitations for groups of torrents.
19. Show_peers_like_wtorrent - changes the format of values in "Seeds" and "Peers" columns of the torrents list.
20. seedingtime - adds the column with the torrent's finishing time to torrents list.
21. diskspace - adds a free disk space indicator to the rutorrent interface as a percentage.
22. unpack - automatically unpacks scene releases.
23. source - lets you download the .torrent files from your box via HTTP.
24. data - lets you download the content from your box via HTTP.
25. chunks - displays chunks in a format similar to uTorrent.
26. _getdir - allows you to use an easier navigation system for various rutorrent and plugin settings.
27. cpuload - shows your current CPU load as a percentage at the bottom of rutorrent.
28. theme - gives you the choice of several skins for rutorrent.
29. loginmgr - lets you log in to private sites so that you can directly use the torrent URL to add a torrent to rutorrent. Useful for RSS.
30. RSSurlrewrite - lets you auto-rewrite some stuff in the RSS manager based on regex.

Third party plugins:
1. Autodl-irssi - an auto downloader for IRC announce channels.
2. Pause - gives you both a pause/play button for the rutorrent refreshes, along with a manual refresh button.
3. TaddLabel - gives additional label functionality.
4. Hostname - adds a hostname column to the peers tab.
5. NFO - shows the .nfo files from downloaded torrents.
6. Chat - allows you to chat with other rutorrent users on your server only.
7. Logoff - lets you switch users or logoff from within rutorrent.
8. InstantSearch - searches your current torrent list.

A few notes:
-The RPC plugin is unnecessary since you've set up RPC in apache2.
-You should probably be using _getdir in conjunction with any other plugins you're using.
-erasedata can be somewhat slow and buggy, but SHOULD work correctly. Make sure its directory is chmod'd to be executeable.
-A more detailed explanation of autotools can be found at http://code.google.com/p/rutorrent/wiki/PluginAutotools
-Most of the other plugins are explained fairly well above.

A few specific configurations:
Create:
You can edit /var/www/rutorrent/plugins/create/conf.php
Make sure your torrent creator of choice is in your system's PATH, otherwise you'll need to add the program's full path to the second configuration line in the file. The line in my config looks like this:
$useExternal = "mktorrent"

RSS:
You can edit /var/www/rutorrent/plugins/rss/conf.php
Change the line $updateInterval = 30;
to: $updateInterval = 5;

To add a feed, right click on "All Feeds" and hit "Add Feed". Type a name and your RSS URL into the boxes.

Now right click on "All Feeds" again and select "RSS Manager".

Hit "Add" and pick a name for your new filter.

Add a filter as you will, using "*" as a wildcard. To download the whole feed, just type "**" in that box. In the RSS drop box, select the feed you just added. In the Directory box, you can create a custom download path for the feed (for example, /home/user/torrents/WhatRSS/). Make sure this directory exists (use mkdir at the command line). You can also add a label to each torrent downloaded, and if you have the ratio or throttle plugins installed, you can set these torrents to conform to one of those plugin settings.

GeoIP:
Note: If you want to install the GeoIP plugin (shows flags in the peer list), you'll need to do this as root user:

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gunzip GeoLiteCity.dat.gz
mkdir -v /usr/share/GeoIP
mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat

anon
02-19-2010, 05:08 PM
I'm not a Linux user but I'd like to thank you for taking the time to write all that. Looks like a very detailed tutorial. :)

Cabalo
02-19-2010, 05:13 PM
I'll have to look deep into this. Seems top notch!

Funkin'
02-19-2010, 05:17 PM
Thanks for taking the time to post this caaok.

So, for us that want to run rtorrent on our home computers, I'm guessing we can follow this guide, expect for steps 3. and 4.?

Cabalo
02-19-2010, 05:34 PM
I think you can only skip step #3, as you will need a webserver to display the rutorrent webui.

ca_aok
02-19-2010, 05:43 PM
I think you can only skip step #3, as you will need a webserver to display the rutorrent webui.
That's correct. You need a webserver and php to display rutorrent.

In that case, you can skip step 3, and for the step where you replace your.server.ip, instead of using the external IP of your seedbox, use either 192.168.x.x (or whatever your LAN IP is) if it's on a different computer, or 127.0.0.1 if you're accessing it from the computer on which you're running rtorrent.

tspoon
02-24-2010, 06:25 PM
I registered just to say how awesome this guide is, I was considering rutorrent/rtorrent but was put off by the apparent complexity, I'll be trying it shortly on my headless box...

cheers


edit: ok I've tried it but cannot download all the packages, the message I get is :

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libidn11-dev: Depends: libidn11 (= 1.15-2) but 1.18-1 is to be installed
E: Broken packages

I'm using Debian Lenny on an ARM (sheeva) setup, I tried the stable and testing repositories, but no luck. Have to go out for a bit, will try further later. Any clues anybody? (I'm new to linux in general)



edit edit - I removed the existing libidn11 then it worked.... I'll try the rest soon

continued ... I had trouble checking out xmlrpc using your code here :

debian:/home/torrent# svn co https://xmlrpc-c.svn.sourceforge.net...lrpc-c/stable/ xmlrpc-c
svn: OPTIONS of 'https://xmlrpc-c.svn.sourceforge.net...lrpc-c/stable': Could not resolve hostname `xmlrpc-c.svn.sourceforge.net...lrpc-c': Host not found (https://xmlrpc-c.svn.sourceforge.net...lrpc-c)


so i used the syntax from their webpage :

REPOS=http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced
svn checkout $REPOS xmlrpc-c



update: I have struck a problem at the point of entering the command :

a2ensite rutorrent

the response is : ERROR: Site rutorrent does not exist!

Although this is probably simple, can anyone point me in the right direction here?

ca_aok
02-26-2010, 02:22 PM
continued ... I had trouble checking out xmlrpc using your code here :

debian:/home/torrent# svn co https://xmlrpc-c.svn.sourceforge.net...lrpc-c/stable/ xmlrpc-c
svn: OPTIONS of 'https://xmlrpc-c.svn.sourceforge.net...lrpc-c/stable': Could not resolve hostname `xmlrpc-c.svn.sourceforge.net...lrpc-c': Host not found (https://xmlrpc-c.svn.sourceforge.net...lrpc-c)


so i used the syntax from their webpage :

REPOS=http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced
svn checkout $REPOS xmlrpc-c

FST unfortunately shortens their hyperlinks automatically. Basically, the problem is it substituted part of the URL with "...". If you Right Click->Copy Link Location it should work fine.



update: I have struck a problem at the point of entering the command :

a2ensite rutorrent

the response is : ERROR: Site rutorrent does not exist!

Although this is probably simple, can anyone point me in the right direction here?
Are you using the 3.0 beta or the stable version of rutorrent? Are you certain there's a directory that exists at /var/www/rutorrent/ ?

If you'd like to try and attempt to skip this step, you can paste the configuration from the pastebin for /etc/apache2/sites-available/default into /etc/apache2/sites-enabled/000-default instead, and that should work.

hydpt
03-06-2010, 01:12 AM
Congrats!! Is an amazing job!!

How I can setup a data downloading (http), and use the protection as to rutorrent?
How I can get files(downloading) from rutorrent (3.0) this give me "the file can be read"

If any can me help, I am grateful.

Thanks again for amazing work!!

ca_aok
03-06-2010, 01:42 AM
Anything you stick in /var/www/ can be downloaded via HTTPS (go to https://your.server.ip/filename.ext). If you wanted password protection as well, you could make a new folder such as /var/www/files/ and copy the <Location /rutorrent> code in the pastebin, but replace /rutorrent with /files.

As for that error, it sounds like a permissions problem. Did you chmod the directories?

hydpt
03-06-2010, 02:01 AM
Yes I chmod all directories. I do, in my case chmod -R 777 downloads . The problem can be for the files exist when I create rutorrent?

Where I do this <Location /rutorrent> code in the pastebin, but replace /rutorrent with /files. Put where? On the same file as protection of rutorrent? If yes in part of file? After all text (on pastebin) and repeat for a data folder?

Can me give an exemple of the text file?

Thanks alot (again and again...)

ca_aok
03-06-2010, 02:15 AM
Something like this:
http://pastebin.ca/1824561

Then visit https://your.server.ip/files/ (https://your.server.ip/files/filename.ext)

You don't actually have to move the files to /var/www/files/, you should be able to make symlinks between the files/folders and /var/www/files/.

Not sure what to tell you with the permissions though :|

hydpt
03-06-2010, 11:11 AM
fix :)

Thanks ca_aok!!

ca_aok
03-16-2010, 01:48 AM
Note: A few things have changed (rutorrent is now out of beta, svn links need updating, a few more packages need to be added/subtracted to make apt play nicely, etc). I plan on doing this over the course of the weekend. For those of you who want to install the latest stable, use the old stable instructions and replace "2.8" with "3.0", it should work ok.

ca_aok
03-22-2010, 07:29 PM
Note: I finally got my lazy ass around to updating this now that rutorrent 3.0 stable is out. I switched a few other things around as well. Still a work in progress though.

pejamas
03-25-2010, 11:29 AM
cant access: http://pastebin.ca/1802303.. cann you put in on pastebin.com?

supercoolkid
03-30-2010, 04:41 PM
I paid someone $5 to fix it up for me... LOL... works flawlessly now.

subvertbeats
04-05-2010, 08:22 PM
cant access: http://pastebin.ca/1802303.. Cann you put in on pastebin.com?

+1 :)

ca_aok
04-05-2010, 08:44 PM
http://pastebin.com/LzA7DmQm

Enjoy! Hopefully pastebin.ca will be back up shortly.

Slickerey
04-08-2010, 10:22 PM
I just wanted to thank you for writing this tutorial.

I'm sure that it took you a lot of time to write it, but this will definitely come in handy for those who use dedicated servers with Debian.

noptig
05-03-2010, 05:14 PM
Hi, thanks very much for this post.

I've been using rTorrent for a few months now and its so much better than Transmission. After getting used to the terminal interface and learning all the keystrokes, like "tspoon" I'm now thinking of setting up a server-based configuration using a plug-computer - so I tried this on a Debian Lenny installation and on my Ubuntu Karmic laptop. I have to say it's taken me a good part of the day to get it all working (lots of debugging missing libraries) - but it's now working perfectly on the Ubuntu system. I'm sure if I tackle the Debian again I'd get that going after a while too.

I know it's taken a while but I've learnt loads of good stuff today and I'm delighted with my flash new https interface - thanks again!

(tspoon - have you got your plug system going yet?)

nobtic
05-30-2010, 04:08 AM
hi!

Im new to all this so i fallow the tutorial line by line, google to fix some probleme but that one, i really dont know what it is...

in step 1:

cd ../rtorrent-0.8.6 -> OK
./autogen.sh -> OK
./configure --with-xmlrpc-c -> OK
make -> error

root@llet:/home/louis/rtorrent-0.8.6# make
make: *** No targets specified and no makefile found. Stop.

so i've tried the other methode
with the rm -f scripts/{libtool,lt*}.m4
and when i try the "make": same error

root@llet:/home/louis/rtorrent-0.8.6# make
make: *** No targets specified and no makefile found. Stop.

can someone explain me how to solve my problem?

thx

i upgrade xmlrpc-c to version 1.06.40 and it look like it's ok, no more errors :D

xantra
06-03-2010, 11:50 AM
Hummm having some problems right at the start of this guide.

Can't find two of the packages .... libkdb5 & libgssrpc4 .

Going to do some fiddling ! :/

ca_aok
06-03-2010, 01:09 PM
Those shouldn't be in the list anymore, I must've forgotten to update this copy of the guide on the last round of updates. I'll update it now.

xantra
06-03-2010, 08:49 PM
Those shouldn't be in the list anymore, I must've forgotten to update this copy of the guide on the last round of updates. I'll update it now.

Cheers :D

Was there anything else that you updated besides the packages? I will try this again later on tonight.

ca_aok
06-03-2010, 09:55 PM
There are always a few other miscellaneous complaints/bugs, so probably. I'm not certain what though, the last time that was updated was at least a month ago.

sardis
07-06-2010, 07:20 PM
Got this working yesterday on a Debian Lenny Sheevaplug. Works great! :)

Thank you so much for this tutorial!

Expeto
07-07-2010, 07:32 AM
thanks, just installed it on centos, this article gave me a great kick start on the installation.

HumanAfterAll
07-07-2010, 05:47 PM
Thank you for this How-to, worked on ubuntu...
There is, however, one strange thing, Stop and Pause commands' effects last only a few seconds, then the torrents switch back to downloading/seeding state. If I stop and restart them once in rtorrent with Ctrl+k & Ctrl+s, the gui commands get to work OK too, but it's very inconvenient.
I havn't found too much information about this issue, but it doesn't seem a rutorrent problem, also occurs in wtorrent. So it's either xmlrpc or the webserver.
Please help me if you can, thanks in advance.

sardis
07-13-2010, 03:39 PM
I've had rtorrent running well on a fresh Debian Lenny install using your guide. It has run well for about a week.

rtorrent/libtorrent/xmlrpc-c is all that's running on this box. Something strange has popped up, though. rtorrent spiked the CPU to 100% and became unresponsive. It wouldn't respond to ctrl-q, so I used htop to kill rtorrent. It came back up OK on relaunch, but still ;)

A little research reveals that this behavior may be due to the version of libcurl. See

http://libtorrent.rakshasa.no/ticket/2159

The relevant quote is

----8<----
Yes, libcurl 7.18.2 is buggy (there's a race condition with multiple simultaneous connections). There haven't been any problem reports with 7.18.3 so far, so try upgrading to that or maybe a later version.
----8<----

And sure enough 7.18.2 is the version I have:

----8<----
$ dpkg-query -W | grep -i libcurl
libcurl3 7.18.2-8lenny4
libcurl4-openssl-dev 7.18.2-8lenny4
----8<----

I'm not a total n00b, but I'm unclear on how to install a newer version than what

# apt-get update
# apt-get upgrade

installs.

How do I do that? Or just point me in the correct direction... Any help is appreciated! :)

qonad
07-18-2010, 07:07 AM
Thanks for this great guide. I got both up and running in no time:D

miko_korima
07-19-2010, 07:17 AM
Thank you for this tutorial, I will try it on my second computer when I will have a second :P ;)

ca_aok
07-23-2010, 02:59 PM
Updated for rutorrent 3.1, also included a security fix for the /RPC2 mount.

Make sure that in apache2.conf, you edit in the following:

nano /etc/apache2/apache2.conf


SCGIMount /rutorrent/RPC2 127.0.0.1:5000
servername localhost

The key bit is the added /rutorrent/ to the SCGIMount line.

Also, edit config.php to reflect this change:

nano /var/www/rutorrent/conf/config.php

Inside the config file, change the line:

$XMLRPCMountPoint = "/RPC2";
to:

$XMLRPCMountPoint = "/rutorrent/RPC2";
Save the file and exit nano.

Jester
08-10-2010, 06:40 PM
Got a new seedbox. This was very helpful

anon
08-10-2010, 10:04 PM
There are other threads where you can spam without lying about having a seedbox. :lol:

goncrack
10-14-2010, 12:08 AM
I keep getting the following error when i try to run the long apt-get install line.

The following packages have unmet dependencies:
libcurl4-openssl-dev: Depends: libldap2-dev but it is not going to be installed
E: Broken packages
And ofc same if just try to install libcurl4-openssl-dev

Then if i try to Install libldap2-dev with
apt-get install libldap2-dev
the following error comes

The following packages have unmet dependencies:
libldap2-dev: Depends: libldap-2.4-2 (= 2.4.11-1) but 2.4.11-1+lenny1 is to be installed
E: Broken packages

And libldap-2.4-2 is installed
because this is what it tells me when i run the install command for it.

KSL300-11:/home/seeder/rtorrent-0.8.6# apt-get install libldap-2.4-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libldap-2.4-2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Any help would be appreciated
I'm running a newly installed Version of Debian 5 "lenny"

*Update* Found a solution.
According to http://markus.revti.com/2009/11/installing-libtorrent-and-rtorrent-on-linux-centos/ you can install curl from the curl website
Include this somewhere before the rtorrent installations

cd /home/<your username>/
wget http://curl.haxx.se/download/curl-7.19.7.tar.gz
tar -xzf curl-7.19.7.tar.gz
cd curl-7.19.7
./configure
make
make install
cd ..
rm curl-7.19.7.tar.gz

That solved my problem

sskka
01-23-2011, 12:57 PM
damn! thats soo complicated and time consuming...i'd rather stick to torrentflux or webui..

ca_aok
02-03-2011, 04:22 PM
Updated for 3.2, the initial package list was simplified and a few other misc fixes were made.

I've tested it in a VM on a brand new netinstall version of Debian, and it worked fine. If it worked on that, it should work for any of your systems. Enjoy.

VinX
02-04-2011, 06:26 AM
btw.. the autodl-irssi script works properly only with ruTOrrent 3.2

MrBean
02-05-2011, 08:03 AM
Went through your guide on a new seedbox a few days ago, worked perfectly first time, absolutely no problems or thinking on my part! Fantastic guide, thanks so much & rutorrent has to be the best web client out there, much more feature rich & stable than wtorrent & utorrent webui :)


There are other threads where you can spam without lying about having a seedbox. :lol:

Btw I might only have 1 post here like that other n00b but I most definately have a 1GBIT OVH seedbox lol

anon
02-05-2011, 04:55 PM
Btw I might only have 1 post here like that other n00b but I most definately have a 1GBIT OVH seedbox lol

The good grammar and lack of crap in your other posts vouches for you. :)

harrow
02-10-2011, 02:05 AM
That was very helpful..Thanks!

cosm
08-05-2011, 03:20 PM
I get this error when I try to make the libtorrent package:


puppets:/home/cosm/libtorrent-0.12.6# make
make all-recursive
make[1]: Entering directory `/home/cosm/libtorrent-0.12.6'
Making all in src
make[2]: Entering directory `/home/cosm/libtorrent-0.12.6/src'
Making all in torrent
make[3]: Entering directory `/home/cosm/libtorrent-0.12.6/src/torrent'
Making all in data
make[4]: Entering directory `/home/cosm/libtorrent-0.12.6/src/torrent/data'
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -g -O2 -g -DDEBUG -fvisibility=hidden -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -MT block.lo -MD -MP -MF .deps/block.Tpo -c -o block.lo block.cc
../../../libtool: line 841: X--tag=CXX: command not found
../../../libtool: line 874: libtool: ignoring unknown tag : command not found
../../../libtool: line 841: X--mode=compile: command not found
../../../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found
../../../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../../../libtool: line 1152: Xg++: command not found
../../../libtool: line 1152: X-DHAVE_CONFIG_H: command not found
../../../libtool: line 1152: X-I.: command not found
../../../libtool: line 1152: X-I../../..: No such file or directory
../../../libtool: line 1152: X-I.: command not found
../../../libtool: line 1152: X-I./..: No such file or directory
../../../libtool: line 1152: X-I./../..: No such file or directory
../../../libtool: line 1152: X-I../../..: No such file or directory
../../../libtool: line 1152: X-g: command not found
../../../libtool: line 1152: X-O2: command not found
../../../libtool: line 1152: X-g: command not found
../../../libtool: line 1152: X-DDEBUG: command not found
../../../libtool: line 1152: X-fvisibility=hidden: command not found
../../../libtool: line 1152: X-I/usr/include/sigc++-2.0: No such file or directory
../../../libtool: line 1152: X-I/usr/lib/sigc++-2.0/include: No such file or directory
../../../libtool: line 1152: X-MT: command not found
../../../libtool: line 1152: Xblock.lo: command not found
../../../libtool: line 1152: X-MD: command not found
../../../libtool: line 1152: X-MP: command not found
../../../libtool: line 1152: X-MF: command not found
../../../libtool: line 1152: X.deps/block.Tpo: No such file or directory
../../../libtool: line 1152: X-c: command not found
../../../libtool: line 1205: Xblock.lo: command not found
../../../libtool: line 1210: libtool: compile: cannot determine name of library object from `': command not found
make[4]: *** [block.lo] Error 1
make[4]: Leaving directory `/home/cosm/libtorrent-0.12.6/src/torrent/data'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/cosm/libtorrent-0.12.6/src/torrent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cosm/libtorrent-0.12.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cosm/libtorrent-0.12.6'
make: *** [all] Error 2

any idea where i'm going wrong? all of the previous steps worked correctly.

ca_aok
08-06-2011, 12:38 PM
Follow the section about the libtool errors. For your convenience I'll repaste it here:

cd ../libtorrent-0.12.6
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure
make
make install

cd ../rtorrent-0.8.6
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure --with-xmlrpc-c
make
make install

ldconfig

asbj
09-16-2011, 04:37 PM
Plan to buy a dedi server. Many thanks for your post. Studying...

markose
09-18-2011, 07:33 AM
so how did it go.

seedbox76
10-05-2011, 05:05 AM
I have rtorrent 7.9 installed on my server running CentOS and would like to update to the newer rtorrent (8.9). As it stands right now, I did not compile it with xmlrpc so I cannot run rutorrent. Can someone please guide me on how to update the rtorrent and get rutorrent running on it as well?

I followed this guide (http://filesharingtalk.com/threads/265027-How-to-install-and-use-rTorrent-properly-on-CentOS) to the T, so rtorrent is working just great but I would really like to have rutorrent running on it as well.

wuksss
11-17-2011, 01:43 AM
Hi,
I'm new at this things but a bit know concole.
I'm fail at here:


Now do the following:
apache2ctl configtest
/etc/init.d/apache2 force-reload
/etc/init.d/apache2 restart

I get:


root@theftl:/var/www/rutorrent# apache2ctl configtest
Syntax error on line 58 of /etc/apache2/sites-enabled/000-default:
SSLCertificateFile: file '/etc/apache2/apache.pem' does not exist or is empty
Action 'configtest' failed.
The Apache error log may have more information.
root@theftl:/var/www/rutorrent#
root@theftl:/var/www/rutorrent# /etc/init.d/apache2 force-reload
Syntax error on line 58 of /etc/apache2/sites-enabled/000-default:
SSLCertificateFile: file '/etc/apache2/apache.pem' does not exist or is empty
Action 'configtest' failed.
The Apache error log may have more information.
failed!


Can U please tell what I miss or do wrong? :unsure:
My rtorrent say: Bad link to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.

Sincerely: WUKONS

ca_aok
11-17-2011, 03:53 AM
You didn't do the SSL certificate creation step, or at least you didn't follow all of the steps of that part. It's not finding the /etc/apache2/apache.pem file, which is necessary for SSL.

wuksss
11-17-2011, 10:25 AM
You didn't do the SSL certificate creation step, or at least you didn't follow all of the steps of that part. It's not finding the /etc/apache2/apache.pem file, which is necessary for SSL.

OK, I did the step 3 and 4 again, but same. Then restart server and it's Down lmao.
So, I started all from step 1, but Fail at:


root@theftl:~# a2enmod scgi
ERROR: Module scgi does not exist!

:pinch:

Thanks in any advice.

ca_aok
11-17-2011, 02:04 PM
Do this as root:

apt-get install libapache2-mod-scgi

And try again. I can't really help you if you decided to skip steps arbitrarily.

wuksss
11-17-2011, 03:30 PM
Do this as root:

apt-get install libapache2-mod-scgi

Thanks.

I get:


root@theftl:~# apt-get install libapache2-mod-scgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libapache2-mod-scgi

ca_aok
11-17-2011, 05:40 PM
You must be missing a standard repository for whatever version of Debian you're running, I just double checked the apt-cache list and that package is still alive and well.

Can you post the contents of the file /etc/apt/sources.list ?

wuksss
11-17-2011, 06:06 PM
Runnin this crappy thing at Debian 5.0.

Content of sources.list:


#

# deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15]/ squeeze contrib main

deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15]/ squeeze contrib main

deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib

# Line commented out by installer because it failed to verify:
#deb ://volatile.debian.org squeeze-updates main contrib
# Line commented out by installer because it failed to verify:
#deb-src ://volatile.debian.org squeeze-updates main contrib

Thanks.

ca_aok
11-17-2011, 06:20 PM
deb http://www.debian-multimedia.org/ sid main non-free
deb-src http://www.debian-multimedia.org/ sid main non-free

deb http://ftp.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free

deb http://ftp.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

deb http://http.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://http.us.debian.org/debian/ squeeze main contrib non-free

wuksss
11-17-2011, 06:36 PM
OK, I added these lines and reboot server, but still it's messing with me:


root@theftl:~# a2enmod scgi
ERROR: Module scgi does not exist!


:huh:

ca_aok
11-17-2011, 06:56 PM
You still need to add that package. In fact, you should probably add the entire list again since you may be missing other packages from the first list.

apt-get update
apt-get upgrade

apt-get install build-essential autoconf apache2 automake libtool libncurses5-dev libncursesw5-dev libcurl4-openssl-dev screen ntp ntpdate openssl php5 php5-cli php5-geoip php5-cgi gawk libapache2-mod-php5 libapache2-mod-scgi curl libcppunit-dev libsigc++-2.0-dev subversion nano unrar-free unzip

a2enmod ssl
a2enmod auth_digest
a2enmod scgi

reboot

wuksss
11-17-2011, 07:19 PM
Ohhhhh, I'm rly now thinking to blow that box up.
At get update i got:


Get:14 http://http.us.debian.org squeeze/contrib amd64 Packages [53.0 kB]
Get:15 http://http.us.debian.org squeeze/non-free amd64 Packages [102 kB]
Media change: please insert the disc labeled
'Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15'
in the drive '/media/cdrom/' and press enter

ca_aok
11-17-2011, 07:50 PM
Just add this line again to your sources.list file, somewhere at the bottom.

deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15]/ squeeze contrib main

Then repeat the process in my last post.

Your box is terribly set up if it's relying on a DVD physically in the drive :lol:

wuksss
11-17-2011, 10:53 PM
OMG!
Mother Of God! You did it! :) :) :)

Thanks alot alot man, I'm not gay but I love U!
Totally will add this Topic to favorites at all social accounts.
Thumbs up!

btw. Box at dotblock[dot]com

Edit: I can't find Rep button.

ca_aok
11-18-2011, 04:26 AM
I don't want or need rep.

You've got a really odd box setup there :P

wuksss
11-18-2011, 01:45 PM
Yea, I said them, they close my support ticket and no answer. :lol:
Now just need to install Memcached, Sphinx, Ocelot and all for me should work.
One thing: This features always pissing me off and alot other users, not only me. :D
Sorry for offtopic. :whistling

Foldberg
01-02-2014, 08:37 AM
thanks for the well writen guide.
but I have a problem:
when I'm execute ./configure --with-xmlrpc-c, I get this error:

checking for libtorrent... no
configure: error: Package requirements (libtorrent >= 0.12.6) were not met:

No package 'libtorrent' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libtorrent_CFLAGS
and libtorrent_LIBS to avoid the need to call pkg-config.

aanarcis
06-06-2014, 08:34 PM
I was looking for a guide to install rutorrent. Thank you very much ca_aok because you have kidnapped of your time to create this!