LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to bring a program on system startup (https://www.linuxquestions.org/questions/linux-software-2/how-to-bring-a-program-on-system-startup-732166/)

lemon09 06-11-2009 05:28 AM

How to bring a program on system startup
 
I recently installed vuze 4.x on my mandriva 2007 system. Now it was a tar file which i unzipped. Now i want to run vuze on system startup.......i mean i want to bring it in the system panel permanently(even when the system starts)........ How shall i achieve it.
please help

camorri 06-11-2009 09:54 AM

You should be able to start a program from rc.local on boot.

You need to become root in order to edit that file. Go to /etc/rc.d/ and you will find a file called rc.local.

Create a line at the bottom of the file, with the full path to the binary file. Save the rc.local file, boot your system to test it. The program should launch normally from a konsole first. If that works, then edit the file.

barunparichha 06-11-2009 10:06 AM

.bashrc
or
rcfile

theNbomr 06-11-2009 10:28 AM

You can use camorri's method of launching an application from rc.local, however, at the time rc.local is executed, there will be no X server started on the local host. If your application requires X, you should probably look to your desktop (probably KDE or Gnome; you haven't specified) configuration to automatically start up applications. Can you tell us about the nature of your application, and a bit about what resources it expects to have available?
--- rod.

lemon09 06-11-2009 04:31 PM

Quote:

Originally Posted by theNbomr (Post 3570542)
You can use camorri's method of launching an application from rc.local, however, at the time rc.local is executed, there will be no X server started on the local host. If your application requires X, you should probably look to your desktop (probably KDE or Gnome; you haven't specified) configuration to automatically start up applications. Can you tell us about the nature of your application, and a bit about what resources it expects to have available?
--- rod.



you see, i don't get you properly..........

i have kde installed on my system. the file that i want to open is a shell script that brings up the vuze GUI version

theNbomr 06-11-2009 10:31 PM

There is an order to everything that happens at boot time. The starting of X happens only in runlevel 5, and after the commands in rc.local have executed. Ergo, the GUI application will be unable to start until after X has started. You can use the KDE desktop to automatically launch your application, however I do not know the precise method used to do this. It probably makes a difference which version of KDE you are using, and can probably be done in a way that it happens for all users, or simply for yourself. A quick Google search for 'KDE autostart application' turned up this page which looks helpful.
--- rod.


All times are GMT -5. The time now is 05:06 AM.