--nolisten tcp
Where do I put "--nolisten tcp" to make it so that X does not open a port?
|
startx -- -nolisten tcp
|
How do I make it so that anytime a user types "startx" on the system, it sends the "--nolisten tcp" argument.
|
alias startx='startx -blah' in /etc/bashrc or similar
|
I don't have a bashrc on the system. It's SuSE 7.0 by the way.
|
glock19, what shell do you use?
|
Oh, it's .bashrc
I have that. But I want startx to pass the --nolisten tcp argument for ALL users on the system. |
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.
|
If your users you bash add it to /etc/profile. You can use /etc/csh.login if they use csh or tcsh.
--jeremy |
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 |
I tried that, and it didn't work.
|
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 02:36 PM. |