Witam
Udało mi się stabilnie odpalić rtorrenta i rutorrenta na CC RC3. Kluczem do sukcesu było użycie najnowszej wersji rutorrenta (3.7) oraz rtorrent-rpc - 0.9.4-git z domyślnego repo openwrt dla CC.
Moje pliki konfiguracyjne:
etc\lighttpd\lighttpd.conf
server.modules = (
"mod_access",
"mod_auth",
"mod_fastcgi",
"mod_scgi"
)
server.network-backend = "write"
server.document-root = "/www/rutorrent/"
index-file.names = ( "index.php", "index.html", "default.html", "index.htm", "default.htm" )
mimetype.assign = (
".pdf" => "application/pdf",
".class" => "application/octet-stream",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml"
)
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
server.port = 9092
server.pid-file = "/var/run/lighttpd.pid"
fastcgi.server = (
".php" => ((
"host" => "127.0.0.1",
"port" => 1026,
"bin-path" => "/usr/bin/php-cgi",
))
)
auth.debug = 2
auth.backend = "plain"
auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
auth.require = (
"/" =>
(
"method" => "basic",
"realm" => "rutorrent",
"require" => "user=admin"
)
)
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rtorrent.socket",
"check-local" => "disable",
"disable-time" => 0,
)
)
)
server.event-handler = "poll"
server.max-request-size=100000000
server.upload-dirs=("/overlay")
#server.network-backend="write"
fastcgi.debug = 1
server.errorlog = "/overlay/torrenty/error.log"
\www\rutorrent\conf\config.php
<?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/errors.log'; // path to log file (comment or leave blank to disable logging)
$saveUploadedTorrents = true; // Save uploaded torrents to profile/torrents directory or not
$overwriteUploadedTorrents = false; // Overwrite existing uploaded torrents in profile/torrents directory or make unique name
$topDirectory = '/'; // 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/rtorrent.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 = null; // Temp directory. Absolute path with trail slash. If null, then autodetect will be used.
$canUseXSendFile = true; // Use X-Sendfile feature if it exist
$locale = "UTF8";
\root\.rtorrent.rc
min_peers = 40
max_peers = 100
min_peers_seed = 10
max_peers_seed = 50
max_uploads = 3
download_rate = 0
upload_rate = 0
directory = /overlay/torrenty
session = /overlay/torrenty/session
port_range = 50800-50801
port_random = yes
check_hash = no
#use_udp_trackers = yes
encryption = allow_incoming, try_outgoing
dht = on
dht_port = 6881
#peer_exchange = yes
encoding_list = UTF-8
scgi_local = /tmp/rtorrent.socket
#scgi_port = 5000;
#scgi_host = "127.0.0.1";
#schedule = chmod,0,0,"execute=chmod,777,/tmp/rtorrent.socket"
#xmlrpc_dialect = i8
Pozostałe rzeczy robiłem według poradnika. Pozdro.