LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-01-2003, 10:53 PM   #1
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Rep: Reputation: 15
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.
 
Old 06-01-2003, 10:59 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
They will usually be located in your /etc/rc.d directory.
 
Old 06-01-2003, 11:09 PM   #3
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Original Poster
Rep: Reputation: 15
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
 
Old 06-01-2003, 11:15 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Redhat 9.0 Boot Process, Init, and Shutdown
 
Old 06-01-2003, 11:19 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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
 
Old 06-01-2003, 11:32 PM   #6
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Original Poster
Rep: Reputation: 15
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
 
Old 06-02-2003, 12:08 AM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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.

Last edited by fancypiper; 06-02-2003 at 12:18 AM.
 
Old 06-02-2003, 02:13 AM   #8
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Original Poster
Rep: Reputation: 15
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
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I startup programs? anticuchos SUSE / openSUSE 2 09-07-2005 11:29 PM
Startup programs beatlelane Fedora 5 08-22-2005 02:05 AM
Startup Programs prh Mandriva 1 03-27-2005 02:24 AM
need help with startup programs SlackwareMan Linux - Newbie 4 07-29-2004 04:45 PM
startup programs Fatal_3rr0r Linux - General 2 06-23-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration