Hi Evren,

I'm not sure if --pry plays a significant role here. The DISPLAY variable, by 
default, is set to localhost:port_offset. SLURM itself doesn't do any x11 
forwarding so when your remote application attempts to connect to the x11 
server on the submission node, unless they're the same, the connection will 
fail. The solution is to set X11UseLocalhost to no in your sshd_config's on 
your clusters nodes, restart sshd and login again. 

Sent from my iPhone

On Sep 7, 2012, at 6:36 PM, Evren Yurtesen IB <[email protected]> wrote:

> 
> Hello,
> 
> I am trying to run programs with graphical output using slurm.
> 
> I tried srun's --pty option to start a shell. Everything looks fine and 
> DISPLAY variable is set, yet programs are not able to connect to the DISPLAY. 
> I get error stating failed to connect to localhost:11.0 from node1
> 
> Then I tried using P. Anderssons scripts and they seem to work fine:
> https://computing.llnl.gov/linux/slurm/faq.html#terminal
> 
> So, am I understanding correctly that --pty option should allow X11 
> forwarding? Is there a trick to get it working?
> 
> Thanks,
> Evren

Reply via email to