LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-13-2003, 10:53 AM   #1
kilobravo
LQ Newbie
 
Registered: Feb 2002
Posts: 18

Rep: Reputation: 0
Running a Java Program from XWindows


I would like to know if it is possible to start XWindows without starting up Gnome or KDE and then running a Java App. What I am trying to accomplish is essentially a kiosk machine. If someone is able to exit out of my app (which they shouldn't be able to), I don't want them in a windowed environment. Is this even possible? I'm not quite sure where to start on this issue.

The ideal situation would be to have the machine boot up, and then start up my Java application once the XServer is running. I have been able to accomplish this using Gnome, but I would like to not start up Gnome or KDE in order to get this to work.

Any advice is greatly appreciated
 
Old 01-13-2003, 12:30 PM   #2
hatrisc
LQ Newbie
 
Registered: Jan 2003
Distribution: slack
Posts: 21

Rep: Reputation: 15
would failsafe suit your needs?

also, i think there was recently an article in either linux journal, or linux magazine, which dealt with setting up terminal servers... i think there was mention of X related stuff (as there should have been) check out www.linuxjournal.com and search for marcel gagnes articles.... cooking with linux is the column. pm me if you cant find anything, i'll take a look in my lj archive later
 
Old 01-13-2003, 02:44 PM   #3
kilobravo
LQ Newbie
 
Registered: Feb 2002
Posts: 18

Original Poster
Rep: Reputation: 0
The link you suggested was a good one. I found that I can just pass a command to the startx command, and it will bypass the xinitrc file and just load a stripped down XServer. The only thing I need to figure out now, is how to get the system to boot, automatically log in, then start the x server. Seems like I need to start up in Run Level 3, then do the login, then start up my app with the startx command. Does this seem like the logical way to accomplish this?
 
Old 01-13-2003, 09:42 PM   #4
hatrisc
LQ Newbie
 
Registered: Jan 2003
Distribution: slack
Posts: 21

Rep: Reputation: 15
this could be done with scripting of course... if you look into it more, i bet there's a way to use kdm, gdm or xdm to accomplish what your looking for (if you're looking for that sort of login). also maybe edititing ~/.xinitrc would allow you to do this, since the startx command reads .xinitrc ( i think). good luck
 
Old 01-16-2003, 02:36 PM   #5
DFossmeister
LQ Newbie
 
Registered: Jan 2003
Location: Richmond, VA
Distribution: Redhat 7.1-RHEL 4r2, Gentoo
Posts: 15

Rep: Reputation: 0
Cool kiosk X machine

I won't go into all the details, but here is the rough outline of what needs to be done. I am assuming a RedHat based system.

Install the system with only Classic X Windows installed.
  • Install the system with only Classic X Windows installed.
  • Install the jvm and your app.
  • Be sure you can log in, get the xterm, and start your app--put the classpath on the java command line.
  • Configure /etc/X11/gdm/gdm.conf for the user that you want to log in automagically. Set "AutomaticLoginEnable=true"
  • edit the /etc/X11/twm/system.twmrc file to get rid of the menus
  • create file ~/.Xclients in the home directory of the login id you set to autologin. Put your java command line there.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
running Mouse without Xwindows longnam Slackware 3 03-22-2005 11:31 AM
AutoRun Program in XWindows zael Linux - Newbie 3 02-09-2004 06:49 AM
Running Xwindows or No? esael Slackware 2 11-07-2002 08:33 AM
Running Java Socket Program in a shell during bootup TomCruise2002 Linux - Newbie 1 10-15-2002 10:28 PM
Whats the best, free, program for writing and running Java oudent Programming 8 12-08-2001 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration