LinuxQuestions.org
Review your favorite Linux distribution.
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 04-15-2011, 06:36 AM   #1
Killcam
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Kernel configuration for C / C++ program


Hello,

I am writing a C program (recovery utility) that needs to run at boot.
I have found my way into this (booting a kernel) and now I want to configure the kernel so that it doesn't take a lot of space and compile fast so that I can edit the source afterwards and make it run my program on the kernel's startup.for the least size
The only thing this program needs is reading and writing files in all of the local hard disks (and some standard libraries such as stdio.h and stdlib.h) so I can keep the kernel simple by removing a lot of stuff such as networking, encryption algorithms and others.

What would be the best configuration for this, so that it is really small in size?
Should I simply start a new configuration and then only select things that I need, or should I take the "default" configuration and start removing things?

What options are a MUST to make the kernel run?
 
Old 04-17-2011, 02:55 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Two completely separate questions here:
1. How to configure a custom kernel
2. How to run a user-space program at system startup

For 1), I'd suggest "don't worry about it for now".

For 2), I'd suggest "just an an entry to /etc/inittab"
<= For something other than a quick'n'dirty hack, you want to create start/stop scripts in /etc/init.d instead.

PS:
You might also want to look at using Knoppix.

Last edited by paulsm4; 04-17-2011 at 02:58 PM.
 
  


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
Program Configuration file - Kmediagrab flebber Linux - Software 0 02-28-2007 08:58 PM
apache simple configuration - program name pulper Linux - Server 2 09-17-2006 11:24 AM
gcc program output configuration gdmellott Programming 2 08-29-2006 01:03 PM
Video Configuration - is there a program for Debian ? ptesone Debian 1 03-20-2004 05:02 AM
Gdm Configuration Program ???? Santorres Linux - General 5 07-07-2003 04:10 PM

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

All times are GMT -5. The time now is 06:23 AM.

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