To use setenv DISPLAY IP_number in iTerm, I had to add xhost + in the xterm terminal. But it just would not work in iTerm, even when trying to adapt PATH variables. This did work, though:
Open .bash_profile in your favorite text editor, and add the following lines:
DISPLAY='localhost:0'<br>
export DISPLAY<br>
cd /usr/X11R6/bin/<br>
./xhost +<br>
cd
The cds to and from the directory are required; without them, it just doesn't seem to work. Save the file, quit the editor, and open a new terminal in iTerm, and it should work.
•
[7,527 views]

