Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know i can do it in linux, anything similar in osx?

share|improve this question

Firstly make sure X11 is installed (it's an optional install on the OS X dvd)

You need to ssh in with X11 forwarding.

Open terminal and type ssh -X username@host where username and host are the relevant details.

This will log you in. Once logged in type gedit and the X11 server on your mac will start and show the gEdit window.

share|improve this answer
hm got Gtk-WARNING **: cannot open display: – Jacopo May 5 '11 at 2:48
is you're linux ssh server setup to forward X11 packets? – RobZolkos May 5 '11 at 2:55
see edit, make sure X11 is installed on your mac too – RobZolkos May 5 '11 at 2:57
its installed and enabled. Just another bit of diagnostic help when i echo display i get a blank line – Jacopo May 5 '11 at 4:20
when I echo $DISPLAY, it says localhost:10.0 – RobZolkos May 5 '11 at 4:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.