Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't Remote my Display
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Boworr
n00b
n00b


Joined: 30 Jul 2004
Posts: 45
Location: England. Where the history comes from.

PostPosted: Fri Aug 20, 2004 6:43 am    Post subject: Can't Remote my Display Reply with quote

I can't figure this out and could use some help.

On my Thinkpad I open a terminal window, and type the following just to make sure X security is off.
Code:
xhost +
Then I SSH onto my remote PC and type
Code:
export DISPLAY=<Thinkpad IP address>:0.0
Then I start something like xclock. I always get the following error:
Code:
Error: Can't open display:
.

I know Thinkpad's are capable of displaying on two screens, so I've also tried various combinations of 1.0 and 0.1 at the end of the export DISPLAY command.

I also tried with ssh -X to force X forwarding and that didn't help either.

Any ideas?
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Fri Aug 20, 2004 7:22 am    Post subject: Reply with quote

You are making it more complicated than you should, and besides you are mixing some things up.

Now, first of all, X is a pain in the but to understand. I don't. But I forward X exessively at home and therefore I leart the recepies.

When you SSH you let SSH take care of everything. So start by configuring SSH. On the ssh server, make sure "X11Forwarding yes" is set.

Then, on the client, run "ssh -Y <server>"
At this point, the ssh server will have created a virtual display on the server, probably :0.10 or some such. You do not need to know about this or care. However, all programs starded in you ssh session will attempt to connect to this display. When they do, the ssh server catches them and sends the info to your ssh client. Your client will then post the info you your current display.

So: Do not mess with the -display or anything else.

PS If you donät want to type -Y, make sure "ForwardX11 yes" and "ForwardX11Trusted yes" are set in the clients config.
_________________
Part of "The adopt an unanswered post initiative"
Back to top
View user's profile Send private message
brian33x51
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jun 2002
Posts: 118

PostPosted: Tue Aug 31, 2004 5:51 pm    Post subject: Reply with quote

Ummm..I consider your answer to be the "wrong answer".

Setting the display variable and running an application has worked for the past 12 years as far as I know, that is until the xorg release.

My question, why is it broken and what tricks do I need to use to get it to work again?

Right now I have a mixtured of redhat 7.3 boxes and some fedora core2 boxes in addition to a small gentoo cluster. It's definitely an administrative pain to have to deal with this.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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