Starting an X11 client on another machine, without ssh

Tom Buskey tom at buskey.name
Mon Mar 22 16:54:58 EDT 2010


On Mon, Mar 22, 2010 at 4:13 PM, Bill Freeman <f at ke1g.mv.com> wrote:

> Way back when I was at Digital (as it then was) and before, we used to have
> a tool called 'xon'.  It took as an argument the DNS name or IP address of
> a server on the net, connected to it, started a shell or optionally
> specified
> command, with the DISPLAY environment variable all set up, and maybe
> permissions
> as well (probably with xhost rather than .Xauthority).
>
>
Sounds like ssh -X :-)


> Googling doesn't seem to turn up xon, so it was either a local tool, or it
> has long fallen out of favor.  Maybe it was rsh based.
>
> Does anyone remember this thing?  It seems like ssh is overkill for talking
> to a VM on your own box.
>
> (And having figured out how to get rid of the -nolisten TCP when the X
> server
> is started, ssh's -X or -Y are certainly overkill.)
>

I've used an expect script with rsh/rlogin/telnet to set DISPLAY.  Expect is
not used much.

I've used this to capture hostname:0 into $D
export D=`/usr/bin/who -uT | grep $mytty | awk '{print $NF}' | tr -d '()' |
grep -v :0\.0 | tail -1`:0.0

The -nolisten allows xhost + to work remotely.  It probably allows anyone
else to listen in on your X11 stream.  Which is one of the reasons for ssh
-X

>From a user point of view, ssh -X is easier then  login plus DISPLAY=$D.
>From a sysadmin point of view, expect is going away
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20100322/67ce2719/attachment.html 


More information about the gnhlug-discuss mailing list