View previous topic :: View next topic |
Author |
Message |
melanarchy n00b
Joined: 03 Dec 2002 Posts: 11 Location: New York
|
Posted: Tue Dec 03, 2002 7:44 pm Post subject: Xwindows |
|
|
how do I make it so that Xwindows applications from other computers will work on my gentoo desktop? In windows I first run Xwindows, ssh to the remote machine, and then set my DISPLAY env var to the IP of my machine. When I run an Xwindows application it then pops up on my local screen. How do I get this same behaviour using Xwindows?
Thanks,
Mel |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Tue Dec 03, 2002 7:50 pm Post subject: |
|
|
That way doesn't work? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Lemma Guru
Joined: 19 Apr 2002 Posts: 416 Location: Uppsala, Sweden
|
Posted: Sat Jan 11, 2003 1:17 pm Post subject: |
|
|
Nop, not for me (I think it should)...
Code: | ssh -X -l name remote_ip
export DISPLAY=local_ip:0
Xlib: connection to "local_ip" refused by server
Xlib: No protocol specified
GTK-WARNING **: cannot open display local_ip:0 | ? ? ? _________________ Always make it as simple as possible, but no simpler
/Einstein |
|
Back to top |
|
|
Lemma Guru
Joined: 19 Apr 2002 Posts: 416 Location: Uppsala, Sweden
|
Posted: Sat Jan 11, 2003 1:22 pm Post subject: |
|
|
Ok, problem solved . All I had to do was to run xhost +remote_ip and viola - working! _________________ Always make it as simple as possible, but no simpler
/Einstein |
|
Back to top |
|
|
nbensa l33t
Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Sat Jan 11, 2003 1:57 pm Post subject: |
|
|
on your local host
Then ssh to your remote host and
Code: | xauth add /cookie/ ; export DISPLAY=/your display/ |
For example:
Code: | nbensa@venkman nbensa $ xauth list
venkman.bensa.ar:0 MIT-MAGIC-COOKIE-1 335b1e6659335b0b3a663936605c5b59
venkman.bensa.ar/unix:0 MIT-MAGIC-COOKIE-1 335b1e6659335b0b3a663936605c5b59
nbensa@venkman nbensa $ ssh zeddmore
nbensa@zeddmore's password:
Last login: Fri Jan 10 22:51:20 2003 from venkman.bensa.ar
nbensa@zeddmore nbensa $ xauth add venkman.bensa.ar:0 MIT-MAGIC-COOKIE-1 335b1e6659335b0b3a663936605c5b59
nbensa@zeddmore nbensa $ export DISPLAY=venkman.bensa.ar:0
|
HTH,
Norberto |
|
Back to top |
|
|
rajl Apprentice
Joined: 25 Sep 2002 Posts: 287
|
Posted: Mon Jan 13, 2003 1:06 am Post subject: |
|
|
I just use the command:
ssh -x username@remotehost.com
and I can use all the x applicaitions I want on the remote host and have them display on my machine (provided I have the program installed on my local machine). Is there some reason I don't know about as to why you use what appears to be a more complicated way? _________________ -Rajl
-----------------------------------------------------------
It's easy to be brave once you consider the alternatives. |
|
Back to top |
|
|
nbensa l33t
Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Mon Jan 13, 2003 3:12 am Post subject: |
|
|
yep, sure, there's a BIG reason for that much more complicated way...
... I forgot about X forwarding |
|
Back to top |
|
|
rajl Apprentice
Joined: 25 Sep 2002 Posts: 287
|
Posted: Mon Jan 13, 2003 5:42 am Post subject: |
|
|
and that BIG reason would be? i'm a relative newbie to linux, so please forgive me _________________ -Rajl
-----------------------------------------------------------
It's easy to be brave once you consider the alternatives. |
|
Back to top |
|
|
nbensa l33t
Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Mon Jan 13, 2003 12:03 pm Post subject: |
|
|
The reason is: I forgot we were talking about SSH!!! I forgot X forwarding.
I think I need to clarify this: I used to use 'telnet' a lot and 'ssh' is like a new toy for me. I'm using Linux since two years ago, and I'm still learning a lot of things.
I'm sorry for the confusion.
Regards,
Norberto |
|
Back to top |
|
|
|