I want to use VNC for remote access to a local Centos 6.4 desktop. I've installed tigervnc server, set a password for the user, opened port 5901 in the firewall, and started the vnc server. I tried to connect from another desktop, but get the message:
connection to host 192.168.1.23 was closed
When I try from the commandline, I get this:
vncviewer: ConnectToTcpAddr: connect: No route to host
Searching for an answer, I found that I should change the server settings to
allow users to view desktop. I can't find a GUI tool to change this, and am not sure if this is the problem.
How can I get this working?
Below the code from ~/.vnc/xstartup (from the user)
#!/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 &