I took the screenshots with two different things.
The ones inside a window are partial screenshots (using Windows 10’s “Snip”) I took using VNC. I installed the VNC server on my Gameshell, similar to these instructions:
Since I don’t want it running all the time, I just put this in a script (all on one line, for the second line starting with sudo) and run it when I want to start the server:
#!/bin/bash
sudo x11vnc -auth guess -display :0 -forever -loop -noxdamage -repeat -rfbauth /home/cpi/.vnc/passwd -rfbport 5900 -shared -noshm
Then on Windows I have UltraVNC (Viewer) installed, and I connect to my Gameshell that way.
For the screenshots at the end, I took them on the Gameshell as described here:
I made a script that is a little fancier though. With mine I can just run it and it will create the next numbered capture file, and than I can go back and rename it later if I want:
#!/bin/bash
name=capture.png
path=$(dirname “$name”)
filename=$(basename “$name”)
extension=“${filename##.}"
filename="${filename%.}”
if [[ -e $path/$filename.$extension ]] ; then
i=2
while [[ -e $path/$filename-$i.$extension ]] ; do
let i++
done
filename=$filename-$i
fi
target=$path/$filename.$extension
export DISPLAY=:0; xwd -root | convert xwd:- $target
I might have had to do a sudo apt-get install xwd
before I could use it in the script though. I don’t remember if it was already installed or not.