Discussion:
VNC Java viewer
Tony Reix
2003-08-29 12:42:28 UTC
Permalink
Hi,

I'm experimenting with the VNC viewer.
I have several questions.


1) It doesn't work (in my environment).
---------------------------------------

I've got the 3.3.7-x86_linux version.

The command:
# java vncviewer HOST samoa.dc.frec.bull.fr PORT 5902
starts, consumes CPU, but never displays any window.

The vncviewer works well.

What's wrong ?


2) Is it possible to incorporate the Java VNC classes into a Java application ?
-------------------------------------------------------------------------------
1) from a technical point of view ?
2) Would it mean my application will become an OpenSource application ?
3) Must I pay for that ?

I'd like to be able to incorporate the VNC Java viewer with no
constraint from realvnc (full authorization, no fees) and let
the decision of installing a vncserver to the customer.
The application would be: VNC-viewer-ready.
Is it possible ?


3) Is it possible to remotely display the output of only one
------------------------------------------------------------
X11 or Java application (xclock as an example), instead
of all the desktop ?
(and not by means of: xterm -display snoopy:2 & which
shows and application INSIDE a desktop).


Amicalement/Regards,

Tony Reix

Carpe Diem

********************************************************************************
Name: Tony Reix
Company: Bull SA : AIX/Linux R&D
EMail: ***@bull.net
EMail: From IBM Unix mailers: ***@frec.bull.fr
Position: System Management & Java Architect
Web-Site: http://www-frec.bull.com
Address: BULL, 1 rue de Provence, BP 208, 38432 Echirolles Cedex, France
Phone 04 76 29 72 67 (France), 33 4 76 29 72 67
Fax: 04 76 29 76 00 (France), 33 4 76 29 76 00
Bull Phone: 229-7267
Bull Address: FREC B1-204 Office: B1-183
********************************************************************************
Beerse, Corné
2003-08-29 15:05:43 UTC
Permalink
-----Original Message-----
Hi,
I'm experimenting with the VNC viewer.
I have several questions.
1) It doesn't work (in my environment).
---------------------------------------
I've got the 3.3.7-x86_linux version.
# java vncviewer HOST samoa.dc.frec.bull.fr PORT 5902
starts, consumes CPU, but never displays any window.
The vncviewer works well.
So, you have a vncserver running and a vncviewer to view it. Hence no
problems at both ends.

Have you tried to point your webbrowser to http://vncserver:5802/ ? Did you
get a view? If not, then you might need to enable (and configure) the
webserver inside the vncserver. see `Xvnc --help` for a list of commands,
its the http ones you need to set properly.
What's wrong ?
It might be java security. By default on some systems, java applets can only
connect to machines form which they came themselve. Hence try the webserver
aproach above.
2) Is it possible to incorporate the Java VNC classes into a
Java application ?
If you are a java developer, you should know. I'm not so I don't know.
--------------------------------------------------------------
-----------------
1) from a technical point of view ?
2) Would it mean my application will become an OpenSource
application ?
That depends on a lot of stuff. If you don't care, just go OpenSource. If
you do care (commercially) get a laywer to find out how and why.
3) Must I pay for that ?
The lawyer needs to be payed. You never need to pay for opensource, you most
times pay for the collection and distribution and other side effects.
I'd like to be able to incorporate the VNC Java viewer with no
constraint from realvnc (full authorization, no fees) and let
the decision of installing a vncserver to the customer.
The application would be: VNC-viewer-ready.
Is it possible ?
The use of the rfb protocol is free (I think, check the website for details)
and you can use the open source code as an example to write your own. If you
don't want to publish under the OpenSource rights, then don't publish at all
or avoid using copy-and-paste...
3) Is it possible to remotely display the output of only one
------------------------------------------------------------
X11 or Java application (xclock as an example), instead
of all the desktop ?
(and not by means of: xterm -display snoopy:2 & which
shows and application INSIDE a desktop).
No. However, that is server dependent. If you write a vncserver that does
what you describe, then you can point any vncviewer to it to see it. See the
origional vnc website, It has (had?) an example that shows a number in the
vncviewer.

Come to think of it, most unix driven vncservers are X11-servers and so
displaying the entire desktop. The newest vncviewers have multi display
capabilities (I've read, I'm not sure). If so, then it can (theoretically)
be possible to create a vnc-window-manager (vncwm) that creates a
vnc-session (rfb-stream) for every window. Be warned, this is rough
thinking, by far not implemented jet.


CBee

Loading...