Vnc server on a different port
The vncserver script seems to contain most of the configuration for the vnc server. In order to start vnc on an arbitrary port number, I started looking around in /etc, for any configuration relating to vnc. But I could not find anything there. As I was looking through the script /usr/bin/vncviewer, I found that the port number was derived using the display number which was given as a parameter at line 125 of that file. $vncPort = 5900 + $displayNumber; The only advantage of doing this is that you can start multiple instances of vncserver on one machine without having them fight for a single port number. If you need to start the vncserver always on port number 5900, you can change the line to something like this: $vncPort = 5900; Obviously, if you do this, it then becomes your responsibility to make sure no other instance of vncserver or any other service is running on port 5900.