LinuxQuestions.org
Help answer threads with 0 replies.
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-07-2003, 02:08 PM   #1
alexii86
Member
 
Registered: Oct 2003
Posts: 67

Rep: Reputation: 15
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
 
Old 10-07-2003, 02:24 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Add them to your start up scripts.. probably best to add them to your modules.conf file or something similiar..
 
Old 10-07-2003, 02:28 PM   #3
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
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.
 
Old 10-07-2003, 04:07 PM   #4
alexii86
Member
 
Registered: Oct 2003
Posts: 67

Original Poster
Rep: Reputation: 15
i have mandrake 9.1,how can i add them?

i'm new in the linux world,plz explain this simple languge..
 
Old 10-07-2003, 05:03 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
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 )
 
Old 10-08-2003, 07:37 AM   #6
alexii86
Member
 
Registered: Oct 2003
Posts: 67

Original Poster
Rep: Reputation: 15
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
 
Old 10-09-2003, 01:08 AM   #7
alexii86
Member
 
Registered: Oct 2003
Posts: 67

Original Poster
Rep: Reputation: 15
plz..i need help
 
Old 10-09-2003, 02:02 AM   #8
Read_Icculus
Member
 
Registered: Oct 2002
Distribution: MDK 9.2, Debian
Posts: 74

Rep: Reputation: 16
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
 
Old 10-09-2003, 02:18 AM   #9
alexii86
Member
 
Registered: Oct 2003
Posts: 67

Original Poster
Rep: Reputation: 15
the sound don't work and its make huge problems
 
  


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
Add a notice of the top 20 commands to check your unix system on the front page t3gah LQ Suggestions & Feedback 1 03-21-2005 09:23 AM
How do I add start and stop commands to systems startup and shutdown processes? mlsbraves Slackware 1 11-25-2004 08:04 AM
commands to Add Users bickyz Linux - Networking 2 11-12-2004 10:13 AM
How to place commands into boot up? metsdada Mandriva 5 01-06-2004 09:26 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 03:22 AM


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