I will try to reproduce.
On 9/25/24 11:32 AM, Paul Melis wrote:
So I'm trying to get this running locally on our system, but run into
an issue.
The batch script to launch the VNC server on a compute node pretty
much does this:
/usr/bin/X &
TVNC_MT=1 TVNC_NTHREADS=4
XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/local/share/:/usr/share/ \
/opt/TurboVNC/bin/vncserver \
-vgl -wm xfce \
-fg \
-geometry 1240x900 \
-dpi 90
When the VNC server starts up it exits quickly:
snellius paulm@gcn154 17:28 ~$ TVNC_MT=1 TVNC_NTHREADS=4
XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/local/share/:/usr/share/
/opt/TurboVNC/bin/vncserver -vgl -wm xfce -fg -geometry
1240x900 -dpi 90
Desktop 'TurboVNC: gcn154.local.snellius.surf.nl:1 (paulm)' started on
display gcn154.local.snellius.surf.nl:1
Starting applications specified in /opt/TurboVNC/bin/xstartup.turbovnc
(Enabling VirtualGL)
Log file is /home/paulm/.vnc/gcn154.local.snellius.surf.nl:1.log
Killing Xvnc process ID 1426621
Looking in the VNC log file:
25/09/2024 17:14:01 framebuffer updates 0, rectangles 0, bytes 0
xstartup.turbovnc: Creating new session bus instance:
xstartup.turbovnc:
unix:abstract=/tmp/dbus-qn7ynuWttb,guid=fd2fba716838b6b1474ecf7f66f428b9
xstartup.turbovnc: Using 'xfce' window manager in
xstartup.turbovnc: /usr/share/xsessions/xfce.desktop
xstartup.turbovnc: Executing /usr/bin/ssh-agent vglrun +wm
/etc/X11/xinit/Xsession "startxfce4"
Environment variable $XAUTHORITY not set, ignoring.
Failed to import environment: Process org.freedesktop.systemd1 exited
with status 1
/bin/startxfce4: X server already running on display :1
The "already running on display :1" message is really curious. There
isn't any existing XFCE session running on the node. I found a (very
old, 2014) forum post and link to bug report that lists the same
error, https://bbs.archlinux.org/viewtopic.php?id=180965. But I'm not
sure if this is still relevant?
This is with TurboVNC 3.1.1 and VirtualGL 3.1.1 on a RHEL9 compute
node, btw. The installed XFCE is 4.18.3. I still need to test on our
regular visualization nodes with A100s, the above is one with an H100,
but I think the startup doesn't even come close anything GPU related.
On Friday, September 6, 2024 at 5:45:18 PM UTC+2 DRC wrote:
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.)
All window managers listed here:
https://turbovnc.org/Documentation/Compatibility30
have been tested both with and without VirtualGL.
DRC
On 9/6/24 7:21 AM, Paul Melis wrote:
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/virtualgl-users/cdb4028a-fbfe-4e61-b890-d663a8beefebn%40googlegroups.com
<https://groups.google.com/d/msgid/virtualgl-users/cdb4028a-fbfe-4e61-b890-d663a8beefebn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/virtualgl-users/45d80097-cbaf-4912-9c8a-29208ff1fecbn%40googlegroups.com
<https://groups.google.com/d/msgid/virtualgl-users/45d80097-cbaf-4912-9c8a-29208ff1fecbn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/virtualgl-users/22bb5d5c-2d8c-497d-876b-1a8eb077c5cf%40virtualgl.org.