Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: cannot connect to X server

  1. #1

    Default cannot connect to X server

    The server is OpenSuse 11.3, 64-bit. Client is Windows XP SP3 running Xming and putty. From the Windows XP client I get connected to the server just fine using putty (ssh, X11 forwarding enabled, logging in as root), but when I try to run konqueror, or any other graphical app, I get "cannot connect to X server". This used to work, and I have no idea why it suddenly stopped working. Any help appreciated.

  2. Default Re: cannot connect to X server

    echo $DISPLAY
    And ensure it is set.
    Did you su to another user once connected?
    Lews Therin

  3. #3

    Default Re: cannot connect to X server

    $DISPLAY is not set. I have never set it to anything. I did not "su" to another user.

  4. Default Re: cannot connect to X server

    Hey there,
    Try setting DISPLAY=localhost:10.0
    Also ensure X Forwarding is enable in the server you are connecting to in /etc/ssh/sshd_config
    You might also try to have putty explicitly use the -X or -Y ssh connection option, as described at:
    IT Resource Center forums - DISPLAY Variable & ssh -X
    Lastly, try ruling Xming out of it and verify you can XForward okay by connecting with another Linux box - just to make sure it is all good. (I bet it is just the display variable not getting set correctly.)
    Lews Therin

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    3,334

    Default Re: cannot connect to X server

    My suggestions:

    1. Do an MD5 checksum of your install media. It's really easy and can be done even from your faulty install.
    2. Do an fschk of your hard disk. How old is it? Know that typical "consumer grade" hard drives are on the downside of life after about 2 years and can be expected to start failing anytime thereafter especially after about 3.5 years. If your hard drive supports SMART, get a SMART utility and read the errors your hard drive is reporting (run at least 5 passes).
    3. If an application crashes, even if the KDE debugger crashes, copy whatever is captured to a textfile and save, maybe post here. So, for instance simply saying that ktorrent crashed isn't very useful.
    4. At the moment you seem to think that numerous apps fail within KDE, so I suspect one of the above first and only for the moment am not going to suggest an application trace (running the app within a debugger) but I think it would be useful to copy any errors off machine (eg pen drive), then if after another install the app crashes again compare the errors. If the errors are the same, it would tend to point to an installation or persistent hardware issue (like inadequate hardware). If the errors change or disappear, then it would probably point to something like hard drive issues.

    HTH,
    Tony

  6. Default Re: cannot connect to X server

    Hey Tony,

    I know you are offering to help, which is awesome, but I think your heading down a wrong track here: Apps are not crashing - it is only that X forwarding is not working when connecting from a windows box running Xming - there is no reason for him to check his install media, nor do an fsck nor does his drive have anything to do with the issue he is seeing.

    This is just a simple matter of getting X forwarding to work via putty + xming. It is either his display variable, an xauthority issue, or a putty config issue and nothing more.

    Cheers,
    Lews Therin

  7. #7

    Default Re: cannot connect to X server

    Again, up until very recently, this worked just fine. I tried rebooting the OpenSuse server, and I tried rebooting my Windows XP workstation, all to no effect. I did assign the DISPLAY variable as suggested. It made no difference. This is not a headless server, if that matters, and the monitor on the server works just fine. Nothing has changed in my environment. I don't understand why it just suddenly stopped working.

  8. Default Re: cannot connect to X server

    If it was working previously, then indeed something (by definition) must have changed.
    Can you connect and X forward from another Linux box? If not, then the issue may not be with Xming / Putty at all. If so, then it likely is. At least you would then have a better idea of which end to attack the problem from.
    It may be a problem with your .Xauthority - maybe create a new one? Also see this post for a sample of trouble shooting:
    Verbose diagnostics of X11 forwarding
    Lews Therin

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    10,581

    Default Re: cannot connect to X server

    A thought I had about this - is it possible you're trying to connect with an already open root X session on the server? Forgive me if I'm on the wrong track here...

  10. #10
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    3,334

    Default Re: cannot connect to X server

    Quote Originally Posted by LewsTherinTelemon View Post
    Hey Tony,

    I know you are offering to help, which is awesome, but I think your heading down a wrong track here: Apps are not crashing - it is only that X forwarding is not working when connecting from a windows box running Xming - there is no reason for him to check his install media, nor do an fsck nor does his drive have anything to do with the issue he is seeing.

    This is just a simple matter of getting X forwarding to work via putty + xming. It is either his display variable, an xauthority issue, or a putty config issue and nothing more.

    Cheers,
    Lews Therin
    Yeah, I see that now... Somehow I didn't see it was connecting from a remote server and it is clear as day.

    My Bad. No new thoughts.

    Tony

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •