I'm trying to run several compute intensive python scripts on a server (Ubuntu 14.04.5 LTS) via ssh -Y and tmux. This works fine as long as I don't close the ssh connection. If I do close the connection, the currently running script will finish properly but the all scripts starting afterwards will get the error
gtk-WARNING **: cannot open display: localhost:10.0
The scripts are command-line-only but perhaps a library used for some reason needs a display. If I disconnect, the display is gone (my assumption). Is there a way to fix this (preferably without root access), perhaps a way to fool ubuntu into thinking there's a display while there is none?
- I first connect to a vpn and then ssh into the server (with -Y flag)
- I'm trying to run this script in a loop with different parameters each time. It uses
matplotlib.use('Agg')so matplotlib shouldn't be the problem (?) I can't think of anything else.
localhost:10.0before the error. If I connect from a different computer it returns
localhost:13.0. If I left the terminal on the original computer open, it will still return
localhost:10.0however if I open a new one it will now also return
- X11-Forwarding works normally, I can run any desktop app I tried so far. The problem are scripts that start after I disconnect/logout.