Page 1 of 1

Black Screen with VNC

Posted: 2010/02/09 22:49:33
by Brianmahler
I had VNC working with accounts that were logged in. Then I went thru the procedure for vnc-itsp-config (step 5 of the how-to-centos5 vnc server wiki) so that I could log in remotely to an account that was not already logged in.

All went well until....I tried to log in and all I get is this X11 window with a X cursor and a black screen.

I have restarted the vncserver service but I suspect it is a x11 issue (just a guess).

Any suggestions?

Re: Black Screen with VNC

Posted: 2010/02/10 00:10:13
by chuina
a Google search with[code]Black Screen with VNC CentOS[/code] gives some useful links.

Re: Black Screen with VNC

Posted: 2010/02/18 20:36:47
by bveale
I have found that this line:

#!/bin/sh (-)

from section 2.4 of the [url=http://wiki.centos.org/HowTos/VNC-Server]VNC Server Wiki page[/url] caused the black screen for me, specifically the "(-)" part. Removing it fixed the problem for me.

Hope this helps,

-Byron

Re: Black Screen with VNC

Posted: 2010/02/22 15:19:05
by bveale
If you're looking for a definitive guide to remote login using vnc, in my opinion this is your best resource:

http://codeghar.wordpress.com/2009/06/11/remote-login-with-gdm-and-vnc-on-fedora-11/

I tried the wiki instructions, but it seems to me they aren't meant for using vnc to log in remotely -- more like screen sharing to an already logged-in session.

My 2 cents,

-Byron

Re: Black Screen with VNC

Posted: 2010/02/22 15:53:59
by pschaff
Thanks for the helpful posts. I am pinging the Wiki page maintainers about the "(-)" issue in the script and will have a look at your recommended VNC article as well.

Black Screen with VNC

Posted: 2010/02/22 16:52:47
by gerald_clark
I don't know where the "(-)" came from. I removed it.
It does not appear in V4.8 or V5.4 CentOS .vnc/xstartup files.

This portion of the instructions are for the modification of the vncserver created xstartup files.
The instructions are very specific about which lines to add and modify, and this line was not one of them.