Make screenshot on display 1 with the imagemagick
DISPLAY=:1 import -window root screen.png
Source: Xvfb and Firefox headless screenshot generator « Ivan Villareal.
Make screenshot on display 1 with the imagemagick
DISPLAY=:1 import -window root screen.png
Source: Xvfb and Firefox headless screenshot generator « Ivan Villareal.
First, install a VNC server:sudo apt-get install vnc4server
Next, start and configure the server:vncserver
At this point, it should ask you to create a password for VNC. Do so, then continue.
Start a VNC screen on screen 99:vncserver :99
If that goes through alright, then kill the screens created. (For me, when I ran vncserver for the first time, it created a screen at :1, so we'll kill both of the screens created)vncserver -kill :99
vncserver -kill :1
Done. Now, it "just works."
sudo apt-get install imagemagick
mogrify -resize 640x480 *.jpg