User Tools

Site Tools


informatica:linux:debootstrap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:linux:debootstrap [2009/11/18 15:07] 192.168.1.30informatica:linux:debootstrap [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 1: Line 1:
 debootsrtap chroot sid squeeze lenny debootsrtap chroot sid squeeze lenny
 +
 +====== debootstrap + chroot ======
  
 Sirve para crear un subsistema Debian en un directorio dado. Útil para hacer pruebas. Por ejemplo se puede crear un subsistema sarge (estable) en una instalación etch (pruebas) Sirve para crear un subsistema Debian en un directorio dado. Útil para hacer pruebas. Por ejemplo se puede crear un subsistema sarge (estable) en una instalación etch (pruebas)
 +
 +===== Instalación =====
  
 1. Instalar paquetes 1. Instalar paquetes
Line 20: Line 24:
 | ¿? | ¿? | sarge | 3' | 146Mb | | ¿? | ¿? | sarge | 3' | 146Mb |
 | Intel Centrino, 2Gb Ram | 13420 kbps | sid | 7' | 208 Mb | | Intel Centrino, 2Gb Ram | 13420 kbps | sid | 7' | 208 Mb |
 +
 +**NOTA** Solo admite alias
 +
 +^ Versión ^ Alias ^
 +| Estable | lenny |
 +| Pruebas | squeeze |
 +| Inestable | sid |
  
 5. Escribo en el '/etc/fstab' del sistema principal una entrada referente al subsistema Debian: 5. Escribo en el '/etc/fstab' del sistema principal una entrada referente al subsistema Debian:
Line 37: Line 48:
   exit   exit
  
-**PARA ARRANCAR APLICACIONES QUE USEN X** 
  
-1. (Desde el entorno principal) Deshabilitar la seguridad de conexión al servidor x: 
  
-  xhost + 
  
-  access control disabled, clients can connect from any host 
  
-Pero mejor echarle un ojo a:+ 
 +===== Arrancar aplicaciones que usen X =====
  
 https://wiki.skolelinux.de/DebianLive/Howto/Starting_X11_Applications_in_Chroot https://wiki.skolelinux.de/DebianLive/Howto/Starting_X11_Applications_in_Chroot
 +
 +1. (Servidor) Deshabilitar seguridad para acceder a las X:
 +
 +  sudo xhost +
 +  
 +2. (Servidor) Entrar en entorno chroot:
 +
 +  sudo chroot /ruta/chroot
 +  
 +3. (Chroot) Lo hice como root, no se si es estrictamente necesario:
 +
 +<code>
 +source etc/profile
 +export DISPLAY=:0
 +export LC_ALL=C
 +</code>
 +
 +===== Errores =====
 +
 +  * E: No such script: /usr/share/debootstrap/scripts/stable
 +
 +**Solución** Sustituir 'stable' por lenny:
 +
 +  debootstrap lenny /tmp/stable/ http://ftp.debian.org/debian/
informatica/linux/debootstrap.1258556873.txt.gz · Last modified: 2015/04/13 20:19 (external edit)