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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-17-2005, 01:44 AM
|
#1
|
LQ Newbie
Registered: Apr 2005
Posts: 19
Rep:
|
autorun for linux
hai friends.
is there any way to create autorun for applications under
linux
|
|
|
06-17-2005, 02:11 AM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649
Rep:
|
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.
|
|
|
06-17-2005, 02:12 AM
|
#3
|
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555
Rep:
|
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.
|
|
|
06-17-2005, 02:38 AM
|
#4
|
LQ Newbie
Registered: Apr 2005
Posts: 19
Original Poster
Rep:
|
please tell me about autorunning a cd
|
|
|
09-25-2005, 12:11 AM
|
#5
|
LQ Newbie
Registered: Aug 2005
Posts: 1
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 07:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|