LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

Fwd: [ILUG] X Windows Query

Fwd: [ILUG] X Windows Query

Ian ianhoweire at gmail.com
Tue Apr 15 21:03:37 IST 2008


---------- Forwarded message ----------
From: Ian <ianhoweire at gmail.com>
Date: 15 Apr 2008 21:02
Subject: Re: [ILUG] X Windows Query
To: Dave McMullin <desertpalace at gmail.com>

ssh user at 192.168.1.3

(just the regular old ssh command!); then you can start apps on Server
via the terminal window, and they'll show up in windows on Client's X
display.

This section is not working for me. here is what i receive in the terminal
when trying this:

X11 connection rejected because of wrong authentication.
The application '.' lost its connection to the display localhost:10.0;
most likely the X server was shut down or you killed/destroyed
the application.


On 15/04/2008, Dave McMullin <desertpalace at gmail.com> wrote:
>
> On 4/15/08, Ian <ianhoweire at gmail.com> wrote:
> > Just a quick question regarding x windows,
> >  I have 2 linux machines and wondering if i can display applications
> from one
> >  on the other and what is the process for doing this.
> >  i have read a little into this and here is how i understand it to be.
> >  obviously the end result is negative so perhaps someone can point
> >  out where i'm going wrong.
> >
> >  Server :: 192.168.1.3
> >  Client  :: 192.168.1.4
> >
> >  On the client machine i open a tty2 session (ctrl + alt + f2)
> >  i login as normal and ssh onto the server 192.168.1.3
> >  while connected via ssh, I then issue the command : export display=
> >  192.168.1.4:0
> >
> >  What do i need to do after this to open the servers applications on my
> >  client.
> >
> >  Ian
> >
>
> Hi Ian,
>
> Taking your two machines to be called
> "Server" (the one running the programs) and "Client" (the one you'll
> be sitting at), what you can do is this:
>
> 1. On Server, add the following line to /etc/ssh/sshd_config :
>
> X11Forwarding yes
>
> 2. Restart sshd on Server:
>
>   # /etc/rc.d/rc.sshd restart
>
>   (You should get a message saying "Restarting sshd." or something like
> that)
>
> 3. On Client, add the following line to your ~/.ssh/config :
>
> ForwardX11 yes
>
> 4. Basically the above setup will automatically export the correct
> DISPLAY environment variable when you ssh into Server from a running X
> session on Client.
>
> You can test this by starting an X session on Client, and from a
> terminal window, do
>
> ssh user at 192.168.1.3
>
> (just the regular old ssh command!); then you can start apps on Server
> via the terminal window, and they'll show up in windows on Client's X
> display.
>
> HTH
> Dave
>
> --
>
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug
> Who we are : http://www.linux.ie/
> Where we are : http://www.linux.ie/map/
>



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell