Wsl: Can I install GUI-desktop in Linux subsystem?

Created on 4 May 2018  ·  5Comments  ·  Source: MicrosoftDocs/WSL

I want to install LXDE in my Debian subsystem


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Most helpful comment

It is not over until it is over, trying the Xming trick but so far having to do this ...

8964@DESKTOP~$ sudo cinnamon
Cinnamon warning: Software rendering detected: llvmpipe (LLVM 6.0, 256 bits)
Failed to connect to session bus: Failed to execute child process “dbus-launch” (No such file or directory)hack8964@DESKTOP-HDIVCI5:~$

8964@DESKTOP~$
8964@DESKTOP~$ dbus-launch

Command 'dbus-launch' not found, but can be installed with:

sudo apt install dbus-x11

hack8964@DESKTOP-HDIVCI5:~$ sudo apt install dbus-x11
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
dbus-x11
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

All 5 comments

WSL doesn't officially support running X/GUI apps. However, many people enjoy running various Linux desktops/apps on WSL via one of the several available Windows XServers.

Look at the Kali site. They show how to install and run an X-window system as a remote desktop connected through localhost. (With a video of it working.) I haven't (yet) tried it, but it seem an approach that should work.

Download and Install Xming. Then type "export DISPLAY=:0" on Linux and start your GUI soft each time you use GUI soft.

It is not over until it is over, trying the Xming trick but so far having to do this ...

8964@DESKTOP~$ sudo cinnamon
Cinnamon warning: Software rendering detected: llvmpipe (LLVM 6.0, 256 bits)
Failed to connect to session bus: Failed to execute child process “dbus-launch” (No such file or directory)hack8964@DESKTOP-HDIVCI5:~$

8964@DESKTOP~$
8964@DESKTOP~$ dbus-launch

Command 'dbus-launch' not found, but can be installed with:

sudo apt install dbus-x11

hack8964@DESKTOP-HDIVCI5:~$ sudo apt install dbus-x11
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
dbus-x11
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Lots of advice on how to get GUI working in WSL, so I'll mark this issue as closed. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thesmart picture thesmart  ·  6Comments

Lemmmy picture Lemmmy  ·  9Comments

skycommand picture skycommand  ·  7Comments

jplew picture jplew  ·  5Comments

RafneQ picture RafneQ  ·  8Comments