quinta-feira, 17 de fevereiro de 2011

Xvfb: rodar Aplicações Gráfica no Linux sem ter um X Server

start Xvfb
startx -- `which Xvfb` :1 -screen 0 1024x768x24


This starts Xvfb running on :1 with a screen size of 1024x768 and 24bits/pixel color depth. Now, let's run firefox:

DISPLAY=:1 firefox
# Or, if you run csh or tcsh
env DISPLAY=:1 firefox


tell firefox to go to google.com
DISPLAY=:1 firefox-remote http://www.google.com/


take a screenshot (requires ImageMagick's import command):
DISPLAY=:1 import -window root googledotcom.png


Fonte:
http://www.semicomplete.com/blog/geekery/xvfb-firefox.html

Nenhum comentário: