Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia | |||
| linux:install:debian:6 [24/07/2026 12:04] – suprimit - edició externa (Data desconeguda) 127.0.0.1 | linux:install:debian:6 [24/07/2026 12:04] (actual) – ↷ Page moved and renamed from linux:debian:install-6 to linux:install:debian:6 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 // | ||
| + | |||
| + | === últimos ficheros usados | ||
| + | <code apache 010-p2p.conf> | ||
| + | < | ||
| + | RewriteEngine on | ||
| + | RewriteCond %{SERVER_PORT} =80 | ||
| + | RewriteRule ^(.*) https:// | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ServerAdmin webmaster@localhost | ||
| + | |||
| + | SSLEngine on | ||
| + | SSLCertificateFile / | ||
| + | SSLCertificateKeyFile / | ||
| + | SSLCACertificateFile / | ||
| + | |||
| + | DocumentRoot / | ||
| + | < | ||
| + | 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 "/ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | AuthType Digest | ||
| + | AuthName " | ||
| + | AuthDigestDomain / | ||
| + | |||
| + | AuthDigestProvider file | ||
| + | AuthUserFile / | ||
| + | Require valid-user | ||
| + | SetEnv R_ENV "/ | ||
| + | |||
| + | Options Indexes | ||
| + | Order allow,deny | ||
| + | allow from all | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | es necesario generar los ficheros de certificados y los de contraseñas (o copiarlos de dónde estén) | ||
| + | |||
| + | === ficheros apache viejos | ||
| + | * [[linux: | ||
| + | * [[linux: | ||
| + | * [[linux: | ||
| + | |||
| + | === configuración apache ports.conf | ||
| + | * '' | ||
| + | * 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:// | ||
| + | |||
| + | == otras instalaciones | ||
| + | * [[linux: | ||
| + | * [[linux: | ||
| + | * [[linux: | ||