Subject: Re: Probably a dumb question from an X novice...
To: NetBSD Vax Port <port-vax@netbsd.org>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: port-vax
Date: 09/25/2002 10:58:27
On Tue, Sep 24 2002 at 10:11:01 -0500, J. Buck Caldwell wrote:
> Is there a way to use VNC on a Vax running NetBSD as an X server? For 
> instance: I have a Vax running 1.5something (soon to be 1.6), and a PC 
> on the same network. Can I run VNC on the vax and VNCViewer on the PC 
> and get a graphical screen viewed on the PC, but running on the vax?
Yes, with Xvnc -I haven't tried it on Vaxens though.

The most elegant way (IMHO) is to startup an X displaymanger (e.g. xdm(*))
without local display which allows connections from localhost and have Xvnc
started up via inetd with something like this:

vnc stream tcp nowait nobody /usr/X11R6/bin/Xvnc XVnc -query localhost -depth 16 -geometry 1024x768 -once -inetd

vnc should be defined in /etc/services with a port number of 5900+n, n is
the display number you give to the vncviewer.

You can use other resoultions/colourdepths etc. of course. You can also put
multiple lines with different resolutions (and listening on different ports)
and so you will have multiple VNC displays with different capabilities.

It's a good idea to restrict access to this service with inetd/libwrap's
host_access control files (see host_access(5)).
Please note that vnc doesn't encrypt the connection so it should only used
on networks you trust or through encrypted tunnels.

(*) I think all you have to do with the stock xdm configuration is to
comment out or remove the :0 line in Xservers (in /usr/X11R6/lib/X11/xdm),
append a line containing "localhost" to Xaccess and remove the dash from the
line DisplayManager.requestPort:	177 in xdm-config.
-- 
Dies ist Thilos Unix Signature! Viel Spass damit.