GitBash and XMing are the easiest way to have X11 forwarded from your linux machine to your windows machine. Gone are the days when you install cygwin and related items just so that you can have linux functionalities in the windows machine.
Steps
- First install GitBash
- Then install XMing
- open GitBash and make sure that the DISPLAY is setup
How to setup display
To forward X11 you call
ssh -Y username@server
Also you have to call
export DISPLAY=localhost:0.0
You can also set that in the .bashrc file so that everytime you open the gitbash that file is executed and the variable is set