Howdy VNC Folks,

I'm still having some trouble with this process. I examined the options 
for Xvnc with
   xvnc --help
and saw two options that should work for trying to get the java applet 
running with xinetd

  httpPort       - TCP port to listen for HTTP (default=0)
  httpd          - Directory containing files to serve via HTTP

So I modified my file for xinetd located in /etc/xinetd.d/vnc to be 
------------- screen clip
> cat vnc-server
service vnc-server
{
#        flags          = REUSE
#       type            = UNLISTED
#       port            = 5901
        id              = 5901
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -once -geometry 
1280x1024 -depth 16 -securitytypes=VncAuth -PasswordFile -httpPort 5801 
-http /usr/share/vnc/classes /usr/local/vnc/vncpasswd 
        log_on_failure += USERID
        disable  = no
}
---------------- end clip -------

Note that the server_args line is wrapped in the emailer. I have added 
in the two option to specify the port as 5801 and pointed to the 
location of the subdirectory that contains the files.

If I start xinetd with this option, it seems to allocate the :1 screen, 
in that if I try a simple "vncserver" command as non-root it assigns :2 
as the next screen. However, the xinetd version is unreachable either 
with vncviewer or with a browser giving a connection refused for 
vncviewer and a prompt box about connection broken, reconnect? from the 
browser. So it seems that these options are breaking Xvnc in some way. 
Note that it works find with the viewer if the two options are omitted, 
and a regular setup using vncserver allows access to both the viewer 
and java, all ports are accessible.

Does anyone have any ideas as to how this should be implemented or what 
I am doing wrong here? Any advice appreciated.

Alan D.




Date sent:              Fri, 24 Jun 2005 12:17:32 -0400 (EDT)
From:                   William Hooper <[EMAIL PROTECTED]>
Subject:                Re: JAVA/Browser access to Linus via xinetd?
To:                     [email protected]

> Alan A. Dunwell wrote:
> > Howdy List Folks,
> >
> >
> > I'm running a RHEL3.x linux box and routing the Xvnc through xinetd,
> > RedHat's version of inetd. This all works well for access with a VNC
> > viewer. I have been unable to discover any process for defining a
> > similar setup that will allow access from any browser using the JAVA
> > script plugin.
> 
> The java viewer is just an applet.  Set up an http server to serve the
> applet.  You can use the web page served by the VNC HTTP server as a
> guide.  I would guess that you would at least want to change the port.
> 
> If you are using the Red Hat provided VNC package, all the stuff you
> need should be in /usr/share/vnc/classes.
> 
> -- 
> William Hooper
> _______________________________________________
> VNC-List mailing list
> [email protected]
> To remove yourself from the list visit:
> http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to