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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

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). …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

785 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