Knowledge Base - FAQ
Question: How do I use Xvfb graphics?This example script dumps a screenshot of a URL to a specified file.
#!/bin/sh
Xvfb :1 -screen 0 1024x768x24 &
DISPLAY=:1 mozilla -width 1024 -height 768 http://www.kattare.com/ &
sleep 5
DISPLAY=:1 import -window root captured.png
killall mozilla
killall Xvfb
Last Modified: Jun 08, 2007




