Annotation of wikisrc/tutorials/how_to_stop_x11_from_listening_on_port_6000.mdwn, revision 1.1

1.1     ! mspo        1: By default, the X server listens on port 6000 for incoming connections. If you are directly connected to the internet, or don't trust others connected to your LAN, this could be a potential security risk. 
        !             2: 
        !             3: Disabling this can accomplished one of two ways. The first possible way is to run startx with the -nolisten tcp flag, i.e. 
        !             4:     
        !             5:     startx -- -nolisten tcp
        !             6:     
        !             7: 
        !             8: The more permanent way to do it (globally) is to edit the startx script. It will be located at /usr/X11R6/bin/startx if you installed the base X11, or /usr/pkg/xorg/bin/startx if you installed X.org from pkgsrc. 
        !             9: 
        !            10: Change the serverargs line to look like this: 
        !            11:     
        !            12:     serverargs="-nolisten tcp"
        !            13:     
        !            14: 
        !            15: If you are not the administrator of the system or you like to let free the users to choose their configuration, edit (or create) the ~/.xserverrc file and put this line to it: 
        !            16:     
        !            17:     exec X -nolisten tcp
        !            18:     
        !            19: 
        !            20:   
        !            21: Restart X, and you're all set! 
        !            22: 
        !            23: 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb