From nobody Mon Mar 04 03:38:46 2024 X-Original-To: hackers@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 4Tp4DV3rN7z5BhrW for ; Mon, 4 Mar 2024 03:38:50 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tp4DV1bLmz444p for ; Mon, 4 Mar 2024 03:38:50 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTPS id gudwr7wedxDxGgzA9rfSdi; Mon, 04 Mar 2024 03:38:49 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id gzA7r15lhZ0jDgzA8rfXTZ; Mon, 04 Mar 2024 03:38:49 +0000 X-Authority-Analysis: v=2.4 cv=P8GZhTAu c=1 sm=1 tr=0 ts=65e54249 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=K6JAEmCyrfEA:10 a=9lY-8GGDAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=5c-f5QlEWJM5kxw4N9UA:9 a=CjuIK1q_8ugA:10 a=gm90v29TwbeTriBgtjlE:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id EA33B19CE; Sun, 3 Mar 2024 19:38:46 -0800 (PST) Received: by slippy.cwsent.com (Postfix, from userid 1000) id B9425139; Sun, 3 Mar 2024 19:38:46 -0800 (PST) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: garyj@gmx.de cc: Tommy Johnson , Daniel Braniss , freebsd-hackers Subject: Re: How to add -listen tcp to Xorg In-reply-to: <20240303200852.3d6e4ea6@ernst.home> References: <543CC273-7A51-4C12-981B-493CA69BE5FE@cs.huji.ac.il> <20240303181000.52322886@ernst.home> <20240303190551.7ad01ac6@ernst.home> <20240303132827.72fca2af6bce173d81794f32@bobdbob.com> <20240303200852.3d6e4ea6@ernst.home> Comments: In-reply-to Gary Jennejohn message dated "Sun, 03 Mar 2024 19:08:52 +0000." List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 03 Mar 2024 19:38:46 -0800 Message-Id: <20240304033846.B9425139@slippy.cwsent.com> X-CMAE-Envelope: MS4xfMqZchLocK81zLAmj/Txf+OR4H5LbuCH9Qet01YKH5hrWaikmFfqTKQdNTf1+ebbGeYs8MXSdkQFbG32oO/rlu+DLfPCgnBIhsD0yjw2pFdt9n6myT6F wuPpmRUnQ42g4S0vx9px6yhv8oFW4SbEpufZiNOgziMF6sZ53jBmmMEIxGy70mpuoNglBjNU7MxqDU8UhzaPJSHHNBKhyuRviDtHZK83OpRt7w+nJFL+sT9B a5Yqkffd1aFxifyyc4xEtVAXHpf2iHmfmzRs7o0PV+G5sTgIi7c8ZJwXdqO3VeK3 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4Tp4DV1bLmz444p In message <20240303200852.3d6e4ea6@ernst.home>, Gary Jennejohn writes: > On Sun, 3 Mar 2024 13:28:27 -0500 > Tommy Johnson wrote: > > > On Sun, 3 Mar 2024 18:05:51 +0000 > > Gary Jennejohn wrote: > > > > > On Sun, 3 Mar 2024 19:29:14 +0200 > > > Daniel Braniss wrote: > > > > > > > This is the trick that has worked for me since time immemorial: > > > > In /etc/ttys: > > > > ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure > > > > > > > > > > Well, it doesn't work now. > > > > > > I've never used xdm and have no idea what options it supports. > > > > I fixed the problem by editing the file Xservers in /usr/local/etc/X11/x= > dm > > to look like: > > > > :0 local /usr/local/bin/X :0 -listen tcp > > > > I am using xdm from .../ports/x11/xdm , as opposed to any of the > > newer reimplementations. > > > > That's great! I was hoping that a solution like this could work, since > it's similar to xinit passing -listen tcp to the Xserver. For xdm, add -listen tcp to your Xserver specification, i.e., in /usr/local/etc/X11/xdm/Xservers, :0 local /usr/local/bin/X -terminate -listen tcp :0 CDE's dtlogin's Xservers file serves the same purpose The moral of the story is, whatever your desired method of starting your Xserver, check the man page. Most display managers will have a configuration file to specify how to invoke the Xserver. I don't know about gdm, kdm or sddm. Normally one doesn't need to fiddle around with this as ssh tunnels X. However, in my experience tunneling through an ssh session is slow. If you're on a private network, like I am (I'm the only one using my network) opening an unencrypted X TCP socket is fine. But if you're sharing that network with other, i.e. work, school, etc., tunnel through ssh. The rule of thumb is, tunnel through ssh. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0