microsoft / WSL

Issues found on WSL

Home Page:https://docs.microsoft.com/windows/wsl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run any Desktop Environment in WSL

Guerra24 opened this issue · comments

commented

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

commented

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

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

commented

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.

commented

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.

Any way to achieve a unified desktop environment with windows?

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

commented

@robinduckett From what i tested no.

@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

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

commented

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

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

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

commented

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

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

commented

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

woks now.

Thankyou very much :).

commented

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

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

commented

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

commented

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

Oh ok

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

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

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

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

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 !

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

commented

good news

commented

I got guake running without loading a DE.

First, you need to load up guake's configuration window with
guake -p
after doing the dbus edit, then disable notification on startup, since nobody has written a Linux-side config file that will pipe Linux notifications to Windows ones, although I bet that using something like @xilun 's cbwin 0.6 ( https://github.com/xilun/cbwin ) , it can be done (write a windows-side application that just pushes notifications, for example).

However, I also got tilda working, and the only problem I've had with it is that it's exporting the wrong TERM value, and Tilda looks a little bit nicer because it has a borderless version that looks a lot nicer in Windows. Also, since you can set a custom browser with it, you can use the following command as your browser command (with Xilun's cbwin 0.6):

wstart : {browsername}

(where {browsername} is the command you use to run your browser with the Run dialog in Windows, although I don't think this will work with microsoft-edge because of its launch syntax (microsoft-edge:url))

which will actually give you link-clicking integration of Tilda with your windows browser.

The problem with both of them that I've experienced is that their keybinds on the linux side do not get bound by Xming, so I've had to pipe keys into the hidden window Xming:0.0 with autohotkey, which also causes other problems.

What Bash command would you use after installing kde-desktop and kdm to run the DE?

@robinduckett: Multiple windows already mix nicely with Windows, no need to run a full DE.

Hopper

install synaptic (GUI to install programs) works perfectly

commented

I don't want to say anything, can only say that windows is getting worse and worse.

@x373241884y: Which windows?

It doesn't work for me. I get:

compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend     : ini
compizconfig - Info: Integration : true
compizconfig - Info: Profile     : default
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Info: Loading plugin: opengl
compiz (core) - Info: Starting plugin: opengl
Compiz (opengl) - Fatal: GLX_EXT_texture_from_pixmap is missing
compiz (core) - Info: Loading plugin: place
compiz (core) - Info: Starting plugin: place
compiz (core) - Info: Loading plugin: regex
compiz (core) - Info: Starting plugin: regex
compiz (core) - Info: Loading plugin: resize
compiz (core) - Info: Starting plugin: resize
compiz (core) - Info: Loading plugin: snap
compiz (core) - Info: Starting plugin: snap
compiz (core) - Info: Loading plugin: animation
compiz (core) - Info: Starting plugin: animation
compiz (core) - Info: Loading plugin: commands
compiz (core) - Info: Starting plugin: commands
compiz (core) - Info: Loading plugin: compiztoolbox
compiz (core) - Info: Starting plugin: compiztoolbox
compiz (core) - Info: Loading plugin: copytex
compiz (core) - Info: Starting plugin: copytex
compiz (core) - Info: Loading plugin: fade
compiz (core) - Info: Starting plugin: fade
compiz (core) - Info: Loading plugin: imgpng
compiz (core) - Info: Starting plugin: imgpng
compiz (core) - Info: Loading plugin: move
compiz (core) - Info: Starting plugin: move
compiz (core) - Info: Loading plugin: scale
compiz (core) - Info: Starting plugin: scale
compiz (core) - Info: Loading plugin: unitymtgrabhandles
compiz (core) - Info: Starting plugin: unitymtgrabhandles
compiz (core) - Info: Loading plugin: expo
compiz (core) - Info: Starting plugin: expo
compiz (core) - Info: Loading plugin: unityshell
compiz (core) - Info: Starting plugin: unityshell

(compiz:29013): GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but ECHILD was received by waitpid(). Most likely the process is ignoring SIGCHLD, or some other thread is invoking waitpid() with a nonpositive first argument; either behavior can break applications that use g_spawn_sync either directly or indirectly.
WARN  2016-07-12 17:12:08 unity.screen UScreen.cpp:126 UScreen::GetMonitorName: Failed to get monitor name for monitor0

(compiz:29013): dconf-WARNING **: failed to commit changes to dconf: Error sending credentials: Error sending message: Invalid argument

(compiz:29013): dconf-WARNING **: failed to commit changes to dconf: Error sending credentials: Error sending message: Invalid argument

(compiz:29013): dconf-WARNING **: failed to commit changes to dconf: Error sending credentials: Error sending message: Invalid argument

(compiz:29013): GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but ECHILD was received by waitpid(). Most likely the process is ignoring SIGCHLD, or some other thread is invoking waitpid() with a nonpositive first argument; either behavior can break applications that use g_spawn_sync either directly or indirectly.
WARN  2016-07-12 17:12:08 unity.glib.dbus.server GLibDBusServer.cpp:579 Can't register object 'org.gnome.Shell' yet as we don't have a connection, waiting for it...
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
ERROR 2016-07-12 17:12:09 unity.debug.interface DebugDBusInterface.cpp:216 Unable to load entry point in libxpathselect: libxpathselect.so.1.4: cannot open shared object file: No such file or directory
ERROR 2016-07-12 17:12:09 unity.launcher.entry.remote.model LauncherEntryRemoteModel.cpp:50 Unable to connect to session bus: Error sending credentials: Error sending message: Invalid argument
CRIT  2016-07-12 17:12:09 unity <unknown>:0 Unable to get org.ayatana.bamf matcher: Error sending credentials: Error sending message: Invalid argument
Trace/breakpoint trap (core dumped)

I get this error when I run compiz. I'm guessing is a graphic driver isssue (Nvidia 960m)

amanze@AMANZEPC:/mnt/c/Users/Amanze$ compiz
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend : ini
compizconfig - Info: Integration : true
compizconfig - Info: Profile : default
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Info: Loading plugin: opengl
compiz (core) - Info: Starting plugin: opengl
libGL error: failed to load driver: swrast
Compiz (opengl) - Fatal: GLX_EXT_texture_from_pixmap is missing
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server "localhost:0"
after 730 requests (730 known processed) with 38 events remaining.

Then "XLaunch has stopped working"

boot stuck at : compiz (opengl) - Error: GL::textureFromPixmap is not supported.

rauf@SURFACE:/mnt/c/Users/rauf$ compiz
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend : ini
compizconfig - Info: Integration : true
compizconfig - Info: Profile : default
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Info: Loading plugin: opengl
compiz (core) - Info: Starting plugin: opengl
Compiz (opengl) - Fatal: GLX_EXT_texture_from_pixmap is missing
compiz (core) - Info: Loading plugin: place
compiz (core) - Info: Starting plugin: place
compiz (core) - Info: Loading plugin: resize
compiz (core) - Info: Starting plugin: resize
compiz (core) - Info: Loading plugin: snap
compiz (core) - Info: Starting plugin: snap
compiz (core) - Info: Loading plugin: commands
compiz (core) - Info: Starting plugin: commands
compiz (core) - Info: Loading plugin: compiztoolbox
compiz (core) - Info: Starting plugin: compiztoolbox
compiz (core) - Info: Loading plugin: copytex
compiz (core) - Info: Starting plugin: copytex
compiz (core) - Info: Loading plugin: fade
compiz (core) - Info: Starting plugin: fade
compiz (core) - Info: Loading plugin: imgpng
compiz (core) - Info: Starting plugin: imgpng
compiz (core) - Info: Loading plugin: move
compiz (core) - Info: Starting plugin: move
compiz (core) - Info: Loading plugin: scale
compiz (core) - Info: Starting plugin: scale
compiz (core) - Info: Loading plugin: expo
compiz (core) - Info: Starting plugin: expo
compiz (opengl) - Error: GL::textureFromPixmap is not supported.

In xlaunch you need to select one large window otherwise it will fail.

But then you have to wait a while the first time for it to work.

Did you follow how it was done #637 (comment) like that please.

This works with Ubuntu 16.04 lts.

Oh, I'm not sure then maybe @Guerra24 will know how to fix that.

@robinduckett Re: unified desktop environment, wouldn't that just be running an X server (without a Linux DE)? If you want a Linux DE to manage Windows windows, I think that's impossible until they allow WSL to interact with the rest of the Windows filesystem and outside Windows processes. Which I believe they have stated will not be possible (for the upcoming release).

It might be possible if you could find a native Windows-compiled X-based window manager, then you could hook that up to the WSL X server... I think something similar is available via Cygwin? Or, perhaps you could get something like RDP working inside WSL. But since the filesystems and processes can only interact "remotely" (i.e. via sockets), it wouldn't really be unified so much as welded together.

commented

@wb9688: Apply the fix for dbus from reddit.
@darlingtonamz & @mraufrufi: Are you using VcXsrv? Because its the only Xserver that runs unity, other option is a driver error and in that case i don't know what is the possible fix.

commented

Anyone else having really ugly font rendering in guake, gnome-terminal, and tilda?

If yes, any idea how to fix?

I'm getting a similar issue to others, where compiz hangs or stops after noting that

compiz (opengl) - Error: GL::textureFromPixmap is not supported.

Running Nvidia graphics, could be there's an issue there?

edit: trying to close vcxsrv tells me that there are clients connected to the server

I get the GL::textureFromPixmap is not supported problem too but no hangs, for what it's worth. I would be curious to know what the root cause of that error is though. If it is a VcXsrv problem or a Unity problem maybe it can be patched. But it isn't likely a WSL problem. WSL doesn't even know your computer has a graphics card.

commented

@rationalis you could probably do it by modifying Unity's or Cinnamon's WindowList to pop Windows native windows up over a fullscreen X server together with a socket on the Windows side providing the Windows Window list and Window status, but this would be very hacky.

Much better off running X applications separate entirely from a DE in the default Vcxsrv mode. Anyway, the Windows DE is much nicer imo than any of the Linux ones (the best Linux ones look like the Windows DE anyway).

Ideally, the fine people who maintain Vcxsrv could help someone write a module for things like global keybinds and Window activation state.

Great, i can finally use Unity on stable Windows. Oh wait, i would rather have windows on stable linux.

Seriously guys and girls, this is fantastic. If i can run IDJC on Windows "natively", that would be fantastic.

Any idea guys ( compiz not running properly) ?:

root@ELDADH-VAIO:~# compiz
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend : ini
compizconfig - Info: Integration : true
compizconfig - Info: Profile : default
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Fatal: No composite extension
compiz (core) - Error: Plugin initScreen failed: composite
compiz (core) - Error: Failed to start plugin: composite
compiz (core) - Info: Unloading plugin: composite
compiz (core) - Info: Loading plugin: opengl
compiz (core) - Info: Starting plugin: opengl
compiz (core) - Error: Plugin 'composite' not loaded.

compiz (core) - Error: Plugin init failed: opengl
compiz (core) - Error: Failed to start plugin: opengl
compiz (core) - Info: Unloading plugin: opengl
compiz (core) - Info: Loading plugin: place
compiz (core) - Info: Starting plugin: place
compiz (core) - Info: Loading plugin: resize
compiz (core) - Info: Starting plugin: resize
compiz (core) - Fatal: No composite extension
compiz (core) - Fatal: No composite extension
Segmentation fault (core dumped)

Tried to run gnome on ubuntu 16.04

@Guerra24 It works now, but it's slow as hell…

@Guerra24 Thanks. It worked

commented

I got fonts working correctly. Had to install the Gnome-Settings-Daemon in order for the libvte-based terminals to have antialiased and hinted fonts. I got a command off the Arch wiki that I run on startup that runs the daemon in a certain way that seems to make it all work.

commented

@wb9688: It's slow because there is partial opengl support and the Copy to Texture plugin.
@eldadh: Use VcXsrv, Xming will not work (if you are using that).
@therealkenc: Probably a VcXsrv + Unity error when try to use native opengl.
@HotelCalifornia: I'm using nvidia, are you using VcXsrv?

Ubuntu's Unity (in 14.04+) assumes that you have hardware-accelerated graphics. If you don't, or if they don't work well, it's extremely slow. As @Guerra24 says, it's probably not working well in this environment. This is also a problem running Ubuntu in certain VM environments.

Ubuntu's Classic (Gnome 2) desktop should be faster. Or xfce, etc. Probably even KDE, if you install the Kubuntu packages. (Disclaimer, I haven't tried.)

What exactly is this Copy to Texture plugin? Would disabling help or just break more things?

commented

@HotelCalifornia That plugin is the "software" version of the GL::textureFromPixmap (Disclaimer: Not sure, if I'm wrong correct me) Works in the same way but a lot slower and without that transparent stuff will not render correctly.

So are you saying I can disable it and rely on whatever hardware implementation I have?

commented

@HotelCalifornia No, you can't because the VcXsrv don't supports GL:textureFromPixmap.

fails here too:

Info: Loading plugin: unityshell
compiz (core) - Info: Starting plugin: unityshell

(compiz:4030): GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but ECHILD was received by waitpid(). Most likely the process is ignoring SIGCHLD, or some other thread is invoking waitpid() with a nonpositive first argument; either behavior can break applications that use g_spawn_sync either directly or indirectly.
WARN 2016-07-14 13:41:16 unity.screen UScreen.cpp:126 UScreen::GetMonitorName: Failed to get monitor name for monitor0

(compiz:4030): dconf-WARNING **: failed to commit changes to dconf: Error sending credentials: Error sending message: Invalid argument

(compiz:4030): dconf-WARNING **: failed to commit changes to dconf: Error sending credentials: Error sending message: Invalid argument

(compiz:4030): dconf-WARNING **: failed to commit changes to dconf: Error sending credentials: Error sending message: Invalid argument
WARN 2016-07-14 13:41:16 unity.glib.dbus.server GLibDBusServer.cpp:579 Can't register object 'org.gnome.Shell' yet as we don't have a connection, waiting for it...
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
ERROR 2016-07-14 13:41:17 unity.debug.interface DebugDBusInterface.cpp:216 Unable to load entry point in libxpathselect: libxpathselect.so.1.4: cannot open shared object file: No such file or directory
ERROR 2016-07-14 13:41:17 unity.launcher.entry.remote.model LauncherEntryRemoteModel.cpp:50 Unable to connect to session bus: Error sending credentials: Error sending message: Invalid argument
CRIT 2016-07-14 13:41:17 unity :0 Unable to get org.ayatana.bamf matcher: Error sending credentials: Error sending message: Invalid argument
Trace/breakpoint trap (core dumped)

I used the dbus fix, and now I am getting:

compiz (opengl) - Error: GL::textureFromPixmap is not supported.
ERROR 2016-07-14 14:35:22 unity.glib.dbus.proxy GLibDBusProxy.cpp:203 Unable to connect to proxy: Could not connect: No such file or directory
ERROR 2016-07-14 14:35:22 unity.glib.dbus.proxy GLibDBusProxy.cpp:203 Unable to connect to proxy: Could not connect: No such file or directory
ERROR 2016-07-14 14:35:22 unity.glib.dbus.proxy GLibDBusProxy.cpp:203 Unable to connect to proxy: Could not connect: No such file or directory
ERROR 2016-07-14 14:35:22 unity.glib.dbus.proxy GLibDBusProxy.cpp:203 Unable to connect to proxy: Could not connect: No such file or directory
ERROR 2016-07-14 14:35:23 unity.glib.dbus.proxy GLibDBusProxy.cpp:203 Unable to connect to proxy: Could not connect: No such file or directory
ERROR 2016-07-14 14:35:23 unity.session.gnome GnomeSessionManager.cpp:412 logind CanHibernate call failed: Timed out waiting for proxy
WARN 2016-07-14 14:35:23 unity.glib.dbus.proxy GLibDBusProxy.cpp:399 Cannot call method CanHibernate: Timed out waiting for proxy
ERROR 2016-07-14 14:35:23 unity.session.gnome GnomeSessionManager.cpp:412 logind CanSuspend call failed: Timed out waiting for proxy
WARN 2016-07-14 14:35:23 unity.glib.dbus.proxy GLibDBusProxy.cpp:399 Cannot call method CanSuspend: Timed out waiting for proxy
WARN 2016-07-14 14:35:24 unity.glib.dbus.proxy GLibDBusProxy.cpp:196 Unable to connect to proxy: "Could not connect: No such file or directory"... Trying to reconnect (attempt 1)
WARN 2016-07-14 14:35:24 unity.glib.dbus.proxy GLibDBusProxy.cpp:196 Unable to connect to proxy: "Could not connect: No such file or directory"... Trying to reconnect (attempt 1)
WARN 2016-07-14 14:35:27 unity.glib.dbus.proxy GLibDBusProxy.cpp:196 Unable to connect to proxy: "Could not connect: No such file or directory"... Trying to reconnect (attempt 2)
WARN 2016-07-14 14:35:27 unity.glib.dbus.proxy GLibDBusProxy.cpp:196 Unable to connect to proxy: "Could not connect: No such file or directory"... Trying to reconnect (attempt 2)
WARN 2016-07-14 14:35:30 unity.glib.dbus.proxy GLibDBusProxy.cpp:196 Unable to connect to proxy: "Could not connect: No such file or directory"... Trying to reconnect (attempt 3)
WARN 2016-07-14 14:35:30 unity.glib.dbus.proxy GLibDBusProxy.cpp:196 Unable to connect to proxy: "Could not connect: No such file or directory"... Trying to reconnect (attempt 3)
WARN 2016-07-14 14:35:32 nux.inputmethod.ibus InputMethodIBus.cpp:63 Impossible to connect to connect to ibus
WARN 2016-07-14 14:35:34 unity.glib.dbus.proxy GLibDBusProxy.cpp:196 Unable to connect to proxy: "Could not connect: No such file or directory"... Trying to reconnect (attempt 4)
WARN 2016-07-14 14:35:34 unity.glib.dbus.proxy GLibDBusProxy.cpp:196 Unable to connect to proxy: "Could not connect: No such file or directory"... Trying to reconnect (attempt 4)
WARN 2016-07-14 14:35:36 unity.glib.dbus.proxy GLibDBusProxy.cpp:196 Unable to connect to proxy: "Could not connect: No such file or directory"... Trying to reconnect (attempt 5)
WARN 2016-07-14 14:35:36 unity.glib.dbus.proxy GLibDBusProxy.cpp:196 Unable to connect to proxy: "Could not connect: No such file or directory"... Trying to reconnect (attempt 5)
ERROR 2016-07-14 14:35:39 unity.glib.dbus.proxy GLibDBusProxy.cpp:203 Unable to connect to proxy: Could not connect: No such file or directory
ERROR 2016-07-14 14:35:39 unity.glib.dbus.proxy GLibDBusProxy.cpp:203 Unable to connect to proxy: Could not connect: No such file or directory
ERROR 2016-07-14 14:35:53 unity.session.gnome GnomeSessionManager.cpp:392 UPower call failed: Timed out waiting for proxy
WARN 2016-07-14 14:35:53 unity.glib.dbus.proxy GLibDBusProxy.cpp:399 Cannot call method HibernateAllowed: Timed out waiting for proxy
ERROR 2016-07-14 14:35:53 unity.session.gnome GnomeSessionManager.cpp:392 UPower call failed: Timed out waiting for proxy
WARN 2016-07-14 14:35:53 unity.glib.dbus.proxy GLibDBusProxy.cpp:399 Cannot call method SuspendAllowed: Timed out waiting for proxy
WARN 2016-07-14 14:36:07 unity.dash.view DashView.cpp:1257 Search failed ''=> Timed out waiting for scope proxy connection
WARN 2016-07-14 14:36:07 unity.dash.scopeproxy ScopeProxy.cpp:516 Could not search '' on home.scope => Timed out waiting for scope proxy connection
WARN 2016-07-14 14:36:12 unity.iconloader IconLoader.cpp:755 Unable to load icon file:/// at size -1x22: Can't open directory

** (unity-control-center:165): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.
compiz (opengl) - Error: GL::textureFromPixmap is not supported.

It worked for me. Make sure you already have the dbus trick applied and closed all bash.exe instances before installing anything with apt.
Also I increased the pagefile.sys size of my system partition although this may be not related.

Looks like WiiU get supported PS4 games
—— but why not?

commented

Everyone having problems, have you made sure to send DISPLAY=:0 in your env variable for your shells as well, or tried DISPLAY=:0 compiz?

From one bash term you can run both your unity desktop and the gnome-terminal without the need for another bash term window.

compiz &
gnome-terminal &

(Using the & to background the operations from the bash) It will also allow you to run other apps as long as you use the &

Any idea of how fix the following error: compiz (opengl) - Error: FBO is incomplete: GL::FRAMEBUFFER_INCOMPLETE_ATTACHMENT (0x8cd6)?

Another way to run GUI application using nautilus instead of loading unity through compiz ###[https://github.com//issues/667]

commented

Anyone tried exporting the local opengl library env variable "LIBGL_ALWAYS_INDIRECT" to see if this fixes that problem with the opengl texture_from_pixmap thing? I just noticed it.

When I follow the guide, it freezes for me after printing this (I'm using VcXsrv):

> compiz
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend     : ini
compizconfig - Info: Integration : true
compizconfig - Info: Profile     : default
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Info: Loading plugin: place
compiz (core) - Info: Starting plugin: place
compiz (core) - Info: Loading plugin: resize
compiz (core) - Info: Starting plugin: resize
compiz (core) - Info: Loading plugin: snap
compiz (core) - Info: Starting plugin: snap
compiz (core) - Info: Loading plugin: commands
compiz (core) - Info: Starting plugin: commands
compiz (core) - Info: Loading plugin: compiztoolbox
compiz (core) - Info: Starting plugin: compiztoolbox
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Info: Loading plugin: imgpng
compiz (core) - Info: Starting plugin: imgpng
compiz (core) - Info: Loading plugin: move
compiz (core) - Info: Starting plugin: move

@fpqc -- I tried; it didn't help and it broke a bunch of stuff for me :-)

@olee -- I ran into the same problem several times when following the instructions. The cause was always that I had followed some step in the instructions incorrectly, or not precisely enough. So you might want to walk through them again really carefully; see if everything's exactly right.

For what it's worth, I posted a description of the exact steps that I followed, here. They're basically the same as the steps here, but I was a little more specific about things that I did wrong that didn't work. Let me know if they're helpful, if I missed listing anyone who deserves credit, etc.

I followed @aseering's instructions, and now I'm getting a more immediate error:

$> compiz &
[1] 35
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
$> compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend     : ini
compizconfig - Info: Integration : true
compizconfig - Info: Profile     : default
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Info: Loading plugin: opengl
compiz (core) - Info: Starting plugin: opengl
Compiz (opengl) - Fatal: GLX_EXT_texture_from_pixmap is missing

At this point, I get a windows message box telling me that VcXsrv has stopped working.

I tried exporting LIBGL_ALWAYS_INDIRECT=1, but there were no changes.

Edit: the above errors only happen when I haven't just run xlaunch. If I do run xlaunch first, compiz tells me a bunch of plugins failed to init, and finally

Compiz (opengl) - Fatal: GLX_EXT_texture_from_pixmap is missing
Compiz (opengl) - Fatal: Software rendering detected

just before the shell hangs forever.

@HotelCalifornia -- out of curiosity, what graphics card are using? And are you using the latest driver?

I encountered a somewhat-similar-looking error recently in an entirely unrelated context. The problem turned out to be that I had a graphics card driver that was too old. (Unfortunately, it was also the newest driver that would work with my card -- this was a 10-year-old machine...)

I'm running a GTX 765m card on the latest (14 July) driver.

I think the main problem lies in these messages (I was previously on the 7 July driver update, then I updated and got some different errors):

compiz (core) - Info: Loading plugin: opengl
compiz (core) - Info: Starting plugin: opengl
Compiz (opengl) - Fatal: GLX_EXT_texture_from_pixmap is missing
Compiz (opengl) - Fatal: Software rendering detected
compiz (core) - Error: Plugin initScreen failed: opengl
compiz (core) - Error: Failed to start plugin: opengl
compiz (core) - Info: Unloading plugin: opengl

After OpenGL fails to load, I get the same "GL_EXT_texture_from_pixmap is missing" and "software rendering detected" errors as I was before, except I'm getting them 12 times in a row.

commented

@armisis I had a similar problem. It seems that you have solved yours, could you please share the way you did it?

I'm testing XFCE and works fine... some warning but it works.

Has anyone successfully ran KDE?

Note: For those with HiDPI screens, you must let Linux scale your content (otherwise it will be poorly upscaled by Windows).

sketch 24

After (notice there are no more blurry fonts):
sketch 25

/mnt/c/Users/Dave/Desktop > xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 0 x 0, current 3000 x 2000, maximum 32768 x 32768
default connected primary 3000x2000+0+0 0mm x 0mm
   3000x2000      0.00*
/mnt/c/Users/Dave/Desktop > xdpyinfo | head -75
name of display:    0:0
version number:    11.0
vendor string:    HC-Consult
vendor release number:    11803000
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  PointerRoot
number of extensions:    24
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    Present
    RANDR
    RECORD
    RENDER
    SECURITY
    SGI-GLX
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XFree86-Bigfont
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    3000x2000 pixels (397x265 millimeters)
  resolution:    192x192 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0xe7
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x20
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store WHEN MAPPED, save-unders NO
  largest cursor:    64x64
  current input event mask:    0x4a0034
    ButtonPressMask          EnterWindowMask          LeaveWindowMask
    StructureNotifyMask      SubstructureNotifyMask   PropertyChangeMask
  number of visuals:    70
  default visual id:  0x21
  visual:
    visual id:    0x21
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0xa2
    class:    TrueColor
    depth:    24 planes

As you can see, the 3000x2000 screen is correctly given a 192 DPI in Linux.

I'm running a geforce 710m

matheus@PC-MATHEUZZO-00:~$ compiz
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend : ini
compizconfig - Info: Integration : true
compizconfig - Info: Profile : default
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Info: Loading plugin: opengl
compiz (core) - Info: Starting plugin: opengl
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
compiz (core) - Error: Plugin initScreen failed: opengl
compiz (core) - Error: Failed to start plugin: opengl
compiz (core) - Info: Unloading plugin: opengl
compiz (core) - Info: Loading plugin: place
compiz (core) - Info: Starting plugin: place
compiz (core) - Info: Loading plugin: resize
compiz (core) - Info: Starting plugin: resize
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0
compiz (core) - Info: Loading plugin: snap
compiz (core) - Info: Starting plugin: snap
compiz (core) - Info: Loading plugin: commands
compiz (core) - Info: Starting plugin: commands
compiz (core) - Info: Loading plugin: compiztoolbox
compiz (core) - Info: Starting plugin: compiztoolbox
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Info: Loading plugin: copytex
compiz (core) - Info: Starting plugin: copytex
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: Plugin init failed: copytex
compiz (core) - Error: Failed to start plugin: copytex
compiz (core) - Info: Unloading plugin: copytex
compiz (core) - Info: Loading plugin: imgpng
compiz (core) - Info: Starting plugin: imgpng
compiz (core) - Info: Loading plugin: move
compiz (core) - Info: Starting plugin: move
compiz (core) - Info: Loading plugin: scale
compiz (core) - Info: Starting plugin: scale
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: Plugin init failed: scale
compiz (core) - Error: Failed to start plugin: scale
compiz (core) - Info: Unloading plugin: scale
compiz (core) - Info: Loading plugin: expo
compiz (core) - Info: Starting plugin: expo
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: Plugin init failed: expo
compiz (core) - Error: Failed to start plugin: expo
compiz (core) - Info: Unloading plugin: expo
compiz (core) - Info: Loading plugin: unityshell
compiz (core) - Info: Starting plugin: unityshell
compiz (core) - Error: Plugin 'opengl' not loaded.

compiz (core) - Error: Plugin init failed: unityshell
compiz (core) - Error: Failed to start plugin: unityshell
compiz (core) - Info: Unloading plugin: unityshell
Compiz (opengl) - Fatal: glXQueryExtensionsString is NULL for screen 0

Is there any way to run GNOME with this setup? I've successfully installed the GNOME Shell, but how might I be able to change the compiz default from Unity to GNOME? cc: @Guerra24

commented

Won't work. gnome-settings-daemon will segfault. Unity-settings-daemon otoh works correctly.

Also, performance is very bad bc the gl texture from pixmap plugin is not implemented fully in vcxsrv, so you won't get hardware accelerated aiglx mode (mode basically where all opengl info, textures, models, whatever is piped for rendering to X, which renders the whole thing as a composite.)

I use "Multiple windows"(first choice on XLaunch), and install the deepin-movie, looks good
20160804200031

I see there is a 'guide' mentioned but there are a lot of comments to sift through. Can someone link me the guide on how to install full Ubuntu on WSL? This looks really cool.

Mate Desktop Working
mate-10

commented

@DanielGGordon Guerra24 shows the guide already! #637 (comment) And don't forget to fix the dbus problem with appending link in his first comment.

@andyalonzo Hi, would you mind sharing how to change the default shell from Unity to MATE? I've installed mate-desktop as per usual, but Compiz still launches Unity.

commented

@paladox

This workaround fixes the connection from being refused:

<listen>tcp:host=localhost,port=0</listen>
<auth>ANONYMOUS</auth>
<allow_anonymous/>

I'm sure this is probably insecure, and someone may know how to configure it so that it correctly authenticates, without allowing anonymous connections.

@kurisubrooks Hi, i followed this tutorial to install Mate-Desktop then i start my xserver and in the Ubuntu Shell execute: exec mate-session

I think the best thing is to mix Both environment using the fast XFCE Desktop Manager and VxXsrv in Multiple Windows mode.
I'm also testing Midori Web Browser, it seems better than Firefox.

cattura

@iz0eyj is correct. What most people are actually looking for is a file navigator and application dock/launcher for WSL, not an X Window Manager. Unity+Compiz is not an ideal means to the ends of navigating files and launching applications because (a) you already have a window manager -- MS Windows, and (b) struggling with GL::textureFromPixmap et al for the purpose of launching an application is a classic example of chrome gone very wrong. This is why no one runs Unity from their remote Ubuntu headless servers In Real Life.

There are some dock/launchers listed here. I'd never used them before, but installed Docky on a lark. Unfortunately it isn't happy about dbus (#376). Plank seems to limp along, but is still fundamentally broken without dbus. Unfortunately it really isn't worth using right now unless you're exceedingly determined, because pinning launched apps doesn't work and you have to set up the dock manually.

The screencap below is not running an X window manager like Compiz or Xfwm.

plank

commented

@therealkenc Isn't using even the Linux graphical launchers is probably pointless if you take the time to make Windows shortcuts for your graphical linux programs with bash -c?

You can do that too. There's probably even a too-clever-by-half way to get the icons right.

Mate Desktop working too! I'm using Xserver from MobaXterm and I was unable to run on VcXsrv

@therealkenc I'm testing this solution, using the Win Start menù without Desktop Manager or launcher.
It is simple and works fine, only a shell script for each program, but it opens a window for each program launched and the Cut&Paste won't work.

2016-08-12

commented

@iz0eyj heh, how did you get the icons? Also, vcXsrv should work with the cut and paste. I haven't had any problems launching it in default mode.

@fpqc I got the icons from Internet.
The problem with Cut&Paste, I think, is that every process runs in a separate WSL instance. It works fine using a Desktop Manager but fails with this method.
Can you tell me if there is a way not to bring up the wsl's windows? I drag it on to a second virtual desktop , but it must be done by hand and it is boring.

commented

@iz0eyj nope. X manages the clipboard, not the DE/WM. vcXsrv integrates its clipboard with the Windows one.

@fpqc I know, but the Cut&Paste don't work.