If you want to take a screenshot of a remote Linux desktop, all you need is to change the command below to match the remote desktop you wish to take a screenshot of:
DISPLAY=”:0.0″ import -window root screenshot.png

If you want to take a screenshot of a remote Linux desktop, all you need is to change the command below to match the remote desktop you wish to take a screenshot of:
DISPLAY=”:0.0″ import -window root screenshot.png