LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-14-2003, 03:19 PM   #1
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Rep: Reputation: 15
::mounting filesystems and autostarting programs!!::


When I boot up my RedHat 8.0 computer I would like for it to do the following things before you even have to type in your username and password...

1)mount /dev/hdb1 /hdb
2)/etc/rc.d/init.d/httpd start
3)./hlds_run -game cstrike +maxplayers 10 +map fy_iceworld
(#3 has to be ran in the /hdb/halflife/hlds_l directory!)...

Can you do this? If so can you explain how?

Thanks,
-Andy
 
Old 05-14-2003, 03:41 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Just add the lines to your rc.local file.
 
Old 05-14-2003, 04:00 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,374

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
well sure, add 3 to rc.local...

1) create (or adjust) a line in /etc/fstab to say something like
Code:
/dev/hdb1    /hdb    ext3    defaults      1  1
2) run this command once only...
Code:
chkconfig --level 3 5 httpd on
 
Old 05-14-2003, 06:00 PM   #4
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
Okay... that got numbers 1 and 2 to work! But it didn't get... 3)./hlds_run -game cstrike +maxplayers 10 +map fy_iceworld
(#3 has to be ran in the /hdb/halflife/hlds_l directory!)... to work.
And now when I press Ctrl+Alt+F2 it doesn't go into text mode!!! please help!!
 
  


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
Autostarting programs using GDM mrd Linux - General 1 10-02-2005 05:37 AM
mounting NTFS filesystems rw atom Linux - Newbie 5 01-25-2005 09:29 AM
creating command lines and autostarting programs?! nicknamefij Mandriva 1 09-15-2004 11:00 PM
Mounting filesystems jimmmac Linux - Newbie 4 01-05-2003 06:41 AM
mounting extended vfat filesystems lommer0 Linux - Newbie 2 01-17-2002 10:43 PM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration