Everything was working fine. I could do vnc an all. One fine day it just stops.
Information below
vncserver
xauth: (stdin):1: bad display name "xxx-linuxdesk:2" in "add" command
New 'apchitra-linuxdesk:2 (xxx)' desktop is xxx-linuxdesk:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/xxx-linuxdesk:2.log
LOG File
Xvnc Free Edition 4.1.3
Copyright (C) 2002-2008 RealVNC Ltd.
See
http://www.realvnc.com for information on VNC.
Underlying X server release 10502000,
Wed Jun 10 11:22:28 2009
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5902
vncext: created VNC server for screen 0
expected keysym, got XF86Info: line 914 of inet
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
~
/etc/init.d/vncserver start
Starting VNC server: no displays configured [FAILED]
VNC Config
#!/bin/sh
vncconfig -iconic &
# 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
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
exec gnome-session &