How to take a screenshot of a Linux desktop over SSH.

To take a screenshot of a Linux desktop over SSH; firstly you must set the DISPLAY environment variable. homer@deusexmachina ~ $ export DISPLAY=:0homer@deusexmachina ~ $ export DISPLAY=:0 Then use scrot to capture a screenshot of the desktop to a file. homer@deusexmachina ~ $ scrot :0 my.jpeghomer@deusexmachina ~ $ scrot :0…

Read More