Running VNC on RedHat using xinetd

Edric Bulalacao egb "at" tonesoft.com
Tue, 28 Aug 2001 16:00:11 +0000


Here's a quick tutorial...someone might want to put this on their web site
as a FAQ:

Assumptions:
------------
1) Support 640x480, 800x600 & 1024x768 display resolutions, add/remove
display resolutions according to your preference.
2) Use color depth 8 (256 colors), change depth value according to your
preference
3) Ports 5950, 5951, and 5952 are free.
4) Disable access control on VNC, change this if you prefer
5) VNC binaries are located in /usr/local/vnc, it can be anywhere, just make
sure you change the server value
6) Using GNOME...I haven't tested this on KDE
7) Root access

Running VNC on Red Hat 7.1
==========================
1) Create a file for each display resolution and put it in /etc/xinetd.d.
Assign a descriptive filename to this file to make it easy to remember.
Note: You do not need to add anything to your /etc/services file because in
this example, we specified which port we'll be using.

Filename: vnc-640x480x8
The contents of this file will be:

# description: This vnc server serves 640x480x8 VNC sessions
service vnc-640x480x8
{
        socket_type     = stream
        protocol        = tcp
        port            = 5950
        wait            = no
        user            = nobody
        server          = /usr/local/vnc/Xvnc
        server_args     = -inetd -query localhost -once -geometry
640x480 -depth 8 -nevershared -ac
}
# end

So, vnc-800x600x8 will look like this:

# description: This vnc server serves 800x600x8 VNC sessions
service vnc-800x600x8
{
        socket_type     = stream
        protocol        = tcp
        port            = 5951
        wait            = no
        user            = nobody
        server          = /usr/local/vnc/Xvnc
        server_args     = -inetd -query localhost -once -geometry
800x600 -depth 8 -nevershared -ac
}
# end


Use port 5952 for 1024x768x8 and so on....

2) Do a "ps -ef |grep xinetd" to get the xinetd process id.

3) Do a "kill -SIGUSR1 PID", where PID is the process id found in step 2, to
restart xinetd.  VNC configuration is DONE!

4) Edit /etc/X11/gdm/gdm.conf.  Change the following parameters to these
values:
[security]
RelaxPermissions=0

[xdmcp]
Enable=1
HonorIndirect=1

[greeter]
Quiver=1

5) Test VNC connectivity.  Connect to port 5950 (640x480x8), 5951
(800x600x8), or 5952 (1024x768x8).  If it doesn't work, reboot Linux, and
test connectivity again.
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------