Skip to content

Instantly share code, notes, and snippets.

@nsteele
Last active July 15, 2021 03:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nsteele/fd1c06ad7c49c5a808e35ead6ea68826 to your computer and use it in GitHub Desktop.
Save nsteele/fd1c06ad7c49c5a808e35ead6ea68826 to your computer and use it in GitHub Desktop.
Enable glx between mac client and linux server
#!/bin/bash
# on macOS, enable indirect opengl vi xquartz
defaults write org.macosforge.xquartz.X11 enable_iglx -bool true
# ssh to linux server with x forwarding, and start an opengl app
ssh -X user@linux_server
glxgears
# note that using indirect rendering (which is the case when going over ssh), xquartz only supports up to opengl 1.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment