LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Programs on startup (https://www.linuxquestions.org/questions/linux-newbie-8/programs-on-startup-63140/)

durden2.0 06-01-2003 10:53 PM

Programs on startup
 
Hey everyone,

I was curious as to where Linux looks to when starting programs on bootup? I mean I want to know how to control certain programs being opened automatically on bootup. I am using redhat 9.0, thanks for the info.

trickykid 06-01-2003 10:59 PM

They will usually be located in your /etc/rc.d directory.

durden2.0 06-01-2003 11:09 PM

Ok, not sure what is the deal. However, I am a n00b so there are just stuff like init.d, rc0.d, etc. in there. I was wondering what these are and such. The problem is I use kmess and it always starts up 2 different sessions when I start X and I want to be able to fix this then start a few things on bootup. Thanks

fancypiper 06-01-2003 11:15 PM

Redhat 9.0 Boot Process, Init, and Shutdown

fancypiper 06-01-2003 11:19 PM

Download the Rute guide and the LNAG immediately!

You can see your x session errors in the file /home/<user>/.xsession-errors.
The entire system log is in the file /var/log/messages.
Another error tool is the command dmesg

# Linux filesystem structure
Directory Navigation Help File
Filesystems, Directories, and Devices Help File

# Redhat links
RedHat Linux Manuals
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
RedHat 8.0 Tips & Tricks

# Redhat 7.3 down configuration commands
setup leads to several configuration tools

# Redhat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network

# Redhat 9.0
Redhat 9.0 Upgrading the kernel
Building a custom kernel

durden2.0 06-01-2003 11:32 PM

Good link, thanks alot. One more question though. For example, kmess starts 2 sessions when I start X, if I were to change this how would I do that? I mean I guess I am looking for an easy way to just add commands (or programs) to start or disable then on boot... Thanks again for the quick replys

fancypiper 06-02-2003 12:08 AM

I don't know what kmess is, sorry.

Perhaps you haven't saved your session (I am guessing you are using Gnome, it helps to tell stuff you are using when asking questions) settings.

If you are wanting to start with nothing launched, close everything and go through the menu until you find something about programs>settings>Session>Save Current Session. Then I would start wanted programs with the file /home/<user>/.xinitrc. Here is mine:
Code:

#exec gnome-session
#exec kde
Esetroot ~/backgrounds/linux.png &
gkrellm -w &
xscreensaver &
exec fluxbox

I start in command line and command startx to start the gui. If you are using a gui login, the config file for the login manager that you are using that works the same way and you put it in that file instead.

durden2.0 06-02-2003 02:13 AM

Well here it is ... I am using kde and I can't get the session manager thing to open up. Also that file you were talking about is not created in my home dir cause I never use gnome. Anyway hope that will help you out and thanks so much for the help. Also I have tried closing everything and all that jazz, but it still messes up.

P.S. Kmess is a MSN clone for kde


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