linux:debian:seedbox:metodo1

Diferències

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

Enllaç a la visualització de la comparació

Ambdós costats versió prèvia Revisió prèvia
Següent revisió
Revisió prèvia
linux:debian:seedbox:metodo1 [16/01/2015 14:55] matelinux: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://pastebin.com/Kx8sLk46]] 
-  * /vía: [[http://www.linuxquestions.org/questions/linux-general-1/problem-using-screen-cannot-open-your-terminal-dev-pts-0-please-check-338313/]]: problemas con screen 
-  * configuración rtorrent+rutorrent+screen: /vía: [[https://ks358174.kimsufi.com/download.CFF9640E/]] 
-  * reiniciar rtorrent ([[https://www.feralhosting.com/faq/view?question=158]]) 
-== 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 /home/www/public 
-mkdir -p /home/www/private 
-mkdir -p /home/www/log 
-mkdir -p /home/www/auth 
-chown -R www-data:www-data /home/www 
- 
-// ^D & su user & cd 
-mkdir -p /home/user/completo 
-mkdir -p /home/user/downloading 
-mkdir -p /home/user/torrent 
-chown -R user:user /home/user 
- 
-ln -s /home/user/completo /home/www/public/completo 
-ln -s /home/user/downloading /home/www/public/descargando 
-ln -s /home/user/torrent /home/www/public/torrent 
-apt-get install sudo 
-vim /etc/sudoers 
-</code> 
-  * debajo de root ALL=(ALL) ALL -> ''user ALL=(ALL) ALL'' 
-  * o añadir al usuario al grupo **sudo** -> ''usermod -a -G sudo user'' 
-  * [[https://wiki.archlinux.org/index.php/Locale_(Espa%C3%B1ol)]] 
-== instalación paquetes básicos 
-  * ''sudo apt-get install apache2 apache2-utils autoconf build-essential ca-certificates comerr-dev libapache2-mod-php5 libcloog-ppl-dev libcppunit-dev libcurl3 libcurl4-openssl-dev libncurses5-dev ncurses-base ncurses-term libterm-readline-gnu-perl libsigc++-2.0-dev libssl-dev libtool libxml2-dev ntp openssl patch libperl-dev php5 php5-cli php5-dev php5-curl php5-geoip php5-mcrypt php5-xmlrpc pkg-config python-scgi dtach ssl-cert subversion zlib1g-dev pkg-config unzip htop irssi curl cfv'' 
-== configuración apache & php 
-=== base 
-  * módulos seguridad apache: 
-    * ''sudo a2enmod ssl && sudo a2enmod auth_digest && sudo a2enmod rewrite'' 
-    * ''sudo vim /etc/apache2/apache2.conf'' 
-      * cambiamos ''Timeout 30'' (valor por defecto 300) 
-      * añadimos al final: ''ServerTokens Prod'' 
-  * ''sudo service apache2 restart'' 
-  * ''echo '<?php phpinfo(); ?>' | sudo tee /var/www/info.php'' 
-  * para comprobar: 
-    * [[http://seedbox.torresegea.s]] -> "It Works" 
-    * [[http://seedbox.torresegea.s/info.php]] -> Configuración PHP instalado 
-  * crear certificado (válido 3650): ''sudo openssl req -new -x509 -days 3650 -nodes -newkey rsa:2048 -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem && chmod 600 /etc/apache2/apache.pem'' 
-  * activar usuario y contraseña para el directorio //rutorrent//: ''sudo htdigest -c /etc/apache2/htpasswd rutorrent user'' 
-=== conf1 
-<code apache> 
-<VirtualHost *:80> 
- RewriteEngine on 
- RewriteCond %{SERVER_PORT} =80 
- RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} 
-</VirtualHost> 
- 
-<VirtualHost *:443> 
- ServerAdmin webmaster@localhost 
-  
- SSLEngine on 
- SSLOptions +StdEnvVars +ExportCertData 
-# SSLCertificateFile /etc/apache2/apache.pem 
- SSLCertificateFile /etc/apache2/certificados/Servidor_certificado.crt 
- SSLCertificateKeyFile /etc/apache2/certificados/Servidor_privada.key 
- SSLCACertificateFile /etc/apache2/certificados/CertificadosRaiz.crt 
-  
- DocumentRoot /var/www/ 
-# <Directory /> 
-# Options FollowSymLinks 
-# AllowOverride All 
-# </Directory> 
- 
- <Directory /var/www/> 
- Options -Indexes FollowSymLinks MultiViews 
- AllowOverride None 
- Order allow,deny 
- allow from all 
- </Directory> 
- 
- <Location /rtorrent.CFF9640E> 
-               AuthType Digest 
-               AuthName "rtorrent" 
-               AuthDigestDomain /var/www/rtorrent/ https://ks358174.kimsufi.com/rtorrent 
- 
-                AuthDigestProvider file 
-                AuthUserFile /etc/apache2/htpasswd3 
-                Require valid-user 
- 
- Options Indexes 
- Order allow,deny 
- allow from all 
- </Location> 
-  
- ErrorLog /var/log/apache2/error.log 
-  
-# Possible values include: debug, info, notice, warn, error, crit, 
-# alert, emerg. 
- LogLevel warn 
-  
- CustomLog /var/log/apache2/access.log combined 
- 
- <Location /rutorrent> 
- AuthType Digest 
- AuthName "rutorrent" 
- AuthDigestDomain /var/www/rutorrent/ https://ks358174.kimsufi.com/rutorrent 
-  
- AuthDigestProvider file 
- AuthUserFile /etc/apache2/htpasswd3 
- Require valid-user 
-# SetEnv R_ENV "/var/www/rutorrent" 
-  
- Options Indexes 
- Order allow,deny 
- allow from all 
- </Location> 
-  
- <Directory /var/www/rutorrentcert> 
- SSLVerifyClient require 
- SSLVerifyDepth 2 
- SSLRequire (%{SSL_CLIENT_V_REMAIN} >= "0" \ 
-    and %{SSL_CLIENT_I_DN_O} eq "Mate") 
- # ErrorDocument 403 https://... 
- </Directory> 
-</VirtualHost> 
-</code> 
- 
-=== conf2 
-<code apache> 
-<VirtualHost *:80> 
-ServerAdmin webmaster@localhost 
-  
-DocumentRoot /var/www/ 
-<Directory /> 
-Options FollowSymLinks 
-AllowOverride All 
-</Directory> 
-<Directory /var/www/> 
-Options -Indexes FollowSymLinks MultiViews 
-AllowOverride None 
-Order allow,deny 
-allow from all 
-</Directory> 
-  
-ErrorLog /var/log/apache2/error.log 
-  
-# Possible values include: debug, info, notice, warn, error, crit, 
-# alert, emerg. 
-LogLevel warn 
-  
-CustomLog /var/log/apache2/access.log combined 
-  
-<Location /rutorrent> 
-AuthType Digest 
-AuthName "rutorrent" 
-AuthDigestDomain /var/www/rutorrent/ http://ks358174.kimsufi.com/rutorrent 
-  
-AuthDigestProvider file 
-AuthUserFile /etc/apache2/htpasswd 
-Require valid-user 
-SetEnv R_ENV "/var/www/rutorrent" 
-</Location> 
-  
-</VirtualHost> 
-  
-<VirtualHost *:443> 
-ServerAdmin webmaster@localhost 
-  
-SSLEngine on 
-SSLCertificateFile /etc/apache2/apache.pem 
-  
-DocumentRoot /var/www/ 
-<Directory /> 
-Options FollowSymLinks 
-AllowOverride All 
-</Directory> 
-<Directory /var/www/> 
-Options -Indexes FollowSymLinks MultiViews 
-AllowOverride None 
-Order allow,deny 
-allow from all 
-</Directory> 
-  
-ErrorLog /var/log/apache2/error.log 
-  
-# Possible values include: debug, info, notice, warn, error, crit, 
-# alert, emerg. 
-LogLevel warn 
-  
-CustomLog /var/log/apache2/access.log combined 
-<Location /rutorrent> 
-AuthType Digest 
-AuthName "rutorrent" 
-AuthDigestDomain /var/www/rutorrent/ http://ks358174.kimsufi.com/rutorrent 
-  
-AuthDigestProvider file 
-AuthUserFile /etc/apache2/htpasswd 
-Require valid-user 
-SetEnv R_ENV "/var/www/rutorrent" 
-</Location> 
-</VirtualHost> 
-</code> 
- 
-=== conf3 
-<code apache otro_ejemplo> 
-ServerName localhost 
- 
-<VirtualHost *:80> 
- 
-        ServerAdmin admin@rutorrent 
-        ServerName localhost 
-        DocumentRoot /var/rutorrent 
- 
-        <Directory /> 
-                AllowOverride None 
-                Order deny,allow 
-                Deny from all 
-        </Directory> 
-        <Location /> 
-                AuthType Basic 
-                AuthName "My ruTorrent web site" 
-                AuthUserFile "/etc/apache2/rutorrent_passwd" 
-                Require valid-user 
-                Order allow,deny 
-                Allow from all 
-        </Location> 
-        <Location ~ "^/rutorrent/(conf|share)"> 
-                Order deny,allow 
-                Deny from all 
-        </Location> 
-        <Location ~ "/\\.svn"> 
-                Order deny,allow 
-                Deny from all 
-        </Location> 
-        <Location "/RPC00001"> 
-                AuthType Basic 
-                AuthName "My ruTorrent web site" 
-                AuthUserFile "/etc/apache2/rutorrent_passwd" 
-                Require user yes 
-        </Location> 
-</VirtualHost> 
-<VirtualHost *:443> 
-        SSLEngine On 
-        SSLCertificateFile /etc/apache2/rutorrent.pem 
-        ServerAdmin admin@rutorrent 
-        ServerName localhost 
-        DocumentRoot /var/rutorrent 
- 
-        <Directory /> 
-                AllowOverride None 
-                Order deny,allow 
-                Deny from all 
-        </Directory> 
-        <Location /> 
-                AuthType Basic 
-                AuthName "My ruTorrent web site" 
-                AuthUserFile "/etc/apache2/rutorrent_passwd" 
-                Require valid-user 
-                Order allow,deny 
-                Allow from all 
-        </Location> 
-        <Location ~ "^/rutorrent/(conf|share)"> 
-                Order deny,allow 
-                Deny from all 
-        </Location> 
-        <Location ~ "/\\.svn"> 
-                Order deny,allow 
-                Deny from all 
-        </Location> 
-        <Location "/RPC00001"> 
-                AuthType Basic 
-                AuthName "My ruTorrent web site" 
-                AuthUserFile "/etc/apache2/rutorrent_passwd" 
-                Require user yes 
-        </Location> 
-</VirtualHost> 
-</code> 
- 
-  * ''sudo a2ensite default-ssl'' 
-  * editamos ''sudo vim /etc/apache2/ports.conf'' 
-<code apache /etc/apache2/ports.conf># If you just change the port or add more ports here, you will likely also 
-# have to change the VirtualHost statement in 
-# /etc/apache2/sites-enabled/000-default 
-# This is also true if you have upgraded from before 2.2.9-3 (i.e. from 
-# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and 
-# README.Debian.gz 
-  
-NameVirtualHost *:80 
-Listen 80 
-  
-<IfModule mod_ssl.c> 
-# If you add NameVirtualHost *:443 here, you will also have to change 
-# the VirtualHost statement in /etc/apache2/sites-available/default-ssl 
-# to <VirtualHost *:443> 
-# Server Name Indication for SSL named virtual hosts is currently not 
-# supported by MSIE on Windows XP. 
-NameVirtualHost *:443 
-Listen 443 
-</IfModule> 
-  
-<IfModule mod_gnutls.c> 
-Listen 443 
-</IfModule> 
-</code> 
-  * ''sudo /etc/init.d/apache2 restart'' 
-  * comprobamos: 
-    * [[https://ks358174.kimsufi.com]] -> "It Works" 
-    * [[https://ks358174.kimsufi.com/info.php]] -> Configuración PHP instalado 
- 
-== instalación / configuración rtorrent 
-  * [[linux:debian:seedbox:rtorrent]] 
- 
-== instalación / configuración screen 
-  * [[linux:debian:seedbox:screen]] 
- 
-== instalación / configuración rutorrent 
-  * [[linux:debian:seedbos:rutorrent]] 
  
  • linux/debian/seedbox/metodo1.1421448922.txt.gz
  • Darrera modificació: 16/01/2015 14:55
  • (edició externa)