On Wed Aug 05 1998, Jim Roland wrote:

> Is there any such thing as an X windows version of a telnet session?

Yes, of course there is!

One of the more powerful features of X is the ability to run X applications
remotely but for the window to appear on your local X server.

> Basically, I'd like to be able to get an X windows session via remote just
> like one would get a shell prompt (and run programs like pine).  Thanks in
> advance.

I hope I'm understanding you correctly in that you didn't know about this.

It's a little more complex that just this quickie mini-howto (read all the
man pages!), but in a nutshell:

With telnet (or rlogin):

- run xhost or xauth and specify the remote machine.
- telnet or rlogin to that machine
- set the DISPLAY variable on the remote account to point to
  your local X server, eg:
  export DISPLAY=mylocal.box.here:0.0
- run any X application, such as xterm
- the xterm will appear on your local X window!

If you have your account on the remote machine set up so that ssh or rsh is
working, it can get even easier to do...

With rsh:

- run xhost or xauth as above, then do something like:

DISPLAY=mylocal.box.here:0.0 rsh -l username remote.box.there xterm

(and up will pop the xterm on your local machine).

With ssh do the following (and this is my favourite):

DISPLAY=mylocal.box.here:0.0 ssh -l username remote.box.there xterm

(The DISPLAY variable needs to be set if it isn't run from a local xterm,
but the xauth stuff will be done for you by ssh, with the added bonus that
everything is secure and encrypted.  And if you startx via ssh-agent and
then run ssh-add, you don't even need to enter your passphrase).

But don't try to do this over a modem - it's horribly slow!

There is an application/daemon that will compress remote X to make it work
better over slow links... I'm not sure that this is, and I'm hoping someone
might chirp in to tell us all what it's called.  (Heh, I could make VERY
good use of it myself!)

I hope this has pointed you in the right direction...

Cheers                                                         .
Tony  __________  Tony Nugent            >> - Linux -  <<  _--_|\ 
 / / / / __/ __ \ [EMAIL PROTECTED]       >> UNIX power << /     *\ 
/ /_/ /\ \/ /_/ / [EMAIL PROTECTED] >>  on a pc!  << \_.--._/
\____/___/\___\_\ UNIX Systems Officer, Faculty of Science      v
 University of Southern Queensland, Toowoomba Oueensland Australia
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-

Reply via email to