qt.qpa.screen: QXcbConnection: Could not connect to display

Cannot get CutyCapt to work. I am running this on a CentOS 7 VM. I am running this directly on the command line and not using a script yet.

# echo $DISPLAY
:0
# CutyCapt --url= --out=test.jpg
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.

Have the same issue when I run it with xvfb-run

# xvfb-run --server-args="screen 0, 1920x1080x24" CutyCapt --url= --out=test.jpg
qt.qpa.screen: QXcbConnection: Could not connect to display :99
Could not connect to any X display.
/bin/xvfb-run: line 186: kill: (4853) - No such process

I enabled X11 Forwarding in the /etc/ssh/sshd_config as well, but does not seemed to have helped.

# cat /etc/ssh/sshd_config |grep X11Forw
#X11Forwarding no
X11Forwarding yes

Any suggestions on how to get this going?

1

1 Answer

You should replace X11Forwarding yes with ForwardX11 yes.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like