Getting VNCserver to start as display 0 on linux

Norberto Bensa nbensa "at" yahoo.com
Tue, 28 Aug 2001 02:31:52 +0000


From: "Barn Owl" <barnowl "at" uronramp.net>
Subject: Re: Getting VNCserver to start as display 0 on linux


> As  I seem to be answering a lot of the -inetd questions lately. What
> have you got so far? What kind of problems are you getting?
> Do you have a working XDM/GMD/KDM?
>
> Evan

Thanks Evan, I'll try to explain:

I have a network with 5 machines (1 Linux RedHat 7.1, X 4.1.0, KDE 2.2, 4 MS
Windows).
I have KDM working on the Linux machine, I do not have Gnome Installed.
When I try to start Xvnc trough -inetd (I'm using xinetd) all I get is a
gray screen and the X pointer, no login GUI.

I don't think this makes any difference but, I have Installed RedHat WITHOUT
X/GNOME/KDE, just gcc and nothing else. Then I compiled from sources (tar,
no SRPM), gcc 2.95.3, kernel 2.4.9, X 4.1.0, KDE 2.2, glibc 2.2.4... The
system is working, I can use KDE (or whatever WM I choose) on the Linux
machine, I can start vncserver, but I can't make the -inetd option work.

I started xinetd and reset kdm, and I can see with "nmap localhost -p
100-7000":
5950/tcp    open    unknown
6000/tcp    open    X11

[Question: Why isn't port 177 listed? Even "nmap localhost -sU -p 100-200"
shows nothing... :-/]


My config files:

###########
# /etc/xinetd.c/vnc
service vnc
{
    disable    = no
    socket_type    = stream
    protocol    = tcp
    port    = 5950 # xinetd doesn't need /etc/services
    user    = nobody # I tried root too, but nothing change
    wait    = no
    server    = /usr/bin/Xvnc
    server_args    = -inetd -query localhost -once -geometry 1024x768 -depth
16
}

###########
# /etc/X11/xmd/Xaccess
*

###########
# /etc/X11/xdm/xdm-config
DisplayManager.errorLogFile: /var/log/xdm-errors
DisplayManager.pidFile:  /var/run/xdm-pid
DisplayManager.keyFile:  /usr/X11R6/lib/X11/xdm/xdm-keys
DisplayManager.servers:  /usr/X11R6/lib/X11/xdm/Xservers
DisplayManager.accessFile: /usr/X11R6/lib/X11/xdm/Xaccess
DisplayManager.willing:  su nobody -c /usr/X11R6/lib/X11/xdm/Xwilling
DisplayManager.*.authorize: true
DisplayManager.*.setup:  /usr/X11R6/lib/X11/xdm/Xsetup_0
DisplayManager.*.startup: /usr/X11R6/lib/X11/xdm/GiveConsole
DisplayManager.*.reset:  /usr/X11R6/lib/X11/xdm/TakeConsole
DisplayManager.*.resources: /usr/X11R6/lib/X11/xdm/Xresources
DisplayManager.*.session: /usr/X11R6/lib/X11/xdm/Xsession
DisplayManager.*.authComplain: false
DisplayManager.requestPort: 177


Thanks in advance,
Norberto





_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
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
---------------------------------------------------------------------