Visit Jeremy's Blog.
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 06-17-2005, 12:44 AM   #1
LQ Newbie
Registered: Apr 2005
Posts: 19

Rep: Reputation: 0
autorun for linux

hai friends.
is there any way to create autorun for applications under
Old 06-17-2005, 01:11 AM   #2
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,620

Rep: Reputation: 142Reputation: 142
Yes, there is.

The file is called rc.local and usually is found under /etc/rc.d/rc.local (else do a "locate" to find it). Put in all the commands that should be run at startup.
Since this applies to all users, you can not selectively turn it off. If you want this, you could put the commands in the bash profile file (assuming you use bash as the login shell for your users), I always get confused here -- I think it should be in ~/.bashrc or ~/.bash_profile.

Edit: I just noticed that I thought of CLI programs only. I think KDE and Gnome both have autostart options, but I don't know anything about this, since I never used it.

Last edited by titopoquito; 06-17-2005 at 01:14 AM.
Old 06-17-2005, 01:12 AM   #3
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
If we are talking services or batch scripts, adding them to /etc/init.d/local.start should do the trick. If you looking for GUI apps to load once you've logged into X, KDE has a place under ~/.kde/ that is for autostarting things. I usually have Amsn, GAIM, and gkrellm. I'll look up the exact location when I get home today.
Old 06-17-2005, 01:38 AM   #4
LQ Newbie
Registered: Apr 2005
Posts: 19

Original Poster
Rep: Reputation: 0
please tell me about autorunning a cd
Old 09-24-2005, 11:11 PM   #5
LQ Newbie
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
What if I don't have a .bashrc or .bashprofile, do I create it?
I'd like to run a php script everytime the system starts. Or is there away for using cron but just simply calling the php script once everytime the system boots?


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
autorun in lInux mili Linux - Newbie 5 10-10-2012 05:59 AM
CD autorun scripts for FC3 or any other new linux distros cpraveen84 Fedora 1 09-30-2005 10:00 AM
Is Linux has CDROM AutoRun function and how to disable it? AshesOfTime Linux - General 3 08-27-2005 12:25 PM
How to create autorun CDs in Linux shivanand Linux - General 5 04-04-2005 07:13 PM
Linux burnt cd doesn't autorun in windows TelemachusMPH Linux - Newbie 1 08-19-2003 06:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:16 PM.

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
Open Source Consulting | Domain Registration