mirror of
https://github.com/not-kennethreitz/wsl-guide.git
synced 2026-06-05 07:06:13 +00:00
x server
This commit is contained in:
@@ -4,7 +4,16 @@ GUI Applications
|
||||
Step 1: Installing an X Server
|
||||
------------------------------
|
||||
|
||||
In order to run GUI applications in WSL, you need to first install an X Server on your Windows machine.
|
||||
I recommend installing `Xming <https://sourceforge.net/projects/xming/>`_.
|
||||
|
||||
Step 2: Set DISPLAY Environment Variable
|
||||
----------------------------------------
|
||||
|
||||
Next, you have to tell your WSL environment to use the X Server by setting the ``DISPLAY`` environment variable.
|
||||
|
||||
I added the following to my ``~/.bashrc``::
|
||||
|
||||
export DISPLAY=:0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user