From nobody Sun Mar 3 17:29:14 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 4Tnpjb5Bdvz5BxhC for ; Sun, 3 Mar 2024 17:29:39 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (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 4Tnpjb2P9Tz4ZCM for ; Sun, 3 Mar 2024 17:29:39 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=uhe+eZzoNr+p9c92ESJ96fAH8rqdDDBj/SbxoRH3ozc=; b=DRAaCxsqCsMP3Zcw8JcSsYJD73y5x8CnTzr6IIxWSZWFbIRszmBlwpsXQ3cSkalEm01RIfU2wXf+b4t0kWir+A9h4mJot2H/efFyYfw1YiErLOestUKeDQGvy/s8Vx7kSaygPrZK6IiicZDXJ96DzUpDdEbnxHzsDSh8pyR/tQ7ue0QTt5Yx89Y1WS8NnIszAh8y4soF5HZ7w5Oaw8OXEBIUfgE09iwO/aIsgcJPGwxP14R0OVcI5EMSZgOv6KUdX8MMyrdmNm75/PXUbCyz2Nfb63hQL5N3jjWGNWgAADEi394ErM24EpUjv0IPxr8rxAPe1yWqhEIJhXcAym9AyQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=uhe+eZzoNr+p9c92ESJ96fAH8rqdDDBj/SbxoRH3ozc=; b=Ru+JP8R2yjt+R8M7Q0c7vZtmg+PA3XQnh5rzptPfJFB/hrxgLEKqJVUBz6oB38YpBJcTBUSaiBQ8WTpAEJZAQ2tC2EOd8t2oqFWwVJaV6Qvaq/QqRZNPhgDwHkEf+w1xNzceA2wpYowM1grWvD94pEaXtv4CqPmtc/bD9ThJNW3nTdbdOQ8DsGezbApiRopnqpFbI695Xkl+e/XNb61PgIvjgZe7FsswtgVyz7KyOvcETvZ0grFcsPJBx+zUVHheiqvhpUNS9uwiVhUeGnBHxxflo80Tbv81Bk9mKvm0FyMGixAO5njwj7JS9KEXCiaRbThL/Ijn8HEVFu6QjiaFkg==; Received: from imac.bk.cs.huji.ac.il ([132.65.179.42] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1rgpeZ-000Gho-2g; Sun, 03 Mar 2024 19:29:35 +0200 From: Daniel Braniss Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_80859BFE-8149-4677-9E79-AA127F83EBE4" 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 (Mac OS X Mail 16.0 \(3774.400.31\)) Subject: Re: How to add -listen tcp to Xorg Date: Sun, 3 Mar 2024 19:29:14 +0200 In-Reply-To: <20240303181000.52322886@ernst.home> Cc: freebsd-hackers To: garyj@gmx.de References: <543CC273-7A51-4C12-981B-493CA69BE5FE@cs.huji.ac.il> <20240303181000.52322886@ernst.home> X-Mailer: Apple Mail (2.3774.400.31) 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:378, ipnet:132.64.0.0/15, country:IL] X-Rspamd-Queue-Id: 4Tnpjb2P9Tz4ZCM --Apple-Mail=_80859BFE-8149-4677-9E79-AA127F83EBE4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii This is the trick that has worked for me since time immemorial: In /etc/ttys: ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure > On 3 Mar 2024, at 19:10, Gary Jennejohn wrote: >=20 > On Sun, 3 Mar 2024 16:46:46 +0200 > Daniel Braniss wrote: >=20 >> Hi, >> In the past Xorg listen on port 6000 was the default, now it?s = disabled. >> Some years ago I changed this behavior back to enable, but now >> I can?t find my patch, and looking at the latest sources is mind = boggling, trying to >> set listen tcp is not working. >> Any help is most welcome, >> Danny >>=20 >=20 > How do you start Xorg? I use xinit with this command line: >=20 > /usr/local/bin/xinit -- -listen tcp >=20 > Of course, you'll need to have a .xinitrc for that to work. >=20 > -- > Gary Jennejohn --Apple-Mail=_80859BFE-8149-4677-9E79-AA127F83EBE4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii This is the = trick that has worked for me since time immemorial:
In = /etc/ttys:
ttyv8 =   "/usr/local/bin/xdm -nodaemon"  xterm   on = secure


On 3 Mar 2024, at 19:10, Gary Jennejohn = <garyj@gmx.de> wrote:

On Sun, 3 Mar 2024 = 16:46:46 +0200
Daniel Braniss <danny@cs.huji.ac.il> = wrote:

Hi,
In the past Xorg =  listen on port 6000 was the default, now it?s disabled.
Some = years ago I changed this behavior back to enable, but now
I can?t = find my patch, and looking at the latest sources is mind boggling, = trying to
set listen tcp is not working.
Any help is most = welcome,
= Danny


How do you start Xorg?  I use = xinit with this command line:

/usr/local/bin/xinit -- -listen = tcp

Of course, you'll need to have a .xinitrc for that to = work.

--
Gary = Jennejohn

= --Apple-Mail=_80859BFE-8149-4677-9E79-AA127F83EBE4--