Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run any Desktop Environment in WSL #637

Closed
Guerra24 opened this issue Jul 9, 2016 · 345 comments
Closed

Run any Desktop Environment in WSL #637

Guerra24 opened this issue Jul 9, 2016 · 345 comments

Comments

@Guerra24
Copy link

@Guerra24 Guerra24 commented Jul 9, 2016

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

@fpqc
Copy link

@fpqc fpqc commented Jul 9, 2016

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

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

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

@fpqc
Copy link

@fpqc fpqc commented Jul 10, 2016

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.

@Guerra24
Copy link
Author

@Guerra24 Guerra24 commented Jul 10, 2016

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.

@robinduckett
Copy link

@robinduckett robinduckett commented Jul 10, 2016

Any way to achieve a unified desktop environment with windows?

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

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

@Guerra24
Copy link
Author

@Guerra24 Guerra24 commented Jul 10, 2016

@robinduckett From what i tested no.

@Guerra24 Guerra24 changed the title Running Unity Desktop in WSL Run any Desktop Environment in WSL Jul 10, 2016
@paladox
Copy link

@paladox paladox commented Jul 10, 2016

@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
Copy link

@paladox paladox commented Jul 10, 2016

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

@Guerra24
Copy link
Author

@Guerra24 Guerra24 commented Jul 10, 2016

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

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

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

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

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

@Guerra24
Copy link
Author

@Guerra24 Guerra24 commented Jul 10, 2016

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

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

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

@Guerra24
Copy link
Author

@Guerra24 Guerra24 commented Jul 10, 2016

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

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

woks now.

Thankyou very much :).

@Guerra24
Copy link
Author

@Guerra24 Guerra24 commented Jul 10, 2016

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

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

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

@Guerra24
Copy link
Author

@Guerra24 Guerra24 commented Jul 10, 2016

@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.

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

@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)

@Guerra24
Copy link
Author

@Guerra24 Guerra24 commented Jul 10, 2016

@paladox !? i didn't see that error before. For me only shows this:
ss 2016-07-10 at 02 28 57
But if not load try using another terminal like xfce4, etc.

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

Oh ok

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

Yep using a different one such as xfce4 worked. Thankyou very much :).

@paladox
Copy link

@paladox paladox commented Jul 10, 2016

@Guerra24 I wonder why gnome-terminal wont start for me.

@therealkenc
Copy link
Collaborator

@therealkenc therealkenc commented Jul 10, 2016

@Guerra24, you mention in your edited OP that "there is no way of opening the terminal inside unity". You can launch your first terminal by clicking on Files then Computer. Then click the search icon, and type gnome-terminal in the box. Double-click on gnome-terminal and you're golden. There is no need to open another bash shell.

@Manouchehri
Copy link
Contributor

@Manouchehri Manouchehri commented Jul 11, 2016

@paladox Try another terminal, ideally one that doesn't use a daemon.

@ethanhs
Copy link

@ethanhs ethanhs commented Jul 11, 2016

Excellent work @Guerra24! I maintain a list of programs that have been tested on the WSL. Would you mind adding your experience to the list? It'd be appreciated !

@paladox
Copy link

@paladox paladox commented Jul 11, 2016

@Manouchehri ok, thanks I tried xfce4-terminal an worked.

@iahu
Copy link

@iahu iahu commented Jul 11, 2016

good news

@lewisdonofrio
Copy link

@lewisdonofrio lewisdonofrio commented Nov 20, 2018

Perhaps do not use compwiz (I use xfce4 fwiw)

@matawushepherd
Copy link

@matawushepherd matawushepherd commented Nov 28, 2018

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package unity is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'unity' has no installation candidate
E: Unable to locate package compizconfig-settings-manager

@duester
Copy link

@duester duester commented Dec 1, 2018

I have exactly the same issue like @doohee1001

@CyangYu
Copy link

@CyangYu CyangYu commented Dec 27, 2018

The MATE desktop is so good and work well, but you need start 'mate-session' in other wsl-terminal

tim 20181227135351

@nyco-54
Copy link

@nyco-54 nyco-54 commented May 31, 2019

sudo apt-get install gnome
and tape unity

@Awakened-Redstone
Copy link

@Awakened-Redstone Awakened-Redstone commented Jun 15, 2019

@Guerra24 My desktop isn't loading right
image

@TomatoJing
Copy link

@TomatoJing TomatoJing commented Jul 4, 2019

@Guerra24 My desktop isn't loading right
image

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

@reekystive
Copy link

@reekystive reekystive commented Jul 6, 2019

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

Me too.

@lewisdonofrio
Copy link

@lewisdonofrio lewisdonofrio commented Jul 6, 2019

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

@Ashestar
Copy link

@Ashestar Ashestar commented Sep 1, 2019

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

Me too.

@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.

@Guerra24
Copy link
Author

@Guerra24 Guerra24 commented Sep 2, 2019

@Awakened-Redstone @TomatoJing @reekystive @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.

@figozhang
Copy link

@figozhang figozhang commented Jan 18, 2020

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

@lewisdonofrio
Copy link

@lewisdonofrio lewisdonofrio commented Jan 18, 2020

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 )

@muhammadsalmanafzal
Copy link

@muhammadsalmanafzal muhammadsalmanafzal commented Apr 7, 2020

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

@lewisdonofrio
Copy link

@lewisdonofrio lewisdonofrio commented Apr 7, 2020

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

@zhcosin
Copy link

@zhcosin zhcosin commented Jun 7, 2020

@Guerra24 My desktop isn't loading right
image

Me too, but Xfce work well.

@adhadse
Copy link

@adhadse adhadse commented Oct 12, 2020

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.

@muhammadsalmanafzal
Copy link

@muhammadsalmanafzal muhammadsalmanafzal commented Oct 12, 2020

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.

@lewisdonofrio
Copy link

@lewisdonofrio lewisdonofrio commented Oct 12, 2020

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.

@adhadse
Copy link

@adhadse adhadse commented Oct 12, 2020

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

@adhadse
Copy link

@adhadse adhadse commented Oct 12, 2020

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet