Find the answer to your Linux question:
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 ...
  1. #1
    Just 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 :

    1. Launch a session automatically without typing password.
    2. Not launching gnome.
    3. 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,

  2. #2
    Linux Guru Rubberman's Avatar
    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!

  3. #3
    Just 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 !

  4. #4
    Linux Guru Rubberman's Avatar
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...