Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 04-23-2004, 04:27 PM   #1
LQ Newbie
Registered: Mar 2004
Distribution: Slackware 10.0
Posts: 25

Rep: Reputation: 15
how to make/run startup scripts/commands

hello. i hate these noobish questions that i cant find answers to, so here it goes.

in order to run a program called TeamSpeak and a game (ET and RTCW) at the same time (two programs requiring sound) i need to first disable the input on the games, because TeamSpeak uses the input, and two programs cant do that at the same time through ALSA (im told)

anyway, i run these commands to get the programs to work:

echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss
echo "wolf.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
echo "wolf.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss

well, each time i restart my comp, i need to re-enter these commands. so, how can i get these commands to run at startup? do i put them in their own script/config or in an existing one or what? please let me know
Old 04-23-2004, 04:33 PM   #2
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
you can put these commands in the /etc/rc.d/rc.local file, everytime it boots up, i'll run these commands for you
Old 04-23-2004, 08:45 PM   #3
LQ Newbie
Registered: Mar 2004
Distribution: Slackware 10.0
Posts: 25

Original Poster
Rep: Reputation: 15
thanks a lot man, i dropped em in there, and it works great now

thanks again
Old 04-24-2004, 10:02 AM   #4
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
To go further, with your question about alsa--

It really depends on your soundcard. Some soundcards have multiple channels for input, whereas some soundcards have only one.
Mine happens to have 4, which surprises me because it's a cheap onboard AC'97 knock-off. Alsa is perfectly capable of using all the input channels. Mine are controled by using alsamixer, and moving all the way to the right, where I see several DXA channels, 1-4.

If your card has only one, then the only solution I know of to have two programs access sound at the same time is with what's called a sound server. It combines two sources and mixes them down to one, which gets sent to the soundcard's single channel. Esound (gnome/enlightenment), Arts (kde), and JACK (pro audio applications) all do that.



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
Automatically run scripts on startup? Phaethar Fedora 10 09-24-2004 02:35 AM
how can i run a shell scripts (or a number of commands )when a user logs in to a linu rddreamz Programming 4 05-20-2004 03:08 PM
How do I run startup scripts?O gaborn415 Linux - Newbie 1 04-15-2004 08:54 PM
Running Scripts/Commands on Startup drknow Linux - Newbie 4 01-09-2004 05:14 AM
Scripts won't run commands Xyphoid Linux - General 4 08-08-2002 08:49 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration