vncserver, display numbers and port numbers

Robert P. J. Day rpjday at crashcourse.ca
Mon Jan 7 15:45:22 UTC 2008


On Mon, 7 Jan 2008, William Hooper wrote:

> On Jan 6, 2008 2:40 PM, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
> [snip]
> > hmmmm ... not really, but you can see how vncserver thinks.  port 5906
> > is currently listening; therefore, display :6 is assumed to be
> > running, even though you *clearly* specified display :5 above.
>
> The vncserver command is just a perl script.  If you take a look at
> the script itself you will see that specifying ":5" is just used to
> calculate the port number, it has no significance beyond that.  Since
> you manually specified a port number, the ":5" is basically ignored.
>
> I take part of that back.  It does appear to also be used for the
> naming of the log file.

and (from memory), it's also used for the numbering of the associated
58xx and 60xx ports, so that the trifecta of 58xx/59xx/60xx port
numbers don't need to match in those last two digits.  or so i recall.
i can verify that later.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

Home page:                                         http://crashcourse.ca
Fedora Cookbook:    http://crashcourse.ca/wiki/index.php/Fedora_Cookbook
========================================================================




More information about the fedora-list mailing list