[techtalk] X, port 6000 and how to stop it all.

eito at cs.pdx.edu eito at cs.pdx.edu
Thu Sep 28 12:47:28 EST 2000


Hi,

I am not sure about gdm, but for xdm, there is a file called
Xservers in like /usr/X11R6/lib/X11/xdm, /etc, or /etc/X11.
This file tell how the xdm should excute X servers for displays.
In the file, there should be a line like: (':0' is for first
local display)


:0 local /usr/X11R6/bin/X :0


If you want to pass '-nolisten tcp' option,


:0 local /usr/X11R6/bin/X :0 -nolisten tcp


I think that gdm has similar file like gdm.conf or something.
And, in the file, there should be a line with name of X server
and display name. And you should be able to give the option
in the same way as xdm.

I believe that this is a gdm's home page. (But, I could not
access this page.)

  http://www.socsci.auc.dk/~mkp/gdm/


HTH,

:eito


On Wed, Sep 27, 2000 at 10:10:09PM +1100, Mary Gardiner wrote:
> As a random exercise in port-closing, I'm trying to stop X opening
> 6000. There was an article on rootprompt.org that suggested passing
> '-nolisten tcp' to the incantation to start X.
> 
> Setup:
> /etc/rc.d/xdm starts X, since I'm using Helix Gnome I assume from this
> section of that script:
> 
> case "$DISPLAYMANAGER" in
>     kdm|kde|KDM|KDE)	 DISPLAYMANAGER=/opt/kde/bin/kdm   ;;
>     gdm|GDM|Gnome|GNOME) DISPLAYMANAGER=/opt/gnome/bin/gdm ;;
>     *)			 DISPLAYMANAGER=/usr/X11R6/bin/xdm ;;
> esac
> 
> that it eventually fires up gdm for me (I told it to use gdm during the
> Helix Gnome install).
> 
> I tried passing '-nolisten tcp' to /opt/gnome/bin/gdm with no luck, in
> fact it would appear from gdm's behaviour when passed '--help' and '-?' it
> ignores command line parameters. I also don't have a man page for gdm and
> xdm's is less than helpful.
> 
> Does anyone know how to do this?




More information about the Techtalk mailing list