Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
warning (.:10947): Gtk-WARNING **: cannot open display


I'm establishing a remote desktop connection from a windows xp to linux redhat server via ssh. I have a java application which is developed under J2SE using netbeans 5.0. I uploaded the jar files of the application to the server. I trying to execute that application but I'm getting this warning (.:10947): Gtk-WARNING **: cannot open display,


Hope guys you can help me...



is X running on the linux box ? because that's what the error seems to be implying....
I'm using putty to connect to the server... I'm a newbie in the world of linux, what is linux box? and what is X?

"X" is the graphical desktop.


To start yours, use "init 5" from putty - that will put your server in run-level 5 (graphical desktop). It's a good chance you're still running in run-level 3 (type runlevel to see what level you're currently in)


To stop it, just type "init 3" to drop back to run-level 3.


To have your server come up in 5 permanently, edit the /etc/inittab file and change the "initdefault" line from 3 to 5. Just be damned careful when editing this file - it can cause a non-bootable system next time around!


Forum Jump:

Users browsing this thread: 1 Guest(s)