From nobody Wed Mar 22 01:02:07 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ph9Dl1wQkz414Qp for ; Wed, 22 Mar 2023 01:02:31 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (2403-5800-5200-4700-225-90ff-fe47-39b4.ip6.aussiebb.net [IPv6:2403:5800:5200:4700:225:90ff:fe47:39b4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "dons.net.au", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ph9Dk5Cf5z3FGT for ; Wed, 22 Mar 2023 01:02:30 +0000 (UTC) (envelope-from darius@dons.net.au) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (2403-5800-5200-4700-b945-7a79-ec56-773f.ip6.aussiebb.net [IPv6:2403:5800:5200:4700:b945:7a79:ec56:773f]) (authenticated bits=0) by midget.dons.net.au (8.17.1/8.15.2) with ESMTPSA id 32M12HVA072484 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 22 Mar 2023 11:32:17 +1030 (ACDT) (envelope-from darius@dons.net.au) X-Authentication-Warning: midget.dons.net.au: Host 2403-5800-5200-4700-b945-7a79-ec56-773f.ip6.aussiebb.net [IPv6:2403:5800:5200:4700:b945:7a79:ec56:773f] claimed to be smtpclient.apple Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: Persuading ssh -X to work from a RasPiOS system From: "Daniel O'Connor" In-Reply-To: <20230322005957.GA37774@www.zefox.net> Date: Wed, 22 Mar 2023 11:32:07 +1030 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <5DC85526-F029-4B39-B680-015E33E2F68F@dons.net.au> References: <20230321232926.GA37569@www.zefox.net> <20230322005957.GA37774@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spam-Status: No, score=0.40 X-Rspamd-Server: midget.dons.net.au X-Rspamd-Queue-Id: 4Ph9Dk5Cf5z3FGT X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:4764, ipnet:2403:5800::/27, country:AU] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N > On 22 Mar 2023, at 11:29, bob prohaska wrote: > On Wed, Mar 22, 2023 at 10:11:08AM +1030, Daniel O'Connor wrote: >>=20 >>> On 22 Mar 2023, at 09:59, bob prohaska wrote: >>> After a recent round of upgrades to both FreeBSD-current and = RasPiOS64 >>> it developed that running=20 >>> ssh -X [freebsd hostname]=20 >>> gets me logged in, but issuing >>> xterm -sb >>> reports >>> xterm: Xt error: Can't open display:=20 >>> xterm: DISPLAY is not set >>=20 >> 'DISPLAY is not set' is saying that ssh hasn't done the forwarding. >>=20 >> If you run 'xterm' before you login to FreeBSD, does it work? >>=20 > Somewhat to my surprise, xterm isn't recognized as a command > on the RasPiOS end. The default terminal emulator is lxterminal, > but I thought xterm would still be recognized. Evidently not.=20 >=20 >> Perhaps you don't have an X server (eg you could be using Wayland I = guess) >>=20 >=20 > The RasPiOS system boots to the command line and the windowing > system is started up using startx. The man page for startx seems > to imply that the Pi is using some flavor of X, but I'm not sure > which one. Xwayland is available, but not installed.=20 OK, seems strange it wouldn't work then. You could try "ssh -vvvvvX user@freebsdhost" and see if there are = messages about X11 forwarding. =20 -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum