Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Següent revisió | Revisió prèvia | ||
| linux:debian:seedbox:metodo1 [16/01/2015 14:27] – creado mate | linux:debian:seedbox:metodo1 [01/02/2020 14:25] (actual) – suprimit mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| - | = instalación rápida debian 6 como seedbox | ||
| - | * /vía: [[http:// | ||
| - | * /vía: [[http:// | ||
| - | * configuración rtorrent+rutorrent+screen: | ||
| - | * reiniciar rtorrent ([[https:// | ||
| - | == instalación básica | ||
| - | <code bash 0.sh> | ||
| - | apt-get update && apt-get upgrade | ||
| - | apt-get install vim | ||
| - | useradd -m -d /home/user user | ||
| - | useradd -m -d /home/www www-data | ||
| - | //su www-data & cd /home/www | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | chown -R www-data: | ||
| - | |||
| - | // ^D & su user & cd | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | chown -R user:user /home/user | ||
| - | |||
| - | ln -s / | ||
| - | ln -s / | ||
| - | ln -s / | ||
| - | apt-get install sudo | ||
| - | vim / | ||
| - | </ | ||
| - | * debajo de root ALL=(ALL) ALL -> '' | ||
| - | * o añadir al usuario al grupo **sudo** -> '' | ||
| - | * [[https:// | ||
| - | == instalación paquetes básicos | ||
| - | * '' | ||
| - | == configuración apache & php | ||
| - | === base | ||
| - | * módulos seguridad apache: | ||
| - | * '' | ||
| - | * '' | ||
| - | * cambiamos '' | ||
| - | * añadimos al final: '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * para comprobar: | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | * crear certificado (válido 3650): '' | ||
| - | * activar usuario y contraseña para el directorio // | ||
| - | === conf1 | ||
| - | <code apache> | ||
| - | < | ||
| - | RewriteEngine on | ||
| - | RewriteCond %{SERVER_PORT} =80 | ||
| - | RewriteRule ^(.*) https:// | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | ServerAdmin webmaster@localhost | ||
| - | |||
| - | SSLEngine on | ||
| - | SSLOptions +StdEnvVars +ExportCertData | ||
| - | # | ||
| - | SSLCertificateFile / | ||
| - | SSLCertificateKeyFile / | ||
| - | SSLCACertificateFile / | ||
| - | |||
| - | DocumentRoot /var/www/ | ||
| - | # | ||
| - | # Options FollowSymLinks | ||
| - | # | ||
| - | # | ||
| - | |||
| - | < | ||
| - | Options -Indexes FollowSymLinks MultiViews | ||
| - | AllowOverride None | ||
| - | Order allow,deny | ||
| - | allow from all | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | AuthDigestProvider file | ||
| - | AuthUserFile / | ||
| - | Require valid-user | ||
| - | |||
| - | Options Indexes | ||
| - | Order allow,deny | ||
| - | allow from all | ||
| - | </ | ||
| - | |||
| - | ErrorLog / | ||
| - | |||
| - | # Possible values include: debug, info, notice, warn, error, crit, | ||
| - | # alert, emerg. | ||
| - | LogLevel warn | ||
| - | |||
| - | CustomLog / | ||
| - | |||
| - | < | ||
| - | AuthType Digest | ||
| - | AuthName " | ||
| - | AuthDigestDomain / | ||
| - | |||
| - | AuthDigestProvider file | ||
| - | AuthUserFile / | ||
| - | Require valid-user | ||
| - | # SetEnv R_ENV "/ | ||
| - | |||
| - | Options Indexes | ||
| - | Order allow,deny | ||
| - | allow from all | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | SSLVerifyClient require | ||
| - | SSLVerifyDepth 2 | ||
| - | SSLRequire (%{SSL_CLIENT_V_REMAIN} >= " | ||
| - | and %{SSL_CLIENT_I_DN_O} eq " | ||
| - | # ErrorDocument 403 https://... | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | === conf2 | ||
| - | <code apache> | ||
| - | < | ||
| - | ServerAdmin webmaster@localhost | ||
| - | |||
| - | DocumentRoot /var/www/ | ||
| - | < | ||
| - | Options FollowSymLinks | ||
| - | AllowOverride All | ||
| - | </ | ||
| - | < | ||
| - | Options -Indexes FollowSymLinks MultiViews | ||
| - | AllowOverride None | ||
| - | Order allow,deny | ||
| - | allow from all | ||
| - | </ | ||
| - | |||
| - | ErrorLog / | ||
| - | |||
| - | # Possible values include: debug, info, notice, warn, error, crit, | ||
| - | # alert, emerg. | ||
| - | LogLevel warn | ||
| - | |||
| - | CustomLog / | ||
| - | |||
| - | < | ||
| - | AuthType Digest | ||
| - | AuthName " | ||
| - | AuthDigestDomain / | ||
| - | |||
| - | AuthDigestProvider file | ||
| - | AuthUserFile / | ||
| - | Require valid-user | ||
| - | SetEnv R_ENV "/ | ||
| - | </ | ||
| - | |||
| - | </ | ||
| - | |||
| - | < | ||
| - | ServerAdmin webmaster@localhost | ||
| - | |||
| - | SSLEngine on | ||
| - | SSLCertificateFile / | ||
| - | |||
| - | DocumentRoot /var/www/ | ||
| - | < | ||
| - | Options FollowSymLinks | ||
| - | AllowOverride All | ||
| - | </ | ||
| - | < | ||
| - | Options -Indexes FollowSymLinks MultiViews | ||
| - | AllowOverride None | ||
| - | Order allow,deny | ||
| - | allow from all | ||
| - | </ | ||
| - | |||
| - | ErrorLog / | ||
| - | |||
| - | # Possible values include: debug, info, notice, warn, error, crit, | ||
| - | # alert, emerg. | ||
| - | LogLevel warn | ||
| - | |||
| - | CustomLog / | ||
| - | < | ||
| - | AuthType Digest | ||
| - | AuthName " | ||
| - | AuthDigestDomain / | ||
| - | |||
| - | AuthDigestProvider file | ||
| - | AuthUserFile / | ||
| - | Require valid-user | ||
| - | SetEnv R_ENV "/ | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | === conf3 | ||
| - | <code apache otro_ejemplo> | ||
| - | ServerName localhost | ||
| - | |||
| - | < | ||
| - | |||
| - | ServerAdmin admin@rutorrent | ||
| - | ServerName localhost | ||
| - | DocumentRoot / | ||
| - | |||
| - | < | ||
| - | AllowOverride None | ||
| - | Order deny,allow | ||
| - | Deny from all | ||
| - | </ | ||
| - | < | ||
| - | AuthType Basic | ||
| - | AuthName "My ruTorrent web site" | ||
| - | AuthUserFile "/ | ||
| - | Require valid-user | ||
| - | Order allow,deny | ||
| - | Allow from all | ||
| - | </ | ||
| - | < | ||
| - | Order deny,allow | ||
| - | Deny from all | ||
| - | </ | ||
| - | < | ||
| - | Order deny,allow | ||
| - | Deny from all | ||
| - | </ | ||
| - | < | ||
| - | AuthType Basic | ||
| - | AuthName "My ruTorrent web site" | ||
| - | AuthUserFile "/ | ||
| - | Require user yes | ||
| - | </ | ||
| - | </ | ||
| - | < | ||
| - | SSLEngine On | ||
| - | SSLCertificateFile / | ||
| - | ServerAdmin admin@rutorrent | ||
| - | ServerName localhost | ||
| - | DocumentRoot / | ||
| - | |||
| - | < | ||
| - | AllowOverride None | ||
| - | Order deny,allow | ||
| - | Deny from all | ||
| - | </ | ||
| - | < | ||
| - | AuthType Basic | ||
| - | AuthName "My ruTorrent web site" | ||
| - | AuthUserFile "/ | ||
| - | Require valid-user | ||
| - | Order allow,deny | ||
| - | Allow from all | ||
| - | </ | ||
| - | < | ||
| - | Order deny,allow | ||
| - | Deny from all | ||
| - | </ | ||
| - | < | ||
| - | Order deny,allow | ||
| - | Deny from all | ||
| - | </ | ||
| - | < | ||
| - | AuthType Basic | ||
| - | AuthName "My ruTorrent web site" | ||
| - | AuthUserFile "/ | ||
| - | Require user yes | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | * '' | ||
| - | * editamos '' | ||
| - | <code apache / | ||
| - | # have to change the VirtualHost statement in | ||
| - | # / | ||
| - | # This is also true if you have upgraded from before 2.2.9-3 (i.e. from | ||
| - | # Debian etch). See / | ||
| - | # README.Debian.gz | ||
| - | |||
| - | NameVirtualHost *:80 | ||
| - | Listen 80 | ||
| - | |||
| - | < | ||
| - | # If you add NameVirtualHost *:443 here, you will also have to change | ||
| - | # the VirtualHost statement in / | ||
| - | # to < | ||
| - | # Server Name Indication for SSL named virtual hosts is currently not | ||
| - | # supported by MSIE on Windows XP. | ||
| - | NameVirtualHost *:443 | ||
| - | Listen 443 | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | Listen 443 | ||
| - | </ | ||
| - | </ | ||
| - | * '' | ||
| - | * comprobamos: | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | == configuración rtorrent | ||
| - | * instalar subversion: '' | ||
| - | * instalar compilador: '' | ||
| - | * crear carpeta ' | ||
| - | * descargar: | ||
| - | * ''< | ||
| - | * '' | ||
| - | * '' | ||
| - | * ''< | ||
| - | * '' | ||
| - | * ''< | ||
| - | * '' | ||
| - | * compilamos el xmlrpc | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | * compilamos el paquete libtorrent | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | * compilamos el paquete rtorrent | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | * '' | ||
| - | * creamos el fichero de configuración del rtorrent, en el directorio home del usuario | ||
| - | <code rtorrent.rc> | ||
| - | # This is an example resource file for rTorrent. Copy to | ||
| - | # ~/ | ||
| - | # uncomment the options you wish to enable. | ||
| - | # | ||
| - | # Based on original .rtorrent.rc file from http:// | ||
| - | # Modified by Lemonberry for rtGui http:// | ||
| - | # | ||
| - | # This assumes the following directory structure: | ||
| - | # | ||
| - | # / | ||
| - | # / | ||
| - | # / | ||
| - | # in here, and rtorrent loads it # | ||
| - | # / | ||
| - | # | ||
| - | |||
| - | # Maximum and minimum number of peers to connect to per torrent. | ||
| - | #min_peers = 40 | ||
| - | max_peers = 100 | ||
| - | |||
| - | # Same as above but for seeding completed torrents (-1 = same as downloading) | ||
| - | min_peers_seed = -1 | ||
| - | max_peers_seed = -1 | ||
| - | |||
| - | # Maximum number of simultanious uploads per torrent. | ||
| - | max_uploads = 50 | ||
| - | |||
| - | # Global upload and download rate in KiB. " | ||
| - | download_rate = 0 | ||
| - | upload_rate = 0 | ||
| - | |||
| - | # Default directory to save the downloaded torrents. | ||
| - | directory = / | ||
| - | |||
| - | # Default session directory. Make sure you don't run multiple instance | ||
| - | # of rtorrent using the same session directory. Perhaps using a | ||
| - | # relative path? | ||
| - | session = / | ||
| - | |||
| - | # Watch a directory for new torrents, and stop those that have been | ||
| - | # deleted. | ||
| - | schedule = watch_directory, | ||
| - | schedule = untied_directory, | ||
| - | |||
| - | # Close torrents when diskspace is low. */ | ||
| - | schedule = low_diskspace, | ||
| - | |||
| - | # Stop torrents when reaching upload ratio in percent, | ||
| - | # when also reaching total upload in bytes, or when | ||
| - | # reaching final upload ratio in percent. | ||
| - | # example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0 | ||
| - | #schedule = ratio, | ||
| - | |||
| - | |||
| - | # When the torrent finishes, it executes "mv -n < | ||
| - | # and then sets the destination directory to " | ||
| - | # | ||
| - | system.method.set_key = event.download.finished, | ||
| - | # The ip address reported to the tracker. | ||
| - | #ip = 127.0.0.1 | ||
| - | #ip = rakshasa.no | ||
| - | |||
| - | # The ip address the listening socket and outgoing connections is | ||
| - | # bound to. | ||
| - | #bind = 127.0.0.1 | ||
| - | #bind = rakshasa.no | ||
| - | |||
| - | # Port range to use for listening. | ||
| - | port_range = 55995-56000 | ||
| - | |||
| - | # Start opening ports at a random position within the port range. | ||
| - | # | ||
| - | |||
| - | scgi_port = 127.0.0.1: | ||
| - | |||
| - | # Check hash for finished torrents. Might be usefull until the bug is | ||
| - | # fixed that causes lack of diskspace not to be properly reported. | ||
| - | #check_hash = no | ||
| - | |||
| - | # Set whetever the client should try to connect to UDP trackers. | ||
| - | # | ||
| - | |||
| - | # Alternative calls to bind and ip that should handle dynamic ip's. | ||
| - | #schedule = ip_tick, | ||
| - | #schedule = bind_tick, | ||
| - | |||
| - | # Encryption options, set to none (default) or any combination of the following: | ||
| - | # allow_incoming, | ||
| - | # | ||
| - | # The example value allows incoming encrypted connections, | ||
| - | # outgoing connections but retries with encryption if they fail, preferring | ||
| - | # plaintext to RC4 encryption after the encrypted handshake | ||
| - | # | ||
| - | encryption = allow_incoming, | ||
| - | |||
| - | # Enable DHT support for trackerless torrents or when all trackers are down. | ||
| - | # May be set to " | ||
| - | # " | ||
| - | # The default is " | ||
| - | # | ||
| - | dht = disable | ||
| - | |||
| - | # UDP port to use for DHT. | ||
| - | # | ||
| - | # dht_port = 6881 | ||
| - | |||
| - | # Enable peer exchange (for torrents not marked private) | ||
| - | # | ||
| - | peer_exchange = no | ||
| - | |||
| - | # | ||
| - | # Do not modify the following parameters unless you know what you're doing. | ||
| - | # | ||
| - | |||
| - | # Example of scheduling commands: Switch between two ip's every 5 | ||
| - | # seconds. | ||
| - | #schedule = " | ||
| - | #schedule = " | ||
| - | |||
| - | # Remove a scheduled event. | ||
| - | # | ||
| - | </ | ||
| - | == screen | ||
| - | === resumen | ||
| - | * fichero de configuración en '' | ||
| - | hardstatus alwayslastline '%{= wk}%? | ||
| - | activity ''</ | ||
| - | * 1ª linea: evita msg informativo | ||
| - | * 2ª linea: barra informativa (te permite saber si estás en una screen | ||
| - | * teclas: | ||
| - | * Ctrl+a d : ejecución en segundo planto | ||
| - | * Ctrl+a : nueva consola virtual | ||
| - | * Ctrl+a n,a : ir a siguiente y anterior consola | ||
| - | * Ctrl+a <n> : ir a <n> número de consola | ||
| - | * Ctrl+a w : mostrar lista de consolas abiertas | ||
| - | * Ctrl+a May+a : poner nombre a la consola actual | ||
| - | * Ctrl+d : salir de consola (también Ctrl+a k) | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | === uso | ||
| - | * '' | ||
| - | * si se produce un error -> '' | ||
| - | * también '' | ||
| - | * una vez abierta sesión, ejecutar el rtorrent | ||
| - | * para salir de la sesión y que continue abierta, CTRL+A, D | ||
| - | * para volver a una sesión ya abierta: '' | ||
| - | * para matar rtorrent: '' | ||
| - | * si se atasca, eliminar ficheros de directorios .session (se perderá todo lo compartido, aunque no los ficheros descargados) | ||
| - | == rutorrent | ||
| - | * descargar en directorio temporal: | ||
| - | * '' | ||
| - | * '' | ||
| - | * sustituimos la carpeta plugins dentro del rutorrent por la descargada | ||
| - | * copiamos/ | ||
| - | * '' | ||
| - | * '' | ||
| - | * reemplazamos el archivo ~/ | ||
| - | <?php | ||
| - | // configuration parameters | ||
| - | |||
| - | // for snoopy client | ||
| - | @define(' | ||
| - | @define(' | ||
| - | @define(' | ||
| - | $httpIP = null; // IP string. Or null for any. | ||
| - | |||
| - | @define(' | ||
| - | |||
| - | @define(' | ||
| - | @define(' | ||
| - | |||
| - | // for php | ||
| - | @define(' | ||
| - | @define(' | ||
| - | |||
| - | $do_diagnostic = true; | ||
| - | $log_file = '/ | ||
| - | |||
| - | $saveUploadedTorrents = true; // Save uploaded torrents to profile/ | ||
| - | $overwriteUploadedTorrents = false; // Overwrite existing uploaded torrents in profile/ | ||
| - | |||
| - | $topDirectory = '/ | ||
| - | $forbidUserSettings = false; | ||
| - | |||
| - | $scgi_port = 5000; | ||
| - | $scgi_host = " | ||
| - | |||
| - | // For web-> | ||
| - | // (scgi_local in rtorrent conf file), change variables | ||
| - | // above to something like this: | ||
| - | // | ||
| - | // | ||
| - | // | ||
| - | |||
| - | $XMLRPCMountPoint = "/ | ||
| - | |||
| - | $pathToExternals = array( | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | ); | ||
| - | |||
| - | $localhosts = array( // list of local interfaces | ||
| - | " | ||
| - | " | ||
| - | ); | ||
| - | |||
| - | $profilePath = ' | ||
| - | $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. | ||
| - | |||
| - | ?> | ||
| - | </ | ||
| - | * reemplazamos el archivo ~/ | ||
| - | ;; Plugins' | ||
| - | ;; If flag is not found in plugin section, corresponding flag from " | ||
| - | ;; If flag is not found in " | ||
| - | ;; | ||
| - | ;; For setting individual plugin permissions you must write something like that: | ||
| - | ;; | ||
| - | ;; [ratio] | ||
| - | ;; enabled = yes ;; also may be " | ||
| - | ;; canChangeToolbar = yes | ||
| - | ;; canChangeMenu = yes | ||
| - | ;; canChangeOptions = no | ||
| - | ;; canChangeTabs = yes | ||
| - | ;; canChangeColumns = yes | ||
| - | ;; canChangeStatusBar = yes | ||
| - | ;; canChangeCategory = yes | ||
| - | ;; canBeShutdowned = yes | ||
| - | |||
| - | [default] | ||
| - | enabled = user-defined | ||
| - | canChangeToolbar = yes | ||
| - | canChangeMenu = yes | ||
| - | canChangeOptions = yes | ||
| - | canChangeTabs = yes | ||
| - | canChangeColumns = yes | ||
| - | canChangeStatusBar = yes | ||
| - | canChangeCategory = yes | ||
| - | canBeShutdowned = yes | ||
| - | |||
| - | ;; Default | ||
| - | |||
| - | [_getdir] | ||
| - | enabled = yes | ||
| - | [cpuload] | ||
| - | enabled = user-defined | ||
| - | [create] | ||
| - | enabled = user-defined | ||
| - | [datadir] | ||
| - | enabled = yes | ||
| - | [diskspace] | ||
| - | enabled = user-defined | ||
| - | [erasedata] | ||
| - | enabled = user-defined | ||
| - | [show_peers_like_wtorrent] | ||
| - | enabled = user-defined | ||
| - | [theme] | ||
| - | enabled = yes | ||
| - | [tracklabels] | ||
| - | enabled = user-defined | ||
| - | [trafic] | ||
| - | enabled = user-defined | ||
| - | |||
| - | ;; Enabled | ||
| - | |||
| - | [autotools] | ||
| - | enabled = user-defined | ||
| - | [cookies] | ||
| - | enabled = user-defined | ||
| - | [data] | ||
| - | enabled = user-defined | ||
| - | [edit] | ||
| - | enabled = user-defined | ||
| - | [extratio] | ||
| - | enabled = user-defined | ||
| - | [extsearch] | ||
| - | enabled = user-defined | ||
| - | [filedrop] | ||
| - | enabled = user-defined | ||
| - | [filemanager] | ||
| - | enabled = user-defined | ||
| - | [geoip] | ||
| - | enabled = user-defined | ||
| - | [httprpc] | ||
| - | enabled = yes | ||
| - | canBeShutdowned = no | ||
| - | [pausewebui] | ||
| - | enabled = yes | ||
| - | [ratio] | ||
| - | enabled = user-defined | ||
| - | [ratiocolor] | ||
| - | enabled = user-defined | ||
| - | [rss] | ||
| - | enabled = user-defined | ||
| - | [_task] | ||
| - | enabled = yes | ||
| - | [throttle] | ||
| - | enabled = user-defined | ||
| - | [titlebar] | ||
| - | enabled = user-defined | ||
| - | [unpack] | ||
| - | enabled = user-defined | ||
| - | |||
| - | ;; Disabled | ||
| - | |||
| - | [chat] | ||
| - | enabled = no | ||
| - | [chunks] | ||
| - | enabled = no | ||
| - | [feeds] | ||
| - | enabled = no | ||
| - | [fileshare] | ||
| - | enabled = no | ||
| - | [fileupload] | ||
| - | enabled = no | ||
| - | [history] | ||
| - | enabled = no | ||
| - | [instantsearch] | ||
| - | enabled = no | ||
| - | [ipad] | ||
| - | enabled = no | ||
| - | [logoff] | ||
| - | enabled = no | ||
| - | [loginmgr] | ||
| - | enabled = no | ||
| - | [mediainfo] | ||
| - | enabled = no | ||
| - | [mediastream] | ||
| - | enabled = no | ||
| - | [check_port] | ||
| - | enabled = no | ||
| - | [retrackers] | ||
| - | enabled = no | ||
| - | [rpc] | ||
| - | enabled = no | ||
| - | [rssurlrewrite] | ||
| - | enabled = no | ||
| - | [rutracker_check] | ||
| - | enabled = no | ||
| - | [scheduler] | ||
| - | enabled = no | ||
| - | [screenshots] | ||
| - | enabled = no | ||
| - | [seedingtime] | ||
| - | enabled = no | ||
| - | [source] | ||
| - | enabled = no | ||
| - | </ | ||