A great article on this, written from a RedHat Linux perspective, is here: http://www.sourcecodecorner.com/articles/vnc/linux.asp#vncserver.inetd