WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Run any Desktop Environment in WSL

Open Guerra24 opened this issue 10 years ago • 345 comments

I finally managed to run Unity inside WSL, this shows that is fully capable of running an entire Desktop Environment, there is some issues with dbus and sometimes VcXsrv crashes, also you can't logout and the only way of exiting is closing compiz.

The fix for dbus is from Reddit Link to post.

EDIT: Images for running in comment below.

ss 2016-07-08 at 08 49 22

The only programs that can be opened are in the panel and there is no way of opening the terminal inside unity, for do this you need to open another bash in Windows, export the display and run gnome-terminal, after that the terminal will show up so lock that in the panel for future use.

EDIT 2: This not applies only for Unity, I also tested xfce4 but in this case only the dbus fix is required for running but this has more bugs.

ss 2016-07-10 at 12 03 33

Guerra24 avatar Jul 09 '16 03:07 Guerra24

Gonna see if I can use the dbus trick to get guake running

fpqc avatar Jul 09 '16 23:07 fpqc

@Guerra24 hi could you upload some images of you doing it please so we can follow it please.

paladox avatar Jul 10 '16 16:07 paladox

I could not get guake running @Guerra24 . Wanna give it a go? It said it failed on come kind of notification plugin for freedesktop not being available.

fpqc avatar Jul 10 '16 16:07 fpqc

Ok @paladox. For Unity: Important: Before doing this apply the fix for dbus that i leaved before. Install VcXsrv and open XLaunch. Leave it like this: 00

Other settings leave as default and finish the configuration. Now open bash, install ubuntu-desktop, unity and ccsm. Export the display and open ccsm. 01 Inside ccsm mouse pointer may be not visible due to icon not loaded. Enable the following plugins. 02 03 (sorry for spanish text mixed with english, some issues with locales). Now close ccsm and open compiz. 04 Compiz will load and seconds later unity will show up. 05 To exit from unity close bash or kill compiz, the only way of closing unity. For XFCE: The same configuration for VcXsrv applies here and only run xfce4-session.

Guerra24 avatar Jul 10 '16 17:07 Guerra24

Any way to achieve a unified desktop environment with windows?

robinduckett avatar Jul 10 '16 17:07 robinduckett

Thank you. @Guerra24 I'm getting something to do with proxy error now.

paladox avatar Jul 10 '16 17:07 paladox

@robinduckett From what i tested no.

Guerra24 avatar Jul 10 '16 17:07 Guerra24

@Guerra24 hi, I'm getting this error

ERROR 2016-07-10 20:14:42 unity.glib.dbus.proxy GLibDBusProxy.cpp:203 Unable to connect to proxy: Could not connect: No such file or directory

WARN 2016-07-10 20:14:56 unity.glib.dbus.proxy GLibDBusProxy.cpp:403 Cannot call method SuspendAllowed: Timed out waiting for proxy

paladox avatar Jul 10 '16 19:07 paladox

@Guerra24 If possible could there be a video please. Your steps are clear but seems I might be doing something wrong.

paladox avatar Jul 10 '16 19:07 paladox

@paladox I have the same errors but i only leave it finish and loads correctly. See: ss 2016-07-10 at 01 23 13

Guerra24 avatar Jul 10 '16 19:07 Guerra24

Oh @Guerra24 thanks, how long did it take for you to load please.

paladox avatar Jul 10 '16 19:07 paladox

Also is it normal to get these errors

ERROR 2016-07-10 20:57:42 unity.session.gnome GnomeSessionManager.cpp:399 UPower call failed: Timed out waiting for proxy WARN 2016-07-10 20:57:42 unity.glib.dbus.proxy GLibDBusProxy.cpp:403 Cannot call method HibernateAllowed: Timed out waiting for proxy ERROR 2016-07-10 20:57:42 unity.session.gnome GnomeSessionManager.cpp:399 UPower call failed: Timed out waiting for proxy WARN 2016-07-10 20:57:42 unity.glib.dbus.proxy GLibDBusProxy.cpp:403 Cannot call method SuspendAllowed: Timed out waiting for prox

paladox avatar Jul 10 '16 19:07 paladox

@paladox Yes, for me it took like 30~ secs from compiz run to unity but sometimes take 1min+ to load.

Guerra24 avatar Jul 10 '16 20:07 Guerra24

@Guerra24 Oh, it is still on that screen 5+ mins now I think 10+ now.

paladox avatar Jul 10 '16 20:07 paladox

@paladox mmm, did you configure correctly the x server, the display, compiz plugins and dbus? because one of these is the cause.

Guerra24 avatar Jul 10 '16 20:07 Guerra24

woks now.

Thankyou very much :).

paladox avatar Jul 10 '16 20:07 paladox

@paladox Wait some time because needs to load nautilus and other stuff.

Guerra24 avatar Jul 10 '16 20:07 Guerra24

@Guerra24 ok, it works. How do I get the background and the terminal working please.

paladox avatar Jul 10 '16 20:07 paladox

@paladox For the terminal open another bash in windows, now inside bash export the display with: export DISPLAY=localhost:0 and run gnome-terminal. The background will be working by default, i didn't nothing to that.

Guerra24 avatar Jul 10 '16 20:07 Guerra24

@Guerra24 thanks, it shows this error

Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Exhausted all available authentication mechanisms (tried: EXTERNAL, DBUS_COOKIE_SHA1, ANONYMOUS) (available: EXTERNAL, DBUS_COOKIE_SHA1, ANONYMOUS)

paladox avatar Jul 10 '16 20:07 paladox