<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif}
a:link, span.MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
p
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif}
p.msonormal0, li.msonormal0, div.msonormal0
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif}
span.EmailStyle19
        {font-family:"Calibri",sans-serif;
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
-->
</style><style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0" vlink="#954F72" link="#0563C1" lang="EN-US">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>For X forwarding to Windows we've been using MobaXterm. I haven't heard of any OpenGL errors there, at least not yet. The X2go site says it's based on NX, which is VirtualGL. That should be better.</div>
<div><br>
</div>
<div>TeamViewer has its advantages for convenience but I don't think cluster administrators look on it kindly. It opens up all sorts of security issues if the users aren't careful.</div>
<div><br>
</div>
<div>As for Putty from Windows, I'd really recommend MobaXterm (or X2go) instead. I never got Xming to work. It's important to distinguish between simple graphical windows like xclock, and those like 3dmod using OpenGL. The latter need the indirect rendering.
 Give the command glxgears in the remote linux terminal. If you get errors then best look for another way.
<br>
</div>
<div><br>
</div>
<div>Michael</div>
<div><br>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF983495" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>From:</b> 3dem [3dem-bounces@ncmir.ucsd.edu] on behalf of frankg@bgu.ac.il [frankg@bgu.ac.il]<br>
<b>Sent:</b> Sunday, February 03, 2019 21:08<br>
<b>To:</b> 3dem@ncmir.ucsd.edu<br>
<b>Subject:</b> Re: [3dem] visualization of data from a remote server<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Hi,
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">We recently installed X2Go on our servers using the lightweight XFCE graphical environment.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">This works very well for us.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">There are versions of X2Go clients for Linux, W10 and Mac.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Gabriel A. Frank,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">BGU</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> 3dem [mailto:3dem-bounces@ncmir.ucsd.edu]
<b>On Behalf Of </b>Amar Dhananjai Parvate<br>
<b>Sent:</b> <span dir="RTL" lang="HE">יום א 03 פברואר 2019 20:35</span><br>
<b>To:</b> Michael Elbaum <michael.elbaum@weizmann.ac.il>; 3dem@ncmir.ucsd.edu<br>
<b>Subject:</b> Re: [3dem] visualization of data from a remote server</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">Dear All</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">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. </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">Here is what i am trying to do and of course its not working... </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">1) My workstation is a linux machine with Centos 7. I can access both single particle and tomography software through my home directory. </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">2) I have a Windows 10 laptop where i have installed my institute recommended Putty and Xming client for remote login</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">3) While off campus, my VPN works fine, i can log in to my workstation, access home directory and run anything command line properly. </span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-family:"Calibri",sans-serif; color:black">4) Issue comes when anything GUI needs to be displayed.
</span></b><span style="font-family:"Calibri",sans-serif; color:black">I have followed several tutorials for Putty and Xming, tried loging in to the computer via IP or
<a href="mailto:user@home.edu" target="_blank">user@home.edu</a>. Have tried several local hosts for X11 forwarding... and it doesnt seem to work. </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">I have even tried to edit the ssh-config file. where the X11 forwarding is turned off by default.  </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">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. </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">Be glad if anyone can share any solutions on this regard...</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black">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.  🤔</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
</div>
<div id="signature">
<div id="divtagdefaultwrapper">
<p style="background:white"><span style="font-family:"Calibri",sans-serif; color:black">Amar Parvate</span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif; color:black">Purdue University</span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif; color:black">Department of Biological Sciences</span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
</div>
</div>
<div class="MsoNormal" style="text-align:center" align="center">
<hr width="98%" size="3" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"> 3dem <<a href="mailto:3dem-bounces@ncmir.ucsd.edu" target="_blank">3dem-bounces@ncmir.ucsd.edu</a>>
 on behalf of Michael Elbaum <<a href="mailto:michael.elbaum@weizmann.ac.il" target="_blank">michael.elbaum@weizmann.ac.il</a>><br>
<b>Sent:</b> Sunday, February 3, 2019 10:27 AM<br>
<b>To:</b> <a href="mailto:3dem@ncmir.ucsd.edu" target="_blank">3dem@ncmir.ucsd.edu</a><br>
<b>Subject:</b> [3dem] visualization of data from a remote server</span> </p>
<div>
<p class="MsoNormal"> </p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"><br>
Hi all,<br>
<br>
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.<br>
<br>
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.
<br>
Edit the file /usr/bin/startx and change the line defaultclientargs="" to defaultclientargs="+iglx"<br>
+iglx allows indirect rendering by OpenGL applications.<br>
This is not relevant to most of us.<br>
<br>
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:<br>
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.)<br>
2) Create a new file /usr/share/X11/xorg.conf.d/50-iglx.conf:<br>
Section "ServerFlags"  <br>
Option "AllowIndirectGLX" "on"  <br>
    Option "IndirectGLX" "on"  <br>
EndSection <br>
Reboot and it should work. at your own risk, of course...<br>
Other distributions might put these files in different places.<br>
<br>
Here are some useful resources:<br>
<a href="https://www.visitusers.org/index.php?title=Re-enabling_INdirect_glx_on_your_X_server" target="_blank">https://www.visitusers.org/index.php?title=Re-enabling_INdirect_glx_on_your_X_server</a><br>
<a href="https://lists.freedesktop.org/archives/xorg/2016-May/058072.html" target="_blank">https://lists.freedesktop.org/archives/xorg/2016-May/058072.html</a><br>
<a href="https://askubuntu.com/questions/745135/how-to-enable-indirect-glx-contexts-iglx-in-ubuntu-14-04-lts-with-nvidia-gfx/747088" target="_blank">https://askubuntu.com/questions/745135/how-to-enable-indirect-glx-contexts-iglx-in-ubuntu-14-04-lts-with-nvidia-gfx/747088</a><br>
<br>
There seems to be a similar issue with XQuartz on the Mac, which is addressed by reverting to the last version that worked.<br>
<br>
There was another instruction to add in the file /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf<br>
[SeatDefaults]<br>
# Dump core<br>
xserver-command=X -core +iglx<br>
but this didn't work for me.<br>
<br>
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.<br>
<br>
A longer term solution seems to be VirtualGL or TurboVNC. Does anyone have those working with 3dem visualization software?<br>
<br>
regards,<br>
Michael</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>