View previous topic :: View next topic |
Author |
Message |
MattM Retired Dev
Joined: 23 Apr 2002 Posts: 8 Location: San Diego, CA
|
Posted: Tue Apr 23, 2002 5:36 pm Post subject: Passing options to startx automatically? |
|
|
I want to pass -- -nolisten tcp to xfree86 automatically when I 'startx'.
What would be the best way to do this? I'd prefer to enter it in an actual config file, instead of an alias.
Also, is it possible to have XFS (XFontServer) open for localhost only via some sort of config or option within the program, or will I have to close the port with iptables or some other firewall type program?
Thanks,
Matt |
|
Back to top |
|
|
MattM Retired Dev
Joined: 23 Apr 2002 Posts: 8 Location: San Diego, CA
|
Posted: Wed Apr 24, 2002 2:38 am Post subject: |
|
|
I'm suprised noone knows how to stop X from opening a public port on port 6000.
Perhaps there is a better place to ask?
Matt |
|
Back to top |
|
|
stevil n00b
Joined: 22 Apr 2002 Posts: 12 Location: Minneapolis, MN
|
Posted: Wed Apr 24, 2002 3:13 am Post subject: |
|
|
I think this is what you are looking for:
Edit your startx script, on about line 25 you should see the line: serverargs="" Change this line to: serverargs="-nolisten tcp"
I got this information from the link in the gentoo desktop configuration guide in the xserver config section. I would check it out for more information, I've found it very useful as a new user of X. (Konqueror hates this site by the way
http://www-105.ibm.com/developerworks/education.nsf/linux-onlinecourse |
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Wed Apr 24, 2002 10:05 am Post subject: |
|
|
an easy way to this would be to just use an alias, add this to your /etc/profile
Code: |
alias startx="startx -nolisten tcp"
|
|
|
Back to top |
|
|
|