I'm having a difficult time configuring inetd to start the VNC server
automatically. So far here's what I've done:
Add the following lines to my /etc/services:
============================================
vnc-640x480x8 5950/tcp
vnc-800x600x8 5951/tcp
vnc-800x600x16 5952/tcp
Add the following lines to my /etc/inetd.conf:
==============================================
vnc-640x480x8 stream tcp nowait nobody /usr/local/vnc/Xvnc-50 Xvnc
vnc-800x600x8 stream tcp nowait nobody /usr/local/vnc/Xvnc-51 Xvnc
vnc-800x600x16 stream tcp nowait nobody /usr/local/vnc/Xvnc-52 Xvnc
Create the following files in /usr/local/vnc (Xvnc-50, Xvnc-51, Xvnc-52),
all having the following lines:
============================================================================
============
#!/bin/sh
myname=`basename $0`
cmd="/usr/local/vnc/Xvnc -inetd -broadcast -once -fp tcp/localhost:7100"
case $myname in
Xvnc-50)
exec $cmd -geometry 640x480 -depth 8
;;
Xvnc-51)
exec $cmd -geometry 800x600 -depth 8
;;
Xvnc-52)
exec $cmd -geometry 800x600 -depth 16
;;
esac
Whenever I try connecting to the server using VNC viewer on my Windows 98
laptop, I keep getting a message that says, "Invalid protocol". I've tried
putting ports 5950, 5951, 5952, 50, 51, and 52 on the viewer. They all give
me the same message. If I put any other port, it says, "Failed to connect
to server". Can anyone tell me how to get this to work? Thanks.
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------