From owner-freebsd-questions@freebsd.org Sun Oct 23 22:26:18 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65AFEC1EB07 for ; Sun, 23 Oct 2016 22:26:18 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17848FD2 for ; Sun, 23 Oct 2016 22:26:17 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [192.168.151.122]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id u9NMQ5bv014714; Sun, 23 Oct 2016 16:26:06 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: enabling remote X clients (was: test of encryption) References: <98b881ac-b75f-3d89-b759-39164b5a1558@dreamchaser.org> <20161023121124.3b7fd738@net.jail> To: maxnix , freebsd-questions@freebsd.org From: Gary Aitken Message-ID: <1c5677d0-9a63-1017-b255-caf98504c6e2@dreamchaser.org> Date: Sun, 23 Oct 2016 16:26:05 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161023121124.3b7fd738@net.jail> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [192.168.151.101]); Sun, 23 Oct 2016 16:26:06 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2016 22:26:18 -0000 On 10/23/16 04:11, maxnix wrote: > Il giorno Fri, 21 Oct 2016 21:15:53 -0600 > Gary Aitken ha scritto: >> On 10/21/16 21:14, Gary Aitken wrote: >>> In the process of installing 10.3 on former 9.2 system w/ /usr/home >>> on a separate disk & unchanged. >>> >>> Having done "xhost +", >>> I still can't spawn an xterm from a remote machine on the local net: >>> >>> Xt error: Can't open display: aaa.bbb.ccc.ddd:0.0 >>> >>> Remote account has no .Xauthority; >>> local account from which X started does. >>> >>> "This used to work"... >>> Scratching all body parts, still coming up short. >>> >>> Hints? > Some time ago X switched to > > -nolisten tcp > > by default. To allow remote connections start your X server with > > -listen tcp > > Xserver(1) and Xorg(1) can also be useful resources. Thanks. That helps but I'm now getting really strange results. I've searched high and low and can't find an example that does what I want; most are older and show how to disable tcp, not enable it with good results. .xserverrc: /usr/local/bin/X :0 -listen tcp or /usr/local/bin/X :0 -listen local -listen tcp 1. When using either of the above, the server and apps take a lot longer to start and settle down to the initial display. 2. My startx starts up a clock, xfwm4, and 5 xterms; the last xterm is the controlling terminal. When exiting the controlling xterm, I'm left with a set of xterms instead of returning to a normal system prompt without X. It's as if the server used two screens, one behind the other. Exiting the controlling terminal again (the one left on the display after the first exit) leaves the display in a mode where I can't see anything, and I have to power off and restart. What I want it to do is start up normally using the standard unix sockets, but allow logins over tcp. Obviously I'm doing something wrong, but the docs aren't very clear as I read them.