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 · 323 comments

Comments

Projects
None yet
@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

This comment has been minimized.

Show comment
Hide comment
@fpqc

fpqc Jul 9, 2016

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

fpqc commented Jul 9, 2016

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

@paladox

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 10, 2016

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

paladox commented Jul 10, 2016

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

@fpqc

This comment has been minimized.

Show comment
Hide comment
@fpqc

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

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

This comment has been minimized.

Show comment
Hide comment
@Guerra24

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

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

This comment has been minimized.

Show comment
Hide comment
@robinduckett

robinduckett Jul 10, 2016

Any way to achieve a unified desktop environment with windows?

robinduckett commented Jul 10, 2016

Any way to achieve a unified desktop environment with windows?

@paladox

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 10, 2016

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

paladox commented Jul 10, 2016

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

@Guerra24

This comment has been minimized.

Show comment
Hide comment
@Guerra24

Guerra24 Jul 10, 2016

@robinduckett From what i tested no.

Guerra24 commented Jul 10, 2016

@robinduckett From what i tested no.

@Guerra24 Guerra24 changed the title from Running Unity Desktop in WSL to Run any Desktop Environment in WSL Jul 10, 2016

@paladox

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox 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 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

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 10, 2016

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

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

This comment has been minimized.

Show comment
Hide comment
@Guerra24

Guerra24 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

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

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 10, 2016

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

paladox commented Jul 10, 2016

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

@paladox

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox 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

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

This comment has been minimized.

Show comment
Hide comment
@Guerra24

Guerra24 Jul 10, 2016

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

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

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 10, 2016

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

paladox commented Jul 10, 2016

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

@Guerra24

This comment has been minimized.

Show comment
Hide comment
@Guerra24

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

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

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 10, 2016

woks now.

Thankyou very much :).

paladox commented Jul 10, 2016

woks now.

Thankyou very much :).

@Guerra24

This comment has been minimized.

Show comment
Hide comment
@Guerra24

Guerra24 Jul 10, 2016

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

Guerra24 commented Jul 10, 2016

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

@paladox

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 10, 2016

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

paladox commented Jul 10, 2016

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

@Guerra24

This comment has been minimized.

Show comment
Hide comment
@Guerra24

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

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

This comment has been minimized.

Show comment
Hide comment
@paladox

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

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

This comment has been minimized.

Show comment
Hide comment
@Guerra24

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

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

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox commented Jul 10, 2016

Oh ok

@paladox

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 10, 2016

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

paladox commented Jul 10, 2016

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

@paladox

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 10, 2016

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

paladox commented Jul 10, 2016

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

@therealkenc

This comment has been minimized.

Show comment
Hide comment
@therealkenc

therealkenc Jul 10, 2016

Collaborator

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

Collaborator

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

This comment has been minimized.

Show comment
Hide comment
@Manouchehri

Manouchehri Jul 11, 2016

Contributor

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

Contributor

Manouchehri commented Jul 11, 2016

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

@ethanhs

This comment has been minimized.

Show comment
Hide comment
@ethanhs

ethanhs 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 !

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

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 11, 2016

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

paladox commented Jul 11, 2016

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

@iahu

This comment has been minimized.

Show comment
Hide comment
@iahu

iahu Jul 11, 2016

good news

iahu commented Jul 11, 2016

good news

@fpqc

This comment has been minimized.

Show comment
Hide comment
@fpqc

fpqc Jul 11, 2016

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.

fpqc commented Jul 11, 2016

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.

@jumbriaco

This comment has been minimized.

Show comment
Hide comment
@jumbriaco

jumbriaco Jul 11, 2016

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

jumbriaco commented Jul 11, 2016

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

@Manouchehri

This comment has been minimized.

Show comment
Hide comment
@Manouchehri

Manouchehri Jul 11, 2016

Contributor

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

Hopper

Contributor

Manouchehri commented Jul 11, 2016

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

Hopper

@R1skNt

This comment has been minimized.

Show comment
Hide comment
@R1skNt

R1skNt Jul 11, 2016

install synaptic (GUI to install programs) works perfectly

R1skNt commented Jul 11, 2016

install synaptic (GUI to install programs) works perfectly

@xuxihai123

This comment has been minimized.

Show comment
Hide comment
@xuxihai123

xuxihai123 Jul 12, 2016

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

xuxihai123 commented Jul 12, 2016

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

@Manouchehri

This comment has been minimized.

Show comment
Hide comment
@Manouchehri

Manouchehri Jul 12, 2016

Contributor

@x373241884y: Which windows?

Contributor

Manouchehri commented Jul 12, 2016

@x373241884y: Which windows?

@wb9688

This comment has been minimized.

Show comment
Hide comment
@wb9688

wb9688 Jul 12, 2016

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)

wb9688 commented Jul 12, 2016

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

This comment has been minimized.

Show comment
Hide comment
@darlingtonamz

darlingtonamz Jul 12, 2016

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"

darlingtonamz commented Jul 12, 2016

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"

@mraufrufi

This comment has been minimized.

Show comment
Hide comment
@mraufrufi

mraufrufi Jul 12, 2016

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.

mraufrufi commented Jul 12, 2016

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.

@paladox

This comment has been minimized.

Show comment
Hide comment
@paladox

paladox Jul 12, 2016

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.

paladox commented Jul 12, 2016

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.

@tara-raj tara-raj closed this May 29, 2018

@therealkenc

This comment has been minimized.

Show comment
Hide comment
@therealkenc

therealkenc May 30, 2018

Collaborator

Folks landing here should also strongly consider posting questions and seeking feedback in forums like ServerFault, or in the forum dedicated to your X server of choice. Not because we're trying to punt you elsewhere, but because you will get better answers there. People are getting redirected here under the misimpression that running libX11/libgtk/libqt clients on WSL is somehow "special". It isn't. You are in effect running on a remote headless Linux box without systemd and a kernel compiled with CONFIG_DRM=n. This is a perfectly valid Real Linux™ scenario that you can set up in a VM. In fact it is a common scenario for people who live in the cloud, notwithstanding the systemd gap.

If you do find a diverge in your scenario on WSL versus headless Real Linux, then like Tara suggests, open a bug in this github following CONTRIBUTING.md. More often than not I'll take a look, even if your use case is pretty out there. But truth is we don't get many of those, because libX11 is a bog-simple socket library, and the llvmpipe implementation of libGL is a number crunching library that barely calls into the WSL kernel. Bonne chance.

Collaborator

therealkenc commented May 30, 2018

Folks landing here should also strongly consider posting questions and seeking feedback in forums like ServerFault, or in the forum dedicated to your X server of choice. Not because we're trying to punt you elsewhere, but because you will get better answers there. People are getting redirected here under the misimpression that running libX11/libgtk/libqt clients on WSL is somehow "special". It isn't. You are in effect running on a remote headless Linux box without systemd and a kernel compiled with CONFIG_DRM=n. This is a perfectly valid Real Linux™ scenario that you can set up in a VM. In fact it is a common scenario for people who live in the cloud, notwithstanding the systemd gap.

If you do find a diverge in your scenario on WSL versus headless Real Linux, then like Tara suggests, open a bug in this github following CONTRIBUTING.md. More often than not I'll take a look, even if your use case is pretty out there. But truth is we don't get many of those, because libX11 is a bog-simple socket library, and the llvmpipe implementation of libGL is a number crunching library that barely calls into the WSL kernel. Bonne chance.

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio commented May 30, 2018

my VcXsrv is working great - http://www.tinyurl.com/donofrioworkdesk ;)

@sourceskyboxer

This comment has been minimized.

Show comment
Hide comment
@sourceskyboxer

sourceskyboxer May 30, 2018

@lewisdonofrio works great but you don't know what do I mean? "VirtualGL" need!!!!!!!!!!!!!!!!!!!!!!!!

Because Microsoft doesn't believe me I already tried Ubuntu and OpenGL on WSL = NOT WORKING - If I use Mono OpenTK than it stopped working.

That is why - I am right. But who deleted my post! Whatever I copy to private message.

sourceskyboxer commented May 30, 2018

@lewisdonofrio works great but you don't know what do I mean? "VirtualGL" need!!!!!!!!!!!!!!!!!!!!!!!!

Because Microsoft doesn't believe me I already tried Ubuntu and OpenGL on WSL = NOT WORKING - If I use Mono OpenTK than it stopped working.

That is why - I am right. But who deleted my post! Whatever I copy to private message.

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio May 30, 2018

Oh yah opengl don't well let me try...guessing its software only....glxgears right, mine is using raster I believe that is software. Would LOVE to know what I need to flip to get HARDWARE acceleration...
opengl-raster-glxgear-chunky

lewisdonofrio commented May 30, 2018

Oh yah opengl don't well let me try...guessing its software only....glxgears right, mine is using raster I believe that is software. Would LOVE to know what I need to flip to get HARDWARE acceleration...
opengl-raster-glxgear-chunky

@DarthSpock

This comment has been minimized.

Show comment
Hide comment
@DarthSpock

DarthSpock May 30, 2018

Would LOVE to know what I need to flip to get HARDWARE acceleration...

Opening up of the internal APIs that WSL uses to access Windows firmware-based hardware. You're welcome to try and find those and try to get something usable out of them but might still be premature at this point to attempt anything (since we're still waiting on things like raw socket support). I did get the AMD devs to take a look at using AF_Unix as an option but isn't enough to go by for now but they are keen to get WSL up whenever enough stuff lights up for them to work some magic.

DarthSpock commented May 30, 2018

Would LOVE to know what I need to flip to get HARDWARE acceleration...

Opening up of the internal APIs that WSL uses to access Windows firmware-based hardware. You're welcome to try and find those and try to get something usable out of them but might still be premature at this point to attempt anything (since we're still waiting on things like raw socket support). I did get the AMD devs to take a look at using AF_Unix as an option but isn't enough to go by for now but they are keen to get WSL up whenever enough stuff lights up for them to work some magic.

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio May 30, 2018

would be nice if pico was like hal and all you needed to do is make the calls and it would translate into hardware calls, I'd like not to care about gfx hardware on host just properly support glx calls regardless of hardware...you know an abstraction thing...#oneday

lewisdonofrio commented May 30, 2018

would be nice if pico was like hal and all you needed to do is make the calls and it would translate into hardware calls, I'd like not to care about gfx hardware on host just properly support glx calls regardless of hardware...you know an abstraction thing...#oneday

@DarthSpock

This comment has been minimized.

Show comment
Hide comment
@DarthSpock

DarthSpock May 30, 2018

So basically you want Vulkan support. Which isn't a bad idea.

DarthSpock commented May 30, 2018

So basically you want Vulkan support. Which isn't a bad idea.

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio May 30, 2018

how do we get this, I mean I run windows 10 for two reasons, one drivers they all "just work" and two well it's the only desktop they allow "at work" with driverless hardware within the pico system that would make this better.

lewisdonofrio commented May 30, 2018

how do we get this, I mean I run windows 10 for two reasons, one drivers they all "just work" and two well it's the only desktop they allow "at work" with driverless hardware within the pico system that would make this better.

@sourceskyboxer

This comment has been minimized.

Show comment
Hide comment
@sourceskyboxer

sourceskyboxer May 30, 2018

I recommend you should use VMWare Player or VirtualBox because they have built-in VirtualMachineGL ( It is hooking library into physical display drive from Virtual machine into host display drive as OpenGL / VulkanGL ( My display card has VulkanGL 1.1 and OpenGL 4.5

I find so sad because Xwing / VcXsrv are very old and incompatible for latest OpenGL. Please do not hesitate there! Please remember best tools like Qemu, VIrtualBox, VMWare Player or Parallel Desktop

That is why I feel laugh because Microsoft has not experiences about VirtualMachine-engined OpenGL / VulkanGL. How do they play Game under WSL? Oh yes children cry loud. Please ask to VirtualBox, Qemu or VMWare developers and they will help your WSL. Good luck!

sourceskyboxer commented May 30, 2018

I recommend you should use VMWare Player or VirtualBox because they have built-in VirtualMachineGL ( It is hooking library into physical display drive from Virtual machine into host display drive as OpenGL / VulkanGL ( My display card has VulkanGL 1.1 and OpenGL 4.5

I find so sad because Xwing / VcXsrv are very old and incompatible for latest OpenGL. Please do not hesitate there! Please remember best tools like Qemu, VIrtualBox, VMWare Player or Parallel Desktop

That is why I feel laugh because Microsoft has not experiences about VirtualMachine-engined OpenGL / VulkanGL. How do they play Game under WSL? Oh yes children cry loud. Please ask to VirtualBox, Qemu or VMWare developers and they will help your WSL. Good luck!

@therealkenc

This comment has been minimized.

Show comment
Hide comment
@therealkenc

therealkenc May 30, 2018

Collaborator

That is why I feel laugh because Microsoft has not experiences about VirtualMachine-engined OpenGL / VulkanGL.

It is usually a good idea not to laugh. It can make you look foolish. OpenTK SimpleScene on WSL.

opentk-on-wsl

Collaborator

therealkenc commented May 30, 2018

That is why I feel laugh because Microsoft has not experiences about VirtualMachine-engined OpenGL / VulkanGL.

It is usually a good idea not to laugh. It can make you look foolish. OpenTK SimpleScene on WSL.

opentk-on-wsl

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio May 31, 2018

What is your frame rate of glxgears, how did you get this app to work? looks like your 'insider' as well.....does hardware accel only come in insider?

lewisdonofrio commented May 31, 2018

What is your frame rate of glxgears, how did you get this app to work? looks like your 'insider' as well.....does hardware accel only come in insider?

@sourceskyboxer

This comment has been minimized.

Show comment
Hide comment
@sourceskyboxer

sourceskyboxer Jun 1, 2018

@therealkenc but I have tried compiled and copied from Windows 10 into Ubuntu WSL with OpenTK very latest version ( 3.00.x )

But for Gtk Sharp 3 works fine. But OpenTK can't Please believe me!

I am not stupid because I already tried with after compiled assemblies from GMCS or MCS from Windows 10 than I move to Ubuntu WSL and it throws many error / exception that is like incompabile or reference is null. But I already tried to embed assemblies into executable or pack o zip with important assemblies into Ubuntu WSL and I tried with Mono ( very latest version ) and it throws result like exceptions.

But SimpleScene is working because SimpleScene has old version of OpenTK. I am using for very latest version with OpenGL 4.5x. Thanks!

sourceskyboxer commented Jun 1, 2018

@therealkenc but I have tried compiled and copied from Windows 10 into Ubuntu WSL with OpenTK very latest version ( 3.00.x )

But for Gtk Sharp 3 works fine. But OpenTK can't Please believe me!

I am not stupid because I already tried with after compiled assemblies from GMCS or MCS from Windows 10 than I move to Ubuntu WSL and it throws many error / exception that is like incompabile or reference is null. But I already tried to embed assemblies into executable or pack o zip with important assemblies into Ubuntu WSL and I tried with Mono ( very latest version ) and it throws result like exceptions.

But SimpleScene is working because SimpleScene has old version of OpenTK. I am using for very latest version with OpenGL 4.5x. Thanks!

@iz0eyj

This comment has been minimized.

Show comment
Hide comment
@iz0eyj

iz0eyj Jun 7, 2018

My desktop.
I'm working to port some code from Win32 to ELF-64 (mainly libraries), and I'm testing also alot of IDE running on ELF-64 environment.
Yes, I know... exists the cross compilation, exists Xamarin, and Visual Studio is the best IDE.
In the screenshot three instances of the same IDE (the free Codelite, not too bad).
One program is running on Win32, another on WSL and the third... the third on a remote MiniPC Android with ARM SoC (Amlogic S912), 8 core and 3GB RAM (Linux on Android, chroot).
Both Wsl and remote Linux uses the same VcXsrv.
cattura2

iz0eyj commented Jun 7, 2018

My desktop.
I'm working to port some code from Win32 to ELF-64 (mainly libraries), and I'm testing also alot of IDE running on ELF-64 environment.
Yes, I know... exists the cross compilation, exists Xamarin, and Visual Studio is the best IDE.
In the screenshot three instances of the same IDE (the free Codelite, not too bad).
One program is running on Win32, another on WSL and the third... the third on a remote MiniPC Android with ARM SoC (Amlogic S912), 8 core and 3GB RAM (Linux on Android, chroot).
Both Wsl and remote Linux uses the same VcXsrv.
cattura2

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio Jun 7, 2018

@iz0eyj Middle one for 'the win' - it's the only one that has a gui toolbar view, unless others do and it's just on by default in wsl?

lewisdonofrio commented Jun 7, 2018

@iz0eyj Middle one for 'the win' - it's the only one that has a gui toolbar view, unless others do and it's just on by default in wsl?

@Voskrese

This comment has been minimized.

Show comment
Hide comment
@Voskrese

Voskrese Jun 22, 2018

libGL error: failed to load driver: swrast

-nowgl

vcxsrv.exe :0 -ac -terminate -lesspointer -multiwindow -clipboard -nowgl

bash

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGL.so

do not apply the parameter, export LIBGL_ALWAYS_INDIRECT=1

glxgears

ok

Voskrese commented Jun 22, 2018

libGL error: failed to load driver: swrast

-nowgl

vcxsrv.exe :0 -ac -terminate -lesspointer -multiwindow -clipboard -nowgl

bash

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGL.so

do not apply the parameter, export LIBGL_ALWAYS_INDIRECT=1

glxgears

ok

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio Jul 4, 2018

did I miss something, getting tons of these messages in the console:

ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

lewisdonofrio commented Jul 4, 2018

did I miss something, getting tons of these messages in the console:

ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

@Voskrese

This comment has been minimized.

Show comment
Hide comment
@Voskrese

Voskrese Jul 5, 2018

@lewisdonofrio
https://packages.ubuntu.com/search?lang=ru&suite=xenial&arch=amd64&mode=filename&searchon=contents&keywords=libGL.so

apt-get install libgl1-mesa-dev

Voskrese commented Jul 5, 2018

@lewisdonofrio
https://packages.ubuntu.com/search?lang=ru&suite=xenial&arch=amd64&mode=filename&searchon=contents&keywords=libGL.so

apt-get install libgl1-mesa-dev

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio Jul 5, 2018

Yah I got that, but glxgears is in the 1453.647 FPS ;(

lewisdonofrio commented Jul 5, 2018

Yah I got that, but glxgears is in the 1453.647 FPS ;(

@Voskrese

This comment has been minimized.

Show comment
Hide comment
@Voskrese

Voskrese Jul 5, 2018

@lewisdonofrio nvidia?

/usr/lib/nvidia-304/libGL.so
/usr/lib/nvidia-340/libGL.so
/usr/lib/nvidia-361/libGL.so

unset LIBGL_ALWAYS_INDIRECT=1
export LIBGL_ALWAYS_INDIRECT=0

Voskrese commented Jul 5, 2018

@lewisdonofrio nvidia?

/usr/lib/nvidia-304/libGL.so
/usr/lib/nvidia-340/libGL.so
/usr/lib/nvidia-361/libGL.so

unset LIBGL_ALWAYS_INDIRECT=1
export LIBGL_ALWAYS_INDIRECT=0

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio Jul 5, 2018

What in WSL? Should be hardware independent? inxi -Fxzwrc0 returns http://paste.ubuntu.com/p/p8T6QKQX89

lewisdonofrio commented Jul 5, 2018

What in WSL? Should be hardware independent? inxi -Fxzwrc0 returns http://paste.ubuntu.com/p/p8T6QKQX89

@Voskrese

This comment has been minimized.

Show comment
Hide comment
@Voskrese

Voskrese Jul 5, 2018

@lewisdonofrio not in the chroot environment, but really, those and load, wsl does not load anything on the machine and does not initialize, except for some things like the network and the file system

Voskrese commented Jul 5, 2018

@lewisdonofrio not in the chroot environment, but really, those and load, wsl does not load anything on the machine and does not initialize, except for some things like the network and the file system

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio Jul 5, 2018

this is a thread about WSL so I seen then libgl suggestions, and now you say they were not for WSL?

lewisdonofrio commented Jul 5, 2018

this is a thread about WSL so I seen then libgl suggestions, and now you say they were not for WSL?

@Voskrese

This comment has been minimized.

Show comment
Hide comment
@Voskrese

Voskrese Jul 5, 2018

@lewisdonofrio wsl It is like a layer, between Elf programs, but Elf programs run in their environment, and the dependencies of their execution within their environment no one canceled

I write through an interpreter, perhaps somewhere not so translated from the Russian

Voskrese commented Jul 5, 2018

@lewisdonofrio wsl It is like a layer, between Elf programs, but Elf programs run in their environment, and the dependencies of their execution within their environment no one canceled

I write through an interpreter, perhaps somewhere not so translated from the Russian

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio Jul 5, 2018

ok yah something's not translating, what I'd like is to get glxgears to be perhaps in the 30-100's not the thousands for frame rate. I thought using this .so file would allow wsl hosted apps to have 3d accel (finally?)

lewisdonofrio commented Jul 5, 2018

ok yah something's not translating, what I'd like is to get glxgears to be perhaps in the 30-100's not the thousands for frame rate. I thought using this .so file would allow wsl hosted apps to have 3d accel (finally?)

@aseering

This comment has been minimized.

Show comment
Hide comment
@aseering

aseering Jul 5, 2018

Contributor

@lewisdonofrio so, WSL supports Linux userspace applications. It does not support Linux kernel-space drivers. libgl does not itself provide 3d acceleration; it talks to the NVidia (or ATI or Intel or ...) Linux graphics driver, which provides 3d acceleration.

So, to get 3d accel in WSL, one of two things must happen:

  1. Native vendor graphics drivers would have to be written for WSL. This would be a big project and would require collaboration between Microsoft and all the major graphics driver vendors, because (a) all Linux graphics drivers currently require kernel modules, WSL doesn't currently support kernel modules, and adding support would be both a technical and a legal (licensing) challenge; and (b) WSL drivers would need to coexist with native Windows graphics drivers running at the same time and controlling the same hardware; this functionality would have to be added because, on both Windows and Linux before WSL, most of these drivers only allow one instance of the driver to be installed and in use at a time.

OR

  1. Linux applications would have to be taught how to talk to the existing Windows graphics drivers. There is limited support for this today. It requires special software (a supported X server, for example recent and properly configured versions of VcXsrv) on the Windows side and special configuration on the Linux side. It's also less efficient; it's currently much slower than the native Linux driver, though I'm sure this could be improved. And the implementation is a little buggy, and even if it were bug-free, not all Linux applications would necessarily support this type of remote graphics card. @Voskrese described some of the required configuration, above.
Contributor

aseering commented Jul 5, 2018

@lewisdonofrio so, WSL supports Linux userspace applications. It does not support Linux kernel-space drivers. libgl does not itself provide 3d acceleration; it talks to the NVidia (or ATI or Intel or ...) Linux graphics driver, which provides 3d acceleration.

So, to get 3d accel in WSL, one of two things must happen:

  1. Native vendor graphics drivers would have to be written for WSL. This would be a big project and would require collaboration between Microsoft and all the major graphics driver vendors, because (a) all Linux graphics drivers currently require kernel modules, WSL doesn't currently support kernel modules, and adding support would be both a technical and a legal (licensing) challenge; and (b) WSL drivers would need to coexist with native Windows graphics drivers running at the same time and controlling the same hardware; this functionality would have to be added because, on both Windows and Linux before WSL, most of these drivers only allow one instance of the driver to be installed and in use at a time.

OR

  1. Linux applications would have to be taught how to talk to the existing Windows graphics drivers. There is limited support for this today. It requires special software (a supported X server, for example recent and properly configured versions of VcXsrv) on the Windows side and special configuration on the Linux side. It's also less efficient; it's currently much slower than the native Linux driver, though I'm sure this could be improved. And the implementation is a little buggy, and even if it were bug-free, not all Linux applications would necessarily support this type of remote graphics card. @Voskrese described some of the required configuration, above.
@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio Jul 5, 2018

@therealkenc How did you get the 3D stick figures motion on non-accell video though WSL? Folks keep in context I do not need 3d accell cause I use xfce4 but for anyone anyone wanting/needing unity they would need 3d support?

lewisdonofrio commented Jul 5, 2018

@therealkenc How did you get the 3D stick figures motion on non-accell video though WSL? Folks keep in context I do not need 3d accell cause I use xfce4 but for anyone anyone wanting/needing unity they would need 3d support?

@therealkenc

This comment has been minimized.

Show comment
Hide comment
@therealkenc

therealkenc Jul 5, 2018

Collaborator

Folks landing here should strongly consider posting questions and seeking feedback in forums like ServerFault, or in the forum dedicated to your X server of choice. Not because we're trying to punt you elsewhere, but because you will get better answers there. People are getting redirected here under the misimpression that running libX11/libgtk/libqt clients on WSL is somehow "special". It isn't. You are in effect running on a remote headless Linux box without systemd and a kernel compiled with CONFIG_DRM=n.

Collaborator

therealkenc commented Jul 5, 2018

Folks landing here should strongly consider posting questions and seeking feedback in forums like ServerFault, or in the forum dedicated to your X server of choice. Not because we're trying to punt you elsewhere, but because you will get better answers there. People are getting redirected here under the misimpression that running libX11/libgtk/libqt clients on WSL is somehow "special". It isn't. You are in effect running on a remote headless Linux box without systemd and a kernel compiled with CONFIG_DRM=n.

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio Jul 5, 2018

I can make this a separate posting here on WSL's github but the other site you referenced is for the masses that are still stuck in 2016/17 tech it seems like where this group is talking about NOW things. hence why I ask things here. I mean I'm also on freenode irc (#ubuntu-on-windows and other irc channels) as well so I try not to ask dorky things here. I thought when I seen the loading of the .so file that might pave the way to 3d finally sounds like I was incorrect ;(

lewisdonofrio commented Jul 5, 2018

I can make this a separate posting here on WSL's github but the other site you referenced is for the masses that are still stuck in 2016/17 tech it seems like where this group is talking about NOW things. hence why I ask things here. I mean I'm also on freenode irc (#ubuntu-on-windows and other irc channels) as well so I try not to ask dorky things here. I thought when I seen the loading of the .so file that might pave the way to 3d finally sounds like I was incorrect ;(

@therealkenc

This comment has been minimized.

Show comment
Hide comment
@therealkenc

therealkenc Jul 5, 2018

Collaborator

2016/17 tech it seems like where this group is talking about NOW things

XCB is 2001 tech, not 2016/17 tech. There is no "new" tech involved here at the syscall surface layer. More importantly, there is no tech specific to WSL involved.

I can make this a separate posting here on WSL's github

This is encouraged if you are able to find a diverge between WSL and a Real Linux VM running with a kernel compiled with CONFIG_DRM=n following CONTRIBUTING.md. But in general you will find that difficult or impossible because there are no known bugs in ipv4 TCP sockets since #493 was closed. If such a diverge existed I would have posted it myself long ago.

To be perfectly clear: When asking your question in ServerFault (or elsewhere) you won't be mentioning WSL. Because your question isn't related to WSL. You problem will be with getting your scenario running with a kernel compiled with CONFIG_DRM=n (usually in a VM like VirtualBox or Hyper-V). If you would like to see DRM in WSL, UserVoice or Reddit or Twitter are perfect forums to opine on how great that would be.

Collaborator

therealkenc commented Jul 5, 2018

2016/17 tech it seems like where this group is talking about NOW things

XCB is 2001 tech, not 2016/17 tech. There is no "new" tech involved here at the syscall surface layer. More importantly, there is no tech specific to WSL involved.

I can make this a separate posting here on WSL's github

This is encouraged if you are able to find a diverge between WSL and a Real Linux VM running with a kernel compiled with CONFIG_DRM=n following CONTRIBUTING.md. But in general you will find that difficult or impossible because there are no known bugs in ipv4 TCP sockets since #493 was closed. If such a diverge existed I would have posted it myself long ago.

To be perfectly clear: When asking your question in ServerFault (or elsewhere) you won't be mentioning WSL. Because your question isn't related to WSL. You problem will be with getting your scenario running with a kernel compiled with CONFIG_DRM=n (usually in a VM like VirtualBox or Hyper-V). If you would like to see DRM in WSL, UserVoice or Reddit or Twitter are perfect forums to opine on how great that would be.

@xuqihang

This comment has been minimized.

Show comment
Hide comment
@xuqihang

xuqihang Jul 30, 2018

So did anyone know how to make elementary os's pantheon desktop run with WSL Ubuntu and VcXsrv?

xuqihang commented Jul 30, 2018

So did anyone know how to make elementary os's pantheon desktop run with WSL Ubuntu and VcXsrv?

@sourceskyboxer

This comment has been minimized.

Show comment
Hide comment
@sourceskyboxer

sourceskyboxer Jul 30, 2018

Hello everyone, I am sorry for my bad because MonoGame teams told me because Emulator works only shit old OpenGL 3.3 - I know now why do you not say me before since I built Gtk Sharp 3.22 with OpenTK ( OpenGL 4.5 ) than it throws error because Emulator has not support for highest OpenGL. Now I am fury why do virtualizators lie us if Display card are newer than OpenGL 3.3 and need all virtualization up to same highest OpenGL 4.x - Now i am very disappointed. Thanks for hidding me about latest version of OpenGL.

sourceskyboxer commented Jul 30, 2018

Hello everyone, I am sorry for my bad because MonoGame teams told me because Emulator works only shit old OpenGL 3.3 - I know now why do you not say me before since I built Gtk Sharp 3.22 with OpenTK ( OpenGL 4.5 ) than it throws error because Emulator has not support for highest OpenGL. Now I am fury why do virtualizators lie us if Display card are newer than OpenGL 3.3 and need all virtualization up to same highest OpenGL 4.x - Now i am very disappointed. Thanks for hidding me about latest version of OpenGL.

@Mario3264

This comment has been minimized.

Show comment
Hide comment
@Mario3264

Mario3264 Aug 14, 2018

When I try to open Firefox, it gives this error when opening it within bash: Error: Access was denied while trying to open files in your profile directory. (it still shows the error in the VcXsrv display when opened from the panel.)

Mario3264 commented Aug 14, 2018

When I try to open Firefox, it gives this error when opening it within bash: Error: Access was denied while trying to open files in your profile directory. (it still shows the error in the VcXsrv display when opened from the panel.)

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio Aug 14, 2018

I used to get this issue and solved it by manually doing:
chown username -R .cache
chgrp usergroup -R .cache

I also do what I called the dbus-fix.sh and it has
donofrio@WSAL0013:~ $ cat dbus-fix.sh
echo "Implementing udev workaround (#143 (comment))" >&2
sudo tee /usr/sbin/policy-rc.d > /dev/null <<EOF
#!/bin/sh
exit 101
EOF
sudo chmod +x /usr/sbin/policy-rc.d
sudo dpkg-divert --local --rename --add /sbin/initctl
sudo ln -fs /bin/true /sbin/initctl
donofrio@WSAL0013:~$

after that firefox works great.

lewisdonofrio commented Aug 14, 2018

I used to get this issue and solved it by manually doing:
chown username -R .cache
chgrp usergroup -R .cache

I also do what I called the dbus-fix.sh and it has
donofrio@WSAL0013:~ $ cat dbus-fix.sh
echo "Implementing udev workaround (#143 (comment))" >&2
sudo tee /usr/sbin/policy-rc.d > /dev/null <<EOF
#!/bin/sh
exit 101
EOF
sudo chmod +x /usr/sbin/policy-rc.d
sudo dpkg-divert --local --rename --add /sbin/initctl
sudo ln -fs /bin/true /sbin/initctl
donofrio@WSAL0013:~$

after that firefox works great.

@Mario3264

This comment has been minimized.

Show comment
Hide comment
@Mario3264

Mario3264 Aug 14, 2018

I think I accidentally ran compiz using sudo and now it's giving permission denied errors like dconf-CRITICAL **: unable to create file '/home/mario/.cache/dconf/user': Permission denied. dconf will not work properly. And it also takes a while for the Ubuntu desktop to show up, Ubuntu Software Center also gives the same error when opening from bash or Terminal. (EDIT: Running it in sudo works fine but without sudo it doesn't work after I probably accidentally ran it with sudo. EDIT2: Doing apt-get install on ubuntu-desktop installed some missing things but didn't fix the issue. EDIT3: Reinstalling all of the packages didn't fix the issue either, I'm out of solutions at this point.)

Mario3264 commented Aug 14, 2018

I think I accidentally ran compiz using sudo and now it's giving permission denied errors like dconf-CRITICAL **: unable to create file '/home/mario/.cache/dconf/user': Permission denied. dconf will not work properly. And it also takes a while for the Ubuntu desktop to show up, Ubuntu Software Center also gives the same error when opening from bash or Terminal. (EDIT: Running it in sudo works fine but without sudo it doesn't work after I probably accidentally ran it with sudo. EDIT2: Doing apt-get install on ubuntu-desktop installed some missing things but didn't fix the issue. EDIT3: Reinstalling all of the packages didn't fix the issue either, I'm out of solutions at this point.)

@lewisdonofrio

This comment has been minimized.

Show comment
Hide comment
@lewisdonofrio

lewisdonofrio Aug 14, 2018

I don't use compiz I use xfce4 - www.tinyurl.com/donofrioworkdesk (my no store available build process)

lewisdonofrio commented Aug 14, 2018

I don't use compiz I use xfce4 - www.tinyurl.com/donofrioworkdesk (my no store available build process)

@Mario3264

This comment has been minimized.

Show comment
Hide comment
@Mario3264

Mario3264 Aug 15, 2018

I reinstalled Ubuntu and it fixed the issue.

Mario3264 commented Aug 15, 2018

I reinstalled Ubuntu and it fixed the issue.

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