Hello,

I'm trying the following without having good results.
I want to set up a vncserver on a redhat linux system, such that users
can login to the VNC Server, without starting the server for themselves.
Therfore I'm using the vncserver with xinetd.
Additionally, the passwords should not be stored in the $HOME/.vnc/passwd
file. The user authentication should be handled by UnixAuth.

To start a vncserver without xinetd is no problem. Everything works
fine then. But when i want to let it start by xinetd, the server was starting
(ps -A | grep vnc), but i can't connect to the server with a viewer.
When i try to connect, i'm getting the folling msgs:

# Wed Oct 26 14:06:22 2005
# TcpSocket:   connected to 127.0.0.1::5901
# CConn:       Connected to host localhost port 5901
# CConn:       Encryption set to 'Server'
# CConnection: Server supports RFB protocol version 4.0
# CConnection: Using RFB protocol version 4.0
# CConnection: Choosing security type RA2(5)
# RSA:         reading 2048-bit private key (default is 2048)
# RSA:         reading 2048-bit private key (default is 2048)
#
#Wed Oct 26 14:06:23 2005
# RSA:         RSA keys match
# RSA:         reading 2048-bit private key (default is 2048)
# RSA:         reading 2048-bit private key (default is 2048)
# RSA:         RSA keys match
# CConn:       Closed: End of stream

In the xinetd configuration i'm not sure which user i should use. I tried
 'nobody', <myusername> and 'root', everytime with the same result.
Here is the xinetd configuration:
# Configuration for vnc server settings
service vnc
{
        protocol = tcp
        socket_type = stream
        wait = yes
        user = root
        server = /usr/bin/Xvnc
        server_args = :1 -inetd -once -query localhost
-UserPasswdVerifier UnixAuth
}



I found a second way to start the Xvnc over xinetd in the vnc mailing list.
This solution uses a perl script as wrapper around the Xvnc to start
the server. I found it here:
http://www.realvnc.com/pipermail/vnc-list/2003-May/038951.html

For this, i used the following xinetd configuration:
service vnc
{
       protocol = tcp
       socket_type = stream
       wait = yes
       user = <myusername>
       server = /bin/vncserver.inetd
       # server_args = :1 -inetd -once -query localhost -UserPasswdVerifier none
}


This works very well, if i tell the xinetd, which user is allowed to connect.
In the xinetd configuration i set user=<myusername> and had no
problems to run the server. The only problem i have is, that the Xvnc
server doesn't
kill itself, if the session is terminated by the user.

Now i have two questions about this solution:
1. Is there a way to set up xinetd, such that every valid user can
host a vncserver for his own login session, without specifying every
user in the the xinetd configuration?

2. Because the Xvnc server doesn't terminate when the user finished with
    his/her session, how can it be terminated? Or how can the xserver
    behind this session be terminated?

If someone has an idea what goes wrong here, I would be glad
if he/she could help me.

Greetings,
Felix Steffenhagen
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to