Super User is a question and answer site for computer enthusiasts and power users. 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

Originally asked on SO - transfer to SU suggested on SO, but transfer made manually.

I have a Windows XP laptop, and I can run the Cygwin X11 server on there (script startxwin.bat, IIRC). I also use a remote machine - it happens to be a Solaris 10 SPARC machine, about 1800 miles away - that can be called for the purposes of this question.

For better or worse - mostly worse - I use xhost on the laptop to allow anyone who uses the remote machine to display their X client on my machine. Fortunately, I'm the only person who uses the Solaris machine on a regular basis and the corporate security is stringent enough that I can live with the security risks.

From the XP laptop, I then remotely connect to the X client machine, and set environment variable and can run X client programs on the remote machine and see the display happily, if a little slowly on occasion, on the XP laptop. (Depending on the length of the DHCP name assigned to the laptop, I've occasionally had to resort to an IPv4 address instead of the machine's FQDN.)

I also have an Apple MacBook Pro, and I want to replicate the functionality of the XP laptop on it. Unfortunately, I have not yet been able to work out what magic incantation is needed to get the X11 server to run satisfactorily on it. It appears that simply clicking on the X11 server in /Applications/Utilities is not sufficient. Running the xhost command again (with doesn't seem to do the trick.

Can you suggest what the incantations needed are? Or suggest pointers to where the answer is spelled out in words of one or two syllables?

Also - and very much in the bonus question category - how readily and well does the X11 server react to changes in networking (between corporate direct wired DHCP connection and wireless Airport at home with connection to corporate via a VPN)? Is it a 'restart in the new environment' issue, or will it manage to detect the changes automatically?

I would also consider other ways of achieving about the same result - such as VNC or Mac equivalents - if they are easier to set up. I believe that VNC is installed on the Solaris box; it can be if it is not.

share|improve this question
up vote 5 down vote accepted

X11 itself is not a very secure protocol.

You should use X11 forwarding with SSH. This will encrypt the connection and provide better security.

First, enable the ssh daemon on your Solaris system. Solaris 10 should come with SSH preinstalled. See if the process is running with ps -ef | grep ssh

On your MacBook Pro, run, then use ssh -X to connect to the Solaris system and start an X11 tunnel. You can launch X11 programs from the Solaris system and they will start on the MacBook under X11 automatically.

To do X11 forwarding on your Windows system, you'll need two programs. Xming which is a lightweight X11 server, originally from Cygwin, and puTTY, an SSH terminal program for Windows. You'll need to enable X11 forwarding in puTTY.

For better performance, you'll want to enable compression. This is done with the ssh program on OS X using the -c option (ssh -cX), or in puTTY on the SSH Panel (section 4.18.3 enable compression).

share|improve this answer
That's -C not -c for compression. Lower-case c parameter is for encryption cipher selection. So you'll want ssh -CX – Rob Cowell Feb 10 '11 at 9:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .