Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hiii
i installed RHEL 6.2 on computer i have application i want to start this application on the startup normal ok this easy i can do it but now i want the applicaton start without any GUI interface i want user when login on his machine never see any thing exept the application and if he close the application he can't do any thing on the system i know if i give him normal user he can't do any thing but i don't need that i need no thing on the system exept the this application i think this job can be done with script kill gnome-panel and start application but the application requre GUI when i kill gnome panel and start the application the application run again gnome panel any one can help me guys
You can't kill GUI, because it will kill your application, which require it. But you can start another than default programs (the desktop, login manager, etc. are also a separate applications). You did not precised, if you want to login user by gdm or by text console. If the later, then you can specify his default shell (by "usermod -s") as xinit (look "man xinit" for options)
Code:
xinit /usr/bin/my_application
If you want to use gdm to login user, then you can modify X session script to start proper application. There is extensive info about it in "man Xsession", remember about "allow-user-xsession" in Xsession.options file, but in GNOME this can be another file, for example in KDE there is additional scripts in "/etc/kde4/kdm".
thanks boss for your help
yup it works but should i put user name and password to login first i don't need also to put any user and password i want the machine startup without any GDM just open the default app like we do i think its easy
Remove or disable the display manager (GDM, KDM or whatever you use).
Put this in your rc.local, as the last line:[ su -l -c "xinit YOURAPPLICATION" USERNAME[/code]Replace YOURAPPLICATION with the path of your application and USERNAME with the name of the user the application should run on. Now the system should start directly into your application.
every body the problem solved with command of usermod -s /usr/bin/application name done and i disabled the GDM but when i try to do this solution on Ubuntu i can't any one have soluttion how to do the same thing but in ubuntu wait your replay
You should use full stop and comas in your sentences, because your last post is totally not understandable for me.
If you only want to start this one application without password prompt, then I can give you solution which I use to start an XBMC on my secular parents media center PC, there are several approaches, I choose this one. You did not specified which Ubuntu version you use, I assume the latest. Basically you need to add file "/etc/init/tty1.override" to start your application instead of usual "getty", for example:
Code:
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec xinit -- /usr/bin/your_application
Look in /etc/init/tty1.conf for orginal file. Leave other tty?.conf entries for maintance (available after pressing CTRL+ALT+F2, 3, 4, etc.) and disable display manager, by backing up somewhere or creating appropriate empty "*.override" file (I didn't test this), it will be "gdm.conf" or "kdm.conf" or similar in the same directory. After that steps, when computer boot up, it will start your application. Depending on functions in your application you can control its respawning, by deleting or leaving alone "respawn" option, or use script which automatically poweroff when application terminates. Read "man 5 init" for more info.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.