Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/09/2006, 18:28
Avatar de Yashiro
Yashiro
 
Fecha de Ingreso: mayo-2004
Mensajes: 139
Antigüedad: 20 años
Puntos: 0
Pregunta Xvfb - Problemas

Tengo un problema cuando intento correr una aplicacion (supongamos que firefox) sin tener X funcionando.
Para esto utilizo Xvfb (X window virtual framebuffer) es un servidor de X11 para realizar operaciones graficas en memoria.
El comando que utilizo para levantar FireFox es (desde un archivo de Bash) :
-----------------------------------------------------------------------------------------
#!/bin/sh
/usr/X11R6/bin/Xvfb :0 -screen 0 1024x768x24 &
DISPLAY=:0 firefox /usr/lib/firefox-1.5.0.2/firefox-bin &
DISPLAY=:0 import -window root captured.png
convert captured.png -resize 256 resized.png
killall Xvfb
-----------------------------------------------------------------------------------------
Este comando deberia de levantar en memoria el firefox y capturar una imagen de el, pero cuando este se ejecuta me envia errores como :
-----------------------------------------------------------------------------------------
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.

/usr/lib/firefox-1.5.0.2/firefox-bin: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory
Xvfb: no process killed
(firefox-bin:3940): Gtk-WARNING **: cannot open display
----------------------------------------------------------------------------------------

Y bueno llevo investigando bastante y no llego a su solucion .... espero que me puedan ayudar ... Gracias

Bueno este tema esta un poco relacionado con un tema que puse antes:
http://www.forosdelweb.com/f41/problema-con-cronjob-bash-command-417769/

Las paginas que utilize para informarme acerca de Xvfb :
http://en.wikipedia.org/wiki/Xvfb
http://weblog.greenpeace.org/it/2006...firefox_s.html
http://www.semicomplete.com/blog/gee...b-firefox.html
http://www.xfree86.org/current/Xvfb.1.html