Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Mar 2024 19:38:46 -0800
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        garyj@gmx.de
Cc:        Tommy Johnson <tjohnson@bobdbob.com>, Daniel Braniss <danny@cs.huji.ac.il>, freebsd-hackers <hackers@freebsd.org>
Subject:   Re: How to add -listen tcp to Xorg
Message-ID:  <20240304033846.B9425139@slippy.cwsent.com>
In-Reply-To: <20240303200852.3d6e4ea6@ernst.home>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20240303200852.3d6e4ea6@ernst.home>, Gary Jennejohn writes:
> On Sun, 3 Mar 2024 13:28:27 -0500
> Tommy Johnson <tjohnson@bobdbob.com> wrote:
>
> > On Sun, 3 Mar 2024 18:05:51 +0000
> > Gary Jennejohn <garyj@gmx.de> wrote:
> >
> > > On Sun, 3 Mar 2024 19:29:14 +0200
> > > Daniel Braniss <danny@cs.huji.ac.il> 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 <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e^(i*pi)+1=0






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240304033846.B9425139>