Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Vnc viewer is showing black screen. Following are the configuration : Please figure out the issue ?

cat /root/.vnc/xstartup

#!/bin/sh

# Uncomment the following two lines for normal desktop:
 unset SESSION_MANAGER
 exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
====================================================================



vi /etc/sysconfig/vncservers

 VNCSERVERS="2:root"

 VNCSERVERARGS[2]="-geometry 1024x768"

=================================================================

Run level :

chkconfig --list vncserver
vncserver       0:off   1:off   2:on    3:on    4:on    5:on    6:off
share|improve this question
    
Which distro is server running? Make sure that it is running at runlevel 5. –  quanta Oct 6 '11 at 13:40
add comment

1 Answer

up vote 3 down vote accepted

I figured I should answer my own question...in case anyone else runs into a similar problem. I just added localhost to xhost, and voila! took me a lot of hunting around to find this solution, so maybe this'll help a couple of you.

chmod 775 xstartup
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.