salve, ho seguito il wiki
http://wiki.centos.org/HowTos/VNC-Server#head-95408f573ed703520125debac669df9c87256b82 per configurare il vncserver.
ho creato l'utente emodificato il file vncservers:
VNCSERVERS="2:user1"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
- aperto le porte firewall 5801 5901 5900
dal client ubuntu non mi si collega.
ecco il file xstartup
---------------------------------------
#!/bin/sh
[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
export LANG
export SYSFONT
vncconfig -iconic &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
-----------------------------------
mi aiutate e' la prima volta che lo configuro