informatica:linux:debootstrap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:linux:debootstrap [2009/12/10 09:42] – 192.168.1.30 | informatica:linux:debootstrap [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 55: | Line 55: | ||
===== Arrancar aplicaciones que usen X ===== | ===== Arrancar aplicaciones que usen X ===== | ||
- | schroot | + | https:// |
- | http:// | + | 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 aplicaciones que usen X dentro del entorno chroot | + | |
- | + | 3. (Chroot) Lo hice como root, no 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 / | + | |
- | + | ||
- | 3. Crear nuestro propio archivo: | + | |
- | + | ||
- | nano / | + | |
- | + | ||
- | Con el siguiente contenido: | + | |
- | + | ||
- | < | + | |
- | [**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 | + | |
- | </ | + | |
- | + | ||
- | 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 | + | |
- | + | ||
- | | + | |
- | + | ||
- | 7. Dos posibilidades: | + | |
- | + | ||
- | * Lanzar directamente una aplicación gráfica en entorno chroot: | + | |
- | + | ||
- | schroot -c lenny -p gns3 | + | |
- | + | ||
- | * Entrar en el entorno chroot y luego lanzarla | + | |
- | + | ||
- | **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 disabled, clients can connect from any host | + | |
- | + | ||
- | Pero mejor echarle un ojo a: | + | |
- | + | ||
- | https:// | + | |
< | < | ||
- | 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 < | + | export LC_ALL=C |
- | Also see < | + | |
- | To run applications on your local machine as another user, see <root x> | + | |
</ | </ | ||
informatica/linux/debootstrap.1260438123.txt.gz · Last modified: 2015/04/13 20:19 (external edit)