View Single Post

  #5 (permalink)  
Old 04-21-2005
I_have_nothing
 
Posts: n/a
Default Re: How to remotely connect to linux machine and then use GUI software on it?

Thanks!
But ...a few more questions:

1. Start an X server--I run cygwin.bat. It looks OK.
There is a cygwin window pop-up and it has the following prompt:
User@IBM-E4029...~
$
Q: Now I have problem to start the Cygwin/w.
I read the Chapter 4 of user guide but still can not find a way to
start it. Would you please help?

2. Enable X forwarding in your SSH client.
I use SSH Secure Shell connect to the linux host. It looks Ok.
Q: How can I Enable X forwarding in your SSH client(my PC?)
I type "ssh -X -C bonds.MYschool.edu" under the $ in cygwin window
but get "bash:ssh: command not found". What should I do?
I check linux host by "cat /etc/ssh/sshd_config"
There is a "X11Forwarding yes" in it. Though I can not run it, but I
assume X forwarding is enabled on target machine(linux host).

Q: When I try to run GUI in linux, such as htmlview, I got:
" htmlview
No valid text mode browser found."
What's wrong?

Thanks!


>(1) Start an X server, such as the one provided by

http://x.cygwin.com/,
on your home PC.
>(2) Enable X forwarding in your SSH client.
>(3) Log in to the linux host, and run the GUI command from the command


line there.
>The app will display on your home PC.
>Good luck,
>Andrew.


>From your end you need to specify X forwarding, it's also a good idea

to
use compression so do the following,
>On the target machine you need to enable X forwarding. This is done in


/etc/ssh/sshd_config,
>X11Forwarding yes


> The other answers pretty much cover it. A few details:
>
> o you need to run an X-server on your machine, true, but what is

that?
> It's software that acts as a graphical environment server and as a


> client. You run it on your home machine, be it *nix, BSD or other.

It
> provides a graphical display as specified by the incoming

connection.



> o when you start the GUI app on the remote machine in the lab, it

will
> attempt to connect to your X-server; you may need to specify a

DISPLAY
> environment variable # DISPLAY=<my ip> on the machine in the lab
> o You may need to do this on a per-program basis on the command

line:
> /usr/bin/kshisen -display 192.168.0.1:0
> This is an example, non-routable ip#, use your own! Note the ':0'

at the
> end of the command.> --
>


Reply With Quote