The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What is the difference between console-based and xwindow-based application? liuyan03 High Level Programming 4 04-30-2009 01:23 AM
how to allow Windows platform to access Unix based disk volumes rainbow_bean AIX 2 02-20-2009 02:01 PM
Understanding Role Based Access Control (RBAC) in OpenSolaris iBot Solaris BigAdmin RSS 0 12-22-2008 09:20 AM
Split the access.log based on date ysprathap Shell Programming and Scripting 4 10-10-2008 07:39 AM
Rule Set Based Access Control 1.3.7 (Stable branch) iBot Software Releases - RSS News 0 02-19-2008 03:00 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-28-2009
supermaRiio supermaRiio is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 1
Web based X11 access

Hi guys
I'm new here. I had been reading a long time here on the forums but now I registered finally.
And got a question for you.

Since yesterday I've got successfully installed a X11-connection from my WinXP to a RedHat EL 5 - Box. Now there's a web portal needed.

So I have to make a homepage where are a few icons on it. If you click on one of those icons, there should appear a window with a X11-environment (like xming, cygnus).
Is there any possibility to do that? I've got absolutely no idea how to make this run... :/

Hope you can help me...

Best Regards, Mario
  #2 (permalink)  
Old 10-28-2009
Radar's Avatar
Radar Radar is offline
Registered User
  
 

Join Date: Dec 2006
Location: Clifton Park, NY
Posts: 86
This doesn't directly address your need, but VNC offers a web interface to configured desktops.

RealVNC - Java VNC Viewer
  #3 (permalink)  
Old 10-28-2009
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
I would guess that you will want a bit of cgi or php code on your webserver.
It will need to read the address of the requester (that info is readily available to both cgi and php scripts as a predefined variable).
You can then either do some clever port probing to find which display number, or ask for that on a web form, or just assume display number 0.
Once you have those, you can determine which X11 display to send the X11 application to (eg yourwebsurfingcompter.address.domain:0). You'd then either need to authorise the webserver on your web browsing computer or have it allow any X11 connections (quite dangerous). Another option would be to have the user supply their X11 MIT cookie via a web form but that feels like overkill.

Once you have these bits of information, it's just a matter of having your cgi or php run a local application (as the webserver user most likely) with the display (usually either the DISPLAY environment variable or the -display parameter) set to be the display of your web browsing client (determined near the start). Remember to background the application so your script doesn't hang.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0