LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to add commands to boot? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-commands-to-boot-101296/)

alexii86 10-07-2003 01:08 PM

how to add commands to boot?
 
linux dont recognize my sound card so i need to insert this two lines each time on the console
modprobe soundcore
modprob sb

how can i add this lines to boot?

tnx,
alex

trickykid 10-07-2003 01:24 PM

Add them to your start up scripts.. probably best to add them to your modules.conf file or something similiar..

ToniT 10-07-2003 01:28 PM

What you want, is that those two modules are loaded at boot.

The way to do it is somewhat distribution spesific. In debian you would put lines
Code:

soundcore
sb

to /etc/modules. In gentoo there is /etc/modules.autoload.d/kernel-2.4 that contain the same information in same format.

If your distribution doesn't have such file(s), you could try to look for a file called /etc/rc.local. If it exists, it is ran at the end of the boot and you could put those modprobe-lines there.

alexii86 10-07-2003 03:07 PM

i have mandrake 9.1,how can i add them?

i'm new in the linux world,plz explain this simple languge..

trickykid 10-07-2003 04:03 PM

Quote:

Originally posted by alexii86
i have mandrake 9.1,how can i add them?

i'm new in the linux world,plz explain this simple languge..

Open up your modules.conf file in /etc or in /etc/init.d within your favorite text editor and add those commands or modules to the file. If you browse thru the list of modules, most likely you can just uncomment them. ( uncomment = remove the # mark )

alexii86 10-08-2003 06:37 AM

u sure that its the file??

its only few lines there


probeall scsi_hostadapter ide-scsi
alias eth0 8139too
above snd-trident snd-pcm-oss
alias sound-slot-0 snd-trident
probeall usb-interface usb-uhci

alexii86 10-09-2003 12:08 AM

plz..i need help

Read_Icculus 10-09-2003 01:02 AM

That is indeed the correct file. Lots of various config files only have a few lines, nothing to worry about though.

Make your /etc/modules.conf file look like the following and you should be set.

probeall scsi_hostadapter ide-scsi
alias eth0 8139too
above snd-trident snd-pcm-oss
alias sound-slot-0 snd-trident
probeall usb-interface usb-uhci
modprobe soundcore
modprob sb

alexii86 10-09-2003 01:18 AM

the sound don't work and its make huge problems


All times are GMT -5. The time now is 09:42 PM.