LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-17-2005, 01:44 AM   #1
mili
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
linux
 
Old 06-17-2005, 02:11 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,594

Rep: Reputation: 125Reputation: 125
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 02:14 AM.
 
Old 06-17-2005, 02:12 AM   #3
musicman_ace
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, 02:38 AM   #4
mili
LQ Newbie
 
Registered: Apr 2005
Posts: 19

Original Poster
Rep: Reputation: 0
please tell me about autorunning a cd
 
Old 09-25-2005, 12:11 AM   #5
arktow
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?
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:56 PM.

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