Click to See Complete Forum and Search --> : Unable to close X11 port 6000


Infohawk
09-22-2002, 06:23 PM
Problem:


Port State Service
6000/tcp open X11


I want it closed.

People have suggested starting X with the -nolisten tcp command. I've tried adding it to the default args and server args of my /usr/X11/bin/startx file with no luck. Here is the current state of my startx file


userclientrc=$HOME/.xinitrc
userserverrc=$HOME/.xserverrc
sysclientrc=/etc/X11/xinit/xinitrc
sysserverrc=/etc/X11/xinit/xserverrc
defaultclient=/usr/X11R6/bin/xterm
defaultserver=/usr/X11R6/bin/X
defaultclientargs=""
defaultserverargs="-nolisten tcp"
clientargs=""
serverargs="-nolisten tcp"

.... the rest is attached if you want to see it...



What do I have to do to close this port?

gleather
09-22-2002, 06:36 PM
I struggled with this as well. I use runlevel 3, so I just created a one line script called "go" that contained the line:
startx -- -nolisten tcp

When I'm ready to launch X, I just type go.

Infohawk
09-22-2002, 06:47 PM
Thanks for the suggestion.

I always run X on this Redhat system. I want X to start up automatically and I want to keep using the startx file so my system will stay as standard as possible so I don't have future problems.