Always run apt update and apt upgrade before and after installation.
Notes: Install only 64bit binaries because WSL is now only available in 64bit Windows OS. export LIBGL_ALWAYS_INDIRECT=1 ( echo 'export LIBGL_ALWAYS_INDIRECT=1' > ~/.bashrc)Įxecute Atom/VSCode: Type atom to execute Atom text editor or code to execute VS Code.export DISPLAY=:0 ( echo 'export DISPLAY=:0' > ~/.bashrc).Add the following environment variables to your. Execute xlaunch.exe with default settings (Display Number -1or 0). If there is any error with libgtk-x11-2.0 library install it with apt install libgtk2.0-0 command ( source).Ĭonfigure X server: Download VcXsrv and install it. Install it with dpkg -i /path/to/code_b command. VS Code: Download Visual Studio Code DEB package from VScode link. If there is any dependency error install those packages with apt-get install -f command ( source). Install it with dpkg -i /path/to/b command. Neither was successful.Ītom: Download Atom DEB package from GitHub: Atom releases.
I tried 18.04, using latest Atom release and both with and without xfce4.
So in my latest test I am not using any desktop environment, but instead start the applications directly into DISPLAY=:0.0 so Xming could pick it up, which it does for gvim. Or one could use Windows 10 build 17627 which was never released as far as I can tell. This could be resolved when running sudo apt remove -purge libpulse0 but xfce4 depends on it. I tried using xfce4, but got the following error when trying to start Atom:Īssertion 'pthread_mutex_unlock(&m->mutex) = 0' failed at pulsecore/mutex-posix.c:108, function pa_mutex_unlock().I am using the default Ubuntu distribution for WSL.I am using Windows 10 Pro build 17134.To put that into perspective, running gvim works without a problem: Running atom or code just doesn't do anything and instantly returns. Since it has a better market share coverage, Visual Studio Code holds the 4th spot in Slintel’s Market Share Ranking Index for the IDEs And Text Editors category, while Atom holds the 22nd spot. In my last approach, following this overly simple guide, I don't get any error messages. In the IDEs And Text Editors market, Visual Studio Code has a 5.96 market share in comparison to Atom’s 0.46. I tried to follow a handful of them, but each of them had something in common: Both Linux native Github Atom and Linux native Visual Studio Code refused to open.
There is a couple of guides out there on how to get GUI applications running in Linux Subsystem for Windows (WSL).