Date: Mon, 4 Mar 2024 07:53:55 +0200 From: Daniel Braniss <danny@cs.huji.ac.il> To: Cy Schubert <Cy.Schubert@cschubert.com> Cc: garyj@gmx.de, Tommy Johnson <tjohnson@bobdbob.com>, freebsd-hackers <hackers@freebsd.org> Subject: Re: How to add -listen tcp to Xorg Message-ID: <4138795E-DBCA-416F-935D-786EC594796A@cs.huji.ac.il> In-Reply-To: <20240304033846.B9425139@slippy.cwsent.com> References: <543CC273-7A51-4C12-981B-493CA69BE5FE@cs.huji.ac.il> <20240303181000.52322886@ernst.home> <EDB87342-EC3A-48C6-9CFD-D620E98C04D5@cs.huji.ac.il> <20240303190551.7ad01ac6@ernst.home> <20240303132827.72fca2af6bce173d81794f32@bobdbob.com> <20240303200852.3d6e4ea6@ernst.home> <20240304033846.B9425139@slippy.cwsent.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_A3B16E00-7682-4ABA-866C-B24F48868A20 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 thanks to all of you! adding -listen tcp to /usr/local/etc/X11/xdm/Xservers did it, and both = worked :0 local /usr/local/bin/X -terminate -listen tcp :0 or :0 local /usr/local/bin/X -terminate :0 -listen tcp btw, LISTEN in xdm is another thing, it=E2=80=99s about listening for = XDMCP requests. we used it way back in the days of the VAX and Xterminals - i'm giving = away the fact that i=E2=80=99m an old fart :-) thanks again, danny > On 4 Mar 2024, at 05:38, Cy Schubert <Cy.Schubert@cschubert.com> = wrote: >=20 > In message <20240303200852.3d6e4ea6@ernst.home>, Gary Jennejohn = writes: >> On Sun, 3 Mar 2024 13:28:27 -0500 >> Tommy Johnson <tjohnson@bobdbob.com> wrote: >>=20 >>> On Sun, 3 Mar 2024 18:05:51 +0000 >>> Gary Jennejohn <garyj@gmx.de> wrote: >>>=20 >>>> On Sun, 3 Mar 2024 19:29:14 +0200 >>>> Daniel Braniss <danny@cs.huji.ac.il> wrote: >>>>=20 >>>>> This is the trick that has worked for me since time immemorial: >>>>> In /etc/ttys: >>>>> ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure >>>>>=20 >>>>=20 >>>> Well, it doesn't work now. >>>>=20 >>>> I've never used xdm and have no idea what options it supports. >>>=20 >>> I fixed the problem by editing the file Xservers in = /usr/local/etc/X11/x=3D >> dm >>> to look like: >>>=20 >>> :0 local /usr/local/bin/X :0 -listen tcp >>>=20 >>> I am using xdm from .../ports/x11/xdm , as opposed to any of the >>> newer reimplementations. >>>=20 >>=20 >> 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. >=20 > For xdm, add -listen tcp to your Xserver specification, i.e., in =09 >=20 >=20 > :0 local /usr/local/bin/X -terminate -listen tcp :0 >=20 > CDE's dtlogin's Xservers file serves the same purpose >=20 > The moral of the story is, whatever your desired method of starting = your=20 > Xserver, check the man page. Most display managers will have a=20 > configuration file to specify how to invoke the Xserver. I don't know = about=20 > gdm, kdm or sddm. >=20 > Normally one doesn't need to fiddle around with this as ssh tunnels X.=20= > However, in my experience tunneling through an ssh session is slow. If=20= > you're on a private network, like I am (I'm the only one using my = network)=20 > opening an unencrypted X TCP socket is fine. But if you're sharing = that=20 > network with other, i.e. work, school, etc., tunnel through ssh. The = rule=20 > of thumb is, tunnel through ssh. >=20 >=20 > --=20 > Cheers, > Cy Schubert <Cy.Schubert@cschubert.com> > FreeBSD UNIX: <cy@FreeBSD.org> Web: https://FreeBSD.org > NTP: <cy@nwtime.org> Web: https://nwtime.org >=20 > e^(i*pi)+1=3D0 >=20 >=20 >=20 --Apple-Mail=_A3B16E00-7682-4ABA-866C-B24F48868A20 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" = class=3D"">thanks to all of you!<div class=3D""><br class=3D""></div><div = class=3D"">adding -listen tcp to /usr/local/etc/X11/xdm/Xservers did it, = and both worked</div><div class=3D""><span class=3D"Apple-tab-span" = style=3D"white-space:pre"> </span>:0 local /usr/local/bin/X = -terminate -listen tcp :0</div><div class=3D"">or</div><div = class=3D""> :<span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">0 local /usr/local/bin/X = -terminate :0 -listen tcp</span></div><div class=3D""><font = color=3D"#000000" class=3D""><span style=3D"caret-color: rgb(0, 0, 0);" = class=3D""><br class=3D""></span></font></div><div class=3D""><font = color=3D"#000000" class=3D"">btw, LISTEN in xdm is another thing, = it=E2=80=99s about listening for XDMCP requests.</font></div><div = class=3D""><font color=3D"#000000" class=3D"">we used it way back in the = days of the VAX and Xterminals - i'm giving away the fact = that</font></div><div class=3D""><font color=3D"#000000" class=3D"">i=E2=80= =99m an old fart :-)</font></div><div class=3D""><font color=3D"#000000" = class=3D"">thanks again,</font></div><div class=3D""><font = color=3D"#000000" class=3D""><span class=3D"Apple-tab-span" = style=3D"white-space:pre"> </span>danny<br = class=3D""></font><div><blockquote type=3D"cite" class=3D""><div = class=3D"">On 4 Mar 2024, at 05:38, Cy Schubert <<a = href=3D"mailto:Cy.Schubert@cschubert.com" = class=3D"">Cy.Schubert@cschubert.com</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">In = message <<a href=3D"mailto:20240303200852.3d6e4ea6@ernst.home" = class=3D"">20240303200852.3d6e4ea6@ernst.home</a>>, Gary Jennejohn = writes:<br class=3D""><blockquote type=3D"cite" class=3D"">On Sun, 3 Mar = 2024 13:28:27 -0500<br class=3D"">Tommy Johnson <<a = href=3D"mailto:tjohnson@bobdbob.com" = class=3D"">tjohnson@bobdbob.com</a>> wrote:<br class=3D""><br = class=3D""><blockquote type=3D"cite" class=3D"">On Sun, 3 Mar 2024 = 18:05:51 +0000<br class=3D"">Gary Jennejohn <<a = href=3D"mailto:garyj@gmx.de" class=3D"">garyj@gmx.de</a>> wrote:<br = class=3D""><br class=3D""><blockquote type=3D"cite" class=3D"">On Sun, 3 = Mar 2024 19:29:14 +0200<br class=3D"">Daniel Braniss <<a = href=3D"mailto:danny@cs.huji.ac.il" class=3D"">danny@cs.huji.ac.il</a>>= wrote:<br class=3D""><br class=3D""><blockquote type=3D"cite" = class=3D"">This is the trick that has worked for me since time = immemorial:<br class=3D"">In /etc/ttys:<br class=3D""><span = class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>ttyv8 = "/usr/local/bin/xdm -nodaemon" xterm on = secure<br class=3D""><br class=3D""></blockquote><br class=3D"">Well, it = doesn't work now.<br class=3D""><br class=3D"">I've never used xdm and = have no idea what options it supports.<br class=3D""></blockquote><br = class=3D"">I fixed the problem by editing the file Xservers in = /usr/local/etc/X11/x=3D<br class=3D""></blockquote>dm<br = class=3D""><blockquote type=3D"cite" class=3D"">to look like:<br = class=3D""><br class=3D"">:0 local /usr/local/bin/X :0 -listen = tcp<br class=3D""><br class=3D"">I am using xdm from .../ports/x11/xdm , = as opposed to any of the<br class=3D"">newer reimplementations.<br = class=3D""><br class=3D""></blockquote><br class=3D"">That's great! = I was hoping that a solution like this could work, since<br = class=3D"">it's similar to xinit passing -listen tcp to the Xserver.<br = class=3D""></blockquote><br class=3D"">For xdm, add -listen tcp to your = Xserver specification, i.e., in <span class=3D"Apple-tab-span" = style=3D"white-space:pre"> </span><br class=3D""><br class=3D""><br = class=3D"">:0 local /usr/local/bin/X -terminate -listen tcp :0<br = class=3D""><br class=3D"">CDE's dtlogin's Xservers file serves the same = purpose<br class=3D""><br class=3D"">The moral of the story is, whatever = your desired method of starting your <br class=3D"">Xserver, check the = man page. Most display managers will have a <br class=3D"">configuration = file to specify how to invoke the Xserver. I don't know about <br = class=3D"">gdm, kdm or sddm.<br class=3D""><br class=3D"">Normally one = doesn't need to fiddle around with this as ssh tunnels X. <br = class=3D"">However, in my experience tunneling through an ssh session is = slow. If <br class=3D"">you're on a private network, like I am (I'm the = only one using my network) <br class=3D"">opening an unencrypted X TCP = socket is fine. But if you're sharing that <br class=3D"">network with = other, i.e. work, school, etc., tunnel through ssh. The rule <br = class=3D"">of thumb is, tunnel through ssh.<br class=3D""><br = class=3D""><br class=3D"">-- <br class=3D"">Cheers,<br class=3D"">Cy = Schubert <<a href=3D"mailto:Cy.Schubert@cschubert.com" = class=3D"">Cy.Schubert@cschubert.com</a>><br class=3D"">FreeBSD UNIX: = <<a href=3D"mailto:cy@FreeBSD.org" = class=3D"">cy@FreeBSD.org</a>> Web: <a = href=3D"https://FreeBSD.org" class=3D"">https://FreeBSD.org</a><br = class=3D"">NTP: = <<a = href=3D"mailto:cy@nwtime.org" class=3D"">cy@nwtime.org</a>> = Web: <a href=3D"https://nwtime.org" = class=3D"">https://nwtime.org</a><br class=3D""><br class=3D""><span = class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><span = class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><span = class=3D"Apple-tab-span" style=3D"white-space:pre"> = </span>e^(i*pi)+1=3D0<br class=3D""><br class=3D""><br class=3D""><br = class=3D""></div></div></blockquote></div><br = class=3D""></div></body></html>= --Apple-Mail=_A3B16E00-7682-4ABA-866C-B24F48868A20--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4138795E-DBCA-416F-935D-786EC594796A>