Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-05-2008, 05:57 AM   #1
LQ Newbie
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Smile how to run a program automatically when booting up?

Who can teach me ?
Old 05-05-2008, 06:10 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Depends on when you want to run it. If you want to run something during boot sequence, you make an init script for it - see /etc/init.d (/etc/rc.d) or equivalent directory for examples. If you want to run something after the other boot scripts, you can add the command to /etc/rc.local or equivalent. Or if you want something to run when you have logged in to your graphical desktop, you'll need to use the Session tool of that desktop environment - in Gnome it's under System menu's Settings submenu, in KDE it's probably in the KDE Control Center; launch it up and you should be able to easily add a program to launch when the desktop launches.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GDB: Run program automatically kenneho Programming 5 12-05-2009 10:14 AM
Run program a startup automatically shambler SUSE / openSUSE 2 09-13-2006 11:50 AM
automatically startup a program after booting? caicai Linux - Software 7 08-12-2004 08:16 AM
Automatically run root program. Hammett Linux - Software 4 05-16-2004 01:45 PM
How do I automatically run at boot an X program or script cmisip Linux - General 4 01-05-2003 07:30 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration