<div dir="ltr">The hacky workaround is to 'ssh -X' back into the node before running the srun, so you appear as if you are remote even if you aren't.<div><br></div><div>eg</div><div>ssh -X loginnode01</div><div>then:</div><div>ssh -X loginnode01</div><div>then:</div><div>srun --x11=first bash</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 22 Mar 2019 at 13:48, Loris Bennett <<a href="mailto:loris.bennett@fu-berlin.de">loris.bennett@fu-berlin.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I'm using 18.08.6-2 and have got X11 forwarding working using the<br>
in-built mechanism.  This works fine for users who log in with 'ssh -X'<br>
and then do 'srun --x11 --pty bash'.<br>
<br>
However, I have users who start a VNC session on the login node and when<br>
they run the srun command above from an xterm within the VNC session,<br>
they get<br>
<br>
  srun: error: Cannot forward to local display. Can only use X11 forwarding with network displays.<br>
<br>
Does anyone have any ideas whether this can be made to work and, if so,<br>
how?<br>
<br>
Cheers,<br>
<br>
Loris<br>
<br>
-- <br>
Dr. Loris Bennett (Mr.)<br>
ZEDAT, Freie Universität Berlin         Email <a href="mailto:loris.bennett@fu-berlin.de" target="_blank">loris.bennett@fu-berlin.de</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><b style="font-family:Arial;font-size:small">Nathan<span style="color:rgb(81,80,88)"> </span>Harper</b><span style="font-family:Arial;font-size:small;color:rgb(0,174,255)"> // </span><font size="2" style="font-family:Arial">IT Systems Lead</font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><br><font face="Arial" size="1"><strong><span style="color:rgb(0,174,255)">e: </span></strong><a href="mailto:nathan.harper@cfms.org.uk" style="color:rgb(81,80,88)" target="_blank">nathan.harper@cfms.org.uk</a> <span style="color:rgb(0,174,255)"> </span><font color="#222222"> </font><font color="#00aeff"><b>t</b>:</font><font color="#222222"> 0117 906 1104</font> <font color="#222222"> </font><font color="#00aeff"><b>m</b>:</font><font color="#222222">  0787 551 0891 </font><span style="color:rgb(0,174,255)"> <strong>w: </strong></span><a href="http://www.cfms.org.uk/" rel="noreferrer" style="color:rgb(81,80,88)" target="_blank">www.cfms.org.uk</a> <span style="color:rgb(0,174,255)"> </span></font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font face="Arial" size="1"><span style="color:rgb(81,80,88)">CFMS Services Ltd</span><span style="color:rgb(0,174,255)"> // </span><span style="color:rgb(81,80,88)">Bristol & Bath Science Park</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Dirac Crescent</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Emersons Green</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">Bristol</span> <span style="color:rgb(0,174,255)">//</span> <span style="color:rgb(81,80,88)">BS16 7FR</span> </font></div><div style="color:rgb(34,34,34);background-color:rgb(255,255,255)"><font face="Verdana" style="font-size:small"><img src="http://cfms.org.uk/images/logo.png"> </font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:Verdana"><span style="color:rgb(81,80,88);font-size:xx-small">CFMS Services Ltd is registered in England and Wales No 05742022 - a subsidiary of CFMS Ltd</span> <br><span style="color:rgb(81,80,88);font-size:xx-small">CFMS Services Ltd registered office // </span></span><font color="#515058" face="Verdana"><span style="font-size:xx-small">43 Queens Square // Bristol // BS1 4QP</span></font></div></div>