how to setup windows PuTTY to load x-windows via xming

Once you have XMing installed on windows do as follows:

  1. Set xming shorcut target as:
    [text]”C:\Program Files (x86)\Xming\Xming.exe” :0 -clipboard -multiwindow
    [/text]:0 sets the x,y stating point of the displayed window
  2. Start xming (you should see a xming icon next to clock on desktop.
  3. Start PuTTY and configure as:
    • Select the session
    • On the left go to -> Connection -> SSH -> x11
    • Under x11 Forwarding:
      • Check “Enable X11 Forwarding”
      • X display location: localhost:0 //or whatever was set in step 1
    • Open the session
    • Enter username/password
  4. Execute a relevant x-window application i.e. gedit, firefox, etc.

credit: Novell Cool Solutions: Tip