Mine de rien cela fait du monde
RuTorrent
nano /var/www/rutorrent/conf/config.php
$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" => '/usr/bin/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",
);
---------------------------------=-=-=---------------------------------
nano /var/www/rutorrent/plugins/create/conf.php
<?php
// configuration parameters
@define('MAX_CONSOLE_SIZE',25,true);
$useExternal = 'buildtorrent'; // Valid choices:
// false - use internal realization (may be too slow for large files)
// "transmissioncli" - use program transmissioncli (see http://www.transmissionbt.com/)
// "transmissioncreate" - use program transmissioncreate (see http://www.transmissionbt.com/)
// "createtorrent" - use program createtorrent (see http://www.createtorrent.com)
// "mktorrent" - use program createtorrent (see http://mktorrent.sourceforge.net)
// "buildtorrent" - use program buildtorrent (see http://claudiusmaximus.goto10.org/cm/torrent.html)
$pathToCreatetorrent = '/usr/bin/buildtorrent'; // Something like /bin/createtorrent, or /bin/transmissioncli. If empty, program will be found in
PATH.
$pathToExternals["pgrep"] = ''; // Something like /usr/bin/pgrep. If empty, will be found in PATH.
---------------------------------=-=-=---------------------------------
nano /var/www/rutorrent/plugins/filemanager/conf.php
<?php
$fm['tempdir'] = '/tmp'; // path were to store temporary data ; must be writable
$fm['mkdperm'] = 755; // default permission to set to new created directories
// set with fullpath to binary or leave empty
$pathToExternals['rar'] = '/usr/bin/rar';
$pathToExternals['zip'] = '/usr/bin/zip';
$pathToExternals['unzip'] = '/usr/bin/unzip';
$pathToExternals['tar'] = '/bin/tar';
$pathToExternals['gzip'] = '/bin/gzip';
$pathToExternals['bzip2'] = '/bin/bzip2';
// archive mangling, see archiver man page before editing
$fm['archive']['types'] = array('rar', 'zip', 'tar', 'gzip', 'bzip2');
---------------------------------=-=-=---------------------------------
nano /etc/nginx/conf.d/cache
location ~* \.(jpg|jpeg|gif|css|png|js|woff|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
location ~* \.(eot|ttf|woff|svg)$ {
add_header Acccess-Control-Allow-Origin *;
}
---------------------------------=-=-=---------------------------------
nano /etc/nginx/sites-enabled/rutorrent.conf
server {
listen 80 default_server;
listen 443 default_server ssl;
server_name _;
charset utf-8;
index index.html index.php;
client_max_body_size 10M;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
access_log /var/log/nginx/rutorrent-access.log combined;
error_log /var/log/nginx/rutorrent-error.log error;
error_page 500 502 503 504 /50x.html;
location = /50x.html { root /usr/share/nginx/html; }
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
location = /favicon.ico {
access_log off;
log_not_found off;
}
## début config seedbox-manager ##
location ^~ / {
root /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
}
## fin config seedbox-manager ##
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
location /EGOA {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_egoa";
}
## fin config rutorrent ##
}
---------------------------------=-=-=---------------------------------
nano /etc/ssh/sshd_config
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
#Subsystem sftp /usr/lib/openssh/sftp-server
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
#UsePAM yes
Subsystem sftp internal-sftp
Match user egoa,egoa2,egoa3 # etc... note : pas d'espace entre les virgules
ChrootDirectory /home/%u
---------------------------------=-=-=---------------------------------
nano /home/egoa/.rtorrent.rc
scgi_port = 127.0.0.1:5001
encoding_list = UTF-8
port_range = 45000-65000
port_random = no
check_hash = no
directory = /home/egoa/torrents
session = /home/egoa/.session
encryption = allow_incoming, try_outgoing, enable_retry
schedule = watch_directory,1,1,"load_start=/home/egoa/watch/*.torrent"
schedule = untied_directory,5,5,"stop_untied=/home/egoa/watch/*.torrent"
use_udp_trackers = yes
dht = off
peer_exchange = no
min_peers = 40
max_peers = 100
min_peers_seed = 10
max_peers_seed = 50
max_uploads = 15
execute = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php egoa &}
schedule = espace_disque_insuffisant,1,30,close_low_diskspace=500M
---------------------------------=-=-=---------------------------------
Rtorrent + seedbox-manager
nano /etc/nginx/sites-enabled/rutorrent.conf
server {
listen 80 default_server;
listen 443 default_server ssl;
server_name _;
charset utf-8;
index index.html index.php;
client_max_body_size 10M;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
access_log /var/log/nginx/rutorrent-access.log combined;
error_log /var/log/nginx/rutorrent-error.log error;
error_page 500 502 503 504 /50x.html;
location = /50x.html { root /usr/share/nginx/html; }
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
location = /favicon.ico {
access_log off;
log_not_found off;
}
## début config seedbox-manager ##
location ^~ / {
root /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
}
## fin config seedbox-manager ##
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
location /EGOA {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_egoa";
}
## fin config rutorrent ##
}
---------------------------------=-=-=---------------------------------
nano /var/www/rutorrent/conf/users/egoa/config.php
<?php
$topDirectory = '/home/egoa';
$scgi_port = 5001;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/EGOA';
---------------------------------=-=-=---------------------------------
nano /etc/init.d/egoa-rtorrent
#!/bin/bash
### BEGIN INIT INFO
# Provides: rtorrent
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Start-Stop rtorrent user session
### END INIT INFO
user="egoa"
# the full path to the filename where you store your rtorrent configuration
config="/home/egoa/.rtorrent.rc"
# set of options to run with
options=""
# default directory for screen, needs to be an absolute path
base="/home/egoa"
# name of screen session
srnname="rtorrent"
# file to log to (makes for easier debugging if something goes wrong)
logfile="/var/log/rtorrentInit.log"
#######################
###END CONFIGURATION###
#######################
---------------------------------=-=-=---------------------------------
seedbox-manager
nano /var/www/seedbox-manager/conf/users/egoa/config.ini
[user]
active_bloc_info = yes
user_directory = "/home/egoa"
scgi_folder = "/RPC1"
theme = "default"
owner = yes
[nav]
active_rutorrent = yes
url_rutorrent = "http://<MonDomaine.moi>/rutorrent/"
active_cakebox = yes
url_cakebox = "http://cakebox.<MonDomaine.moi>/"
[ftp]
active_ftp = yes
port_ftp = "21"
port_sftp = "22"
[rtorrent]
active_reboot = yes
[support]
active_support = yes
adresse_mail = "MonMail.moi"
[logout]
url_redirect = "http://www.google.fr"
---------------------------------=-=-=---------------------------------
Cakebox-light
nano /var/www/cakebox/app/config/egoa.php
<?php
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/egoa/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/egoa/"; // Alias used in web server for direct access
/*
Web player settings
*/
$app["player.type"] = "VLC"; // HTML5 or DIVX or VLC
/*
Betaseries account
NB: Ask API key here http://www.betaseries.com/api/
*/
$app["bs.login"] = "";
$app["bs.passwd"] = "";
$app["bs.apikey"] = "";
---------------------------------=-=-=---------------------------------
nano /etc/nginx/sites-enabled/cakebox.conf
server {
listen 80;
server_name <MonSous.Domaine.moi>; ## sous domaine obligatoire
root /var/www/cakebox/public;
index index.php;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
charset utf-8;
include /etc/nginx/conf.d/cache;
access_log /var/log/nginx/cakebox-access.log;
error_log /var/log/nginx/cakebox-error.log;
location = / {
try_files @site @site;
}
location / {
try_files $uri $uri/ @site;
}
location /egoa/ {
alias /home/egoa/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
## etc si d'autre utilisateur ##
location @site {
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param APPLICATION_ENV production;
## uncomment when running via https
## fastcgi_param HTTPS on;
}
}
---------------------------------=-=-=---------------------------------
nano /var/www/rutorrent/plugins/linkcakebox/conf.php
<?php
/* Note : Vous pouvez utiliser la variable $user pour récupérer votre nom d'utilisateur
Vous pouvez utiliser la variable $host pour récupérer votre ip ou nom de domaine
ATTENTION : ceci est un fichier de configuration pour cakebox-light
pour cakebox 2.8 utiliser la version 0.70 du plugin linkcakebox
Indiquez l'url complète de cakebox
exemple : http://www.mon-cakebox.fr/
ou http://www.mon-cakebox.fr/ */
$url = 'http://cakebox.<MonDomaine.moi>; //force le http
/* Cette variable correspond à la variable directory de votre .rtorrent.rc */
$dirpath = '/home/'.$user.'/torrents/';
/* true pour ouvrir cakebox dans un autre onglet
false pour ne pas ouvrir cakebox dans un autre onglet */
$onglet = true; //ou false
---------------------------------=-=-=---------------------------------
En faisant les copier/coller j'ai regardé où j'aurai pu me tromper, je n'ai rien vu, bien sûr avec mes yeux de néo.