<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
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
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></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.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">This works very well for us.
<o:p></o:p></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Gabriel A. Frank,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">BGU<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></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 lang="HE" dir="RTL">יום א 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<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black">Dear All<o:p></o:p></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. <o:p></o:p></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... <o:p></o:p></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. <o:p></o:p></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<o:p></o:p></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. <o:p></o:p></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">user@home.edu</a>. Have tried several local hosts for X11 forwarding... and it doesnt seem to work. <o:p></o:p></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.  <o:p></o:p></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. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></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...<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></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.  🤔<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div id="signature">
<div id="divtagdefaultwrapper">
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">Amar Parvate<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">Purdue University<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">Department of Biological Sciences<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="3" width="98%" 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">3dem-bounces@ncmir.ucsd.edu</a>>
 on behalf of Michael Elbaum <<a href="mailto:michael.elbaum@weizmann.ac.il">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">3dem@ncmir.ucsd.edu</a><br>
<b>Subject:</b> [3dem] visualization of data from a remote server</span> <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></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">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">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">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<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>