To do this, run the following command in the Bash environment: export DISPLAY=:0 If you don’t do this, graphical applications will simply fail to launch. Now, you’ll need to set the “DISPLAY” environment variable to point at the X server running on your Windows 10 PC. Step Three: Set Your Display Environment Variable It will go through the installation process in the command line window, just like it does on Ubuntu.
#Xming tutorial install
You’d run the following command in the Bash window: sudo apt-get install vim-gtk For example, let’s say you’d want to install the graphical, GTK-based vim editor.
![xming tutorial xming tutorial](https://www.technig.com/wp-content/uploads/2017/12/final-project-without-color-corrections.jpg)
You can install graphical Linux desktop programs like you can any other program, using the apt-get command in the Ubuntu-based Bash environment.
#Xming tutorial how to
RELATED: How to Install Linux Software in Windows 10's Ubuntu Bash Shell It will then automatically launch and run in your system tray, waiting for you to run graphical programs. The installation process is simple: You can just accept the default settings. Download it and install it on your Windows 10 PC. There are several different X servers you could install on Windows, but we recommend Xming. Everything should work fine, assuming those applications don’t depend on Linux system calls that the Windows Subsystem for Linux doesn’t yet support. If you install an X server application on your Windows desktop and change a setting in the Bash shell, applications will send their graphical output to the X server application and they’ll appear on your Windows desktop. Typically, these are used to render Linux applications running on other computers–the “X11” protocol is rather old and was designed with the ability run over a network connection. There are X server applications you can install on a Windows desktop, however.
![xming tutorial xming tutorial](https://images.slideplayer.com/25/8072635/slides/slide_2.jpg)
On a typical Linux desktop, that “X server” automatically appears when you boot your computer and it renders the entire desktop and the applications you use.īut try opening a graphical application from Bash on Windows, though, and it will complain that it can’t open a display. Microsoft doesn’t want to spend any time working on graphical software, as this feature is intended for command-line developer tools. But the main technical reason that graphical applications aren’t supported is that they require an “X server” to provide that graphical interface. That “Bash on Ubuntu on Windows” environment works thanks to the underlying Windows Subsystem for Linux. This includes the exact same binaries–or applications–that would run on Ubuntu. When you run a Linux distribution like Ubuntu, it downloads and installs a complete Ubuntu user space image on your computer.