Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-31-2008, 02:19 AM   #1
LQ Newbie
Registered: Sep 2007
Location: mysore
Distribution: Debian
Posts: 16

Rep: Reputation: 0
running scripts at start up in Debian...

hello people...
i wanted to know how to run (shell)scripts at start up....
for example I'm using Debian...
suppose that I've written a shell script to mount my windows drives onto local linux file system...
every time i boot Debian i need to run this script manually..
Is there any mechanism to make it executable at startup...???
It would be very helpfull to configure my system to my needs..
so anybody who knows please help....
Old 10-31-2008, 02:23 AM   #2
Registered: Oct 2008
Location: Yellagiri Hills
Distribution: Fedora
Posts: 87

Rep: Reputation: 15
rc.local file


One simple way is to put the script in /etc/rc.d/rc.local file.

Have a good day
Old 10-31-2008, 04:10 AM   #3
LQ Newbie
Registered: Sep 2007
Location: mysore
Distribution: Debian
Posts: 16

Original Poster
Rep: Reputation: 0
Originally Posted by maradnus View Post

One simple way is to put the script in /etc/rc.d/rc.local file.

Have a good day

ok... thank you..
actually in my system there was no /etc/rc.d folder..
rc.local was found in /etc/init.d ...
and it worked....
thanks a lot anyways...

Last edited by mahi; 10-31-2008 at 04:14 AM.
Old 10-31-2008, 05:02 AM   #4
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Bodhi, Mint-xfce
Posts: 183

Rep: Reputation: 21
/etc/rc.local, /etc/profile, ~/.bash_profile, ~/.profile, ~/.bashrc, etc (depending on your setup/distro).
Soooo many choices! Each with their own quirks!

Last edited by roy_lt_69; 10-31-2008 at 05:04 AM.


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
a start up script in rc.M stops the following scripts from running nass Slackware 7 05-21-2007 07:21 AM
VPN: Debian Scripts -> Mandriva 2006 Scripts Undefined Mandriva 0 11-30-2005 01:10 PM
running perl scripts very system start abdul_zu Programming 16 09-26-2005 02:55 AM
debian start up scripts? pgte3 Debian 7 08-25-2004 07:42 PM
Start Up Scripts not running MaverickApollo Linux - General 3 10-20-2003 10:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 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