Re: Xwindows from a remote machine


Subject: Re: Xwindows from a remote machine
From: Jon Reynolds (jonr@destar.net)
Date: Tue Aug 19 2003 - 11:29:01 AKDT


On Tue, 2003-08-19 at 11:13, Jamie Hushower wrote:
> If you issue "ssh -X remote.machine.name" from an X terminal, you can run X
> programs (from within your ssh session) on remote.machine.name that will
> display on your local workstation. Is that the clarification you wanted? The
> remote computer does not need to have X running- only the local machine. The
> only commands that need to be issued are the initial ssh command and then
> the name of any programs you want to run.
>
> -Jamie
> _____________________________________
> Jamie Hushower
> Computer Consultant
> Rent-A-Geek
> 223-9136
>
> ----- Original Message -----
> From: "Barsalou" <barjunk@attglobal.net>
> To: "Justin Dieters" <enderak@gci.net>
> Cc: "Aklug" <aklug@aklug.org>
> Sent: Tuesday, August 19, 2003 11:00 AM
> Subject: Re: Xwindows from a remote machine
>
>
> >
> > Is that supposed to start the X session as well? If not, what is the
> > next command I need to start the X session so it is pointing at the
> > remote machine?
> >
> > Mike
> >
> > On Mon, 2003-08-18 at 20:18, Justin Dieters wrote:
> > > Well, if both machines have X, you can do 'ssh -X -l<remote-username>
> > > <remote-ip>'
> > >
> > > Justin
> > >
> > >
> > > Barsalou wrote:
> > > > I have a machine that I can ssh into....how would I then run something
> > > > that would show the X gui from that remote machine on my local
> machine?
> > > >
> > > > The idea would be to be able to use the X gui to control that far away
> > > > machine.
> > > >
> > > > Mike
> > --
> > Barsalou <barjunk@attglobal.net>
> >
> > ---------

Mike,

        Arthur Corliss showed me how to do this at one time but I have long
since forgotten. I do remember it had something to do with the display
variable though. I found this on a google search for you:

What you want to do is to run an application on a remote machine (say
which is much faster and has more memory) but to have all the windows of
that application on your machine.
Therefore, on the local machine (ant):
  * you need to allow the remote machine (godzilla) to use your
    display:
    xhost +godzilla
  NB. You need to do this only one per session on your local machine
  * login to the remote machine
  rsh godzillaor
  telnet godzilla
  (it depends on the set-up of your network)
On the remote machine:
  * check if it knows where it should display:
    echo $DISPLAY
   It should display ant:0.0. If it displays godzilla:0.0 or :0.0 you
must set it by:
    setenv DISPLAY ant:0.0 (csh)
    export DISPLAY=ant:0.0 (bash)

Now you should be able to run your program. Sometimes it is worth to
check it by starting e.g. xterm.
 <EOL>

This might help you to track down what it is you are looking to do or at
least narrow your search.

Jon

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Aug 19 2003 - 11:34:49 AKDT