User Tools

Site Tools


public:remote_screen_capture_of_desktop

This is an old revision of the document!


Remote Screen Capture of a Desktop

Scenario: The ship has a linux computer, you want a desktop screen capture that you can view on your own local computer.

Names:

  • shipuser@shiplinux
  • landuser@landserver
  • me@mycomputer

## landuser@landserver must be able to ssh into shipuser@shiplinux Set up a ssh key so this is automatic.

## me@mycomputer must be able to ssh (with a key) into landuser@landserver

Step 1: On the Ship

Make a bash script that looks like this:

## begin remote_screenshot.bash ##

#!/bin/bash
## store the image in ~/tmp
## image will be called "screenshotX.png"
cd ~/tmp; DISPLAY=":0.0" import -window root screenshotX.png

## give a clue
echo "on ship: desktop captured in ~/tmp/screenshotX.png"
public/remote_screen_capture_of_desktop.1601649697.txt.gz · Last modified: 2024/01/25 03:32 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki