Using VcXsrv and PuTTY (remote X for Windows)

I used to use Xming (alongside PuTTY) to display X11 applications from a remote Linux machine from Windows 7.

However, recently I discovered VcXsrv when looking for other X Server for Windows. VcXsrv is ‘better’ than Xming (the free version of Xming is over 6 years old, but you get the latest version if you donate) as it’s based on the same source code (compiled using Visual Studio as Xming (the paid for version) but ‘free’ (as in open source)!

Besides, you don’t have to use PuTTY with VcXsrv, as it has the facility to log on via ssh built in; I prefer to use PuTTY as I always have used it!

Configuring VcXsrv and PuTTY

  1. First things first, if you haven’t already done so,
  2. Start VcXsrv either by clicking on the Start menu (Windows Vista or Windows 7) and typing ‘Xlaunch’ and pressing enter. Windows 8 users press the Windows key* (to get the the metro interface) and again type ‘Xlaunch’ and press enter.

    *Assuming you have a Windows button on your keyboard 😉

  3. In the display settings select multiple windows, and set the display number to 10select Multiple Windows and set Display number to 10
  4. Select “Start no client”
  5. Press next (accept the defaults already checked in the wizard)”
  6. Press finish, and VcXsrv should start (if it has started successfully, a new icon will appear in the system tray):
    Press finish
  7. Launch Putty, in the host name box, type the host name (or IP address) of the remote Linux machine you’re connecting to:
    enter the host name in PuTTY

  8. From the configuration options (on the left hand side on the Window)Expand “Connection” and “SSH”, select X11. Check the “Enable X11 forwarding” option box and set the X display location to and press “Open”
    configuring x11 forwarding in PuTTY
  9. You should then be prompted to log into the remote server, enter your credentials, once authenticated, type the name of a program you wish to use e.g gedit, and if configured correctly, the program should launch with a GUI:

, , , , , , ,

9 Responses to Using VcXsrv and PuTTY (remote X for Windows)

  1. FrancoVirga December 23, 2013 at 4:53 pm #

    Very helpful! It works. It is interesting to note that it is mandatory to specify and not localhost in the putty configuration options! Initially I specified localhost ad received all kind of error messages.


    • Alex Cooper December 24, 2013 at 11:21 am #

      Yeah it does seem strange using instead of localhost, but that’s the only way I could get it to work :-)

  2. jim February 13, 2014 at 3:49 am #

    you mentioned that vcxsrv has the embedded ability to use ssh without putty and I was wondering where that option might be and how to configure the option as I have ONE OF THOSE USERS who is insistent on using vnc which I will not allow so I have to make it as simple and straight forward as I can so the DBA has no EXTRA steps to deal with. How can I setup vcxsrv for her so she does not have to jump through the hoops to get a X session running? phuqing dba’s! ARGGGGGGG!


  3. Wayne February 26, 2014 at 4:32 pm #

    Appreciate the article. Worked like a charm. I was wondering if there was any way that I could get the desktop environment to pop up instead of a single instance of a program.

    • Wayne February 26, 2014 at 4:41 pm #

      Nevermind. I figured it out. just used the command ‘gnome-session’ and it worked.

      • Alex Cooper February 27, 2014 at 7:39 pm #

        You beat me to it :-)

  4. Flos April 1, 2014 at 9:50 am #

    Nice article! Thank you! :)

  5. Haik August 1, 2014 at 9:33 am #

    Thank you very much!!

  6. Andrei November 13, 2014 at 10:19 pm #

    Thanks a lot

Leave a Reply