Problem with VNC

Hi all,

I have a RHEL 5.0 vnc server. It is running on runlevel 5. When I try to connect with vnc client on Windows machine, it connects with no graphics. A terminal comes look like runlevel 3. When I check the run level on the terminal, it shows 5. I have both desktop (Gnome & KDE) installed on that server. Any suggestion?

Thanks in advance!

naw_deepak,

Did you export your xterm properly at vnc client? You need to export your xterm and make sure your pointing to your VNC server properly.

Cheers

Hi csorhand,

I edit the file $home/.vnc/Xstartup file like this and vnc is connecting without any issue.

#!/bin/sh

OSNAME=`/bin/uname -s`
if [ ${OSNAME} = Linux ]
then
exec /etc/X11/xinit/xinitrc
vncconfig -nowin &
else
xrdb $HOME/.Xdefaults
xrdb $HOME/.Xresources
echo 'dtsession*wmStartupCommand: /usr/dt/bin/dtwm' | xrdb -merge
exec /usr/dt/bin/Xsession &
vncconfig -nowin &
exec xset fp= tcp/localhost:7100
fi

Hope, it will resolve issues of many.
By the way, thanks for taking interest in my problem.

Have a blessed time,
Deepak

I am sending you a working script of xstartup. you should try to change your xstartup file with following script....

#!/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 &

try it..... I hope you problem will be solved

Done it and it's working. Thanks for reply.

Deepak