Display number with inetd
Fri Aug 30 12:17:00 2002
> -----Original Message-----
> From: William Hooper [mailto:email@example.com]
> ----- Original Message -----
> From: "Marc Mazas" <firstname.lastname@example.org>
> > I'm on Solaris 8, with VNC 3.3.3R2 (Solaris 2.5 bundle).
> > I've an application (ERP Oracle Applications through Apache
> JServ) that
> > need to access the vnc server through a specific display
> number (as it
> > is a fixed parameter, so I choosed 99).
> > When I launch the vnc server through the command line, I
> get it ok (ie
> > the display is <host>:99 for X clients, like vncviewer).
> > But when I launch it through inetd (added a new service in
> > /etc/services, added a new entry in /etc/inetd.conf with 'Xvnc :99
> > -inetd -rfbport 5899 .' as arguments, like the ones produced by the
> > vncserver perl script), I get the vnc server ok, can work
> with it, but
> > the display is <host>:2, not what I want.
> > Does anybody have an explanation and/or a solution ?
> > TIA
> > Marc MAZAS
> If I understand correctly using VNC via inetd causes a new
> display to be
> generated per connection. The details of VNC don't change
> and it still uses
> one port per user. I assume you are trying to make it so
> multiple users can
> use the Oracle Applications. Unless they share a display
> number I don't
> think it is possible.
Correct me if I'm wrong but as I understand inetd, it works as follows:
- inetd gets a call from outside (on port 5950 for example)
- inetd re-routes the remote call to a port in it's free range
- inetd starts the attached app (`Xvnc -inet`) and connects the stdio of the
app to the new port
- the app just communicates to it's stdio, not knowing about the connected
For Xvnc, this requires the -inet option. If you also add the -rfb option, I
don't know what Xvnc does: accept both connections or just ignore one of the
I expect inetd does the session controll: once the connection (on the port
in it's free range) is closed, the application is killed.
btw: Xvnc -inet does still open a free port for it's X11 communication: the
first free port from 6000. This gives the X11 display number.