Results 1 to 4 of 4
Hello,
I'm currently in work placement and i have to develop a fullscreen GUI Java application. I'm working under a redhat 4 with gnome and here is what i'd like ...
- 06-16-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 2
Java Desktop Application
Hello,
I'm currently in work placement and i have to develop a fullscreen GUI Java application. I'm working under a redhat 4 with gnome and here is what i'd like to do :
- Launch a session automatically without typing password.
- Not launching gnome.
- Lauching my java app automatically.
the automatic login is OK, and the automatic launch of my app too.
My problem is to avoid the gdm launch
Does anybody have any idea ?
Thanks a lot,
- 06-16-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
The gdm is started when the system is moved to runlevel 5. You need to edit /etc/inittab and change the default runlevel to 3 (multi-user, no x-login).
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-18-2009 #3Just Joined!
- Join Date
- Jun 2009
- Posts
- 2
Hello,
Thank you for your answer
When i put the runlevel 3 in my inittab, gnome is indeed not running and X isn't running too.I tried to replace the prefdm gdm by xdm but i loose my auto-login provided by gnome
.
I just want to launch my java application when the computer starts without logging. This is a touchscreen computer without keyboard, that's why i wanna avoid the login ^^.
Thanks for reading me !
- 06-18-2009 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Do you want to run your application as something other than root? In any case, you would boot into runlevel 1, 2, or 3 depending upon whether or not you want to run in singler user mode (runlevel 1 - no login required), multi-user mode without network (runlevel 2 - get text login prompt), or multi-user mode with network (runlevel 3 - get text login prompt). You would add your bootup script to /etc/rc.d/rc.local in which you would run startx to start the x-server and your user application. See the man page for the startx command. It has a lot of details how to start it up appropriately.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote