Re: using X apps across the LAN?
- From: Dances With Crows <danSPANceswitTRAPhcrows@xxxxxxxxx>
- Date: Wed, 21 Jun 2006 21:41:52 -0500
On Wed, 21 Jun 2006 10:22:02 -0400, Kaitlyn Luna staggered into the
Black Sun and said:
Lew Pitcher wrote:
start your X server, making sure that it will accept network
connections. set the authorizations (xhost or xauth) to permit the
remote box to connect telnet or ssh to the remote box
FWIW, Kaitlyn, X is started with "-nolisten tcp" by default on most
modern Linux distros. Not too many folks use X-over-TCP these days, so
the -nolisten plugs up a potential security hole. Not that it matters;
most "run X app on remote, display X app on local" problems can be
solved like so:
user@local:~$ ssh -X remote
user@remote:~$ echo $DISPLAY
[ ssh's DISPLAY fiddling puts it there by default. If DISPLAY is not
set, -X didn't work; back up and try again. NOTE: Unless remote has
"X11Forwarding yes" set in its /etc/ssh/sshd_config file, nothing will
user@remote:~$ x-app &
[ x-app draws pictures on local's DISPLAY, receives input from local's
....note that -Y may be necessary instead of -X; try both.
On the remote box, where the application will run set the DISPLAY
environment variable to point to your display box
DISPLAY=<display_box_IP_or_hostname>:0 , start your application
This will fail miserably if X was started with -nolisten tcp.
I've got a commercial Linux application that I wanted to run in
FreeBSD too. (It has a per-workgroup license.) I copied the libraries
from Linux to FreeBSD's /compat/linux/lib. But when starting the app,
I discovered it has hard-coded references to /usr/lib/each_library.so.
Nice, a broken application. Generally, you want to let the dynamic
linker find the libs; that's what it's *for*!
I can't move the Linux libraries there because it'd break FreeBSD. So
I thought next best thing is to let FreeBSD run the application right
off the Linux system.
Yep, with that condition, using X-over-ssh (or TCP if you're willing to
fiddle with more junk) is probably the best way to do things. See what
you can get with ssh -[XY] , and so forth. HTH,
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL
- Prev by Date: Re: Poweroff after X
- Next by Date: a problem with vera/dejavu sans mono fonts
- Previous by thread: Re: using X apps across the LAN?
- Next by thread: Re: using X apps across the LAN?