LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 04-24-2007, 03:44 AM   #1
cjagdish69
Member
 
Registered: Oct 2003
Location: Bombay,Maharashtra,India
Posts: 60

Rep: Reputation: 15
How to add applicaton/s in startup using RHEL


I have a couple of queries. They are as follows :


1) After booting is over windows loads the startup items defined under startup. Can we apply the same funda in RHEL ? If yes, then how ?

2) I have seen in Mandrake Linux that some login is automatically logged in after starting or rebooting the machine. How it can be done in RHEL ? What is the location and file where the entries for automatic start is defined ?


regards,
 
Old 04-24-2007, 04:45 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
1) yes, and there are multiple ways. To start any program after the other bootup scripts one usually adds a corresponding line to /etc/rc.local (the file rc.local may be in a different location depending on the distribution, for example in /etc/init.d/rc.local). Some distributions may use a different name for that, but often I see it called rc.local (it's anyway where the other initscripts are, and is run as the last one of them). That affects the whole system and doesn't have to wait for somebody to log on to the desktop environment (KDE, Gnome, ...) for example. To achieve a situation where some program is loaded after a user logs in (but only for that user), you use the desktop environment's settings: either there is a tool in the system menu, or a setting in "control center" or equivalent, that lets you do that (I suspect it's in KDE's Control Center or in System-menu > Settings > Sessions in Gnome, or equivalent). Usually desktop environments also use somekind of profile file that is read when started, that you can alter; profile files are often under your home directory, under the desktop environment's own directory or so. For example to control what happens after you log on and start using a shell, for example bash here, a file .bashrc (or .bash_profile) is read from your home directory.

2) That's again something your login manager does. Often it's KDM (for KDE) or GDM (for Gnome) or XDM or something. I suspect GDM is often used because at the moment it's easier to "tune" so distros that want to look good take it so, open GDM settings dialog and there you can select a user that is logged in (without password) by default. GDM settings dialog is found from your desktop's system menus, or by running
[code]gdmsetup[/code
as root. For KDM (and others) there are probably equivalent tools, that in some cases can be accessed from within the login manager before logging in (needs root privileges).
 
Old 04-24-2007, 07:08 AM   #3
cjagdish69
Member
 
Registered: Oct 2003
Location: Bombay,Maharashtra,India
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by b0uncer
1) yes, and there are multiple ways. To start any program after the other bootup scripts one usually adds a corresponding line to /etc/rc.local (the file rc.local may be in a different location depending on the distribution, for example in /etc/init.d/rc.local). Some distributions may use a different name for that, but often I see it called rc.local (it's anyway where the other initscripts are, and is run as the last one of them). That affects the whole system and doesn't have to wait for somebody to log on to the desktop environment (KDE, Gnome, ...) for example. To achieve a situation where some program is loaded after a user logs in (but only for that user), you use the desktop environment's settings: either there is a tool in the system menu, or a setting in "control center" or equivalent, that lets you do that (I suspect it's in KDE's Control Center or in System-menu > Settings > Sessions in Gnome, or equivalent). Usually desktop environments also use somekind of profile file that is read when started, that you can alter; profile files are often under your home directory, under the desktop environment's own directory or so. For example to control what happens after you log on and start using a shell, for example bash here, a file .bashrc (or .bash_profile) is read from your home directory.

2) That's again something your login manager does. Often it's KDM (for KDE) or GDM (for Gnome) or XDM or something. I suspect GDM is often used because at the moment it's easier to "tune" so distros that want to look good take it so, open GDM settings dialog and there you can select a user that is logged in (without password) by default. GDM settings dialog is found from your desktop's system menus, or by running
[code]gdmsetup[/code
as root. For KDM (and others) there are probably equivalent tools, that in some cases can be accessed from within the login manager before logging in (needs root privileges).
yes. thru. the rc.local I am able to manage it rightnow. My another query is that as soon as i logged in as a normal user i want to open the openoffice writer automatically. For this shall i include it in .bash_profile/.bash_rc ?


Secondly , my box is having a login called "report". As soon as i boot the box i should be automatically logged in as "report". How can this be accomplished ? Where i.e. the location/file the entries are stored ?
 
Old 04-24-2007, 07:10 AM   #4
cjagdish69
Member
 
Registered: Oct 2003
Location: Bombay,Maharashtra,India
Posts: 60

Original Poster
Rep: Reputation: 15
yes. thru. the rc.local I am able to manage it rightnow. My another query is that as soon as i logged in as a normal user i want to open the openoffice writer automatically. For this shall i include it in .bash_profile/.bash_rc ?


Secondly , my box is having a login called "report". As soon as i boot the box i should be automatically logged in as "report". How can this be accomplished ? Where i.e. the location/file the entries are stored ?
 
  


Reply

Tags
auto, login, rhel, startup


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add users in VSFTPD w/ RHEL 4 AS? guest Linux - Newbie 10 04-12-2010 01:24 PM
How to add second mail server in RHEL 3 c_mahalingam Linux - Enterprise 7 09-11-2006 02:48 AM
Mandriva startup scripts (need to add something to startup before X starts) thunderweasel Mandriva 3 01-01-2006 12:55 AM
Getting new applicaton in menu pdemaers Linux - Software 1 04-27-2004 08:54 AM
runing linux applicaton in window$ !!! hitesh_linux Linux - General 2 03-15-2003 06:48 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration