LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Load Specfic Programs on StartUp (https://www.linuxquestions.org/questions/linux-newbie-8/load-specfic-programs-on-startup-262864/)

TuxFreak 12-05-2004 11:42 AM

Load Specfic Programs on StartUp
 
Hi, I was wonderinghow to load specfici programs on start up? Im using FedoraCore3 and I would really like GKRellm (monitoring program) to load when i login... how do I do this? Thanks.

scuzzman 12-05-2004 12:05 PM

http://www.linuxquestions.org/questi...37#post1332437

TuxFreak 12-05-2004 12:07 PM

I failed to mention im using GNOME.... how do i do it in there

scuzzman 12-05-2004 12:14 PM

While I don't use Gnome, I have it installed and was experimenting, and think I found the answer. Open all programs you want to launch on startup, then go to "Actions"->Logout
There is a checkbox that says "Save current setup" - check that and click OK
restart Gnome

TuxFreak 12-05-2004 12:16 PM

won't it then always keep open whatever i was last working on?

scuzzman 12-05-2004 12:55 PM

Now that I think of it, yes. Sorry... can't help you any further :/

TuxFreak 12-05-2004 01:42 PM

bummer thanks anyways

TuxFreak 12-13-2004 04:58 AM

so any ideas anyone for how to make a program like GKRellm start up once I login to GNOME?

scuzzman 12-13-2004 05:15 AM

Try this:
Quote:

Originally from http://www.fluxbox.org/docs/en/faq.php#startup
The place of .xinit in things

You have to understand that a windowmanager is just one more application for X, like netscape or gimp or xterm. Many people new to X come to believe that X runs the window manager and the window manager runs programs. But thats not true. If configured right, you can run all your applications under X, kill the window manager, and start another window manager up.
The *real* program that X runs, that runs other programs, is your .xinitrc or .xsession script. When X is started, your .xinitrc or .xsession script is run, and when the script is done, X comes down. Let me repeat that, its important: WHEN .xinitrc IS FINISHED, *THAT* IS WHEN X ENDS. It isn't when your windowmanager exits.

So: what you'll want to do is create a file called ~/.xinitrc
and put all programs in there ie:

Code:

#!/bin/bash
#~/.xinitrc - start all these programs programs when I startx

gkrellm & #start gkrellm
konsole & #start Konsole

gnome-session #start Gnome

#EOF

Also: amke sure to
Code:

$ chmod 700 ~/.xinitrc

TuxFreak 12-13-2004 05:19 AM

So how do I add something to one of these files, Im not in front of my Linux box right now so I dont know what the layout of the files is, but do I just add a new line to the location of GKrellm for example or what?

scuzzman 12-13-2004 05:19 AM

See my edit

TuxFreak 12-13-2004 05:24 AM

So: what you'll want to do is create a file called ~/.xinitrc

Isn't there already a file called xinitrc? Wouldn't I just want to modify it?

scuzzman 12-13-2004 05:29 AM

usually, no
do this:
Code:

$ pico ~/.xinitrc
then,. if there's text there already, edit it
if not, add your own
read the article


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