From owner-freebsd-gnome@FreeBSD.ORG Thu Jun 18 16:40:40 2009 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46D571065675 for ; Thu, 18 Jun 2009 16:40:40 +0000 (UTC) (envelope-from nathan.stocks@gmail.com) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id EEDB28FC2B for ; Thu, 18 Jun 2009 16:40:39 +0000 (UTC) (envelope-from nathan.stocks@gmail.com) Received: by qyk3 with SMTP id 3so1541304qyk.3 for ; Thu, 18 Jun 2009 09:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=H8+0UbJFtmv1mwKFLGx+cTo24VEmV16qx1xgAej6zME=; b=usfsxS1lwFlSFyiCYVVdfE1btJ8zDicQLbC+HXDzpvTQye8i39LIuiUefwG35zCjDD wAFU4bb7OKQhU4rtElQU292H5HuweMopov+A2v3FRmxBz/BHZavq72Pw1ubqHYiXPBhb LkApkt5TSx/eIqFXA8J4AgVjyDp3TDOCh7wds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RAP4jCdN/B5xle0OjWwMfZ04hBi0e1iWP9aR8AcLcHslTrqn+QEO2ZC05saxTz+Xll yJqwfF08anX+cgxlZZwWPQ87vRxTixnpd4erzCH1aYQ/rdhiH9rmcRn/7AtFLpZIZsah vFHvOA1ZUr2op0vqcI4aq3d+fgplfDrMVvAFA= MIME-Version: 1.0 Received: by 10.220.92.204 with SMTP id s12mr1763110vcm.30.1245343238921; Thu, 18 Jun 2009 09:40:38 -0700 (PDT) In-Reply-To: <20090618152536.GA24358@mech-cluster238.men.bris.ac.uk> References: <1240594738.58743.10.camel@shumai.marcuscom.com> <1241076847.28498.291.camel@shumai.marcuscom.com> <1241100519.1761.10.camel@balrog.2hip.net> <20090430142744.GA32844@mech-cluster238.men.bris.ac.uk> <1241301413.33649.110.camel@shumai.marcuscom.com> <20090616095729.GA98713@mech-cluster238.men.bris.ac.uk> <1245183702.71590.6.camel@shumai.marcuscom.com> <20090617101407.GB84905@mech-cluster238.men.bris.ac.uk> <96c9d6a80906170914i78c0d1fas5ffa77020ec28c36@mail.gmail.com> <20090618152536.GA24358@mech-cluster238.men.bris.ac.uk> Date: Thu, 18 Jun 2009 10:40:38 -0600 Message-ID: <96c9d6a80906180940k7626e581g60c7f1a68006089a@mail.gmail.com> From: Nathan To: Anton Shterenlikht Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-gnome@freebsd.org Subject: Re: dbus, hal over xdmcp? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2009 16:40:41 -0000 On Thu, Jun 18, 2009 at 9:25 AM, Anton Shterenlikht wr= ote: > On Wed, Jun 17, 2009 at 10:14:03AM -0600, Nathan wrote: >> On Wed, Jun 17, 2009 at 4:14 AM, Anton Shterenlikht= wrote: >> > no, that doesn't work either. >> > I wonder if anybody has actually successfully used dbus with XDMCP. >> > I know it should work, but maybe nobody has tried, so perhaps there >> > are some issues. >> > >> > I have a user group of about 20 people, all under the university firew= all, >> > so insecurity of XDMCP is not a major concern. >> > I was thinking of having a powerful XDMCP server as an energy efficien= t >> > and easy to maintain model, since the desktops only need to have a goo= d >> > graphics card. If that is not working, then perhaps I have >> > to switch to plain ssh tunneling, and have full X installation on all >> > desktops. >> >> I don't know anything about dbus or hal, but we're using a FreeBSD 7.2 >> server that we just used to connect 150 thin clients (peak load of >> about 100 concurrently connected right now) to it over XDMCP to use >> gnome. =A0The biggest trick was finding the magic config line to >> configure xdm with (since gdm's xdmcp doesn't work). =A0After that, our > > Could you please elaborate on this magic line? > > many thanks > > -- > Anton Shterenlikht Absolutely. I preserved the exact procedures that we did to finally make it work, so I'll just paste it in here for you. The "magic line" that took us days to figure out is #2 below (apparently xdm doesn't listen to any ipv4 ports/addresses without that line). Note that it causes xdm to simply listen on all interfaces, from what I understand, so you would want to modify it if you are not entirely on a secure internal LAN. I used this procedure on FreeBSD 7.2-RELEASE-amd64. 1. Install xdm by entering cd /usr/ports/x11/xdm && make install 2. Add the following to the top of /usr/local/lib/X11/xdm/Xaccess: LISTEN 0.0.0.0 3. ...and in the same file uncomment: * #any host can get a login win= dow 4. In /usr/local/lib/X11/xdm/Xsession comment out the line: exec /usr/local/bin/xsm 5. And add this line right below it: exec gnome-session 6. In /usr/local/lib/X11/xdm/xdm-config use ! to comment out the last line so it looks like: !DisplayManager.requestPort: 0 7. Edit /etc/ttys so that the ttyv8 line has on instead of off so it looks like: ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure 8. Run kill -HUP 1 to make init reread /etc/ttys ~ Nathan