On Thu, 2004-08-05 at 23:28, Ravi Kumar wrote:
> Hello,
>       I wanted to test how I could remotly connect to a xserver and get an
> x application on my local computer. I believe the steps are as follows

Preliminaries: Your local machine (into which you are looking at) is the
X-server. The remote machine where you execute the application is the
X-client.

> //-----------Start of commands --------------
> $ ssh -l <username> <remote machine name.domainname>
>   password: ******
> $ "Now I am in a prompt in the remote machine".
> $ gedit &   //should display gedit on my local monitor from the remote
> m/c right?

If (every thing is well configured) {
        // it is so very easy
        <local-machine-name>$ ssh -l <myself> <remot-machine-name>
        Password: ********
        <remot-machine-name>$ gedit
} else {
        // a bit round-about
        <local-machine-name>$ xhost <remot-machine-ip>
        <local-machine-name>$ ssh -l <myself> <remot-machine-ip>
        Password: ********
        <remot-machine-name>$ export DISPLAY=<local-machine-ip>:0
        <remot-machine-name>$ gedit
}

Regards.
-- 
Josy P. Pullockara

Scientist,                             eMail:[EMAIL PROTECTED]
Computational and Theoretical          Phone:+91-80-2505 1627
Fluid Dynamics Division,               Fax  :+91-80-2522 0952
National Aerospace Laboratories        Res. :+91-80-2524 5053
----------------------------------------------------------------------
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html




-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to