[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I start a X session on another machine




On Saturday, October 12, 2002, at 10:25 , nate wrote:

Andrew Lindley said:
I have 2 machines running Woody and not enough desk space for both
screens and keyboards. I'd  like to be able to run X sessions on both
machines from only one of the machines. When I ran SuSE I could use
xhost +<host ip> to allow remote (or even other local users) access to
the display. This doesn't work on Debian. Could someone tell me what the
correct incantation is? Secondly I'd like to be able to run the host
chooser on one of my vt's from gdm, ideas please.

I don't use gdm so I can't really help you with #2

but with #1 there are a few ways to run a remote X session:

1) vnc (nice since when you exit vnc the desktop remains in an active
state, you can run stuff and connect to it later from another system
if needed

2) X-over-SSH. This is slower/takes more bandwidth but works fine, you
need to be sure you have X11Forwarding enabled in /etc/ssh/sshd_config
(if not, set it and restart sshd). And you can ssh in from another system
with the -X option to forward your X connections accross SSH. There are
some compadiblity issues between various versions of SSH I have seen
over the past couple years, but generally it works

3) export display(as you mention). Debian ships with X in a somewhat
----snip----

I went for option 2 - ssh. I can ssh between the 2 hosts but the $DISPLAY variable does not get set on the server machine. I have ssh_config on both sides defaulting to ForwardX11=yes and can see the x11_get_proto line if I give ssh the -vv option. So I have a situation where I can ssh for command line but no X support.
Any ideas?

Andrew



Reply to: