LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2011, 05:14 AM   #1
Plymouth
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
Editing sysctl.conf


I'm trying to automatically adjust the ping rate at startup by inserting the command sysctl -w net.ipv4.icmp_echo_ignore_all=1 into the sysctl.conf file.

However, I cannot open the file.

Any suggestions please?
 
Old 10-02-2011, 05:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sysctl.conf is, as the name suggests, a *config* file, not a script, you wouldn't add it. As to why you can't open it, that doesn't really make any sense. It should be world readable. you wouldn't be able to save it without being root, but as you've not explained at all what you're doing to try to open it, or what actually happens it's hard to comment. open a terminal and become root, then run "vi /etc/sysctl.conf" and it will be there for you.
 
1 members found this post helpful.
Old 10-02-2011, 05:35 AM   #3
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Rep: Reputation: 56
You can just add it to your /etc/rc.local startup script. That's what I do to get Avast to run because I have to use sysctl to increase the shmax, or else Avast! for Linux crashes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sysctl editing for performance? yah0m Linux - Networking 1 02-28-2009 03:24 PM
/etc/Sysctl.conf really I need it? Beised Linux - Software 2 08-25-2004 08:36 AM
/etc/sysctl.conf ??? biscristi Linux - Software 0 06-03-2004 09:50 AM
sysctl.conf nocturnal *BSD 4 12-11-2003 06:43 PM
help! the /etc/sysctl.conf darkstarreddiam Linux - Networking 2 05-08-2003 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration