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,578 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

912 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now