iA


connecting from a X-client to a cygwin X-server

by jcf. Average Reading Time: less than a minute.

from the my-outsourced-brain-dept:

  • Install cygwin. Be sure to select the X11 base package
  • open a cygwin shell
  • start X: $ startxwin.sh
  • you will get a xterm window on your Windows box
  • type $ xhost + to disable host security, so that other hosts can connect to your server
  • Enable X port forwarding in PuTTY ( Connections / SSH / Tunnels )
  • connect to the remote machine and start the program that requires X

If all goes well, it will show up on your screen. If you get a “Xlib: connection to “:0.0″ refused by server” error message, you have forgot to disable the security by typing xhost +.

One comment on ‘connecting from a X-client to a cygwin X-server’

  1. Vishal Verma says:

    Thanks for sharing the information.

    Works perfectly. Just in remote clinet we need to set DISPLAY to redirect to local host.

    Regards and thanks
    Vishal Verma

Leave a Reply