[H-GEN] Remote X and dynamic IP addresses

Mark Suter suter at zwitterion.humbug.org.au
Mon May 22 08:29:33 EDT 2000


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike,

suter> There are many methods - my preferred one is compressed,
suter> encrypted, strongly authenticated and convenient, as follows.
suter>
suter>    ssh -C -X 192.168.254.1 xlogo &

Not only does the ssh method provide greater security, it is
also simpler.  When you login to a remote host with ssh and
X forwarding is enabled, ssh automatically sets the DISPLAY
variable for you.

A rule of thumb for ssh and X forwarding:

    If you start playing with the DISPLAY environment variable
    or the -display command line option, ask for help - you are
    probably doing something wrong.

suter> user at 192.168.1.1$ xhost +192.168.1.2
suter> user at 192.168.1.2$ xlogo -display 192.168.1.1:0.0 &

mike> I have tried this with no result, could you explain which
mike> of the above machines is the remote workstation?

In the above example, xlogo is running on 192.168.1.2 and being
displayed on 192.168.1.1.

In the common scenario, 192.168.1.2 would be the remote server;
however, part of the beauty of the X Window System is that this
isn't necessarily so.  You can run the application anywhere and
have it display anywhere, almost anything you want is possible.

The X Window System is one of the Unix power things: the simple
things are a little harder but the otherwise impossible things
possible.

mike> I have one machine i log into via telnet / ssh/ or rlogin
mike> 192.168.1.10
mike>
mike> My machine at home is 192.168.1.150 (in this example)
mike> connected via ppp
mike>
mike> I have similar setups on eth0 (192.168.16.10 = server)
mike> 192.168.16.8 is the workstation where i would like to run X
mike> programs on the server, displayed on the workstation.

If you were logging into 192.168.16.10 from 192.168.16.8 then you
would need to run the following on your local host

    xhost +192.168.16.10

and run the following on the remote host to ask it to display on
your local workstation after you've logged in.

    xlogo -display 192.168.16.8:0.0 &

The following may make this clearer.

    $ xhost +192.168.16.10
    $ telnet 192.168.16.10	# From 192.168.16.8
    Trying 192.168.16.10...
    Connected to 192.168.16.10.
    Escape character is '^]'.
    login: user
    password:
    $ xlogo -display 192.168.16.8:0.0 &

Yours sincerely,

- -- Mark John Suter | I know that you  believe  you understand
suter at humbug.org.au  | what you think I said, but I am not sure
GPG key id F2FEBB36  | you realise that what you  heard  is not
Ph: +61 4 1126 2316  | what I meant.                  anonymous

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Public key available from Keyservers or http://www.uq.edu.au/~suter/

iD8DBQE5KSgq7EsZXfL+uzYRAga5AJ46M5aYy7UMKjO7rkRl8MiyHokbTACfVGKa
/5UQ2uk8Yh2KPYmROGwZ2eo=
=rB9B
-----END PGP SIGNATURE-----


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list