Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xwindows
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
melanarchy
n00b
n00b


Joined: 03 Dec 2002
Posts: 11
Location: New York

PostPosted: Tue Dec 03, 2002 7:44 pm    Post subject: Xwindows Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue Dec 03, 2002 7:50 pm    Post subject: Reply with quote

That way doesn't work?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Lemma
Guru
Guru


Joined: 19 Apr 2002
Posts: 416
Location: Uppsala, Sweden

PostPosted: Sat Jan 11, 2003 1:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lemma
Guru
Guru


Joined: 19 Apr 2002
Posts: 416
Location: Uppsala, Sweden

PostPosted: Sat Jan 11, 2003 1:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Sat Jan 11, 2003 1:57 pm    Post subject: Reply with quote

on your local host
Code:
xauth list

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
View user's profile Send private message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Mon Jan 13, 2003 1:06 am    Post subject: Reply with quote

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
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Mon Jan 13, 2003 3:12 am    Post subject: Reply with quote

yep, sure, there's a BIG reason for that much more complicated way...


... I forgot about X forwarding :-)
Back to top
View user's profile Send private message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Mon Jan 13, 2003 5:42 am    Post subject: Reply with quote

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
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Mon Jan 13, 2003 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum