How to display a graphical linux program running on vagrant with Xming

Taieb Chaâbini
2 min readDec 24, 2019

--

After reading this you will be able to display a graphic linux program running on vagrant or a remote linux server. The output will appear directly in your windows 10.

We will use :

Required informations :

  1. Hostname IP
  2. Port
  3. Login / Password of the remote machine or SSH KEY

Steps :

  1. Start Xming
  2. Open the session configuration with PuTTy (Start PuTTy)
  3. In PuTTY configuration window, go to Connection → SSH → X11
  4. Make sure that the Enable X11 forwarding box is checked
  5. Make sure you have the correct hostname / port filled in the Session Category
  6. Connect
  7. Launch any GUI application from PuTTY and it will appear on your windows 10 screen !

If you dont use vagrant as remote machine you can pass this part

To get the required informations with vagrant :

  1. vagrant up
  2. vagrant ssh-config

In this tutorial we will assume that the Host Name is 127.0.0.1 and port is : 2222

PuTTy configuration should be like this :

  • Connect to the remote machine with PuTTy
  • Launch your application on the PuTTy command line ./yourprogram and it will appear on your windows 10

--

--