DISPLAY variable breaking xhost + and other issues. - Redhat

This is a discussion on DISPLAY variable breaking xhost + and other issues. - Redhat ; We're having an issue and I was wondering if there was a quick workaround. We are physically logged into the server where our applications are installed. The apps are crashing because the DISPLAY environment variable is set to “:0.0”. We ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: DISPLAY variable breaking xhost + and other issues.

  1. DISPLAY variable breaking xhost + and other issues.

    We're having an issue and I was wondering if there was a quick
    workaround. We are physically logged into the server where our
    applications are installed. The apps are crashing because the DISPLAY
    environment variable is set to “:0.0”. We tried setting DISPLAY to
    localhost:0.0 in the /etc/csh.cshrc file but if we do this “xhost +”
    does not work (says something about not being able to open a display
    connection). Does anyone know about or have any ideas on how to
    properly set the DISPLAY variable in this situation? We are using Red
    Hat 4 Update 6 Advanced Server.


  2. Re: DISPLAY variable breaking xhost + and other issues.

    George wrote:
    > We're having an issue and I was wondering if there was a quick
    > workaround. We are physically logged into the server where our
    > applications are installed. The apps are crashing because the DISPLAY
    > environment variable is set to “:0.0”. We tried setting DISPLAY to
    > localhost:0.0 in the /etc/csh.cshrc file but if we do this “xhost +”
    > does not work (says something about not being able to open a display
    > connection). Does anyone know about or have any ideas on how to
    > properly set the DISPLAY variable in this situation? We are using Red
    > Hat 4 Update 6 Advanced Server.
    >


    ??? OK, I assume you've logged in at the console of the host, rather than
    remotely via X servers. The 'DISPLAY' not resolving correctly should not
    happen. What does 'ifconfig' and 'hostname' say? I wonder if you've got some
    sort of DNS screwup going on?

  3. Re: DISPLAY variable breaking xhost + and other issues.

    On 16 Sep, 17:37, George wrote:
    > We're having an issue and I was wondering if there was a quick
    > workaround. We are physically logged into the server where our
    > applications are installed.


    Confusing - in X Window terminology - the server is, by definition the
    screen in front of you - the client is where the programs execute.

    > The apps are crashing because the DISPLAY
    > environment variable is set to “:0.0”.


    How do you know that?

    > We tried setting DISPLAY to
    > localhost:0.0 in the /etc/csh.cshrc file but if we do this “xhost +”
    > does not work (says something about not being able to open a display
    > connection). Does anyone know about or have any ideas on how to
    > properly set the DISPLAY variable in this situation? We are using Red
    > Hat 4 Update 6 Advanced Server.


    So you're paying Redhat for support.

    I'd start by checking that the machine can resolve localhost correctly
    and that the X port is not blocked.

    C.

+ Reply to Thread