LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   --nolisten tcp (http://www.linuxquestions.org/questions/linux-general-1/nolisten-tcp-20596/)

glock19 05-09-2002 05:05 PM

--nolisten tcp
 
Where do I put "--nolisten tcp" to make it so that X does not open a port?

acid_kewpie 05-09-2002 05:35 PM

startx -- -nolisten tcp

glock19 05-09-2002 05:44 PM

How do I make it so that anytime a user types "startx" on the system, it sends the "--nolisten tcp" argument.

acid_kewpie 05-09-2002 05:51 PM

alias startx='startx -blah' in /etc/bashrc or similar

glock19 05-09-2002 06:01 PM

I don't have a bashrc on the system. It's SuSE 7.0 by the way.

jeremy 05-09-2002 06:53 PM

glock19, what shell do you use?

glock19 05-09-2002 07:08 PM

Oh, it's .bashrc

I have that.

But I want startx to pass the --nolisten tcp argument for ALL users on the system.

acid_kewpie 05-09-2002 07:25 PM

is it really too much hard work to pay the slightest bit of attention? i said /etc/bashrc no ~/.bashrc if that's what i meant, that's what i would have said. you myst already have that file, if for some reason it's not there, use /etc/profile or /etc/rc.local or whatever.

jeremy 05-09-2002 07:34 PM

If your users you bash add it to /etc/profile. You can use /etc/csh.login if they use csh or tcsh.

--jeremy

Xgates 01-23-2003 05:27 AM

Ok Lets do things the REAL Linux way :-)
 
glock19 the real way to do this is to go to /usr/X11R6/bin/startx or if your using some funky distro then do 'whereis startx' and locate the directory
open 'startx' and on this line:

serverargs="" change to this: ---> serverargs="-nolisten tcp"

Restart X bingo Bye Bye 6000

glock19 01-27-2003 12:31 PM

I tried that, and it didn't work.

clcbluemont 02-05-2013 04:45 PM

Dirty method is to find defaultserverargs="" in /usr/bin/startx and change it to defaultserverargs="-nolisten tcp"


All times are GMT -5. The time now is 06:32 PM.