lemoncube.com Search: (normal)
Articles
Links
News
Projects

Disclaimer

Using VNC in inetd mode

These are just brief notes on setting up VNC in inetd mode. It essentially gives you these key features:

   1. Users connect to the same server:screen all the time
   2. A new 'screen' is automatically allocated when the user connects
   3. The user's session is killed when they disconnect (some might not call
      this a feature at all)
Add to /etc/services
   vnc-800x600x8   5951/tcp
   vnc-800x600x16  5952/tcp
Add the following to inetd.conf
   vnc-800x600x8   stream tcp nowait nobody /usr/local/bin/Xvnc Xvnc -inetd
    -query localhost -once -geometry 800x600 -depth 8
   vnc-800x600x16  stream tcp nowait nobody /usr/local/bin/Xvnc Xvnc -inetd
    -query localhost -once -geometry 800x600 -depth 16
Now send a -1 to inetd and run vncviewer connecting to:
   server:51   or server:52
I had the initial prob that the permissions on /tmp/.X11-unix were too restrictive so I did the old chmod 777. The number one speedup tip for VNC in general is to use corre encoding when you startup the client (this is if you are on a LAN).

pablo , 2003-09-24 22:25:57