Remote X over ssh
Alan Jackson
ajackson
Thu Jan 6 21:52:46 PST 2005
On Wed, 5 Jan 2005 05:40:12 -0800
Shawn Tayler <stayler at xmtservices.net> wrote:
> On Tue, 4 Jan 2005 21:55:24 -0800 Bill Campbell <linux-sxs at celestial.com>
> exclaimed:
>
> > On Tue, Jan 04, 2005, Shawn Tayler wrote:
> > >On Tue, 04 Jan 2005 20:16:34 -0800 Ken Moffat <kmoffat at drizzle.com>
> > >exclaimed:
> > >
> > >> Shawn Tayler wrote:
> > >>
> > >> >Ok Guys,
> > >> >
> > >> >All this X discussion has brought to mind an issue that I had put on
> > >a> >back burner. I am trying to get a remotre X session on a PC over a
> > >LAN.> > I am
> > >> >using ssh to initially connect. I have X Forwarding enabled in the
> > >> >sshdconfig file. What are the other steps I need to accomplish? the
> > >> >xhost+ and export DISPLAY 0.0:?
> > >> >
> > >> >What would be the difference if I wanted to say have my local X
> > >session> >on cntl-alt-F7 anf the remote session appear on cntl-alt-F8?
> > >Is thios> >possible?
> > >> >
> > ...
> > >> I enable forwarding in sshd_config using
> > >>
> > >> X11Forwarding yes
> > >>
> > >> and the call I use is
> > >>
> > >> ssh -X servername
> > >>
> > >> this runs the program on the server, but displays it on the client.
> > >> Maybe not exactly what you want, but it's easy.
> > >>
> > >
> > >This just gives me a text mode ssh session.
> >
> > Do you have a DISPLAY environment variable set in that ssh
> > session? If so, you should be able to run X clients from that
> > session (e.g. run ``xeyes'').
> >
> > NOTE: Current versions of openssh require setting
> > ``ForwardX11Trusted yes'' in the ssh_config file.
> >
>
> Yes
>
> I tried xeyes. I get the "Can't open display :0.0" error. What value
> should I set $DISPLAY to on the remote machine?
>
> I tried startx and kdeinit says it can't start either.
>
It's KDE.
edit /usr/kde/3.2/share/config/kdm/Xservers
and remove -nolisten tcp
--
-----------------------------------------------------------------------
| Alan K. Jackson | To see a World in a Grain of Sand |
| alan at ajackson.org | And a Heaven in a Wild Flower, |
| www.ajackson.org | Hold Infinity in the palm of your hand |
| Houston, Texas | And Eternity in an hour. - Blake |
-----------------------------------------------------------------------
More information about the Linux-users
mailing list