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,796 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
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.
Suggested Courses

739 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