<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div dir="ltr">
<div>Hi Mahmood,</div>
<div><br>
</div>
<div>To get native X11 working with SLURM, we had to add this config to sshd_config on the login node (your rocks7 host)</div>
<div><br>
</div>
<div>X11UseLocalhost no</div>
<div><br>
</div>
<div>You'll then need to restart sshd</div>
<div><br>
</div>
<div>Sean<br>
</div>
<div>
<div>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<div dir="ltr">--</div>
<div dir="ltr">Sean Crosby</div>
<div dir="ltr">
<div dir="ltr">Senior DevOpsHPC Engineer and HPC Team Lead | Research Platform Services</div>
<div>Research Computing | CoEPP | School of Physics<br>
</div>
</div>
<div dir="ltr"><span style="font-size:12.8px">University of Melbourne</span><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, 15 May 2019 at 09:00, Mahmood Naderan <<a href="mailto:mahmood.nt@gmail.com">mahmood.nt@gmail.com</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">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default" style="font-family:tahoma,sans-serif">Hi<br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">I think I have asked this question before, but wasn't able to fix that. While "xclock" command works by "ssh -Y", srun with x11 option fails to opens xclock.<br>
<br>
[mahmood@rocks7 ~]$ srun --x11 --nodelist=compute-0-0 --account y4 --partition RUBY -n 1 -c 4 --mem=1GB xclock<br>
srun: error: Cannot forward to local display. Can only use X11 forwarding with network displays.</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">[mahmood@rocks7 ~]$ sinfo --version<br>
slurm 18.08.4<br>
<br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">You can see the picture where xclock works.</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><a href="https://pasteboard.co/IeJ0e8w.png" target="_blank">https://pasteboard.co/IeJ0e8w.png</a></div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">Any thought?<br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br clear="all">
</div>
<div>
<div dir="ltr" class="gmail-m_3466379502269312333gmail-m_-352142096758003457gmail_signature">
<div dir="ltr"><font face="tahoma,sans-serif">Regards,<br>
Mahmood</font><br>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</body>
</html>