Operating System - Tru64 Unix
1748195 Members
2738 Online
108759 Solutions
New Discussion юеВ

Re: Xhost/Xlib error

 
Steven Schweda
Honored Contributor

Re: Xhost/Xlib error

> # netstat -l
> netstat: failed to allocate memory for buffer

> Could this related to the problem that
> xlib and xhost + failed?

Many things are possible. You seem to have
some major problems there.

"swapon -s"?
sammysammy
Frequent Advisor

Re: Xhost/Xlib error

Hi,

this is the output from swap -s:
# swapon -s
Swap partition /dev/disk/dsk0b (default swap):
Allocated space: 2097152 pages (16.00GB)
In-use space: 5 pages ( 0%)
Free space: 2097147 pages ( 99%)

Swap partition /dev/disk/dsk2c:
Allocated space: 26674020 pages (203.51GB)
In-use space: 5 pages ( 0%)
Free space: 26674015 pages ( 99%)


Total swap allocation:
Allocated space: 28771172 pages (219.51GB)
Reserved space: 2265276 pages ( 7%)
In-use space: 10 pages ( 0%)
Available space: 26505896 pages ( 92%)

It seems there are still plenty of memory space.

Thanks
sammysammy
Frequent Advisor

Re: Xhost/Xlib error

Hi,

I found that in the /usr/dt/config/Xaccess file, I should add in a missing configuraiton line:
*.mysite.com.au
since this missing line is appeared in another working Tru64 5.1B-4 server.
Now how I restart X server remotely so that it re-read the Xaccess file?

Thanks
sammysammy
Frequent Advisor

Re: Xhost/Xlib error

Hi,

I just managed to restart the X windows remotely, but I still having problem with xhost + command:

# kill -HUP 1011
# ps -e | grep /usr/bin/X11/X
310146 ?? S 0:00.46 /usr/bin/X11/X :0 -auth /var/dt/authdir/authfiles/A:0-hIgjnl
310049 pts/14 S + 0:00.00 grep /usr/bin/X11/X
# DISPLAY=tserver:0
# export DISPLAY
# xhost +
Xlib: connection to "tserver:0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost: unable to open display "tserver:0"
#

I have no idea how to fix it now.

Thanks
Steven Schweda
Honored Contributor

Re: Xhost/Xlib error

> I have no idea how to fix it now.

Look back at the part which begins "And who
is logged in at the console there?"

alp $ rsh /user = root urtx
[...]

urtx# export DISPLAY=:0.0
urtx# xhost
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost: unable to open display ":0.0"
urtx# # Log in at console as "root".
urtx# xhost
access control enabled, only authorized clients can connect
urtx#

Problem solved.
sammysammy
Frequent Advisor

Re: Xhost/Xlib error

But I logged in as root.

sammysammy
Frequent Advisor

Re: Xhost/Xlib error

Still having the error:
# export DISPLAY=:0.0
# xhost
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost: unable to open display ":0.0"
#
Steven Schweda
Honored Contributor

Re: Xhost/Xlib error

> But I logged in as root.

At the graphics console?
sammysammy
Frequent Advisor

Re: Xhost/Xlib error

no. I logged in the server from windows with putty.
Steven Schweda
Honored Contributor

Re: Xhost/Xlib error

> no.

So, as I keep asking, "And who is logged in
at the console there?" If no one is logged
in there, who will be looking at the stuff
you want to put onto the display?

What part of this wasn't clear?:

urtx# # Log in at console as "root".