Use iTerm2 as X11 terminal (for fonts, themes, etc)?

Andrew picture Andrew · Jul 30, 2015 · Viewed 13k times · Source

I have to use Quartz X11 window when I want to plot data that is on a remote server (using NX). I'd like to use my iTerm terminal as the interface to this, as it is nicely customized with fonts, themes, etc - instead of the bare xterm window. How do I do this?

Answer

Igor picture Igor · Jan 20, 2019

Assuming that you have set-up everything correctly with ssh and XQuartz. You need to set-up the DISPLAY environmental variable:

export DISPLAY=:0
ssh -Y ...
# start your app

xterm has variable DISPLAY automatically set by default.