VNC problem

Hello all,
I have the folowing problem:
When I connected to a VNC server instance, the screen on the vncserver was frezzed. So, I executed the following commands in order to reestablish the VNC instance:

service vncserver stop
service vncserver start

No problem at this point, but now when I try to access to the VNC server instance the screen seems no Gnome desktop and I can see only a mouse icon like an X, but no command or menu to activate.

Anyone have been faced with this?

Thank you in advance.

Edit ~/.vnc/xstartup.

Add gnome-session (or startkde if you like).

Hello Denka,
Thanks for your input. One more question: should I have to stop/start VNC after the change?

I have done you suggestion, and try to access via VNC client, but none have changed.

Thank you in advance.

Did you change the xstartup file for the same user as configured in /etc/sysconfig/vncservers?

Hi.
Just a small suggestion.
I found a document on wiki; imho it is very useful for setting up things correctly for VNC :

VNC Server Setup In Redhat Linux - The D.U.C.K. Project

Hope it may solve some of your doubts..

:slight_smile:

do you want to see in your vnc console ? Graphic or non graphic.

Check your filewall first.

If graphic,after running command vncserver,
edit the file ~/.vnc/xstartup like this

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER  <-- uncomment this line
exec /etc/X11/xinit/xinitrc  <-- uncomment this line

[ -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 &

and then run command

vncserver -kill :1 

run command

vncserver

again to create vnc session.