LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error: Unable to initialize GTK+ Is Display set properly? (https://www.linuxquestions.org/questions/linux-newbie-8/error-unable-to-initialize-gtk-is-display-set-properly-4175431547/)

arun1234 10-10-2012 04:12 PM

Error: Unable to initialize GTK+ Is Display set properly?
 
Hello,

I am using putty through my windows machine to access a linux server and when I try to execute a script I am getting the error "Error: Unable to initialize GTK+ Is Display set properly?" I tried exporting the display varialbe but still getting same error. I have enabled the "X11Forwarding yes" in sshd_config file as well.

silendo 10-10-2012 04:25 PM

You have tried with

Code:

export DISPLAY=127.0.0.1:0.0

and

xhost +127.0.0.1


arun1234 10-10-2012 04:30 PM

Quote:

Originally Posted by silendo (Post 4802499)
You have tried with

Code:

export DISPLAY=127.0.0.1:0.0

and

xhost +127.0.0.1


I had used export DISPLAY=127.0.0.1:0.0 and tried executing the script but again the same error. I am not able to use "xhost +127.0.0.1" I get
xhost: unable to open display "127.0.0.1:0.0".


All times are GMT -5. The time now is 03:55 AM.