Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: To .xinitrc and beyond!, need help with booting certain stuff.< Next Oldest | Next Newest >
xmikeox Offline





Group: Members
Posts: 53
Joined: Dec. 2005
Posted: Aug. 13 2006,03:39 QUOTE

Alright I have three things that I have on my mind if someone out there would be so kind as to help me out I would greatly appreciate it.

-I have a bash file that I run using "sh filename.sh" would I just insert it like that into .xinitrc with the '&' directly after like normal or does it need something different.

-Everytime I boot up I have to go to wiconfig and manually connect to our wi-fi connection how can I set up an .sh so that it can run from boot. I mean I already tried to type in 'wiconfig' in terminal. there has to be another command but I have no idea what it is.

-And the last one is about ......... 'dmix' dsl's volume control for left and right speakers, well on boot the speakers are down to a whisper is there any way I can configure this to 'hearable' sound on boot?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 13 2006,13:15 QUOTE

Starting the bash file depends on what it does, and when and how often you want it to run.  If it's meant to do system tasks as root once when you boot, it should be in /opt/bootlocal.sh.  If it has user tasks and you want it to run when you log in, put it in /home/dsl/.bash_profile.  If you want it to run every time you open a terminal, put it in /home/dsl/.bashrc.  If it needs X, put it in /home/dsl/.xinitrc.

If the script is already executable and begins with #!/bin/sh you do not need "sh" in your command.  It would also need to be in your $PATH if you want to run it without a full path to the file.

The iwconfig command is iwconfig_setup

I'm not sure about dmix settings, but there is at least one thread here somewhere that explains how to do it.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
xmikeox Offline





Group: Members
Posts: 53
Joined: Dec. 2005
Posted: Aug. 13 2006,17:05 QUOTE

cool.  :cool: well I Made a .sh to run 'festival' the sythesized voice program. I thought it would be cool to get it to say something like "welcome to michaels d.s.l machine" on boot or something.
Back to top
Profile PM 
2 replies since Aug. 13 2006,03:39 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: To .xinitrc and beyond!

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code