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
Last revisionBoth sides next revision
informatica:linux:debootstrap [2009/12/10 09:42] 192.168.1.30informatica:linux:debootstrap [2013/10/23 10:12] – [Arrancar aplicaciones que usen X] javi
Line 55: Line 55:
 ===== Arrancar aplicaciones que usen X ===== ===== Arrancar aplicaciones que usen X =====
  
-schroot+https://wiki.skolelinux.de/DebianLive/Howto/Starting_X11_Applications_in_Chroot
  
-http://www.debian-administration.org/articles/566+1. (Servidor) Deshabilitar seguridad para acceder a las X:
  
-Vamos a matar dos pájaros de un tiro:+  sudo xhost + 
 +   
 +2. (Servidor) Entrar en entorno chroot:
  
-  * Ejecutar 'chroot' como usuario normal +  sudo chroot /ruta/chroot 
-  * Ejecutar aplicaciones que usen X dentro del entorno chroot +   
- +3. (ChrootLo hice como rootno se si es estrictamente necesario:
-1. (Como root) Instalar schroot: +
- +
-  aptitude update && aptitude install schroot +
- +
-2. Mover el archivo de configuración por defecto: +
- +
-  mv /etc/schroot/schroot.conf /etc/schroot/schroot.conf.original +
- +
-3. Crear nuestro propio archivo: +
- +
-  nano /etc/schroot/schroot.conf +
- +
-Con el siguiente contenido: +
- +
-<code> +
-[**lenny**] +
-description=Debian lenny (estable) +
-type=directory +
-location=**/ruta/lenny** +
-priority=3 +
-users=**mi_usuario** +
-groups=**mi_grupo** +
-root-groups=root +
-run-setup-scripts=true +
-run-exec-scripts=true +
-</code> +
- +
-4. Grabar y salir +
- +
-5. Deshabilitar la seguridad para conectarse al servidor X: +
- +
-  xhost + +
- +
-  access control disabled, clients can connect from any host +
- +
-6. Nos aseguramos que estamos en un directorio que existe en el entorno chroot+
- +
-  cd / +
- +
-7Dos posibilidades: +
- +
-  * Lanzar directamente una aplicación gráfica en entorno chroot: +
- +
-  schroot -c lenny -p gns3 +
- +
-  * Entrar en el entorno chroot y luego lanzarla (o hacer otras cosas)+
- +
-**NO FUNCIONA** +
-  schroot -c lenny +
-  gns3& +
- +
--------------------------------------------------------------------------------------------- +
- +
-**REVISAR** Dejo estos apuntes para echarle un ojo: +
- +
- +
-1. (Desde el entorno principal) Deshabilitar la seguridad de conexión al servidor x: +
- +
-  xhost + +
- +
-  access control disabledclients can connect from any host +
- +
-Pero mejor echarle un ojo a: +
- +
-https://wiki.skolelinux.de/DebianLive/Howto/Starting_X11_Applications_in_Chroot+
  
 <code> <code>
-rumour has it, xhost is EVIL!   +source etc/profile 
-There are so many other ways of getting remote X apps to work that xhost should never be needed.   +export DISPLAY=:0 
-For a more sensible approach, use ssh X11 forwarding, ask me about <sshx>  +export LC_ALL=C
-Also see <mit-magic-cookie>, http://www.acm.uiuc.edu/workshops/cool_unix/xauth.html <nolisten> and "apt-cache show xbase-clients | grep xhost" +
-To run applications on your local machine as another user, see <root x> See also <xhost +localhost>.+
 </code> </code>
  
informatica/linux/debootstrap.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1