Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Passing options to startx automatically?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
MattM
Retired Dev
Retired Dev


Joined: 23 Apr 2002
Posts: 8
Location: San Diego, CA

PostPosted: Tue Apr 23, 2002 5:36 pm    Post subject: Passing options to startx automatically? Reply with quote

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
View user's profile Send private message
MattM
Retired Dev
Retired Dev


Joined: 23 Apr 2002
Posts: 8
Location: San Diego, CA

PostPosted: Wed Apr 24, 2002 2:38 am    Post subject: Reply with quote

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
View user's profile Send private message
stevil
n00b
n00b


Joined: 22 Apr 2002
Posts: 12
Location: Minneapolis, MN

PostPosted: Wed Apr 24, 2002 3:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Wed Apr 24, 2002 10:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum