[3dem] visualization of data from a remote server

Amar Dhananjai Parvate aparvate at purdue.edu
Sun Feb 3 10:35:18 PST 2019


Dear All
I am very glad to know i am not the only one with remote log in GUI visualization problems and ... even better that ppl on this forum have some solutions.
Here is what i am trying to do and of course its not working...
1) My workstation is a linux machine with Centos 7. I can access both single particle and tomography software through my home directory.
2) I have a Windows 10 laptop where i have installed my institute recommended Putty and Xming client for remote login
3) While off campus, my VPN works fine, i can log in to my workstation, access home directory and run anything command line properly.
4) Issue comes when anything GUI needs to be displayed. I have followed several tutorials for Putty and Xming, tried loging in to the computer via IP or user at home.edu. Have tried several local hosts for X11 forwarding... and it doesnt seem to work.
I have even tried to edit the ssh-config file. where the X11 forwarding is turned off by default.
Basically if i try to open a .mrc file via say 3dmod, i see the file being read in the main window but the connection is refused while displaying the zap window.

Be glad if anyone can share any solutions on this regard...

P.S. - The Putty+X forwarding worked for my colleague who basically has the same laptop as mine, and we are in the same lab, trying to access the same set of imod GUIs.  🤔


Amar Parvate

Purdue University

Department of Biological Sciences


________________________________
From: 3dem <3dem-bounces at ncmir.ucsd.edu> on behalf of Michael Elbaum <michael.elbaum at weizmann.ac.il>
Sent: Sunday, February 3, 2019 10:27 AM
To: 3dem at ncmir.ucsd.edu
Subject: [3dem] visualization of data from a remote server


Hi all,

I'm normally using a powerful server for image processing, and then I look at the data by remote ssh with X forwarding. Recently I upgraded the linux OS on my laptop (to Ubuntu 18.04) and all sorts of programs stopped working this way, including 3dmod. It turned out to be a much broader problem having to do with OpenGL. Indirect rendering, which is what we need, is turned off by default in newer versions of X. I assume others have encountered such trouble as well. Since it took quite some digging to find a solution I'm posting it here.

For those who boot into a command line interface with a black screen and start an X session manually, (e.g., startx -- :2) the fix is simple.
Edit the file /usr/bin/startx and change the line defaultclientargs="" to defaultclientargs="+iglx"
+iglx allows indirect rendering by OpenGL applications.
This is not relevant to most of us.

For those who boot the computer and expect to see the graphical display right away it's a bit trickier. Ubuntu uses X or Wayland for the graphical interface, depending on the version. The solution I found is only for X, so we have to revert to that first. It's done in two steps, as root:
1) In the file /etc/gdm3/custom.conf, uncomment (erase the hash) the line #WaylandEnable=false. (In Ubuntu it should be enough to start GNOME in Xorg, which is one of the login options.)
2) Create a new file /usr/share/X11/xorg.conf.d/50-iglx.conf:
Section "ServerFlags"
Option "AllowIndirectGLX" "on"
    Option "IndirectGLX" "on"
EndSection
Reboot and it should work. at your own risk, of course...
Other distributions might put these files in different places.

Here are some useful resources:
https://www.visitusers.org/index.php?title=Re-enabling_INdirect_glx_on_your_X_server
https://lists.freedesktop.org/archives/xorg/2016-May/058072.html
https://askubuntu.com/questions/745135/how-to-enable-indirect-glx-contexts-iglx-in-ubuntu-14-04-lts-with-nvidia-gfx/747088

There seems to be a similar issue with XQuartz on the Mac, which is addressed by reverting to the last version that worked.

There was another instruction to add in the file /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
[SeatDefaults]
# Dump core
xserver-command=X -core +iglx
but this didn't work for me.

As for Wayland, typing Xwayland -h shows that the options include +iglx, but I wasn't able to find a config file for passing it startup options.

A longer term solution seems to be VirtualGL or TurboVNC. Does anyone have those working with 3dem visualization software?

regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ncmir.ucsd.edu/pipermail/3dem/attachments/20190203/5c0229f7/attachment.html>


More information about the 3dem mailing list