From owner-freebsd-questions@FreeBSD.ORG Mon Jul 7 14:29:54 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 2D7E91065671 for ; Mon, 7 Jul 2008 14:29:54 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id C5B5E8FC17 for ; Mon, 7 Jul 2008 14:29:53 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from isis.bris.ac.uk ([137.222.10.63]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1KFriv-0002O3-LA; Mon, 07 Jul 2008 15:29:52 +0100 Received: from mech-cluster238.men.bris.ac.uk ([137.222.187.238]) by isis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1KFrit-0000T2-Qc; Mon, 07 Jul 2008 15:29:49 +0100 Received: from mech-cluster238.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-cluster238.men.bris.ac.uk (8.14.2/8.14.2) with ESMTP id m67ETl8Y010069; Mon, 7 Jul 2008 15:29:47 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster238.men.bris.ac.uk (8.14.2/8.14.2/Submit) id m67ETlX0010068; Mon, 7 Jul 2008 15:29:47 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster238.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Mon, 7 Jul 2008 15:29:47 +0100 From: Anton Shterenlikht To: Anders Troback Message-ID: <20080707142947.GA10030@mech-cluster238.men.bris.ac.uk> References: <20080706103842.GA52114@mech-cluster238.men.bris.ac.uk> <20080706141636.02d15667@baal.troback.com> <20080706152408.GA38234@mech-cluster238.men.bris.ac.uk> <20080706200524.4b626fc8@baal.troback.com> <20080707101711.GA49425@mech-cluster238.men.bris.ac.uk> <20080707152730.2ade42be@itpc02.gelita.swe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080707152730.2ade42be@itpc02.gelita.swe> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -1.4 X-Spam-Level: - Cc: freebsd-questions@freebsd.org Subject: Re: minimum xorg install for clients side 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, 07 Jul 2008 14:29:54 -0000 On Mon, Jul 07, 2008 at 03:27:30PM +0200, Anders Troback wrote: > On Mon, 7 Jul 2008 11:17:11 +0100 > Anton Shterenlikht wrote: > > > On Sun, Jul 06, 2008 at 08:05:24PM +0200, Anders Trob??ck wrote: > > > On Sun, 6 Jul 2008 16:24:08 +0100 > > > Anton Shterenlikht wrote: > > > > > > > On Sun, Jul 06, 2008 at 02:16:36PM +0200, Anders Trob??ck wrote: > > > > > > > > > > If you want to have a remote GUI logon with XDMCP install XDM, > > > > > GDM or KDM then you can start X with the -query parameter! > > > > > > > > > > If this wasn't what you where asking please ask again:-) > > > > > > > > sorry, I wasn't clear. > > > > > > > > I have 2 FBSD boxes: a server with no graphics card (S) and a > > > > laptop (L). I want to run X applications on S and see the results > > > > on L. The applications I run on S are typically xpdf, gs, xfig, > > > > display, firefox, etc. > > > > > > > > While I could install ports/xorg on both boxes, this is probably > > > > excessive. Since I won't run any xorg applications on L, I > > > > probably don't need xorg-apps on L. Likewise, since I'm not > > > > running xorg server on S, I probably don't need xorg-server on S. > > > > This is my basic understanding of xorg server-clients model. Is > > > > this logic correct? > > > > > > > > However, I'm not sure on what box (S, L or both) I need: > > > > xorg-libraries > > > > xorg-fonts > > > > xorg-drivers > > > > xorg-protos > > > > > > > > etc. > > > > > > > > > > If you are after a real minimal installation with XDMCP you can do > > > like this: > > > > > > On S: > > > x11/xdm > > > > > > On L: > > > x11-servers/xorg-server > > > x11-drivers/xf86-input-keyboard > > > x11-drivers/xf86-input-mouse > > > x11-drivers/xf86-video-intel (or what ever card you have) > > > x11-fonts/font-alias > > > x11-fonts/font-cursor-misc > > > x11-fonts/font-misc-misc > > > > > > Configure X on L: > > > X -configure > > > X -config xorg.conf.new > > > cp xorg.conf.new /etc/X11/xorg.conf > > > > > > Configure XDM on S: > > > Read http://www.freebsd.org/doc/en/books/handbook/x-xdm.html > > > > > > Start XDM on S: > > > xdm > > > (if you want it to start after reboot look for a line about xdm > > > (ttyv8) in /etc/ttys, change off to on) > > > > > > Start X on L: > > > X -query S > > > > Anders thanks > > > > I tried to follow your guidelines, but cannot see the login prompt > > after X -query S. I also cannot see port 177 open on S, only: > > > > 6000/tcp open X11 > > > > Should 177/udp and /tcp be open on S? How to do this? > > > > I've the following line in /etc/ttys: > > > > ttyv8 "/usr/X11R6/bin/xdm -daemon" xterm on secure > > > > and: > > > > % ps ax|grep xdm > > 38718 ?? Is 0:00.08 /usr/X11R6/bin/xdm -daemon ttyv8 > > 44523 ?? Rs 0:17.61 /usr/local/bin/X :0 > > -auth /usr/local/lib/X11/xdm/auth 44524 ?? Ss 0:08.04 xdm: :0 > > (xdm) 45544 v4 RL+ 0:00.01 grep xdm > > % > > > > and I commented out this line in xdm-config > > > > !DisplayManager.requestPort: 0 > > > > What am I missing? > > > > > > many thanks > > anton > > > > How does you /usr/local/lib/X11/xdm/Xaccess look? > > Try to put: > > LISTEN xxx.xxx.xxx.xxx > > where the xxx thing are the ip of S! I've the following two lines in Xaccess * LISTEN xx.xx.xx.xx where xx is the server ip. So it should give access to any server to xdm. I also notice these errors in xdm.log: xdm error (pid 9961): server open failed for myhost:0, giving up xdm error (pid 4191): Display myhost:0 cannot be opened xdm error (pid 4191): Display myhost:0 is being disabled where myhost is the nodename of L. I also realsed I might not need xdmcp, as I seem to be able to run graphical apps on S with ssh X11 forwarding. In which case all I need are the actual applications I run, e.g xterm or xpdf. So your initial responce to my question makes sense to me now. many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423