[svlug] SuSE-9.1 and vnc

William R Ward bill at wards.net
Tue Sep 28 12:23:52 PDT 2004


Roland Krause writes:
>Scott, thanks for your reply.
>
>Could you elaborate a little on what that means? 
>
>Who started the vncserver on port 5900, the X-server? 
>How do I connect to it, i.e. trying to connect to donkeykong:0 from a
>remote vncviewer (on windows) does not work. Would donkeykong:5900
>work? 
>
>Actually I want a vncserver running by default so I'd be happy to use
>the one that's started by default. 
>
>I must be missing something obvious here. 
>Roland

I think what you're missing is that 5900 is a TCP port, while 0 is an
X display number.  The fact that colons are often used for both is
confusing, but they are not the same thing.  I don't know a lot about
VNC, but I do have a good understanding of how X works:

The X Window System uses a numbering system for multiple displays on
the same box.  An ordinary X session creates a server called ":0.0"
which you can probably see in your DISPLAY environment variable.  (If
no hostname appears before the : then it refers to the local host)

However, you can create multiple simultaneous X sessions.  For
example, you can run "startx -- :1" and create a second X session, and
switch back and forth using Ctrl+Alt+F7 and Ctrl+Alt+F8.  This could
allow you to share a workstation with a family member without logging
out or sharing desktops, for example.

But there are other kinds of X sessions.  For example if you SSH with
X forwarding enabled, it will establish an X session on the remote
host that tunnels through to your display.  Your $DISPLAY in that case
may have a value like "localhost:10.0"

Now, back to VNC: my knowledge of it is just theoretical, but I think
it does something similar to what I described for SSH.  You would
start a VNC server with :1 and then launch X apps there, which would
be routed through the VNC system to your client running on a Windows
box.  However, I think what you want to do is route your entire
desktop through to the Windows box while simultaneously displaying it
on the Linux box.  I'm not sure that :1 is of any use to you in that
case...  can someone clarify?

-- 
William R Ward               bill at wards.net             http://bill.wards.net
-----------------------------------------------------------------------------
   Help save the San Jose Earthquakes - http://www.soccersiliconvalley.com/




More information about the svlug mailing list