LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 01-19-2004, 09:12 PM   #1
brian-e
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
Is there something like rc.local for system initialisation?


Is there something like /etc/rc.local for putting things in like hdparm for drives and echo 1 > /proc/sys/net/ipv4/ip_forward to turn on forwarding, those sorts of things? What's the "proper Debian Way" of doing this?
 
Old 01-20-2004, 01:54 AM   #2
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
well, hdparm stuff goes in /etc/hdparm.conf and the ip_forward setting is in /etc/network/options
 
Old 01-20-2004, 02:30 AM   #3
brian-e
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Here is the answer:

You need the initscripts package. This gives you /etc/hdparm.conf, where you can set parameters like turning on DMA for your hardrives. It also gives you /etc/sysctl.conf, where you can set kernel parameters.
 
Old 01-20-2004, 08:56 AM   #4
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Actually, /etc/sysctl.conf comes with procps (do a dpkg -S /etc/sysctl.conf if you don't believe me). But I still think that it should go in /etc/network/options instead as there is already a setting for it there and I'm not sure which would get applied first. Oh, and /etc/hdparm.conf comes with hdparm itself as well (again, dpkg -S if you don't believe me).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot ping local system when pinging system is set for static IP SkipHuffman Linux - Networking 4 08-22-2005 12:56 PM
rc.local hanging my system on reboot ub3rj3phf *BSD 5 12-08-2004 02:22 PM
cannot mount the local file system egypt Red Hat 2 10-06-2004 12:02 PM
Init running before other initialisation? fatzo Linux - General 2 02-26-2004 06:51 AM
Initialisation string C8H10N4O2 Linux - Newbie 2 03-17-2003 08:29 AM


All times are GMT -5. The time now is 03:43 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration