Launch graphical software remotely with ssh

ssh remote_user@remote_host "DISPLAY=:0.0 import -window root -format png -"|display -format png -
This will take a screenshot of the remote host with “import” and display it locally with ImageMagick’s “display”.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s