"Cannot open display" error on a GIMP batch script.

October 13, 2019 259 views
Ubuntu

Hello,

For an application I need to run simple batch scripts using GIMP. Once the command is executed, the error I get is:

Cannot open display:

It seems that even using the –no-interface flag it requires a display.

What might be the best way of solving this with minimal impact on CPU/Mem usage? I do not need to personally see the display, it should only run for this batch script.

Thank you!

1 Answer

Hey, @PSNick

I can see that you’re running this on Ubuntu droplet/server. May I ask if you’ve checked if X11Forwarding is enabled in the sshd config?
/etc/ssh/sshd_config

X11Forwarding yes

Let me know how it goes.

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!