4

I'm trying to run Image application from server "bert"

I connected through my OSX Maverick as

ssh [email protected]

I compiled my file with

$ make

but when I run the resulting file

$ ./window

it gives me the following error:

Error: Unable to initialize gtk, is DISPLAY set properly?

How can I solve this problem?

3 Answers 3

5

You should connect with the -X or -Y option to be able to launch graphical applications:

ssh -X [email protected]

If that doesn't help, you should consult /etc/ssh/sshd_config whether X11Forwarding is enabled.

Sign up to request clarification or add additional context in comments.

3 Comments

Do you know how to do this in Putty?
Just check "Enable X11 Forwarding" in Putty under Connection / SSH / X11.
Did it, and still getting Error: Unable to initialize gtk, is DISPLAY set properly?
1

On macOS you need to install xquartz for x11 support https://support.apple.com/de-de/HT201341.

Then you can connect with

ssh -Y [email protected]

Comments

1

Try running ssh with the flags -Y -v.

If the following line appears on the terminal during the ssh connection, install xauth on your remote system.

debug1: Remote: No xauth program; cannot forward with spoofing.

As suggested here.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.