The magic combination of yum sets this to work for me:
yum groupinstall -y "X Window System" yum install -y tigervnc-server tigervnc-server-module libXfont pixman xterm xorg-x11-twm chkconfig
then for convenience something like this is possible to make this happen.
echo 'VNCSERVERS="2:root"' >> /etc/sysconfig/vncservers
It is assumed that you do all this as root, and you are happy to run your vncserver on DISPLAY 2.
If you get an error message about refusing to connect to vncserver after starting, check a few things:
Your local firewall (iptables) or otherwise allows connections up to 5902 (or another port that your server uses)
You have not disabled the remote connection to vncserver through the VNCSERVERARGS option in / etc / sysconfig / vncservers as follows:
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
Something like
tcpdump port 5902
can help you decide if this is a local or remote firewall problem, etc.
Dave kierans
source share