Jump to content
Sign in to follow this  
sting

warning (.:10947): Gtk-WARNING **: cannot open display

Recommended Posts

Hello,

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...

 

Thanks....

Share this post


Link to post
Share on other sites

is X running on the linux box ? because that's what the error seems to be implying....

Share this post


Link to post
Share on other sites

"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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...