rTorrent + ruTorrent guide

saroos1

Member
May 25, 2018
718
0
16
I found now a way, via Webmin Disc Quotas

but under Disk and Network Filesystems i dont have the /home folder.

Do you have an idea on what settings i have to use to add it?
 

randac56

Member
May 25, 2018
915
0
16
I also tried to install quotatool, but when entering "quotatool -u tload -bq 5000M /home"

I get error "quotatool: Filesystem /home does not exist"


You having any other method which makes it possible to see discspace usage?
 

lisas4567

Member
May 25, 2018
773
0
16
I was now able to solve the issue with quotas.

If anyone had the same issue: I changed operating system from linux debian wheezy 7.0 to ubuntu server Precise Pangolin and it worked.

I now see quotas.

But I have another question you guys might could help me.

I have 4 users (4 rTorrent instances) running @ 16GB RAM 4 cores â 2,5 GHz

nothing else installed on the server.

but the RAM usage on ruTorrent show that its sometimes 84% in use.

Webmin, server control panel, ssh command "free -g" show all different on the ram usage? Can someone explain me the reason please? And why ruTorrent show such a high usage?

li9kwv9eaakb.gif

sg7zmhcl7pmk.gif
 

saroos1

Member
May 25, 2018
718
0
16
ruTorrent hasn't any indicator of memory usage. This is a indicator of CPU usage (i.e. system load-average).
 

simur612

Member
May 25, 2018
879
0
16
okay, but the CPU usage is also badly wrong. I just checked everything with CPU usage.

Can someone explain what reason is ruTorrent have such a wrong information?

here the results:



 

saroos1

Member
May 25, 2018
718
0
16
Anything to think of if upgrading to 3.7 from 3.6? Will the old config files work straight away, or are there changes or additions?


edit: I discovered that one thing that differs was that the plugins were included by default.
 

peshua19

Member
May 25, 2018
897
0
16
Trying to install xmlrpc-c, I see this

Code:
gustavo@celeron:~/install/xmlrpc-c$ ./configure --enable-libxml2-backend --disable-abyss-server --disable-cgi-server
-bash: ./configure: No such file or directory

Is there any workaround for this?
 

lisas4567

Member
May 25, 2018
773
0
16
Once more, this guide was very useful to me (third time).

Some notes:

1) As of today, the only way I found to install xmlrpc-c was installing libxml2-dev ubuntu package;

2) As of today, I was only able to find libtorrent and rtorrent sources at http://rtorrent.net/downloads/

3) As of today, to use xml-rpc over scgi, I had to install libapache2-mod-scgi or else Apache would not recognize directive SCGIMount /RPC2 127.0.0.1:5000

Beside that, this guide is a must-have for those who want a smoothly runnning rtorrent instance.

Thanks again!
 

simur612

Member
May 25, 2018
879
0
16
I've updated the install script to download from rtorrent.net and also updated the config file template to use the "trackers.use_udp.set" syntax

@oneaty
1) very strange, just downloading and compiling the source as described should work perfectly, I just tested this again and it works for me
2) updated the script
3) that is mentioned in the guide
 

randac56

Member
May 25, 2018
915
0
16
I do all by the manual steps and have an problem - rutorrent just don't loading, I see only loading gif. May be the problem with ssl (I use https). No errors in apache logs, rutorrent and rtorrent log - just nothing nowhere.
My configuration is Ubuntu 14.04.4, x64, Apache/2.4.18, PHP 5.6.18.
site.conf:
Code:
<IfModule mod_ssl.c>
<------><VirtualHost _default_:443>
...
AssignUserID www-data www-data
php_admin_flag safe_mode on
php_admin_flag safe_mode_gid on
php_admin_value open_basedir /var/www/site.ru:/tmp:/dev/urandom:/disk/torrent
...
<------><------>SSLEngine on
<------><------>SSLProtocol all -SSLv2 -SSLv3
<------><------>SSLCipherSuite ALL:!DH:!EXPORT:!RC4:+HIGH:+MEDIUM:!LOW:!aNULL:!eNULL
...
<------><------><Directory /usr/lib/cgi-bin>
<------><------><------><------>SSLOptions +StdEnvVars
<------><------><------><------>Options Indexes FollowSymLinks MultiViews SymLinksIfOwnerMatch
<------><------><------><------>AllowOverride All
<------><------></Directory>
...
<------><Directory /var/www/site.ru/torrent>
<------> AllowOverride AuthConfig
<------><------>Order allow,deny
<------> allow from all
<------></Directory>
...
<Location /RPC2>
Order allow,deny
Allow from all
<------>AuthName "p2p torrents"
<------>AuthType Basic
<------>AuthBasicProvider file
<------>AuthUserFile /var/www/site.ru/torrent/.htpasswd
<------>Require valid-user
</Location>
...
<------>SCGIMount /RPC2 127.0.0.1:5000
...
/home/seventh/.rtorrent.rc
Code:
port_range = 32001-32049
dht = auto
dht_port = 32000
peer_exchange = yes
use_udp_trackers = yes
directory = /disk/torrent
upload_rate = 0
download_rate = 0
session = /disk/torrent
scgi_local = 127.0.0.1:5000config.php
Code:
<?php
<------>// configuration parameters

<------>// for snoopy client
<------>@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0', true);
<------>@define('HTTP_TIME_OUT', 30, true);<--->// in seconds
<------>@define('HTTP_USE_GZIP', true, true);
<------>$httpIP = null;><------><------><------>// IP string. Or null for any.

<------>@define('RPC_TIME_OUT', 5, true);<----->// in seconds

<------>@define('LOG_RPC_CALLS', false, true);
<------>@define('LOG_RPC_FAULTS', true, true);

<------>// for php<---->
<------>@define('PHP_USE_GZIP', false, true);
<------>@define('PHP_GZIP_LEVEL', 2, true);

<------>$schedule_rand = 10;<--><------><------>// rand for schedulers start, +0..X seconds

<------>$do_diagnostic = true;
<------>$log_file = '/tmp/rutorrent_errors.log';<------><------>// path to log file (comment or leave blank to disable logging)

<------>$saveUploadedTorrents = false;<><------>// Save uploaded torrents to profile/torrents directory or not
<------>$overwriteUploadedTorrents = false; // Overwrite existing uploaded torrents in profile/torrents directory or make unique name

<------>$topDirectory = '/disk/torrent/';<-----><------><------>// Upper available directory. Absolute path with trail slash.
<------>$forbidUserSettings = false;

<------>$scgi_port = 5000;
<------>$scgi_host = "127.0.0.1";

<------>// For web->rtorrent link through unix domain socket.
<------>// (scgi_local in rtorrent conf file), change variables.
<------>// above to something like this:
<------>//
<------>// $scgi_port = 0;
<------>// $scgi_host = "unix:///tmp/rpc.socket";

<------>$XMLRPCMountPoint = "/RPC2";<--><------>// DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!
<------>$pathToExternals = array(
<------><------>"php" <>=> '',<><------><------>// Something like /usr/bin/php. If empty, will be found in PATH.
<------><------>"curl"<>=> '',<><------><------>// Something like /usr/bin/curl. If empty, will be found in PATH.
<------><------>"gzip"<>=> '',<><------><------>// Something like /usr/bin/gzip. If empty, will be found in PATH.
<------><------>"id"<-->=> '',<><------><------>// Something like /usr/bin/id. If empty, will be found in PATH.
<------><------>"stat"<>=> '',<><------><------>// Something like /usr/bin/stat. If empty, will be found in PATH.
<------>);

<------>$localhosts = array( <-><------><------>// list of local interfaces
<------><------>"127.0.0.1",.
<------><------>"localhost",
<------>);

<------>$profilePath = '../share';<----><------>// Path to user profiles
<------>$profileMask = 0777;<--><------><------>// Mask for files and directory creation in user profiles.
<------><------><------><------><------><------>// Both Webserver and rtorrent users must have read-write access to it.
<------><------><------><------><------><------>// For example, if Webserver and rtorrent users are in the same group then the value may be 0770.

<------>$tempDirectory = '/tmp/';<-----><------><------>// Temp directory. Absolute path with trail slash. If null, then autodetect will be used.

<------>$canUseXSendFile = false;<-----><------>// If true then tse X-Sendfile feature if it exist

<------>$locale = "UTF8";plugins.ini
Code:
[default]
enabled = user-defined
canChangeToolbar = yes
canChangeMenu = yes
canChangeOptions = yes
canChangeTabs = yes
canChangeColumns = yes
canChangeStatusBar = yes
canChangeCategory = yes
canBeShutdowned = yes

[httprpc]
enabled = yes
[rpc]
enabled = no
 

lisas4567

Member
May 25, 2018
773
0
16
Trying to install rutorrent using this commands.

cd /var/www
sudo svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent rutorrent
sudo rm -r rutorrent/plugins
sudo svn co http://rutorrent.googlecode.com/svn/trunk/plugins rutorrent/plugins

But have been receiving this error

sudo svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent rutorrent
svn: E160013: Unable to connect to a repository at URL 'http://rutorrent.googlecode.com/svn/trunk/rutorrent'
svn: E160013: '/svn/trunk/rutorrent' path not found

is the google code repository offline? where else can i pick this up from?