Skip to content

Instantly share code, notes, and snippets.

@mpj
Created May 16, 2011 09:29
Show Gist options
  • Save mpj/974144 to your computer and use it in GitHub Desktop.
Save mpj/974144 to your computer and use it in GitHub Desktop.
DISPLAY=:99.0 firefox http://example.org
# For kicks, you can make a screenshot to see it working
xwd -root -display :99.0 -out screenshot.xwd
convert screenshot.wxd ~/screenshot.jpg
# Exit SSH session and download the
# screenshot to your local computer via SCP:
exit
scp -i yourkeypairfile.pem [email protected]:screenshot.jpg screenshot.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment