Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-17-2011, 03:53 PM   #1
Registered: Nov 2003
Posts: 795

Rep: Reputation: 39
Accessing a remote application via web interface

Hi there --

We have a system that has a firewall exception which enables it to run a remote X application. To access the application, a script which is local to the system is run by a user to connect to the remote server. Once the connection is made, a script on the remote server is then run to display the application on the workstation.

I would like to set up a web server, Apache, on the workstation to enable multiple users to have access to the application rather than having to set up additional firewall exceptions. The idea is to enable users to use a web browser to access the application on the workstation that already has the exception.

The key here is to have the local and remote scripts work so that the application will appear on whatever workstation is being used to access that which has the exception. If this can be done, what steps are necessary to accomplish this task?

Old 08-17-2011, 04:30 PM   #2
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
May I suggest you use SSH instead, it will allow to start the X application using just connection from the workstation.
Old 08-17-2011, 04:42 PM   #3
Registered: Nov 2003
Posts: 795

Original Poster
Rep: Reputation: 39
Hi there --

Thanks for your reply. I tried connecting via SSH in a previous attempt, but was unsuccessful at that time. The reason for that failure
was due to the script on the workstation. The text of which is shown below:


# This script will provide access to the tcs application which
# is located on the mcrs1 server.

# First disable access control so that only the tps server can connect
# to this client.
xhost + <address of network firewall/gateway>

# Establish a telnet session with mcrs3. NOTE: The address in question is
# the address that mcrs1 has on the Partners network, and not the internal
# tcs network address. The syntax shown below is designed to prompt the
# operator for the appropriate username and password.
ssh -x -l tps <address of network firewall/gateway>
When I connected to the workstation that has the script from my pc, I ran the following command
to enable the X application to be displayed on my pc.

export DISPLAY=<pc address>:0
When I ran the above script, the error message that I received was the following:

xhost: must be on local machine to add or remove hosts.
If I can get past this, then the SSH option might work.
Old 08-19-2011, 08:17 AM   #4
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
What is wrong with just:
ssh -X -l tps <address of network firewall/gateway>
No need mess around xhost, DISPLAY or dynamic firewall exceptions.

In your original post you only mention two computers, and now you introduce a third so I confused as to what you trying to do.
Old 08-19-2011, 05:48 PM   #5
Registered: Mar 2008
Posts: 18,704

Rep: Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796
I think I'd be looking at freenx or other 2x or nomachine deal.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios 3.0.6 Internal Server Error when accessing options on the web interface fryzer Linux - Server 14 11-11-2010 11:13 AM
Getting information from Remote server through Web interface bipinkdas Linux - Server 1 05-13-2008 08:19 AM
Web mail interface application gabsik Linux - Software 0 01-11-2008 06:01 AM
Web interface remote connection problem PpaKko Linux - Networking 0 08-13-2007 05:46 PM
SELinux puts ip into hosts.deny when accessing ossec web interface kav Linux - Software 3 04-21-2007 02:05 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration