Re: wrong DISPLAY variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 7, 2010 at 3:55 PM, Darren Tucker <dtucker@xxxxxxxxxx> wrote:
> On 8/12/10 5:33 AM, Asif Iqbal wrote:
>>
>> iqbala@jp2 { ~ }$ ssh -Y hlr-brixuat-01.example.net.
>> Password:
>> Last login: Tue Dec  7 17:33:46 2010 from jp2.example.net
>> [iqbala@hlr-brixuat-01 ~]$ xterm
>> _X11TransSocketINETConnect() can't get address for hostname:6000: Name
>> or service not known
>> xterm Xt error: Can't open display: hostname:0.0
>
> Most likely something in your shell startup scripts is (re)setting $DISPLAY
> to the wrong value.  sshd will set display numbers of 10 and up (by default,
> this can be changed in sshd_config via X11DisplayOffset).

Thanks a lot for the pointer. That is exactly what happened.

There was this line in the .bash_profile. Not sure how it got there.

DISPLAY=hostname:0.0; export DISPLAY

I commented it out. Now its all good. Thanks a lot again


>
> --
> Darren Tucker (dtucker at zip.com.au)
> GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
>    Good judgement comes with experience. Unfortunately, the experience
> usually comes from bad judgement.
>



-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?



[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux