Solved

Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.

Posted on 2004-10-16
3
11,704 Views
Last Modified: 2008-01-09
0-28-27AM. Please wait ...[oracle@NegusII Disk1]$ Oracle Universal Installer, Version 10.1.0.3.0 Production
Copyright (C) 1999, 2004, Oracle. All rights reserved.
 
Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
localhost:0.0
localhost:0.0
Unable to start an interactive install session because of the following error:Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable. The DISPLAY environment variable should be set to <hostname or IP address>:<screen>, where the <screen> is usually '0.0'.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh:                      % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash:         $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
        echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
        echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
        % <full path to xclock... see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for 'xclock': '/usr/X11R6/bin/xclock'


The XCLOCK does not work either.  Nor does mozilla.  Netscape works.
0
Comment
Question by:xoxomos
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Caseybea earned 250 total points
ID: 12332773
Silly question, but it's where to start:

Please check the content of /etc/hosts.   In it, should be an entry for "localhost".   It should look like this:

127.0.0.1        localhost      localhost.localdomain

(or similar).  "localhost" NEEDS to be there.

If the /etc/hosts file is missing or damaged, that would explaing things.

If this isn't the situation, pop back in- enter the contewnts of /etc/hosts.   I'll try to stay around to help resolve this.    I am travelling all day, but should be back LATE tonight.

Keep us posted- we'll fix this.  --kcb
0
 

Author Comment

by:xoxomos
ID: 12333171
Ok, I've got a localhost with an ip address, but no localhost with 127.0.1???
0
 
LVL 13

Expert Comment

by:Caseybea
ID: 12333270
"localhost" is almost always 127.0.0.1 (note- two zeros).     The "fqdn" (fully qualified domain name) - the "regular" host name is what is usually used for the external IP address.

0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question