How to restore the session if vnc server is configure as daemon mode xinetd

Dhillon, Gurjit dhillon.gs "at" pg.com
Fri Feb 16 13:05:02 2007


I don't what this options does actually, but I have tried wait = yes, it
was no earlier.

I didn't got any screen if I do that, even if I do telnet it just wait
to give the response. 

[root "at" dev0 root]# telnet localhost 5985
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.

And if I change it back to wait = no , I get the telnet console and vnc
session too

[root "at" dev0 root]# telnet localhost 5985
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
RFB 003.003

Thanks for all your response. But I am in blank now, I have made all my
efforts to get this work, 

Gurjit Dhillon

-----Original Message-----
From: Peter Rosin [mailto:peda "at" lysator.liu.se] 
Sent: Friday, February 16, 2007 7:52 AM
To: Corne Beerse
Cc: Dhillon, Gurjit; vnc-list "at" realvnc.com
Subject: Re: How to restore the session if vnc server is configure as
daemon mode xinetd

On Fri, Feb 16, 2007 at 11:22:45AM +0100, Corne Beerse wrote:
> Dhillon, Gurjit wrote:
> 
> >I have set up vnc as a daemon mode through xinetd, it is working
fine.
> >
> > 
> >
> Great.
> 
> >User give ipaddress and the predefined port number to connect the vnc
> >server. The only difference is now user doesn't need to login the
Linux
> >server and generate the port number to connect the server through
vnc,
> >now it is asking for login and password to connect the server.  But
here
> >if user close the session after login or after his job done, and want
to
> >work in the same session after some day or some time, they are not
able
> >to do that.
> >
> > 
> >
> Thats one of the nice features of inetd (or xinetd): As soon as the 
> connection ends, the processes are cleared.
> If you want re-entrant vnc-sessions, you cannot use inetd or xinetd.

Bzzt, not entierly true. You should investigate the wait option of
inetd (wait = yes for xinetd). It is very possible to have a server
controlled by (x)inetd survive a disconnected connection.

That said, I don't know if any vnc server actually supports this mode
of operation, but I'd be surprised if they didn't.

[snip]

Cheers,
Peter