skip to main content
Astronomy  /  NGPS  /  Remote Access Guides  /  Displaying Graphical Programs on MacOS

Displaying Graphical Programs on MacOS

MacOS XQuartz

XQuartz is an open source version of the X11.app application that used to come preinstalled on macOS.

Mac X11 Forwarding

For forwarding remote X sessions over ssh you can use either Terminal.app (also found in /Applications/Utilities) or xterm. If you are using the Mac OS X Terminal, you will need to set your DISPLAY variable. Enter this statement into the file ~/.bashrc:

if [ -z $DISPLAY ]; then export DISPLAY=:0.0; fi

and then start a new Terminal window. If you are using xterm, the variable should be set for you.

On the Mac you should also use the -X and -Y options:

ssh -X -Y [email protected]