If you attempt to run GPU rendering code (such as OpenGL code) while ssh'd to a server, you'll get errors such as:
Running `/home/rockpi/proj/glutin/target/debug/examples/headless`
thread 'main' panicked at 'Failed to initialize any backend! Wayland status: NoCompositorListening X11 status: XOpenDisplayFailed', /home/rockpi/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0-alpha2/src/platform_impl/linux/mod.rs:480:9
If you check echo $DISPLAY
you'll see that no display is set.
To remedy this, install xvfb:
sudo apt install xvfb
Then you can run eg:
Xvfb :1 -screen 1 1600x1200x16&
export DISPLAY=:1
Followed by whatever OpenGL code you like.