From 4bd23e223ca80baef6ef841ef7c7d032f583bc63 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 30 Apr 2017 13:55:10 -0400 Subject: [PATCH] x server --- gui.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gui.rst b/gui.rst index 54f82a9..ff8b17b 100644 --- a/gui.rst +++ b/gui.rst @@ -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 `_. + 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 +