[comp.sys.hp] X window problem.

kam@hpcvlx.cv.hp.com (Keith Marchington) (05/26/90)

/ hpcvlx:comp.sys.hp / frankhua@quiche (Frank Xiaojun HUANG) /  2:06 pm  May 24, 1990 /

> I have finished installing the 7.0 HP-UX, and now I am trying to get X
> window work. I did exactly the smae as the manual says(use SAM to make
> a fully loaded kernal with networking by reading in the dfile
> `/etc/conf/dfile.full.lan', but still I got some problem:
> 
> When I type `x11start', it generate a new screen, and then the following
> message:
> 
> waiting for X server to begin accepting connections .........
> 
> and then nothing happens(keeps printing out the dots).
> 
> Can anyone give me some suggestions to solve this problem?
> 
> Thanks.
> 
> p.s. This is a local system and is not connected to any computer Net.
> ----------
> 

As of 7.0, you will need to set the DISPLAY environment variable if
you do not have an /etc/hosts file.  This is because some logic was
added to the X Library to attempt to use unix domain sockets if the
connection is local.  

I believe this is the source of your problem.  Just do one of the
following before starting the 'x11start' program:

for csh:

	setenv DISPLAY local:0

for sh/ksh
	
	DISPLAy=local:0
	export DISPLAY

Hope this works.

Keith Marchington
Hewlett-Packard
Corvallis, Oregon

darryl@hpuorfa.HP.COM (Darryl J. Coppenhaver) (06/05/90)

> I have finished installing the 7.0 HP-UX, and now I am trying to get X
> window work. I did exactly the smae as the manual says(use SAM to make
> a fully loaded kernal with networking by reading in the dfile
> `/etc/conf/dfile.full.lan', but still I got some problem:
> 
> When I type `x11start', it generate a new screen, and then the following
> message:
> 
> waiting for X server to begin accepting connections .........
> 
> and then nothing happens(keeps printing out the dots).
> 
> Can anyone give me some suggestions to solve this problem?
> 
> Thanks.
> 
> p.s. This is a local system and is not connected to any computer Net.
> ----------
> 
	I don't know if you are up and Xing yet but, the most comman cause
	for that "waiting for X server...." message is that your "hostname"
	as defined in /etc/rc is not one of the names found in the /etc/hosts
	table. If you have not set up the network (which you would not worry
	about noramlly for a stand alone system) the X window system will
	not work.
	  Set up the network using the following steps:
	  1) edit /etc/rc and modify "SYSNAME=unknown" to some 
	     real name for your system.
	  2) edit /etc/hosts and add that new name and the network address
	     (network address must match that used in /etc/netlinkrc)

	Good luck,
	darryl@hpuorfa

e89hse@rigel.efd.lth.se (06/06/90)

In article <140009@hpuorfa.HP.COM>, darryl@hpuorfa.HP.COM (Darryl J. Coppenhaver) writes:
>
>> I have finished installing the 7.0 HP-UX, and now I am trying to get X
>> window work. I did exactly the smae as the manual says(use SAM to make
>> a fully loaded kernal with networking by reading in the dfile
>> `/etc/conf/dfile.full.lan', but still I got some problem:
>> 
>> When I type `x11start', it generate a new screen, and then the following
>> message:
>> 
>> waiting for X server to begin accepting connections .........
>> 
>	I don't know if you are up and Xing yet but, the most comman cause
>	for that "waiting for X server...." message is that your "hostname"
>	as defined in /etc/rc is not one of the names found in the /etc/hosts
>	table. If you have not set up the network (which you would not worry
>	about noramlly for a stand alone system) the X window system will
>	not work.
>	  Set up the network using the following steps:
>	  1) edit /etc/rc and modify "SYSNAME=unknown" to some 
>	     real name for your system.
>	  2) edit /etc/hosts and add that new name and the network address
>	     (network address must match that used in /etc/netlinkrc)

 I had the same problem, and the only thing I had to do was to set DIPLAY to
LOCAL:0.0:

 setenv DISPLAY local:0.0

 Henrik Sandell