[PLUG] vnc/xdmcp logins

Kyle Accardi sandbox at pacifier.com
Sat Mar 15 22:28:01 UTC 2003


Reference: Linux Magazine March 2003, "Simplififying Remote VNC Logins"

Required: vnc installed on server and client/s

My instructions for gdm on RH 7.3


Edit /etc/X11/gdm/gdm.conf

[xdmcp]
enable=true

---------------

Edit /etc/services, add

#resolutions you want
vnc-800x600	5900/tcp
vnc-1024x768	5901/tcp

---------------

Create /etc/xinetd.d/vnc-800x600

service vnc-800x600
{
	disable		= no
	socket_type	= stream
	protocol	= tcp
	wait		= no
	user		= nobody
	server		= /usr/bin/Xvnc
	server_args	= :1 -inetd -query localhost -geometry 790x572 -depth 16 -once 
-fp unix/:7100
}


Do this for each service you've added.  I knocked down the geometry to allow 
room for the window border.  If you use more than one resolution, increment 
the display number in server_args for each.  Use :2, :3 etc

---------------

Log out of X and restart.  Also restart xinetd.  ie. `service xinetd restart`

To check from the server itself, in an Xterm `vncviewer localhost`
If that works, try from a client: `vncviewer <hostname>`

Still working on adding to the wm selection from gdm.  There's more covered 
in the article that I've skipped, mainly firewall rules and kdm/xdm.
The mag should be available at your favorite Fred Meyers.

--
Cheers,
Kyle Accardi







More information about the PLUG mailing list