Porting VNC (Server)

I’ve been trying to get VNC (http://www.uk.research.att.com/vnc/) to port to
the QNX-RTP. First off let me explain what it is if you haven’t read about
it or tried it out. VNC is a lot like phindows (if you’ve heard of that,
made by QNX) in that it lets you run a display of one computer on another
computer. It has been ported to a large variety of platforms, someone has
even ported the viewer (client side) to the RTP (available at:
http://www.nexwarecorp.com/Developers/). I’ve been successful at running a
VNC server on a linux box and running a X-windows session on a windows
computer. After getting linux in windows, I thought: hmm I wonder if I can
get this beast to work in QNX-RTP, after all the RTP has some kind of
X-server built in it to run X-apps.

The server portion of VNC is branched from 3.3 something of the server
distribution of X-windows. I read up on the current (3.3.X) version of
X-windows and saw that it somewhat support QNX-RTP. So I took what I needed
out of the newer X-windows source and merged it into the VNC source (mostly
just putting #defines in for QNX-RTP).

After a lot of banging my head against the monitor, I got it compile (ugh X
sucks to compile too, if one file in any module screws up I had to recompile
the whole thing over again ~30 minutes each shot). OK, so now I try to run
the thing and it whines about not having xauth… So I dig around find the
xauth source and compile it and get it up and running. I read up on xauth
and its supposed to set up who can access the X-server on the machine its
running on. Well, xauth seems to have problems “adding” a sesion to its
database, I’m not sure if this is causing me problems though.

Anway, to make a long story short (too late for that now hehe). I finally
tried start the VNC server and (drum roll please) it fails miserably. Well
at least it doesn’t crash it just uses 100% of the CPU and won’t accept any
connections from my windows VNC client. I’m deep into stuff I don’t
understand now, I don’t understand x-windows good enough to figure out where
to look in the source.

Anyone else ever taken a crack at this, or is this just a bear to port?

Shane Warren

In article <90eq23$rjt$1@inn.qnx.com>,
Shane Warren <shanew@innvosys.com> wrote:

I’ve been trying to get VNC (> http://www.uk.research.att.com/vnc/> ) to port to
the QNX-RTP. First off let me explain what it is if you haven’t read about
[snip]

A couple of points,
the rtp support in XFree86 3.3.6 is, I believe, setup for
cross compiling from qnx4. It should be straight forward
to make any changes, if necessary, to compile it natively
on rtp. (someone may have done this already)
None of the Xphoton changes are in that source tree, so you
would be building native X servers, ie to run X instead of
Photon.
Also, Xphoton is not aware of what is on the Photon screen
apart from its own X windows that it displays there, so your
vnc session would only have access to the X programs you run.
(not, I think, what you want)

Having said that, you could
compile XFree and run native X on rtp, then integrate the
vnc server code into your server and have it behave like
the linux version
or
create a Photon specific vnc server.

(Personally, I would throw away the X server code and start
fresh from the protocol or even the client code to see what
the client expects. I have a few ideas, we’ll see if someone
beats me to it :slight_smile:


Garry Turcotte (R&D)
QNX Software Systems, Ltd.

On 5 Dec 2000, Garry Turcotte wrote:

In article <90eq23$rjt$> 1@inn.qnx.com> >,
Shane Warren <> shanew@innvosys.com> > wrote:
I’ve been trying to get VNC (> http://www.uk.research.att.com/vnc/> ) to port to
the QNX-RTP. First off let me explain what it is if you haven’t read about
[snip]

A couple of points,
the rtp support in XFree86 3.3.6 is, I believe, setup for
cross compiling from qnx4. It should be straight forward
to make any changes, if necessary, to compile it natively
on rtp. (someone may have done this already)
None of the Xphoton changes are in that source tree, so you
would be building native X servers, ie to run X instead of
Photon.
Also, Xphoton is not aware of what is on the Photon screen
apart from its own X windows that it displays there, so your
vnc session would only have access to the X programs you run.
(not, I think, what you want)

Having said that, you could
compile XFree and run native X on rtp, then integrate the

Speaking of compiling and running native XFree on rtp, that’s
what I am going to do, mainly because my 3DLabs video card (Gloria Synergy?)
is not supported by photon (Pete knows that) and probably never will,
but XFree86 supports it without a problem. I will need to use phinx
to run those rtp photon applications. Will that work and where is phinx?

Thanks!
Frank

vnc server code into your server and have it behave like
the linux version
or
create a Photon specific vnc server.

(Personally, I would throw away the X server code and start
fresh from the protocol or even the client code to see what
the client expects. I have a few ideas, we’ll see if someone
beats me to it > :slight_smile:


Garry Turcotte (R&D)
QNX Software Systems, Ltd.

In article <Pine.LNX.4.21.0012051120500.7719-100000@mama.indstate.edu>,
Frank Liu <liug@mama.indstate.edu> wrote:

Speaking of compiling and running native XFree on rtp, that’s
what I am going to do, mainly because my 3DLabs video card (Gloria Synergy?)
is not supported by photon (Pete knows that) and probably never will,
but XFree86 supports it without a problem. I will need to use phinx
to run those rtp photon applications. Will that work and where is phinx?

It would work, but phinx has not been ported to rtp.


Garry Turcotte (R&D)
QNX Software Systems, Ltd.

On 5 Dec 2000, Garry Turcotte wrote:

In article <> Pine.LNX.4.21.0012051120500.7719-100000@mama.indstate.edu> >,
Frank Liu <> liug@mama.indstate.edu> > wrote:

Speaking of compiling and running native XFree on rtp, that’s
what I am going to do, mainly because my 3DLabs video card (Gloria Synergy?)
is not supported by photon (Pete knows that) and probably never will,
but XFree86 supports it without a problem. I will need to use phinx
to run those rtp photon applications. Will that work and where is phinx?

It would work, but phinx has not been ported to rtp.

You know what I am going to ask next :slight_smile:
Will it be ported? How difficult will it be? When will it be ported?
If you don’t have time, can it be open sourced?
thanks!
frank


Garry Turcotte (R&D)
QNX Software Systems, Ltd.

In article <Pine.LNX.4.21.0012051212430.10744-100000@mama.indstate.edu>,
Frank Liu <liug@mama.indstate.edu> wrote:

On 5 Dec 2000, Garry Turcotte wrote:
In article <> Pine.LNX.4.21.0012051120500.7719-100000@mama.indstate.edu> >,
Frank Liu <> liug@mama.indstate.edu> > wrote:

Speaking of compiling and running native XFree on rtp, that’s
what I am going to do, mainly because my 3DLabs video card (Gloria Synergy?)
is not supported by photon (Pete knows that) and probably never will,
but XFree86 supports it without a problem. I will need to use phinx
to run those rtp photon applications. Will that work and where is phinx?

It would work, but phinx has not been ported to rtp.

You know what I am going to ask next > :slight_smile:
Will it be ported? How difficult will it be? When will it be ported?
If you don’t have time, can it be open sourced?

I don’t make the schedules or policy decisions so the following
is just my own opinion :slight_smile:

I believe it will appear for rtp, but the time hasn’t been
specifically scheduled as yet. The problem is that the qnx4
version is not readily portable (relying on the specific qnx4
select implementation, for example) For other reasons as well
it would be best to rewrite at least the core of phinx.


Garry Turcotte (R&D)
QNX Software Systems, Ltd.