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

Corne Beerse cbeerse "at" gmail.com
Fri Feb 16 10:28:01 2007


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.

>The earlier scenario was, when ever the user use to login server and use
>to run the command vncserver , where they use to get the port number to
>connect the server through vnc, once they login the session they were
>able to save the session till the time they kill the session manually
>from Linux server . that mean if they close the session and want to open
>the same session even after some day, they just have to give the
>ipaddress and the port number they have login earlier,
>
>  
>
If you want these re-entrant vnc-sessions, you should not use inetd or 
xinetd. If you want re-entrant vnc-sesions, you can either sitck by the 
default method where users start vnc manually or you can add the Xvnc 
binary as an additional X11 server. I've done this in the past on HP-UX 
using the CDE display manager and on Redhat (7.x) using gnome or kde. 
Scan the mail archive or vnc-websites for details.




Success

CBee