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
:

//-----------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?
//----------End of commands -------------------
Is there any thing wrong in the above code?? If it is right, I thought
why not try it on the same machine ? So I did some thing like this...
1) I logged in as root in tty1 and started xinit.
# xinit
2) I opened tty2 <Ctrl+Alt+F2> and logged in as another user say "user1"
$_
3) Now as user1, I started an ssh as follows:
$ ssh -l user1  localhost.localdomain
  password :  ******
$_
Then I was put into the prompt. Till this fine.
4) Then I tried starting gedit as follows :
$gedit & 
5) Now I get the error as follows :
(gedit:890): GTK-WARNING **: Cannot open display.

Could somebody explain where I could have gone wrong? Do I have to
give the port number or something while executing the ssh command ?

thanks in advance
ravi


-------------------------------------------------------
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