Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

This question already has an answer here:

I want to start only one application without any desktop after booting the system, it is like only application should be there not anything in RHEL 6.

share|improve this question

marked as duplicate by slm, Nils, jasonwryan, Renan, Anthon May 18 '13 at 9:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Not even the application for bringing up the network? –  Ignacio Vazquez-Abrams May 17 '13 at 10:48
    
Is this an X application or a terminal application? –  Hauke Laging May 17 '13 at 17:32
    
@jasonwryan to do my requirement where i have to login, i.e. root or user mode? –  subbarao May 18 '13 at 7:01

2 Answers 2

OP clarified in a comment that the idea is to launch the application on login, not on boot.

Look for ~/.xinitrc (this file normally doesn't exist, X starts /etc/X11/xinitrc as a fallback here on Fedora, it might do differently on other distributions). That file determines what applications to start by default. Depending on the desktop environment configured for the account, other startup files could come into play.

Be careful, playing with this could lock the account out for good.

share|improve this answer
    
Starting an application as root-user after login? Sick... But RHEL6 should behave like Fedora. –  Nils May 17 '13 at 13:38
    
@Nils, who said the user logging in and launching the application has to be root? –  vonbrand May 17 '13 at 13:51
    
@vonbrand, Thank you for your reply. My doubt is in which i have to start application after login i.e. root mode or user mode. –  subbarao May 18 '13 at 8:11

If your application has a proper init-script: chkconfig application on

The default-runlevel can be set to 3 (multiuser without GUI).

share|improve this answer
    
Thank you Nils, my requirement is when i logged into system in the root/user mode it should display the application and nothing else. no desktop is required. –  subbarao May 17 '13 at 11:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.