Report this

What is the reason for this report?

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

Posted on October 13, 2019

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!



This textbox defaults to using Markdown to format your answer.

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.