Skip to content

Tips on macOS Catalina and Linux using XQuartz #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lifan18 opened this issue Jun 16, 2020 · 2 comments
Closed

Tips on macOS Catalina and Linux using XQuartz #13

lifan18 opened this issue Jun 16, 2020 · 2 comments

Comments

@lifan18
Copy link

lifan18 commented Jun 16, 2020

For MacOS Catalina

  1. download the latest version https://www.xquartz.org
  2. install it as the instructions
  3. restart your Mac (this step can solve "cannot open display")
  4. open the terminal application in XQuartz and input xterm to test

For Linux

Once you restart your Mac, you can directly login your remote host
ssh -Y yourUserName@host
test xterm, it will open a new window on your Mac.

DO NOT export DISPLAY=IP address in your .bashrcfile


Using the steps above, I succeeded in solving problem like 'Gtk-WARNING **: cannot open display:'

Hope these tips will help someone in the same trouble like me.

Good luck!

@bishopdynamics
Copy link

Instead of using -Y you should use -X
You will need to add the following to .ssh/config on the mac side:

Host *
	XAuthLocation /opt/X11/bin/xauth

this is because xauth lives in a different location on macos than it normally would on linux

@lifan18
Copy link
Author

lifan18 commented Oct 14, 2020

Instead of using -Y you should use -X
You will need to add the following to .ssh/config on the mac side:

Host *
	XAuthLocation /opt/X11/bin/xauth

this is because xauth lives in a different location on macos than it normally would on linux

Received with thanks;D

@jeremyhu jeremyhu closed this as completed Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants