Run applications headless
Submitted by vitki on Oct 28 2009 - 4:30am
in
Install the following: Xvfb, startx, import (from ImageMagick)
Now let’s try to run Firefox without a visible display.
- Start Xvfb.
startx -- `which Xvfb` :1 -screen 0 1024x768x24
- start Xvfb running on :1 with a screen size of 1024×768 and 24bits/pixel color depth.
DISPLAY=:1 firefox
- Take a screenshot.
DISPLAY=:1 import -window root firefox.png

Comments
Post new comment