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


Kattare is Trustwave Certified and Safe Harbor Certified | Rated Safe For Kids by ICRA | All Rights Reserved Worldwide
Copyright © 1997 - 2012 Kättare Internet Services | Processed in 0.014 seconds by pyramid-06 in Corvallis, Oregon