Skip to content

Run any Desktop Environment in WSL #637

Closed

Description

@Guerra24

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

Activity

  1. fpqc commented on Jul 9, 2016

    @fpqc

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

  2. paladox commented on Jul 10, 2016

    @paladox

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

  3. fpqc commented on Jul 10, 2016

    @fpqc

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

  4. Guerra24 commented on Jul 10, 2016

    @Guerra24
    Author

    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.

  5. robinduckett commented on Jul 10, 2016

    @robinduckett

    Any way to achieve a unified desktop environment with windows?

  6. paladox commented on Jul 10, 2016

    @paladox

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

  7. Guerra24 commented on Jul 10, 2016

    @Guerra24
    Author

    Robin Duckett (@robinduckett) From what i tested no.

  8. changed the title [-]Running Unity Desktop in WSL[/-] [+]Run any Desktop Environment in WSL[/+] on Jul 10, 2016
  9. paladox commented on Jul 10, 2016

    @paladox

    Lili (@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

  10. paladox commented on Jul 10, 2016

    @paladox

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

  11. Guerra24 commented on Jul 10, 2016

    @Guerra24
    Author

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

  12. paladox commented on Jul 10, 2016

    @paladox

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

  13. paladox commented on Jul 10, 2016

    @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

  14. Guerra24 commented on Jul 10, 2016

    @Guerra24
    Author

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

  15. paladox commented on Jul 10, 2016

    @paladox

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

  16. 321 remaining items

  17. TomatoJing commented on Jul 4, 2019

    @TomatoJing

    Lili (@Guerra24) My desktop isn't loading right
    image

    me too, if you sloved the problem,please tell me

  18. lennondotw commented on Jul 6, 2019

    @lennondotw

    @ Guerra24我的桌面没有正确加载
    图片

    Me too.

  19. lewisdonofrio commented on Jul 6, 2019

    @lewisdonofrio

    How do you start VcXsrv I use:
    "C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -clipboard -wgl

    --full write up at tinyurl.com/donofrioworkdesk

  20. Ashestar commented on Sep 1, 2019

    @Ashestar

    @ Guerra24我的桌面没有正确加载
    图片

    Me too.

    Lili (@Guerra24) My desktop isn't loading right
    image

    me too, if you sloved the problem,please tell me

    so do you guys solve the problem? It's okay for me to use xfce4, but I have the same problem like you when using Ubuntu-desktop.

  21. Guerra24 commented on Sep 2, 2019

    @Guerra24
    Author

    Awakened Redstone (@Awakened-Redstone) TomatoJing @ReekyStive Travis (@travst) and everyone who still reads this.

    I can't just keep ignoring the comments... sorry. It's been a while since the last time I even tried this, IIRC with 16.04 it had the missing desktop. Since the initial research and announcement here I haven't work on it, apart from that single test, because there is nothing more to do. From here it's all on side of the X-Server you're using if they decide to improve or implement the missing stuff.

    Also I'm sorry for the insane amount of comments and issues opened here due to this, I did expect this to get attention after the articles in different pages but didn't expect to be that amount, and the off-topic nature of them.

    I will be unsubscribing from the issue, if you need help ask people who knows better how to deal with the Run a DE on WSL thing, they know better and have more experience than me.

  22. figozhang commented on Jan 18, 2020

    @figozhang

    my host PC display resolution is 1920x1080, but in Xlaunch the resolution only 1280x720, how let it support 1920x1080?

  23. lewisdonofrio commented on Jan 18, 2020

    @lewisdonofrio

    I use a taskbar shortcut to ""C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -clipboard -nowgl" that gives me good daily windowed use ( tinyurl.com/donofrioworkremmina2020 )

  24. m-salman-afzal commented on Apr 7, 2020

    @m-salman-afzal

    I got WSL 2 working in X-server (VcXsrv) from here: https://autoize.com/xfce4-desktop-environment-and-x-server-for-ubuntu-on-wsl-2/
    But the problem is, if you get disconnected from the internet, then VcXsrv crashes only showing the wallpaper and when you reconnect, after some time, it becomes like this:
    Capture

  25. lewisdonofrio commented on Apr 7, 2020

    @lewisdonofrio

    I've use xfce4 daily for three years now in wsl1 w/ubuntu18.04 - my steps are in the raw document located at tinyurl.com/donofrioworkremmina2020 you need to export env's and start services like dbus to have true happiness. I think we are one of 10k folks doing full gui within w10 ;)
    image

  26. zhcosin commented on Jun 7, 2020

    @zhcosin

    Lili (@Guerra24) My desktop isn't loading right
    image

    Me too, but Xfce work well.

  27. adhadse commented on Oct 12, 2020

    @adhadse

    how would you start a Kubuntu-desktop. I installed it via
    sudo apt-get install kubuntu-desktop but can't really get it working with VcXsrv. Any help.
    I tried startkde startkubuntu startkubunutu-desktop.
    WSL 2 says start**** command not found.

  28. m-salman-afzal commented on Oct 12, 2020

    @m-salman-afzal

    The thing is, the GUI support is meant for applications, not for an entire desktop experience. For starters, only xfce4 is supported and the process is even listed on the official ubuntu website under their WSL section. I've also tried to run multiple flavors on it but to no avail since there is not much discussion on it. Also, the essence is the file system which can be accessed with \wsl$ in File Explorer. So, I think instead of giving time to run an entire desktop on WSL, try to do your work with the existing framework since it is already pretty good.

  29. lewisdonofrio commented on Oct 12, 2020

    @lewisdonofrio

    how would you start a Kubuntu-desktop. I installed it via
    sudo apt-get install kubuntu-desktop but can't really get it working with VcXsrv. Any help.
    I tried startkde startkubuntu startkubunutu-desktop.
    WSL 2 says start**** command not found.

    I do not know if it works with WSL1 (I see your WSL2 but I'm still WSL1 and only XFCE4 has worked for my daily needs) https://www.tinyurl.com/donofrioworkremmina2020 has my "raw" steps ensure you export your display and then it should start one you start dbus and the like.

  30. adhadse commented on Oct 12, 2020

    @adhadse

    I don't know what BUT somehow kde is now working. I tried xfce4 but kde started.. ?
    image

  31. adhadse commented on Oct 12, 2020

    @adhadse

    While there are some stuff of XFCE4 like the top bar.. i don't know what crap I have done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions