[slurm-users] X11 forwarding and VNC?

Nathan Harper nathan.harper at cfms.org.uk
Fri Mar 22 13:57:31 UTC 2019


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.

eg
ssh -X loginnode01
then:
ssh -X loginnode01
then:
srun --x11=first bash

On Fri, 22 Mar 2019 at 13:48, Loris Bennett <loris.bennett at fu-berlin.de>
wrote:

> Hi,
>
> I'm using 18.08.6-2 and have got X11 forwarding working using the
> in-built mechanism.  This works fine for users who log in with 'ssh -X'
> and then do 'srun --x11 --pty bash'.
>
> However, I have users who start a VNC session on the login node and when
> they run the srun command above from an xterm within the VNC session,
> they get
>
>   srun: error: Cannot forward to local display. Can only use X11
> forwarding with network displays.
>
> Does anyone have any ideas whether this can be made to work and, if so,
> how?
>
> Cheers,
>
> Loris
>
> --
> Dr. Loris Bennett (Mr.)
> ZEDAT, Freie Universit├Ąt Berlin         Email loris.bennett at fu-berlin.de
>
>

-- 
*Nathan Harper* // IT Systems Lead

*e: *nathan.harper at cfms.org.uk   *t*: 0117 906 1104  *m*:  0787 551 0891
*w: *www.cfms.org.uk
CFMS Services Ltd // Bristol & Bath Science Park // Dirac Crescent // Emersons
Green // Bristol // BS16 7FR

CFMS Services Ltd is registered in England and Wales No 05742022 - a
subsidiary of CFMS Ltd
CFMS Services Ltd registered office // 43 Queens Square // Bristol // BS1
4QP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20190322/9f934eca/attachment-0001.html>


More information about the slurm-users mailing list