LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
Search this Thread
Old 08-17-2011, 02:53 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 718

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?

Thanks.
 
Old 08-17-2011, 03:30 PM   #2
TimothyEBaldwin
Member
 
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, 03:42 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 718

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:

Code:
#!/bin/bash

# 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.

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

Quote:
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, 07:17 AM   #4
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
What is wrong with just:
Code:
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, 04:48 PM   #5
jefro
Guru
 
Registered: Mar 2008
Posts: 11,521

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


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


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 10:13 AM
Getting information from Remote server through Web interface bipinkdas Linux - Server 1 05-13-2008 07:19 AM
Web mail interface application gabsik Linux - Software 0 01-11-2008 05:01 AM
Web interface remote connection problem PpaKko Linux - Networking 0 08-13-2007 04:46 PM
SELinux puts ip into hosts.deny when accessing ossec web interface kav Linux - Software 3 04-21-2007 01:05 PM


All times are GMT -5. The time now is 03:28 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration