LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-16-2006, 11:35 AM   #1
jfsebastian
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Rep: Reputation: 0
linux embedded application


Hi all,

I need to set up a linux embedded environment witch should run a specific graphical application and nothing else. I decided to adopt Gentoo for that purpose and now I'm facing with the following problem.

I need to start the system the faster as possible, without any log-in screen and immediatly presenting to the user the graphical application of my interest.

I hope the problem is clear. I CAN'T start X and then Gnome and then tell Gnome to skip the log-in and then tell Gnome to automatically start my application!!! Telling the truth I can't install Gnome at all and I need some "light" solution to the problem ... the lightest.

And now a specific question: is it necessary to start a window manager or I can (in some way) start X and then my application?

Thanks everybody

JF
 
Old 10-16-2006, 01:03 PM   #2
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
If all that you want is launch a specific application, you can use the command xinit. You probably can inculde this command in a start up script.

Here're snippets from man xinit:
Quote:
xinit [ [ client ] options ] [ -- [ server ] [ display ] options ]


Below are several examples of how command line arguments in xinit are used.

xinit
This will start up a server named X and run the user's .xinitrc, if it exists, or else start an xterm.
xinit -- /usr/X11R6/bin/Xqdss :1
This is how one could start a specific type of server on an alternate display.
xinit -geometry =80x65+10+10 -fn 8x13 -j -fg white -bg navy
This will start up a server named X, and will append the given arguments to the default xterm command. It will ignore .xinitrc.
xinit -e widgets -- ./Xsun -l -c
This will use the command ./Xsun -l -c to start the server and will append the arguments -e widgets to the default xterm command.
xinit /usr/ucb/rsh fasthost cpupig -display ws:1 -- :1 -a 2 -t 5
This will start a server named X on display 1 with the arguments -a 2 -t 5. It will then start a remote shell on the machine fasthost in which it will run the command cpupig, telling it to display back on the local workstation.
 
Old 10-17-2006, 12:51 AM   #3
jfsebastian
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Smile

Thanks ... I'll try!

JF
 
Old 10-24-2006, 03:38 AM   #4
jfsebastian
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Original Poster
Rep: Reputation: 0
OK I've tried xinit but I can only load xterm because when I launch another application the X server terminate. An example:

#xinit /usr/bin/firefox

I imagine it's a bit more complicated starting firefox without running a window manager ... can someone suggest me the way to proceed?

Thanks

JF
 
Old 10-24-2006, 12:21 PM   #5
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
I don't understand ! You want to run a specific application and nothing else, as you said in your first post. If that is what you want, the before mentioned command can get it running. Why do you need window manager ?

I just tried this myself and firefox launches but, without any borders and title bar etc as the WM is not running. But, if all I wanted was just the firefox running, I wouldn't need a border, status bar...... !

If the only program you can launch is xterm and starting any other program fails, then, you should come back and describe what exactly was the error message. Probably, the error has to do with you configuration. Post the error message here, if you really want to make it work.
 
  


Reply



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
LXer: Create an embedded Derby database Ajax application LXer Syndicated Linux News 0 07-24-2006 06:21 AM
embedded linux jorge.rodrigues Linux From Scratch 1 11-30-2005 01:49 AM
Embedded application etmabreu Linux - Newbie 1 08-19-2005 05:12 AM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
For embedded Linux unknown Linux - General 4 08-27-2003 06:57 AM

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

All times are GMT -5. The time now is 06:15 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