Re: Starting X-windows application on remote system
- From: "James Kimble" <jkimble@xxxxxxx>
- Date: 10 Aug 2005 18:59:05 -0700
If I understand what you're asking (and I admit I may not) I think
the following should work:
On the system where you want to view the app, from an x-term
of any type run:
/> xhost +
NOTE: This disables access control and any X client will be able
to connect from any host. You can refine this later for
your own security purposes.
logon (from the same x-term) to the remote system using:
/> ssh -X <ip of remote system>
And try to start your app (do not specify display).
This presumes that you are logging into the same account
name as that on the local system. Using the -X option on
ssh allows for X11 packet forwarding so you should not
have to inform the application of the display because it
will assume your local one (from where you started ssh).
I'm no expert but this has worked for me in the past. Hope
it works for you.
Jim Gibson wrote:
> I would like to start up a Java application on a remote X-server system
> (running Red Hat Enterprise Linux) and have the applications windows
> appear on the display of the remote system and be controlled by the
> remote systems mouse and keyboard. Is this possible?
>
> I have tried logging into the remote system using ssh and trying all
> sorts of ways to set the display option and run xclock on the remote
> system and failed. I have tried 'setenv DISPLAY localhost:0.0', 'setenv
> DISPLAY hostname:0.0', and 'setenv DISPLAY :0.0', and various '-display
> XXX:0.0', and all I get is "Can't open display XXX:0.0". A user (me) is
> logged into the system when I try this, so the X-window server should
> be running.
>
> I can, of course, start the application on the remote system and have
> the X-windows output pushed back to my system, or start the application
> on my system and have the X-windows data pushed to the remote system,
> but I want to both run the application and show the output on the
> remote system without physically being at the system. I have to start 9
> instances of this one program on 9 systems that are on another floor.
>
> Is some work-around possible, such as having some sort of daemon
> running on each system that will launch the application locally when
> commanded to do so?
>
> Thanks!
>
> --
> Jim Gibson
>
> ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
> http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
.
- Follow-Ups:
- References:
- Starting X-windows application on remote system
- From: Jim Gibson
- Starting X-windows application on remote system
- Prev by Date: Starting X-windows application on remote system
- Next by Date: Re: Starting X-windows application on remote system
- Previous by thread: Starting X-windows application on remote system
- Next by thread: Re: Starting X-windows application on remote system
- Index(es):
Relevant Pages
|