LinuxQuestions.org
Review your favorite Linux distribution.
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 01-25-2008, 10:10 AM   #1
gcomandini
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
start application automatically after login


Hi All,

I'd like my redhat linux computer to automatically run only one defined application after logging as a non-root user...have you got suggestions about this?

Thank you in advance for your replies!!

Gianluca
 
Old 01-25-2008, 10:36 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
The whole notion of 'logging in' can be a bit fuzzy. You might be able to accomplish what you want simply by putting the name of the program you want users to run in the password file as the 'shell'. The typical default in Linux is '/bin/bash', but it can be almost anything. If the program requires X, you may have to add a wrapper of some sort to establish the correct $DISPLAY setting; possibly more.
--- rod.

Last edited by theNbomr; 01-25-2008 at 11:38 AM.
 
Old 01-25-2008, 10:36 AM   #3
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
after login where?
Do you mean login in bash?
if that is bash you are talking about, just put your application in .bash_profile
Or are you talking about loging in gdm?
If that is Gnome that you are using, then go to System->Settings->Sessions and in the add your application in the started programs tab.
 
Old 01-25-2008, 10:38 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,745

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
In the Kde environment, you can drag the app icon from the main menu and drop in it ~/.kde/Autostart, and it will start when you log into the GUI. I beleive Gnome has something similar.
 
Old 02-06-2008, 02:33 AM   #5
gcomandini
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Hi all, sorry for my late reply. Thank you very much for your help, I've solved the situation in this way:
first i wanted my linux pc to run just one specific application after logging as a particular user in a bash shell.
So i modified /etc/inittab in section "run gettys in standard runlevels" and put as comment all lines except the first. Then i created in /home/manager (manager is the created user) a .xinitrc file with inside the path of a command that run the application. It all works fine.

Bye

Gianluca
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatically start application guy_ripper Linux - Software 2 01-07-2007 07:54 AM
FLWM + YaST start automatically at Root Login ibex Linux - General 1 05-30-2006 02:01 AM
Login user automatically on system startup, and then start X locodude Linux - Security 1 02-26-2006 05:02 PM
login regular but start a server process automatically after reboot powah Linux - Newbie 6 05-24-2005 07:21 AM
Mandrake Control Centre tries to start automatically everytime I login pwilkie Mandriva 3 02-27-2005 02:26 AM


All times are GMT -5. The time now is 08:09 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