How to display a graphical linux program running on vagrant with Xming
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 :
- Xming : X-Windows terminal emulator (X Server) that runs on Microsoft Windows computers. Xming allows the Windows machines to display a graphical linux program which is basically running on a remote Linux server. Click here to download the latest version
- Putty : to secure an X-Window session using Xming with PuTTY SSH Client. Click here to download the latest version
Required informations :
- Hostname IP
- Port
- Login / Password of the remote machine or SSH KEY
Steps :
- Start Xming
- Open the session configuration with PuTTy (Start PuTTy)
- In PuTTY configuration window, go to Connection → SSH → X11
- Make sure that the Enable X11 forwarding box is checked
- Make sure you have the correct hostname / port filled in the Session Category
- Connect
- 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 :
vagrant up
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