From owner-freebsd-questions@FreeBSD.ORG Sat Mar 1 02:38:04 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D69D51065670 for ; Sat, 1 Mar 2008 02:38:04 +0000 (UTC) (envelope-from daniel.iliev@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 5D6158FC12 for ; Sat, 1 Mar 2008 02:38:04 +0000 (UTC) (envelope-from daniel.iliev@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so691464uge.37 for ; Fri, 29 Feb 2008 18:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; bh=ybT9Pp75JiGzmz4sLXemE0QXLWzt6e8RDFq0/4/M7Jc=; b=ioa/oQsHErG5ci331yR3k+Bqd4yqFFScS8xsFJzqiVzgUpO1OQoV19LSDAHHiRyjVnI15J1BLNO90CApd8BVzyKYojCf4ExGtCVewIFgm4W6qvMIW4xEmPH/1j+3ViFMO7VUMnv9dv92a2L05OhGYp/bO+0U2HHWhOCfMkZTklY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; b=HUMIbL+d7x4HoABtIfO4i8JiFNrZrOyNBKbxNwfT92QMBMX3icJA+hVclpqlfh/Kd76RsM2FN8jsiTfbQ/8EolxcgWDdSmH16aTXtBz7hwP1fqKNXSwwKM4gUNGKjpgn731NJmlLUMsNuA8QRV4yahxL0ocfNGJNRQg6UlfMKHI= Received: by 10.67.20.3 with SMTP id x3mr2590787ugi.3.1204339083288; Fri, 29 Feb 2008 18:38:03 -0800 (PST) Received: from ilievnet.com ( [84.21.204.1]) by mx.google.com with ESMTPS id 13sm764329ugb.0.2008.02.29.18.37.59 (version=SSLv3 cipher=OTHER); Fri, 29 Feb 2008 18:38:00 -0800 (PST) Date: Sat, 1 Mar 2008 04:37:58 +0200 From: Daniel Iliev To: freebsd-questions@freebsd.org Message-ID: <20080301043758.004e0065@ilievnet.com> In-Reply-To: <20080301010139.GA8443@saraswathy.madambakam.org> References: <20080301011006.3c61b31a@ilievnet.com> <20080301010139.GA8443@saraswathy.madambakam.org> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.5; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: girishvenkatachalam@gmail.com Subject: Re: gdm + xdmcp 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: Sat, 01 Mar 2008 02:38:04 -0000 On Sat, 1 Mar 2008 06:31:39 +0530 Girish Venkatachalam wrote: > On 01:10:06 Mar 01, Daniel Iliev wrote: == snip == > > I started gdmsetup on the FreeBSD system and enabled "Remote > > Login" (XDMCP). It was followed by a "gdm-restart". No error > > messages, everything seems fine, but I can not connect to the > > FreeBSD box issuing "Xnest -query bsd.example.org :2" from the > > workstation. > > == snip == > > The two hosts are on the same HUB and in the same /24 private > > network. > > > > > > What am I missing in the FreeBSD setup? > > > > I am confused why you need Xnest. > > If you want the XDMCP of the remote host there are other means. Xnest > is meant for running multiple X sessions in the same server. > > If you want to access a remote machine's gdm, then you don't need > Xnest for that. > Indeed. It is not my intention to use XDMCP like that (although it has some advantages in some cases), but since the remote host wasn't on the local XDMCP list I tried a more direct approach. > You can test for UDP port 177 along with the TCP ports 6000 and above > with the nmap command. > > # nmap -sT -p 6000-6005 bsd.example.org # For X > # nmap -sU -p 177 bsd.example.org # For XDMCP > Sorry, I forgot to mention that. nmap gives: PORT STATE SERVICE 177/udp closed xdmcp 6000/tcp open X11 Actually I think the latter is not required, but I'll let everything be open and allowing until I get it working, then I'll disable the unnecessary options afterwards. > Most likely you have to enable "TCP listening" in gdm.conf. Just > uncomment the relevant line and you should be all set. > Now, this is where I get confused. In the gdm(1) man page it is stated the configuration file should be gdm.conf. Well, the man page is from 2003 and "pkg_info -L" doesn't show such a file. Instead there is "custom.conf{,.default}" and gdmsetup seems to be writing to this one. Its content seems OK (meaning policy="allow all") to me: sed -e '/^$/d;/#/d' /usr/local/etc/gdm/custom.conf [daemon] [security] AllowRemoteRoot=true DisallowTCP=false [xdmcp] Enable=true [gui] [greeter] Use24Clock=yes [chooser] [debug] [servers] So, I believe there's something about gdm that I'm still missing or it's just not working on FreeBSD. (bug?) > Best of luck! > > -Girish Thanks and the same to you! (Although I'd appreciate more help than luck in this case.) :) -- Best regards, Daniel