LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08: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, 12: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, 01: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, 07: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



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 11:56 AM
rc.local hanging my system on reboot ub3rj3phf *BSD 5 12-08-2004 01:22 PM
cannot mount the local file system egypt Red Hat 2 10-06-2004 11:02 AM
Init running before other initialisation? fatzo Linux - General 2 02-26-2004 05:51 AM
Initialisation string C8H10N4O2 Linux - Newbie 2 03-17-2003 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:47 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