public:remote_screen_capture_of_desktop
This is an old revision of the document!
Table of Contents
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"
Make it executable and test:
remote_screenshot.bash
And view the figure it made: ~/tmp/screenshotX.png
Step 2: On Shore
And on the landside server, make this script to execute screenshotX.png on the ship, and rsync the file back. Call this one remote_shipX_screenshot.bash
public/remote_screen_capture_of_desktop.1601650011.txt.gz · Last modified: 2024/01/25 03:32 (external edit)