- Fire up X11.app (It's located in /Applications/Utilities/X11.app)
- On Mac box: go to X11 preferences and enable "Allow connections from network clients" (Make sure it looks like below)
- Restart X11.app
- Open a terminal in X11 and do: xhost +
- ssh to your linux box and do: export DISPLAY=IP_OF_MAC_BOX:0.0
Bingo! On the linux box, you can now run any X app, say xterm and the X window will pop up on your Mac box.
5 comments:
Thank you so much. This thing was driving me crazy, it was your tip to restart X11 that did the trick.
(only now I realize that the settings dialog explicitly say that a restart is required. Shame on me).
Thanks a lot.
Won't "ssh -X" do the same thing, and you won't need to use xhost? xhost is not very secure. Much better to tunnel things through ssh.
Hi!
And what about all the way around?
Can i access my Mac using X11 forwarding from another Mac (or even from a linux machine)?
I'm trying to do this for a while but always unsuccessful
Cheers
Great this is what i wanted..works great.
thanks a lot..
Post a Comment