LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-21-2007, 04:55 AM   #1
glaubstas
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
gtk appl to run in firefox on other host -- options?


Hi Everyone!

Imagine two linux servers running on an aircraft, only one has a screen.

The server with no screen hosts a nice gtk application from supplier A that does everything we want.

From supplier B we have a kiosk application running on the other server. On the screen a browser runs and points to some port on the screen-less server. Clearly, we cannot interact with the gtk application via the browser.
The requirements to the aircraft environment are very strict and cannot be changed. It is not an option to change the kiosk browser architecture in any way. All there is, is a brwoser pointed to some port on another server.

As there is no way to directly have the gtk application run in the browser window, supplier A has ported some of the gtk application to html, claiming at the same time, that the transition from gtk to html makes the application lose functionality (and speed, which I tend to believe).

Questions:
(1) Functionality
I expect the look&feel to be different between gtk and html. Does gtk indeed offer functionality that is not available in html? Which would be the probing questions to ask supplier A?

(2) Other Options
I would imagine that there are options other than plain html to go from a gtk application to something that can serve a GUI to a browser?
High-level stuff like jsp or jsf is not an option, as we won't have tomcat&friends, it will only be an apache server, nothing else. What options are you guys aware of that
-- require just a web server
-- have graphics capability
-- are proven technology
-- are easy to port (...)
-- will work within our framework?


Thanks a lot in advance!

glaubstas
 
Old 07-21-2007, 05:44 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,747

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
The only thing that really pops into my head is running VNC over HTTP. Since you are on a small network, performance may not be too bad. Certainly not ideal though.

Porting a GTK interface to HTML is absolutely going to make it slower and limit the interface. The basic functionality will be preserved, but it would have to be a much more utilitarian presentation.

Why are you limited to running just the browser on the client side? X works over the network just as easily as on the local machine, you can export the graphical interface of the GTK application from the server to the client, and it would appear that the client was running the program when it was actually executing on the server. This doesn't require any special software or configuration, that is just how X is designed.
 
Old 07-21-2007, 08:17 AM   #3
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 341

Rep: Reputation: 34
and it works right out of the box too, even without running an entire X remotely.

All you need is ssh +X hostb then,once you are logged in, you run the gtk application, and it will on hosta, automatically forwarding the X calls to hosta
 
Old 07-22-2007, 08:11 AM   #4
glaubstas
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks a lot for the reply.

I will check out VNC over HTTP.

Quote:
Originally Posted by MS3FGX
The only thing that really pops into my head is running VNC over HTTP. Since you are on a small network, performance may not be too bad. Certainly not ideal though.
The limit is imposed by those building the aircraft, there is no control on the side I am on over this design, unless money is spent in large amounts. This constraint gave me the reason to post this question here...

Just as x_terminat_or_3 has pointed out, using all the virtues of X would be the easiest solution, however, the aircraft manufacturer has indicated that this is not an option and the architecture is going to be just as I described: browser and port, nothing else.

Quote:
Originally Posted by MS3FGX
Why are you limited to running just the browser on the client side? X works over the network just as easily as on the local machine, you can export the graphical interface of the GTK application from the server to the client, and it would appear that the client was running the program when it was actually executing on the server. This doesn't require any special software or configuration, that is just how X is designed.
Thanks,

glaubstas
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
host command options ZAMO Linux - Networking 13 12-30-2008 02:04 AM
DISCUSSION: ssh w/ gtk programs (host-client display export) mrchaos LinuxAnswers Discussion 1 12-14-2005 01:50 PM
command line options for firefox for shell scripting. dr_zayus69 Programming 1 05-25-2005 11:36 AM
firefox options permissions degraffenried13 Linux - General 5 08-22-2004 09:10 PM
Problem with run windows base appl in mAndrake 9.1 infofirkhanali Mandriva 0 08-07-2004 03:58 AM


All times are GMT -5. The time now is 09:04 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration