Skip site navigation (1)Skip section navigation (2)
Date:      22 Aug 2002 08:36:33 +0000
From:      Josh Paetzel <friar_josh@webwarrior.net>
To:        Eric Anderson <anderson@centtech.com>
Cc:        freebsd-doc@freebsd.org
Subject:   Re: docs/41865: [PATCH] XFree86 section should document -nolisten tcp option in startx
Message-ID:  <1030005394.226.23.camel@markx.vladsempire.net>
In-Reply-To: <3D64E095.6050001@centtech.com>
References:  <200208221240.g7MCe7eB007052@freefall.freebsd.org>  <3D64E095.6050001@centtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2002-08-22 at 13:01, Eric Anderson wrote:
> Please look over (and let me know where I may have biffed some SGML stuff) the 
> following patch to the FAQ for the -nolisten tcp option:
> 
> --- book.sgml   Wed Aug 21 17:13:17 2002
> +++ book.sgml-patch     Thu Aug 22 07:59:09 2002
> @@ -12377,6 +12377,22 @@
>         </qandaentry>
> 
>         <qandaentry>
> +        <question id="nolistentcp">
> +          <para>Why don't remote X displays work anymore?</para>
> +        </question>
> +
> +        <answer>
> +          <para>In more recent versions of FreeBSD (4.6 and greater), the
> +            default options to XFree86 now include a security enhancement
> +            which does not allow remote X displays.</para>
> +
> +          <para>If you would like to change this functionality, you can, by
> +            simply using the <quote>-listen_tcp</quote> option with startx
> +            (&man.startx.1).</para>
> +        </answer>
> +      </qandaentry>
> +
> +      <qandaentry>
>           <question id="change-kernel-address-space">
>             <para>How can I increase or reduce the kernel address space?</para>
>           </question>
> 
> 
> 
> 
> 
> 
> Eric Anderson wrote:
> 
> > The following reply was made to PR docs/41865; it has been noted by GNATS.
> > 
> > From: Eric Anderson <anderson@centtech.com>
> > To: Marc Fonvieille <blackend@freebsd.org>
> > Cc: freebsd-gnats-submit@freebsd.org
> > Subject: Re: docs/41865: [PATCH] XFree86 section should document -nolisten tcp option in startx
> > Date: Thu, 22 Aug 2002 07:38:54 -0500
> > 
> >  The FAQ seems like an appropriate place, and I agree with the "don't edit files 
> >  installed by ports/packages" for the most part.  It definitely needs to be 
> >  documented somewhere, since there are posts on various groups asking the 
> >  question, and rarely an answer.
> >  
> >  I'll try to whip up a FAQ piece for it.
> >  
> >  Eric
> >  
> >  Marc Fonvieille wrote:
> >  
> >  >>--- chapter.sgml        Wed Aug 21 17:13:25 2002
> >  >>+++ chapter.sgml-patch  Wed Aug 21 17:24:43 2002
> >  >>@@ -491,6 +491,17 @@
> >  >>        <application>XFree86 4.X</application> can also be started with
> >  >>        &man.xdm.1;.</para>
> >  >> 
> >  >>+      <para>In order for you to use remotely executed X-Windows programs
> >  >>+        such as an <application>xterm</application>, you will most likely
> >  >>+        need to change the <filename>/usr/X11R6/bin/startx</filename> X11
> >  >>+        startup script and change the line:</para>
> >  >>+
> >  >>+      <programlisting>listen_tcp="-nolisten tcp"</programlisting>
> >  >>+
> >  >>+      <para>to:</para>
> >  >>+
> >  >>+      <programlisting>listen_tcp=""</programlisting>
> >  >>+
> >  >>
> >  > 
> >  > It's not a good thing to tell people to change files installed by
> >  > ports/packages, it will lead to problems during "desinstallation" and/or
> >  > upgrade.
> >  > 
> >  > That option can be given to startx on the command line as documented in
> >  > startx(1).
> >  > 
> >  > I don't think, it should be in the Handbook, but maybe in the FAQ, and
> >  > also something about using "ssh -X" too would be great :)
> >  > 
> >  > Marc
> >  > 
body of the message
> 
It might not be a bad idea to sneak the version of X in where it changed, 
since there's no reason someone couldn't be running X 3.3.6 with FreeBSD
4.6.  I'm also not sure the change occured in 4.6, I seem to remember
having to deal with this issues in 4.4 or 4.5 maybe.

I didn't mean to suggest that people change the default startup files
with my initial response, I was pointing out to the originator of the PR
that there was indeed documentation about his issue, but maybe it's a
bit much to suggest one read the man pages for X before running it. ;)

Josh

ps yes, I know the faq and handbook are full of information that
duplicates info given in the man page. 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




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