VNC and CentOS

I had some trouble getting VNC to connect to my CentOS box. The firewall prevented the connection.

The fix is simple enough:
[root]#/sbin/iptables -I RH-Firewall-1-INPUT -m state --state NEW -p tcp --destination-port 5901 -j ACCEPT

Saving the fix so it remains on boot seems a little more challenging; naturally I am mixed between the command line and graphical. I would like to know why my VNC connection seems to hang sometimes.

[root@sv ~]# apropos vnc
Xvnc (1) - the X VNC server
vncconfig (1) - configure and control a VNC server
vncpasswd (1) - change a VNC password
vncserver (1) - start or stop a VNC server
x0vncserver (1) - VNC server which continuously polls an X display

Prefer vncserver to Xvnc

Seems like the desktop from my vnc server gets hosed after a few months. I assume it is gnome, but I would think I get a new gnome session with each login. vncserver -kill :1 did the trick.

vncserver :1 -name G5 -depth 16 -geometry 1400x1000

Leave a Reply

You must be logged in to post a comment.