From owner-freebsd-questions@FreeBSD.ORG Mon Jun 27 08:03:28 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37B3E16A41C for ; Mon, 27 Jun 2005 08:03:28 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CDE343D1D for ; Mon, 27 Jun 2005 08:03:28 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout3.cac.washington.edu (8.13.4+UW05.04/8.13.4+UW05.05) with ESMTP id j5R83Rek003933 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 27 Jun 2005 01:03:27 -0700 Received: from [127.0.0.1] (cs331-37.spmodem.washington.edu [140.142.167.38]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.4+UW05.04/8.13.4+UW05.05) with ESMTP id j5R833jN030786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 27 Jun 2005 01:03:05 -0700 Message-ID: <42BFB2A6.5080003@u.washington.edu> Date: Mon, 27 Jun 2005 01:02:46 -0700 From: Garrett Cooper User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050319 X-Accept-Language: en-us, en MIME-Version: 1.0 To: duckeo References: <89415954050626001752c3c470@mail.gmail.com> <42BE9CDB.5040502@u.washington.edu> <89415954050626052730dc30d4@mail.gmail.com> <894159540506260530596e4be9@mail.gmail.com> <42BEA24B.7060109@u.washington.edu> <894159540506260553650b78c@mail.gmail.com> <42BEA983.4080403@u.washington.edu> <8941595405062606254936734d@mail.gmail.com> <42BEBDC7.7080709@u.washington.edu> <89415954050626083972db6d64@mail.gmail.com> In-Reply-To: <89415954050626083972db6d64@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Xvnc + inetd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2005 08:03:28 -0000 duckeo wrote: >> I don't know anything in general to accomplish X forwarding (except >>paid for solutions such as Reflection X, Hummingbird, etc), so maybe >>going with VNC is a good idea. So I suggest setting up everything >>described in the HOWTO, but have SSH keys setup so then people don't >>have to worry about 'annoying' password based logins via SSH. Read >>http://www.jfitz.com/tips/ssh_for_windows.html#Automatic_login for more >>details on how to do this via putty. The only thing I can think of >>that's causing issues is maybe kdm isn't running on port 177. Have you >>attempted setting it up to listen on port 177, and also have you checked >>to see if login via the local box is possible? >> >> > >KDM is definately listening, UDP 177: > >frisbee# netstat -aln >Active Internet connections (including servers) >Proto Recv-Q Send-Q Local Address Foreign Address (state) >tcp4 0 0 *.5961 *.* LISTEN >udp6 0 0 *.177 *.* > >5861 being VNC, 177 being XDMCP. > >I can't VNC from the local box, is there a way I can test local login >to KDM from the command line? I'm working on it remotely at the >moment, SSH'd in from Windows. > > > Anything X related needs to be run through a running X server; command line invocations aren't possible. You can try running vncserver though and then VNC into the server at the display as root to see if your VNC server config at least works. vncserver -localhost is your friend in this case :). >Just a thought, would the fact that it's listening on UDP6 be a factor? > > Shouldn't be I would think. Well, as long as identd knew that it was UDP and not TCP and Xvnc was catching the listening port correctly :P. Besides, UDP[v]6 supports UDP[v]4, correct? I would sure hope so... And judging by the HOWTO it's supposed to do that. > >Xvnc is the binary, vncserver is a longish script I'm sifting through. >It appears it just has a bunch of default settings in there, what I >might do is try to modify one or two and see if the >/root/.vnc/xstartup is having an effect (being invoked). > Take a look in there, but not too hard. Try logging in 'single user mode' by invoking vncserver directly as root, or attempt calling vncserver from within inetd.conf as opposed to Xvnc, just for testing's sake. One thing I find interesting is that Xvnc is being called as user 'nobody' and not root, so therein may lie your issue ;). Therefore, creating an additional unprivileged user and then creating all the necessary settings for that user and configuring inetd to call Xvnc as your user may serve to be the solution you're looking for. -Garrett