No downsides. As a matter of fact, TurboVNC makes that easier for you. You can simply pass '-vgl -wm xfce' to /opt/TurboVNC/bin/vncserver, or set
$useVGL = 1;
$wm = "xfce";
in turbovncserver.conf (under /etc for system-wide or ~/.vnc for
per-user). The -wm argument/$wm variable correspond to a session
desktop file under /usr/share/xsessions. In the case of Xfce, the
session desktop file does nothing but run startxfce4, but other
window managers (e.g. GNOME) sometimes have additional arguments
or environment variables embedded in their session desktop files,
so using -wm/$wm is the preferred way to start a window manager
these days. /opt/TurboVNC/bin/xstartup.turbovnc should take care
of all of the mechanics automatically. Also, you should use
xstartup.turbovnc rather than overriding the X startup script,
because xstartup.turbovnc sets up a separate D-Bus session bus
instance for each TurboVNC session. (Some window managers, such
as GNOME and MATE, need that in order to run multiple simultaneous
sessions.)
https://turbovnc.org/Documentation/Compatibility30
have been tested both with and without VirtualGL.
DRC
Hi, I saw this handy tip somewhere, to start the desktop environment within a VNC server under vglrun, e.g. `-xstartup "vglrun xfce4"` when using TurboVNC with XFCE. This avoids the user within the VNC session to have to use vglrun for OpenGL apps, but I'm wondering if there's downsides to this approach that I might be missing.
Paul
--
You received this message because you are subscribed to the Google Groups "VirtualGL User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to virtualgl-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/virtualgl-users/cdb4028a-fbfe-4e61-b890-d663a8beefebn%40googlegroups.com.
I will try to reproduce.
To view this discussion on the web visit https://groups.google.com/d/msgid/virtualgl-users/45d80097-cbaf-4912-9c8a-29208ff1fecbn%40googlegroups.com.
Note that specifying TVNC_MT and TVNC_NTHREADS isn't necessary. Since TurboVNC 2.2, the server automatically enables Tight multithreading with a thread count equal to the number of CPU cores.
I get the same warning about an X server already running on display :1, but it appears to be innocuous:
https://forums.freebsd.org/threads/xfce-says-x-server-already-running.30863/
Apparently startxfce4 can start an X
server if one isn't already running, but if it is run against an
existing X server, it prints the warning to indicate that it
won't start its own X server.
I suspect that the real problem is that VirtualGL isn't working for some reason. Start the TurboVNC Server with:
XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/local/share/:/usr/share/ \Then set DISPLAY to the X display of the TurboVNC session you just started, and run
vglrun /opt/VirtualGL/bin/glxspheres64
I suspect that VirtualGL will fail.
DRC
To view this discussion on the web visit https://groups.google.com/d/msgid/virtualgl-users/45d80097-cbaf-4912-9c8a-29208ff1fecbn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/virtualgl-users/3b10eac1-dfff-46d6-8482-fa817e183c1bn%40googlegroups.com.
Also, yes, the "regular" X server needs to be running in order to use VirtualGL with its GLX back end. Refer to the VirtualGL User's Guide for more details on that. You can also try the EGL back end, which doesn't require a "3D X server", but the EGL back end doesn't support some esoteric and legacy GLX features.
DRC
To view this discussion on the web visit https://groups.google.com/d/msgid/virtualgl-users/3b10eac1-dfff-46d6-8482-fa817e183c1bn%40googlegroups.com.