Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2005 17:17:55 +1000
From:      Ken Quach <duckeo@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Xvnc + inetd
Message-ID:  <89415954050626001752c3c470@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I'm trying to turn FreeBSD5.4 into a 'terminal server' of sorts,
allowing users to VNC in to access various network related utilities.

What I'm seeing is a gray screen when connecting into vnc, which I
know is indicative of not having a window manager set up.

My question is when running xvnc through inetd, I can specify which
user to run it as.

I've tried using root and nobody, as well as a 'vnc' user which I
created. In all cases it seems not to read the ~/.vnc/xstartup file as
I expect it would (e.g. /root/.xvnc/xstartup).

I've followed various guides to ensure settings are correct but now I'm stu=
mped.

Various config files are below. Any ideas as to what else I need to change?

--=20
/root/.vnc/xstartup:
#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
kdm &

--=20
/etc/inetd.conf (relevant line)
vnc-1024x768x16 stream  tcp     nowait  root    /usr/X11R6/bin/Xvnc
Xvnc -inetd -query localhost -geometry 1024x768 -depth 16 -once

I have also tried running it with tpcd
--=20
/usr/local/share/config/kdm/kdmrc
[Xdmcp]
# Whether KDM should listen to incoming XDMCP requests.
# Default is true
Enable=3Dtrue
# The UDP port on which KDM should listen for XDMCP requests. Do not change=
.
# Default is 177
Port=3D177
# File with the private keys of X-terminals. Required for XDM authenticatio=
n.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89415954050626001752c3c470>